/**
 * Page Builder - Dedicated Stylesheet
 * Stiluri pentru paginile create cu Page Builder
 * Izolate de main.css pentru a evita conflicte
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --pb-primary: #fbb71b;
    --pb-primary-dark: #e0a516;
    --pb-bg-dark: #1a1a1a;
    --pb-bg-darker: #0d0d0d;
    --pb-bg-card: rgba(30, 30, 30, 0.8);
    --pb-text-light: #ffffff;
    --pb-text-muted: #999999;
    --pb-text-body: #cccccc;
    --pb-border-color: rgba(255, 255, 255, 0.1);
    --pb-border-radius: 16px;
    --pb-max-width: 1200px;
    --pb-transition: all 0.3s ease;
}

/* ============================================
   Override main.css conflicts for Page Builder content
   ============================================ */

/* Reset container styles that may come from main.css */
.pb-page .pb-page-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0; /* Header spacing handled separately */
}

.pb-page .pb-page-content {
    width: 100%;
    max-width: none;
    margin: 0;
}

.pb-page .pb-content {
    width: 100%;
    max-width: none;
}

.pb-page .pb-container {
    width: 100%;
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Ensure footer stays at full width */
.pb-page footer,
.pb-page .site-footer {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Override main.css .container that might affect sections */
.pb-page .section-wrapper .container,
.pb-page .admin-about-section .container,
.pb-page .admin-services-section .container,
.pb-page .admin-gallery-section .container,
.pb-page .admin-testimonials-section .container,
.pb-page .admin-contact-section .container,
.pb-page .admin-blog-section .container {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ============================================
   Base Reset for Page Builder Pages
   ============================================ */
.pb-page {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--footer-bg, #0f0f0f);
    color: var(--pb-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll from full-width sections */
}

.pb-page *,
.pb-page *::before,
.pb-page *::after {
    box-sizing: inherit;
}

/* ============================================
   Container System
   ============================================ */
.pb-container {
    width: 100%;
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pb-container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

/* ============================================
   Page Content Wrapper
   ============================================ */
.pb-page-wrapper {
    padding-top: 80px; /* Space for fixed header */
    overflow-x: hidden; /* Prevent horizontal scroll from full-width sections */
}

.pb-page-content {
    position: relative;
    min-height: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll from full-width sections */
}

.pb-content {
    padding: 0;
}

.pb-content-inner {
    padding: 0;
}

/* ============================================
   Section Wrapper System (for Page Builder sections)
   ============================================ */
.section-wrapper,
.pb-section-wrapper {
    position: relative;
    overflow: hidden;
}

.section-wrapper .wrapper-content,
.pb-section-wrapper .pb-section-content {
    position: relative;
    z-index: 2;
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Full Width Section - Legacy support */
.wrapper-full-width,
.pb-section-full {
    width: 100%;
}

.wrapper-full-width .wrapper-content,
.pb-section-full .pb-section-content {
    max-width: 100%;
    padding: 0;
}

.wrapper-full-width .container,
.pb-section-full .pb-container {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   NEW: Separate Background and Content Layout
   ============================================ */

/* Background Full Width - section background spans full viewport */
.wrapper-bg-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Background Boxed - section background respects container */
.wrapper-bg-boxed {
    width: 100%;
    max-width: var(--pb-max-width);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--pb-border-radius);
}

/* Admin hero/section elements with wrapper-bg-full applied directly (not via outer wrapper-div)
   Need higher specificity to override .admin-hero-section { width: 100% } */
.admin-hero-section.wrapper-bg-full,
.pb-hero.wrapper-bg-full {
    width: 100vw !important;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Content Full Width - content spans full width */
.wrapper-content-full .wrapper-content {
    max-width: 100%;
    padding: 0 1.5rem;
}

/* Content Boxed - content respects max-width */
.wrapper-content-boxed .wrapper-content {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Combined: Full BG + Boxed Content (most common for sections) */
.wrapper-bg-full.wrapper-content-boxed .wrapper-content {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Combined: Boxed BG + Full Content */
.wrapper-bg-boxed.wrapper-content-full .wrapper-content {
    max-width: 100%;
    padding: 0;
}

/* Remove trailing margin from last block inside wrappers (overrides inline margin-bottom) */
.section-wrapper .wrapper-content > :last-child,
.pb-section-wrapper .pb-section-content > :last-child {
    margin-bottom: 0 !important;
}

/* Eliminate gaps between consecutive full-width section wrappers */
.section-wrapper + .section-wrapper {
    margin-top: 0;
}

/* Section Overlay */
.wrapper-overlay,
.pb-section-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Admin Sections - Common styles */
.admin-hero-section,
.admin-about-section,
.admin-services-section,
.admin-gallery-section,
.admin-testimonials-section,
.admin-contact-section,
.admin-blog-section,
.admin-products-section,
.admin-promotions-section {
    width: 100%;
}

/* ============================================
   Typography
   ============================================ */
.pb-page h1, .pb-page h2, .pb-page h3,
.pb-page h4, .pb-page h5, .pb-page h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pb-primary);
}

.pb-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.pb-page h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.pb-page h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.pb-page h4 { font-size: 1.5rem; }
.pb-page h5 { font-size: 1.25rem; }
.pb-page h6 { font-size: 1rem; }

.pb-page p {
    margin: 0 0 1rem 0;
    color: var(--pb-text-body);
}

.pb-page a {
    color: var(--pb-primary);
    text-decoration: none;
    transition: var(--pb-transition);
}

.pb-page a:hover {
    color: var(--pb-primary-dark);
}

/* Section Titles */
.pb-section-title {
    font-size: 2.5rem;
    color: var(--pb-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.pb-section-subtitle {
    font-size: 1.1rem;
    color: var(--pb-text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================================
   Buttons
   ============================================ */
.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--pb-transition);
}

.pb-btn-primary {
    background: linear-gradient(135deg, var(--pb-primary), var(--pb-primary-dark));
    color: #000;
}

.pb-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 183, 27, 0.3);
    color: #000;
}

.pb-btn-secondary {
    background: transparent;
    color: var(--pb-text-light);
    border: 2px solid var(--pb-border-color);
}

.pb-btn-secondary:hover {
    border-color: var(--pb-primary);
    color: var(--pb-primary);
}

.pb-btn-outline {
    background: transparent;
    color: var(--pb-primary);
    border: 2px solid var(--pb-primary);
}

.pb-btn-outline:hover {
    background: var(--pb-primary);
    color: #000;
}

/* ============================================
   Cards
   ============================================ */
.pb-card {
    background: var(--pb-bg-card);
    border-radius: var(--pb-border-radius);
    border: 1px solid var(--pb-border-color);
    overflow: hidden;
    transition: var(--pb-transition);
}

.pb-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 183, 27, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pb-card-flat {
    border-radius: 0;
    box-shadow: none;
}

.pb-card-bordered {
    background: transparent;
    border: 2px solid var(--pb-border-color);
}

.pb-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pb-card:hover .pb-card-image img {
    transform: scale(1.05);
}

.pb-card-body {
    padding: 1.5rem;
}

.pb-card-title {
    font-size: 1.25rem;
    color: var(--pb-text-light);
    margin-bottom: 0.5rem;
}

.pb-card-text {
    color: var(--pb-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Grid System
   ============================================ */
.pb-grid {
    display: grid;
    gap: 2rem;
}

.pb-grid-1 { grid-template-columns: 1fr; }
.pb-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pb-grid-4 { grid-template-columns: repeat(4, 1fr); }

.pb-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 992px) {
    .pb-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pb-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pb-grid-4,
    .pb-grid-3,
    .pb-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   Hero Section
   ============================================ */
.pb-hero,
.admin-hero-section,
.custom-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 4rem 1.5rem;
    width: 100%;
}

/* Hero outside of wrapper - Full width by default */
.pb-page > .admin-hero-section,
.pb-page > .custom-hero-section {
    margin-top: 0;
    width: 100%;
}

.pb-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.pb-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.pb-hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--pb-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.pb-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pb-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Scroll Indicator */
.pb-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: pb-bounce 2s infinite;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pb-hero-scroll:hover {
    color: var(--pb-primary);
}

@keyframes pb-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Hero responsive */
@media (max-width: 768px) {
    .pb-hero,
    .admin-hero-section {
        min-height: 80vh;
        background-attachment: scroll !important;
    }

    .pb-hero-title {
        font-size: 2.5rem !important;
    }

    .pb-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   Services Section
   ============================================ */
.pb-services {
    padding: 5rem 0;
}

.pb-service-card {
    background: var(--pb-bg-card);
    border-radius: var(--pb-border-radius);
    overflow: hidden;
    border: 1px solid var(--pb-border-color);
    transition: var(--pb-transition);
}

.pb-service-card:hover {
    transform: translateY(-10px);
    border-color: var(--pb-primary);
}

.pb-service-image {
    height: 200px;
    overflow: hidden;
}

.pb-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pb-service-card:hover .pb-service-image img {
    transform: scale(1.1);
}

.pb-service-content {
    padding: 1.5rem;
}

.pb-service-name {
    font-size: 1.3rem;
    color: var(--pb-text-light);
    margin-bottom: 0.5rem;
}

.pb-service-desc {
    color: var(--pb-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pb-service-price {
    display: block;
    color: var(--pb-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.pb-service-link {
    color: var(--pb-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pb-service-link:hover {
    gap: 1rem;
}

/* ============================================
   Gallery Section
   ============================================ */
.pb-gallery {
    padding: 5rem 0;
}

/* Split Gallery */
.pb-gallery-split {
    position: relative;
    height: 520px;
    display: flex;
    overflow: hidden;
    border-radius: var(--pb-border-radius);
}

.pb-gallery-split-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

.pb-gallery-split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.pb-gallery-split-columns {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
}

.pb-gallery-split-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--pb-text-light);
    transition: var(--pb-transition);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-gallery-split-col:last-child {
    border-right: none;
}

.pb-gallery-split-col:hover,
.pb-gallery-split-col.active {
    background: rgba(251, 183, 27, 0.1);
    flex: 1.5;
}

.pb-gallery-split-col.active {
    background: rgba(251, 183, 27, 0.2);
}

.pb-gallery-split-label {
    text-align: center;
}

.pb-gallery-split-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pb-gallery-split-count {
    font-size: 0.85rem;
    color: var(--pb-text-muted);
}

/* Masonry Gallery */
.pb-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.pb-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.pb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pb-gallery-item:hover img {
    transform: scale(1.05);
}

.pb-gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.pb-gallery-item:hover .pb-gallery-item-overlay {
    opacity: 1;
}

/* ============================================
   Testimonials Section
   ============================================ */
.pb-testimonials {
    padding: 5rem 0;
}

.pb-testimonial-card {
    background: var(--pb-bg-card);
    border-radius: var(--pb-border-radius);
    padding: 2rem;
    border: 1px solid var(--pb-border-color);
}

.pb-testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pb-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-testimonial-avatar-placeholder {
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
}

.pb-testimonial-name {
    color: var(--pb-text-light);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.pb-testimonial-rating {
    color: var(--pb-primary);
}

.pb-testimonial-text {
    color: var(--pb-text-muted);
    font-style: italic;
    line-height: 1.7;
}

/* ============================================
   About Section
   ============================================ */
.pb-about {
    padding: 5rem 0;
}

.pb-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pb-about-image img {
    width: 100%;
    border-radius: var(--pb-border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pb-about-content .pb-section-title {
    text-align: left;
}

.pb-about-text {
    color: var(--pb-text-body);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .pb-about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.pb-contact {
    padding: 5rem 0;
}

.pb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.pb-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pb-contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(251, 183, 27, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pb-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pb-contact-info-label {
    color: var(--pb-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.pb-contact-info-value {
    color: var(--pb-text-light);
    font-weight: 500;
}

/* Contact Form */
.pb-form-group {
    margin-bottom: 1.5rem;
}

.pb-form-label {
    display: block;
    color: var(--pb-text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pb-form-input,
.pb-form-textarea,
.pb-form-select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pb-border-color);
    border-radius: 8px;
    color: var(--pb-text-light);
    font-size: 1rem;
    transition: var(--pb-transition);
}

.pb-form-input:focus,
.pb-form-textarea:focus,
.pb-form-select:focus {
    outline: none;
    border-color: var(--pb-primary);
    background: rgba(255, 255, 255, 0.08);
}

.pb-form-textarea {
    min-height: 150px;
    resize: vertical;
}

@media (max-width: 768px) {
    .pb-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Blog Section
   ============================================ */
.pb-blog {
    padding: 5rem 0;
}

.pb-blog-card {
    background: var(--pb-bg-card);
    border-radius: var(--pb-border-radius);
    overflow: hidden;
    border: 1px solid var(--pb-border-color);
    transition: var(--pb-transition);
}

.pb-blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 183, 27, 0.3);
}

.pb-blog-image {
    height: 200px;
    overflow: hidden;
}

.pb-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pb-blog-card:hover .pb-blog-image img {
    transform: scale(1.05);
}

.pb-blog-content {
    padding: 1.5rem;
}

.pb-blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--pb-text-muted);
}

.pb-blog-title {
    font-size: 1.2rem;
    color: var(--pb-text-light);
    margin-bottom: 0.75rem;
}

.pb-blog-excerpt {
    color: var(--pb-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pb-blog-link {
    color: var(--pb-primary);
    font-weight: 500;
}

/* ============================================
   Products Section
   ============================================ */
.pb-products {
    padding: 5rem 0;
}

.pb-product-card {
    background: var(--pb-bg-card);
    border-radius: var(--pb-border-radius);
    overflow: hidden;
    border: 1px solid var(--pb-border-color);
    transition: var(--pb-transition);
}

.pb-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 183, 27, 0.3);
}

.pb-product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.pb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pb-product-card:hover .pb-product-image img {
    transform: scale(1.05);
}

.pb-product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--pb-primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.pb-product-content {
    padding: 1.5rem;
}

.pb-product-name {
    font-size: 1.1rem;
    color: var(--pb-text-light);
    margin-bottom: 0.5rem;
}

.pb-product-price {
    font-size: 1.25rem;
    color: var(--pb-primary);
    font-weight: 700;
}

.pb-product-price-old {
    font-size: 0.9rem;
    color: var(--pb-text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* ============================================
   Promotions Section
   ============================================ */
.pb-promotions {
    padding: 5rem 0;
}

.pb-promo-card {
    background: var(--pb-bg-card);
    border-radius: var(--pb-border-radius);
    overflow: hidden;
    border: 1px solid var(--pb-border-color);
    position: relative;
}

.pb-promo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    z-index: 2;
}

.pb-promo-image {
    height: 200px;
    overflow: hidden;
}

.pb-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-promo-content {
    padding: 1.5rem;
}

.pb-promo-title {
    font-size: 1.3rem;
    color: var(--pb-text-light);
    margin-bottom: 0.5rem;
}

.pb-promo-desc {
    color: var(--pb-text-muted);
    margin-bottom: 1rem;
}

.pb-promo-countdown {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pb-promo-countdown-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.pb-promo-countdown-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pb-primary);
}

.pb-promo-countdown-label {
    font-size: 0.75rem;
    color: var(--pb-text-muted);
}

/* ============================================
   Utility Classes
   ============================================ */
.pb-text-center { text-align: center; }
.pb-text-left { text-align: left; }
.pb-text-right { text-align: right; }

.pb-mt-0 { margin-top: 0; }
.pb-mt-1 { margin-top: 0.5rem; }
.pb-mt-2 { margin-top: 1rem; }
.pb-mt-3 { margin-top: 1.5rem; }
.pb-mt-4 { margin-top: 2rem; }
.pb-mt-5 { margin-top: 3rem; }

.pb-mb-0 { margin-bottom: 0; }
.pb-mb-1 { margin-bottom: 0.5rem; }
.pb-mb-2 { margin-bottom: 1rem; }
.pb-mb-3 { margin-bottom: 1.5rem; }
.pb-mb-4 { margin-bottom: 2rem; }
.pb-mb-5 { margin-bottom: 3rem; }

.pb-py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.pb-py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.pb-hidden { display: none; }
.pb-visible { display: block; }

/* ============================================
   Animations
   ============================================ */
@keyframes pb-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pb-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pb-slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pb-gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pb-animate-fadeIn { animation: pb-fadeIn 0.5s ease-out; }
.pb-animate-fadeInUp { animation: pb-fadeInUp 0.6s ease-out; }
.pb-animate-slideInLeft { animation: pb-slideInLeft 0.6s ease-out; }
.pb-animate-slideInRight { animation: pb-slideInRight 0.6s ease-out; }

/* Staggered animations */
.pb-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.pb-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.pb-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.pb-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.pb-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.pb-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   Lightbox
   ============================================ */
.pb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pb-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.pb-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.pb-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.pb-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.pb-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--pb-transition);
}

.pb-lightbox-nav:hover {
    background: var(--pb-primary);
    color: #000;
}

.pb-lightbox-prev { left: 20px; }
.pb-lightbox-next { right: 20px; }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .pb-container {
        padding: 0 1rem;
    }

    .pb-hero {
        min-height: 80vh;
        padding: 2rem 1rem;
        padding-top: calc(80px + 2rem);
    }

    .pb-hero-title {
        font-size: 2.5rem;
    }

    .pb-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pb-section-title {
        font-size: 2rem;
    }

    .pb-gallery-split {
        flex-direction: column;
        height: auto;
    }

    .pb-gallery-split-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
    }
}

/* ============================================
   Team Profile Card Popup
   ============================================ */

/* Grid of clickable team photos */
.pb-team-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.pb-team-photo-item {
    flex: 1 1 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 350px;
}

.pb-team-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.pb-team-photo-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.pb-team-photo-item .team-photo-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pb-team-photo-item:hover .team-photo-name {
    opacity: 1;
}

.pb-team-photo-item .team-photo-name span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile Card Overlay */
.team-card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.team-card-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Profile Card */
.team-profile-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 99999;
    max-width: 360px;
    width: 92%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #1e1e24;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 0 0 0 8px rgba(251, 183, 27, 0.15), 0 25px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', 'Jost', system-ui, sans-serif;
}

.team-profile-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.team-profile-card .tpc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.team-profile-card .tpc-close:hover {
    background: rgba(251, 183, 27, 0.3);
    border-color: var(--pb-primary);
}

/* Card states — auto height, max constrained */
.team-profile-card[data-state="#tpc-about"] .tpc-main {
    padding-top: 0;
}

.team-profile-card {
    max-height: 85vh;
}

.tpc-header {
    position: relative;
    display: flex;
    height: 200px;
    flex-shrink: 0;
    width: 100%;
    transition: 0.3s;
}

.tpc-header * {
    transition: 0.3s;
}

.tpc-cover {
    width: 100%;
    height: 160px;
    position: absolute;
    top: -20%;
    left: 0;
    will-change: top;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    transform: scale(1.2);
    transition: 0.5s;
}

.tpc-avatar {
    width: 100px;
    height: 100px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-64px);
    border: 3px solid #1e1e24;
}

.tpc-fullname {
    position: absolute !important;
    bottom: 30px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    transform: translateX(-50%) !important;
    left: 50% !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: calc(100% - 20px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    border: none !important;
    background: none !important;
}

.tpc-jobtitle {
    position: absolute !important;
    bottom: 10px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    opacity: 0.7 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: var(--pb-primary) !important;
    max-width: calc(100% - 20px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: none !important;
    background: none !important;
}

/* Active (collapsed header) state */
.team-profile-card.is-active .tpc-header {
    height: 80px;
}

.team-profile-card.is-active .tpc-cover {
    height: 100px;
    top: -50px;
}

.team-profile-card.is-active .tpc-avatar {
    transform: none;
    left: 20px;
    width: 50px;
    height: 50px;
    bottom: 10px;
}

.team-profile-card.is-active .tpc-fullname,
.team-profile-card.is-active .tpc-jobtitle {
    left: 86px;
    transform: none;
}

.team-profile-card.is-active .tpc-fullname {
    bottom: 40px !important;
    font-size: 16px !important;
}

.team-profile-card.is-active .tpc-jobtitle {
    bottom: 22px !important;
    letter-spacing: 1px !important;
    font-size: 10px !important;
}

/* Main content */
.tpc-main {
    position: relative;
    flex: 1;
    display: flex;
    padding-top: 10px;
    flex-direction: column;
}

.tpc-section {
    display: none;
}

.tpc-section.is-active {
    display: block;
    animation: tpcFadeIn 0.5s both;
}

@keyframes tpcFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tpc-content {
    padding: 20px;
}

.tpc-subtitle {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--pb-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tpc-desc {
    line-height: 1.6;
    color: #a0a0a8;
    font-size: 14px;
    margin: 0;
}

/* Social links in about tab */
.tpc-social {
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 20px;
    gap: 8px;
}

.tpc-social a {
    color: #a0a0a8;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-size: 15px;
}

.tpc-social a:hover {
    background: rgba(251, 183, 27, 0.2);
    color: var(--pb-primary);
}

/* Experience timeline */
.tpc-timeline {
    margin-top: 15px;
    position: relative;
}

.tpc-timeline::after {
    background: linear-gradient(to top, rgba(251, 183, 27, 0) 0%, var(--pb-primary) 100%);
    content: "";
    left: 42px;
    width: 2px;
    top: 0;
    height: 100%;
    position: absolute;
}

.tpc-timeline-item {
    position: relative;
    padding-left: 60px;
    padding-right: 20px;
    padding-bottom: 25px;
    z-index: 1;
}

.tpc-timeline-item:last-child {
    padding-bottom: 5px;
}

.tpc-timeline-item::after {
    content: attr(data-year);
    position: absolute;
    top: 0;
    left: 37px;
    width: 8px;
    height: 8px;
    line-height: 0.6;
    border: 2px solid #1e1e24;
    font-size: 11px;
    text-indent: -35px;
    border-radius: 50%;
    color: rgba(160, 160, 168, 0.7);
    background: linear-gradient(to bottom, #fbb71b 0%, #e0a516 100%);
}

.tpc-timeline-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.tpc-timeline-item-title span {
    color: var(--pb-primary);
}

.tpc-timeline-item-desc {
    font-size: 13px;
    color: #7a7a82;
    line-height: 1.5;
}

/* Contact section */
.tpc-contact-wrapper {
    margin-top: 10px;
}

.tpc-contact {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #a0a0a8;
    line-height: 1.6;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    padding: 6px 0;
}

.tpc-contact:hover {
    color: var(--pb-primary);
}

.tpc-contact + .tpc-contact {
    margin-top: 8px;
}

.tpc-contact i,
.tpc-contact svg {
    flex-shrink: 0;
    width: 30px;
    min-height: 20px;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--pb-primary);
    font-size: 16px;
    text-align: center;
}

.tpc-contact-btn {
    border: 0;
    outline: none;
    background: linear-gradient(135deg, var(--pb-primary) 0%, #e0a516 100%);
    color: #000;
    padding: 12px 16px;
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.tpc-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 183, 27, 0.4);
}

/* Navigation buttons */
.tpc-buttons {
    display: flex;
    background: #16161a;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    left: 0;
    border-radius: 0 0 14px 14px;
}

.tpc-buttons button {
    flex: 1 1 auto;
    user-select: none;
    background: transparent;
    font-size: 12px;
    border: 0;
    padding: 14px 5px;
    cursor: pointer;
    color: #8a8a94;
    transition: 0.3s;
    font-family: inherit;
    font-weight: 600;
    outline: 0;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tpc-buttons button.is-active,
.tpc-buttons button:hover {
    color: var(--pb-primary);
    border-bottom: 3px solid var(--pb-primary);
    background: linear-gradient(to bottom, rgba(251, 183, 27, 0) 0%, rgba(251, 183, 27, 0.08) 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .pb-team-grid {
        flex-wrap: wrap;
    }
    .pb-team-photo-item {
        flex: 1 1 50%;
        min-height: 250px;
    }
    .team-profile-card {
        max-width: 340px;
    }
}

/* ====================================
   PIERCING PRODUCT CARD (Team Card style)
   ==================================== */

/* Overlay */
.pg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pg-overlay.active {
    display: flex;
}

/* Card container */
.pg-card {
    position: relative;
    max-width: 400px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: #1e1e24;
    border-radius: 16px;
    box-shadow:
        0 0 0 6px rgba(251, 183, 27, 0.12),
        0 25px 60px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    animation: pgCardIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.pg-card.active {
    display: flex;
}
@keyframes pgCardIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Close button */
.pg-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}
.pg-close:hover {
    background: rgba(251, 183, 27, 0.3);
    color: #fbb71b;
}

/* Product image header */
.pg-header {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}
.pg-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pg-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fbb71b;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(251, 183, 27, 0.4);
}

/* Product info body */
.pg-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title */
.pg-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

/* Price boxes */
.pg-prices {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.pg-price-box {
    background: rgba(251, 183, 27, 0.1);
    border: 1px solid rgba(251, 183, 27, 0.2);
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 100px;
}
.pg-price-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pg-price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbb71b;
}

/* Availability */
.pg-avail {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Tabs navigation */
.pg-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}
.pg-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
}
.pg-tab-btn.active {
    color: #fbb71b;
    border-bottom-color: #fbb71b;
    background: rgba(251, 183, 27, 0.06);
}

/* Tab content */
.pg-tab-content {
    display: none;
}
.pg-tab-content.active {
    display: block;
    animation: pgFadeIn 0.3s ease;
}
@keyframes pgFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Detail rows */
.pg-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb;
    font-size: 0.875rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pg-detail-row i {
    color: #fbb71b;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
}
.pg-detail-row.pg-hypo {
    color: #4ade80;
}
.pg-detail-row.pg-hypo i {
    color: #4ade80;
}
.pg-desc {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 12px;
}

/* CTA button */
.pg-cta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fbb71b, #f59e0b);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pg-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 183, 27, 0.4);
}

/* Scrollbar */
.pg-card::-webkit-scrollbar { width: 4px; }
.pg-card::-webkit-scrollbar-track { background: transparent; }
.pg-card::-webkit-scrollbar-thumb { background: rgba(251, 183, 27, 0.3); border-radius: 4px; }

/* Mobile responsive */
@media (max-width: 480px) {
    .pg-card {
        max-width: 100%;
        width: 100%;
        max-height: 95vh;
        border-radius: 14px;
    }
    .pg-header {
        aspect-ratio: 3/2;
    }
    .pg-body {
        padding: 16px;
    }
}
