/* ==========================================================================
   Paradise Blooom - High-End Mobile Responsive Architecture
   Flawless mobile layout, 2-column mobile catalog, thumb-friendly CTAs,
   and zero horizontal overflow.
   ========================================================================== */

/* Prevent horizontal body overflow without breaking position: sticky */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

/* Mobile Header & Toggle */
.pb-mobile-toggle {
    display: none;
}

@media (max-width: 992px) {
    .pb-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: none;
        border: none;
        color: #111;
        cursor: pointer;
        padding: 0;
        margin-right: 6px;
    }

    .pb-header-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 0 !important;
    }

    .pb-logo {
        gap: 8px !important;
    }

    .pb-logo img {
        width: 34px !important;
        height: 34px !important;
    }

    .pb-logo-text {
        font-size: 15px !important;
        font-weight: 800 !important;
        letter-spacing: 0.3px !important;
    }

    .pb-logo-subtitle {
        display: none !important;
    }

    .pb-search-container {
        display: none !important;
    }

    .pb-header-actions {
        gap: 8px !important;
    }

    .pb-action-btn {
        width: 34px !important;
        height: 34px !important;
        padding: 6px !important;
    }
}

/* Master Responsive Grid for Products */
.pb-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 40px;
}

@media (max-width: 1150px) {
    .pb-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    /* Tighten container padding for mobile */
    main.container {
        padding: 0 12px !important;
    }

    /* 2-Column Product Grid on Mobile (E-Commerce Standard) */
    .pb-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
    }

    /* Product Card Proportions */
    .pb-product-card {
        border-radius: 10px !important;
    }
    
    .pb-product-card .pb-product-media,
    .pb-product-card a[style*="aspect-ratio"] {
        aspect-ratio: 4 / 5 !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .pb-product-card .pb-card-body,
    .pb-product-card div[style*="padding:15px"],
    .pb-product-card div[style*="padding:14px"] {
        padding: 10px 8px 12px 8px !important;
    }

    .pb-product-card h3,
    .pb-product-card .pb-card-title {
        font-size: 12.5px !important;
        line-height: 1.3 !important;
        height: 33px !important;
        margin-bottom: 6px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .pb-product-card .pb-card-price-row,
    .pb-product-card div[style*="align-items:baseline"] {
        margin: 4px 0 6px 0 !important;
        gap: 6px !important;
    }

    .pb-product-card .pb-card-price-row span:first-child,
    .pb-product-card span[style*="font-size:16px"],
    .pb-product-card span[style*="font-size:15.5px"] {
        font-size: 14.5px !important;
        font-weight: 800 !important;
    }

    .pb-product-card .pb-card-partial-pill,
    .pb-product-card div[style*="background:rgba(212,175,55,0.1)"] {
        font-size: 9px !important;
        padding: 3px 6px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }

    .pb-product-card button.pb-quick-add-btn,
    .pb-product-card button[style*="padding:9px"],
    .pb-product-card button[style*="padding:8px"] {
        padding: 8px 10px !important;
        font-size: 10.5px !important;
        letter-spacing: 0.3px !important;
    }

    .pb-product-card button.pb-wishlist-toggle {
        width: 30px !important;
        height: 30px !important;
        top: 6px !important;
        right: 6px !important;
    }

    /* ==========================================================================
       Full Image Hero Banner (Center-Bottom Typography & CTAs)
       ========================================================================== */
    .pb-hero-slider-section {
        margin: 10px 0 24px 0 !important;
    }

    .pb-hero-carousel-container {
        border-radius: 14px !important;
    }

    .pb-hero-full-slide {
        height: 440px !important;
    }

    .pb-hero-center-bottom-wrap {
        padding: 0 16px 40px 16px !important;
    }

    .pb-hero-title {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    .pb-hero-subtitle {
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin-bottom: 16px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pb-hero-cta-group {
        width: 100% !important;
        gap: 10px !important;
    }

    .pb-hero-btn-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 13.5px !important;
    }

    .pb-hero-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 20px !important;
        font-size: 13px !important;
    }

    .pb-hero-nav-arrow {
        display: none !important;
    }

    /* Trust Strip 2x2 Grid on Mobile */
    .pb-trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .pb-trust-card {
        padding: 10px 10px !important;
        gap: 8px !important;
        border-radius: 8px !important;
    }

    .pb-trust-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        font-size: 15px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .pb-trust-card div[style*="font-size:13.5px"] {
        font-size: 11.5px !important;
        line-height: 1.25 !important;
    }

    .pb-trust-card div[style*="font-size:11.5px"] {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
    }

    /* Curated Category Stories */
    .pb-category-stories {
        gap: 14px !important;
        padding-bottom: 8px !important;
    }

    .pb-story-item {
        width: 72px !important;
    }

    .pb-story-ring {
        width: 62px !important;
        height: 62px !important;
        margin-bottom: 6px !important;
    }

    .pb-story-name {
        font-size: 10.5px !important;
        max-width: 72px !important;
    }

    /* Tab Filter Group (Bestsellers) */
    .pb-tab-filter-group {
        width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .pb-tab-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 6px 13px !important;
        font-size: 11.5px !important;
    }

    /* Shoppable Reels Section */
    .pb-reels-section {
        padding: 20px 14px !important;
        margin: 25px 0 35px 0 !important;
        border-radius: 14px !important;
    }

    .pb-reels-section h2 {
        font-size: 19px !important;
    }

    .pb-reel-card {
        flex: 0 0 156px !important;
        min-width: 156px !important;
        aspect-ratio: 9 / 16 !important;
        border-radius: 16px !important;
    }

    .pb-reel-overlay {
        padding: 24px 10px 10px 10px !important;
    }

    .pb-reel-title {
        font-size: 11.5px !important;
        line-height: 1.25 !important;
    }

    .pb-reel-price {
        font-size: 13px !important;
    }

    .pb-reel-shop-btn {
        padding: 4px 10px !important;
        font-size: 10px !important;
    }

    /* Bespoke Atelier Spotlight */
    .pb-atelier-spotlight {
        padding: 24px 18px !important;
        margin: 30px 0 !important;
        border-radius: 14px !important;
        gap: 16px !important;
    }

    .pb-atelier-spotlight h3 {
        font-size: 20px !important;
    }

    .pb-atelier-spotlight p {
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    .pb-atelier-spotlight div[style*="z-index:2"]:last-child {
        width: 100% !important;
    }

    .pb-atelier-spotlight a.pb-btn {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        padding: 12px 20px !important;
    }

    /* Collection Section Headers */
    .pb-products-section div[style*="justify-content:space-between"] {
        flex-direction: row !important;
        align-items: center !important;
        margin-bottom: 14px !important;
    }

    .pb-section-title {
        font-size: 18px !important;
    }

    .pb-products-section a[style*="font-size:13px"] {
        font-size: 11.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Extra refinement for narrow smartphones (iPhone SE, Galaxy A, etc.) */
    .pb-products-grid {
        gap: 8px !important;
    }

    .pb-product-card .pb-card-body,
    .pb-product-card div[style*="padding:15px"],
    .pb-product-card div[style*="padding:14px"] {
        padding: 8px 6px 10px 6px !important;
    }

    .pb-product-card h3,
    .pb-product-card .pb-card-title {
        font-size: 11.5px !important;
        height: 30px !important;
    }

    .pb-product-card .pb-card-price-row span:first-child {
        font-size: 13.5px !important;
    }

    .pb-trust-card {
        padding: 8px 6px !important;
        gap: 6px !important;
    }

    .pb-trust-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .pb-trust-card div[style*="font-size:13.5px"] {
        font-size: 10.5px !important;
    }

    .pb-trust-card div[style*="font-size:11.5px"] {
        display: none !important; /* Hide secondary trust line on ultra-compact screens */
    }
}

/* Ensure logged-in top header avatar button is hidden on mobile devices */
@media (max-width: 992px) {
    .pb-account-desktop-only,
    .pb-account-avatar-btn,
    .pb-account-nav-btn {
        display: none !important;
    }
}

/* 1.2 Card Mobile View (1 Full Card ~78% + 20% Peeking Next Card with Smooth Swipe) */
@media (max-width: 768px) {
    .pb-prod-carousel-wrap {
        padding: 0 !important;
        overflow: visible !important;
    }
    .pb-prod-slider-nav {
        display: none !important;
    }
    .pb-prod-slider-track {
        gap: 14px !important;
        padding: 6px 14px 16px 14px !important;
        scroll-padding: 0 14px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        overflow-x: auto !important;
        touch-action: pan-x pan-y !important;
    }
    .pb-prod-slide-item {
        flex: 0 0 78% !important;
        min-width: 78% !important;
        max-width: 78% !important;
        width: 78% !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }
    .pb-prod-slide-item:last-child {
        scroll-snap-align: end !important;
    }
    .pb-prod-slide-item .pb-framed-card {
        width: 100% !important;
        height: 100% !important;
        border-radius: 18px !important;
    }
}

