/* ============================================
   WISHRITE — RESPONSIVE
   Mobile-first breakpoints 320px → 1920px
   ============================================ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }

    .occasions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }

    .editorial-content {
        padding: var(--space-10);
    }

    .site-footer {
        padding: 56px 32px 28px;
        background-image: url('../assets/decorations/footer-floral-bg.jpg');
        background-repeat: no-repeat;
        background-position: right bottom;
        background-size: cover;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 40px 32px;
    }

    .footer-column:last-child {
        grid-column: 2 / span 2;
    }

    .pdp-layout {
        gap: var(--space-8);
    }

    .about-philosophy {
        gap: var(--space-5);
    }

    .shop-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Tablet Small (≤ 768px) ── */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }

    .section {
        padding: var(--space-16) 0;
    }
    .section:not(:has(.page-container)) {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    /* Header */
    .header-logo {
        margin-left: 0;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: var(--space-3);
    }

    .header-icon {
        width: 32px;
        height: 32px;
    }

    .header-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Hero — Tablet Refinements */
    .hero,
    .hero-section {
        height: clamp(540px, 52vw, 650px);
        min-height: 540px;
        max-height: 650px;
        border-radius: 22px;
        margin-top: 16px;
        margin-bottom: 32px;
    }

    .hero-container {
        padding: 0 var(--container-padding);
    }

    .hero-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        max-width: 480px;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
    }

    .hero-content::before,
    .hero-content::after {
        background: transparent !important;
        box-shadow: none !important;
        content: none !important;
    }

    .hero-content.hero-content-enter {
        animation: heroTextFadeInMobile 0.65s cubic-bezier(0.2, 0, 0, 1) forwards;
    }

    @keyframes heroTextFadeInMobile {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-title {
        font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    }

    .hero-description {
        font-size: var(--text-sm);
        margin-bottom: 26px;
        max-width: 440px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        display: flex;
    }

    .hero-arrow-prev {
        left: 14px;
    }

    .hero-arrow-next {
        right: 14px;
    }

    /* Category Grid */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Products */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .product-scroll .product-card {
        min-width: 220px;
    }

    /* Occasions */
    .occasions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    /* Editorial */
    .editorial-section {
        grid-template-columns: 1fr;
    }

    .editorial-image {
        min-height: 300px;
    }

    .editorial-content {
        padding: var(--space-10) var(--container-padding);
    }

    /* Trust Bar (Tablet: 2x2 grid) */
    .trust-bar {
        padding: var(--space-7) 0;
    }

    .trust-bar-container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: var(--space-6);
        column-gap: var(--space-4);
        max-width: 700px;
        margin: 0 auto;
    }

    .trust-badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 16px;
    }

    .trust-badge:not(:last-child)::after {
        display: none;
    }

    .trust-badge:nth-child(odd)::after {
        display: block;
        content: '';
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: var(--wr-border-light);
    }

    .trust-badge-icon {
        margin: 0 auto 10px auto;
    }

    .trust-badge-content {
        align-items: center;
        text-align: center;
    }

    .trust-badge-title {
        text-align: center;
        white-space: normal;
    }

    .trust-badge-sub {
        text-align: center;
    }

    /* Trust */
    .trust-section {
        justify-content: center;
        gap: var(--space-6);
        padding: var(--space-8) var(--container-padding);
    }

    /* Why Grid */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    /* Shop */
    .shop-sidebar {
        display: none;
    }

    .shop-filter-btn {
        display: flex;
    }

    .shop-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-content {
        padding: var(--space-6) var(--container-padding);
    }

    .shop-hero.all-jewellery-hero,
    .shop-hero.new-arrivals-hero,
    .shop-hero.best-sellers-hero,
    .shop-hero.kids-hero,
    .new-arrivals-hero {
        min-height: 360px;
        background-size: cover;
        background-position: center;
    }

    .shop-hero.all-jewellery-hero::before,
    .shop-hero.new-arrivals-hero::before,
    .shop-hero.best-sellers-hero::before,
    .shop-hero.kids-hero::before,
    .new-arrivals-hero::before {
        background: rgba(248, 246, 243, 0.60);
    }

    /* Collections Hero & Category Bar — Tablet */
    .collections-hero-banner {
        height: 300px;
        border-radius: 18px;
        margin-top: 14px;
    }

    .collections-hero-img {
        object-position: 70% center;
    }

    .collections-hero-content {
        left: clamp(20px, 4vw, 36px);
        max-width: 380px;
    }

    .collections-hero-heading {
        font-size: clamp(36px, 6vw, 48px);
    }

    .collections-hero-desc {
        font-size: 14px;
        max-width: 320px;
    }

    .collections-category-bar {
        padding: 10px 0;
        margin-top: 10px;
        margin-bottom: 8px;
        overflow: hidden;
    }

    .collections-category-inner {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }

    .collections-category-inner::-webkit-scrollbar {
        display: none;
    }

    .collections-cat-btn {
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 12.5px;
    }

    .shop-hero.kids-hero,
    .kids-hero {
        min-height: 720px;
        height: auto;
        padding-top: var(--space-10);
        padding-bottom: var(--space-10);
    }

    .kids-gender-panels {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }

    .kids-gender-panel {
        min-height: 210px;
    }

    .kids-gender-title {
        font-size: 1.7rem;
    }

    /* PDP */
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: 0;
    }

    .pdp-gallery {
        position: relative;
        top: 0;
    }

    .pdp-main-image {
        aspect-ratio: 1/1;
        margin-bottom: var(--space-2);
    }

    .pdp-thumbnails {
        padding: 0 var(--space-4);
        gap: var(--space-2);
    }

    .pdp-thumbnail {
        width: 60px;
        height: 60px;
    }

    .pdp-info {
        padding: var(--space-4) var(--container-padding) var(--space-16);
    }

    .pdp-name {
        font-size: var(--text-2xl);
    }

    .pdp-trust {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .pdp-actions {
        flex-direction: column;
    }

    /* Sticky CTA on mobile (strictly only when active on PDP) */
    .sticky-cta {
        display: none !important;
    }

    body.view-product #product-view .sticky-cta.active,
    body.view-product .sticky-cta.active {
        display: flex !important;
    }

    body:not(.view-product) .sticky-cta {
        display: none !important;
    }

    /* About */
    .about-philosophy {
        grid-template-columns: 1fr;
    }

    .about-hero {
        padding: var(--space-16) var(--container-padding);
    }

    /* Footer Mobile */
    .site-footer {
        padding: 48px 20px 24px;
        background-image: url('../assets/decorations/footer-floral-bg.jpg');
        background-repeat: no-repeat;
        background-position: right bottom;
        background-size: cover;
    }

    .site-footer::before {
        content: '';
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(67, 44, 64, 0.35);
        pointer-events: none;
        z-index: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
        text-align: center;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-descriptor::after,
    .footer-column h4::after {
        margin: 10px auto 0;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-signature {
        margin: 28px auto 20px;
        width: 100%;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        justify-content: center;
        padding-top: 0;
        margin-top: 0;
    }

    .footer-social {
        justify-content: center;
    }

    /* Cart */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .cart-summary {
        text-align: left;
    }

    /* Auth */
    .auth-card {
        padding: var(--space-8) var(--space-5);
    }

    .auth-section {
        padding: var(--space-10) var(--container-padding);
        min-height: auto;
    }

    /* Section headers */
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-right: 1px solid var(--wr-border);
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 10px;
        padding: var(--space-3) var(--container-padding);
    }

    /* Related */
    .related-section {
        padding: var(--space-10) var(--container-padding);
    }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    .announcement-bar {
        font-size: 10px;
        min-height: 34px;
    }

    .header {
        padding: var(--space-3) var(--container-padding);
    }

    .header-logo-text {
        font-size: 1.35rem;
        letter-spacing: 0.18em;
    }

    .header-logo-svg {
        height: 38px;
        max-width: 140px;
    }

    .header-logo-sub {
        display: block;
        font-size: 0.58rem;
        letter-spacing: 0.2em;
        font-weight: 600;
        margin-top: 2px;
        opacity: 0.85;
    }

    /* Hero — Dedicated Mobile Composition */
    /* Hero — Dedicated Mobile Composition */
    .hero,
    .hero-section {
        height: clamp(390px, 98vw, 440px);
        min-height: 390px;
        max-height: 440px;
        border-radius: 20px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        margin-top: 10px;
        margin-bottom: 20px;
        padding: 0 0 24px 0;
        overflow: hidden;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: transparent;
        z-index: 2;
        pointer-events: none;
    }

    .hero-slide img {
        object-fit: cover;
        object-position: center top;
    }

    .hero-silver-halo {
        display: none;
    }

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

    .hero-container {
        position: relative;
        z-index: 5;
        height: auto;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border: none;
        margin-bottom: 22px;
    }

    .hero-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        z-index: 5;
    }

    .hero-content::before,
    .hero-content::after {
        background: transparent !important;
        box-shadow: none !important;
        content: none !important;
    }

    .hero-subtitle {
        display: block;
        text-align: center;
        font-size: 9.5px;
        letter-spacing: 0.22em;
        font-weight: 600;
        color: #6B4E71;
        margin: 0 auto 4px auto;
        width: 100%;
    }

    .hero-subtitle::before {
        display: none;
    }

    .hero-title {
        font-family: 'Cormorant Garamond', var(--font-display);
        font-size: clamp(1.45rem, 5.2vw, 1.8rem);
        line-height: 1.1;
        text-align: center;
        color: #28212C;
        margin: 0 auto 10px auto;
        width: 100%;
        font-weight: 600;
    }

    .hero-title-italic {
        font-style: italic;
        font-weight: 400;
    }

    .hero-description {
        display: none; /* Hide verbose 3-line paragraph on mobile for cleaner luxury visual */
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
    }

    .btn-hero-primary {
        flex: 1;
        max-width: 165px;
        padding: 9px 12px;
        font-size: 9.5px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        white-space: nowrap;
        border-radius: 999px;
    }

    .btn-hero-secondary {
        flex: 1;
        max-width: 150px;
        padding: 9px 10px;
        font-size: 9.5px;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(40, 33, 44, 0.22);
        border-radius: 999px;
    }

    .btn-hero-primary span {
        display: inline-block;
        text-align: center;
    }

    .hero-btn-arrow {
        width: 13px;
        height: 13px;
        margin-left: 5px;
        flex-shrink: 0;
    }

    .hero-bottom-bar {
        bottom: 6px;
        padding: 0 16px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-bottom-left {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-pagination {
        margin: 0 auto;
        gap: 12px;
    }

    .hero-editorial-tag,
    .hero-editorial-badge,
    .hero-scroll-indicator {
        display: none;
    }

    .hero-progress-line {
        width: 24px;
    }

    /* Product Cards */
    .product-grid {
        gap: var(--space-3);
    }

    .product-card-name {
        font-size: var(--text-sm);
    }

    .product-card-price .price-current {
        font-size: var(--text-sm);
    }

    .product-card-action {
        padding: 9px;
        font-size: 10px;
    }

    .product-card-wishlist {
        width: 32px;
        height: 32px;
    }

    .product-card-wishlist svg {
        width: 15px;
        height: 15px;
    }

    .product-card-badge {
        font-size: 9px;
        padding: 4px 8px;
    }

    /* Category */
    .categories-grid {
        gap: var(--space-2);
    }

    .category-card-name {
        font-size: var(--text-base);
    }

    /* Occasions */
    .occasions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }

    .occasion-card-name {
        font-size: 10px;
    }

    /* Trust Bar (Mobile: Clean Horizontal Swipeable Luxury Pills) */
    .trust-bar {
        padding: 12px 0 16px;
    }

    .trust-bar-container.page-container,
    .trust-bar .page-container,
    .trust-bar-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding: 4px 16px !important;
        margin-inline: -16px !important;
        width: calc(100% + 32px) !important;
        max-width: none !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        box-sizing: border-box;
    }

    .trust-bar-container::-webkit-scrollbar {
        display: none;
    }

    .trust-bar-container::before,
    .trust-bar-container::after {
        display: none !important;
    }

    .trust-badge {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 9px 15px !important;
        background: #FAF8F5 !important;
        border: 1px solid rgba(85, 68, 83, 0.09) !important;
        border-radius: 999px !important;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .trust-badge:not(:last-child)::after,
    .trust-badge:nth-child(odd)::after {
        display: none !important;
    }

    .trust-badge-icon {
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .trust-badge-icon svg {
        width: 18px !important;
        height: 18px !important;
        stroke: var(--wr-primary, #28212C);
        stroke-width: 1.6;
        fill: none;
    }

    .trust-badge-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: auto !important;
    }

    .trust-badge-title {
        font-family: var(--font-body);
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase;
        color: #28212C !important;
        margin: 0 !important;
        white-space: nowrap !important;
        line-height: 1.25;
    }

    .trust-badge-sub {
        font-family: var(--font-body);
        font-size: 10px !important;
        color: #7A6F7E !important;
        margin: 1px 0 0 0 !important;
        white-space: nowrap !important;
        line-height: 1.2;
    }

    /* Legacy trust section if present */
    .trust-section {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    /* Why */
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .why-card {
        padding: var(--space-5);
    }

    /* PDP mobile */
    .pdp-name {
        font-size: var(--text-xl);
    }

    .pdp-price {
        font-size: var(--text-xl);
    }

    .pdp-trust {
        flex-direction: column;
    }

    /* Sticky CTA */
    .sticky-cta .btn {
        padding: 12px;
        font-size: var(--text-xs);
    }

    /* Cart */
    .cart-item-image {
        width: 70px;
        height: 70px;
        border-radius: var(--wr-radius-sm, 10px);
    }

    /* Mobile Menu */
    .mobile-menu-nav a {
        font-size: var(--text-xl);
        padding: var(--space-3) 0;
    }

    /* Shop */
    .shop-hero {
        padding: var(--space-10) var(--container-padding) var(--space-6);
    }

    .shop-hero h1 {
        font-size: var(--text-3xl);
    }

    /* Collections Hero & Category Bar — Mobile */
    .collections-hero-banner {
        height: 300px;
        border-radius: 16px;
        margin-top: 10px;
    }

    .collections-hero-img {
        object-position: 100% center;
    }

    .collections-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(18, 10, 24, 0.72) 0%,
            rgba(18, 10, 24, 0.50) 50%,
            rgba(18, 10, 24, 0.20) 78%,
            rgba(18, 10, 24, 0.05) 100%
        );
    }

    .collections-hero-content {
        left: 20px;
        right: auto;
        max-width: min(290px, calc(100% - 40px));
    }

    .collections-hero-eyebrow {
        font-size: 10px;
        letter-spacing: 0.16em;
        margin-bottom: 8px;
    }

    .collections-hero-heading {
        font-size: clamp(32px, 8.5vw, 38px);
        margin-bottom: 8px;
    }

    .collections-hero-desc {
        font-size: 13.5px;
        line-height: 1.5;
        max-width: 280px;
    }

    .collections-category-inner {
        padding: 2px 14px;
        gap: 6px;
    }

    .collections-cat-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .shop-toolbar {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    /* About */
    .philosophy-card {
        padding: var(--space-6);
    }

    /* Newsletter */
    .newsletter-section {
        padding: var(--space-12) var(--container-padding);
    }
}

/* ── Very Small Mobile (≤ 360px) ── */
@media (max-width: 360px) {

    .header-logo-text {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }

    .header-logo-svg {
        height: 32px;
        max-width: 120px;
    }

    .header-actions {
        gap: var(--space-2);
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .product-card-name {
        font-size: var(--text-xs);
    }

    .product-card-price .price-current {
        font-size: var(--text-xs);
    }

    .category-card-name {
        font-size: var(--text-sm);
    }

    .trust-bar {
        padding: 10px 0 14px;
    }

    .trust-badge {
        padding: 7px 12px !important;
        gap: 8px !important;
    }

    .trust-badge-icon {
        flex: 0 0 20px !important;
        width: 20px !important;
        height: 20px !important;
    }

    .trust-badge-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .trust-badge-title {
        font-size: 10px !important;
    }

    .trust-badge-sub {
        font-size: 9.5px !important;
    }
}

/* ── Large Desktop (≥ 1440px) ── */
@media (min-width: 1440px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .shop-main .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}



/* ── Responsive Variant Selector Rules (Part 22) ── */
@media (max-width: 768px) {
    .pdp-variant-section {
        margin-top: var(--space-4, 16px);
        padding: 14px 14px;
    }

    .pdp-alphabet-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .alphabet-btn {
        width: 42px;
        height: 42px;
        min-height: 42px;
        min-width: 42px;
        font-size: 14px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .pdp-variant-section {
        padding: 12px 10px;
    }

    .pdp-alphabet-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .alphabet-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
        min-width: 40px;
        font-size: 13.5px;
        padding: 0;
    }

    .variant-chip {
        min-height: 40px;
        padding: 6px 12px;
        font-size: 12.5px;
    }
}

