/* ══════════════════════════════════════════════════════════════════════════
   ANV FASHION HUB - Prime Luxury Responsive & Zoom-Resilient Stylesheet
   Strict 20px Max Inter-Section Spacing Across All Viewports & Zoom Levels
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Global Zoom & Overflow Resilience ── */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

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

body {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 320px;
    position: relative;
}

/* ── Container Fluid Scaling ── */
.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(12px, 2.5vw, 24px);
    padding-right: clamp(12px, 2.5vw, 24px);
    box-sizing: border-box;
}

/* ── Strict 20px Max Section Spacing (Inter-section Gap <= 20px) ── */
.section,
.section--alt {
    padding: 10px 0 !important;
    margin: 0 !important;
}

.section__header {
    text-align: center;
    margin-bottom: 12px !important;
}

.section__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px !important;
    display: block;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 4px !important;
}

.section__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 4px auto 0 !important;
    line-height: 1.55;
}

.section__divider {
    width: 46px;
    height: 2px;
    background: var(--gold-metallic);
    margin: 6px auto 0 !important;
}

/* Utility margins clamped */
.mt-48 { margin-top: 12px !important; }
.mb-32 { margin-bottom: 10px !important; }
.mb-24 { margin-bottom: 8px !important; }

/* ── Prevent Grid & Flex Child Blowout Across All Zoom Levels ── */
.product-card,
.category-card,
.value-card,
.testimonial-card,
.footer__col,
.cart-item,
.cart-summary,
.checkout-section,
.checkout-summary,
.shop-sidebar,
.shop-main,
.product-detail__grid > *,
.editorial-banner__content,
.hero__content {
    min-width: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Prime Footer Social Media Icons ── */
.footer__social {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.footer__social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: var(--radius-full) !important;
    color: var(--color-text) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    text-decoration: none;
    flex-shrink: 0;
}

.footer__social-link svg {
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer__social-link:hover {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #0b0f19 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4) !important;
}

.footer__social-link:hover svg {
    transform: scale(1.12);
}

/* ═══════════════ LARGE SCREENS / ZOOM OUT (> 1400px) ═══════════════ */
@media (min-width: 1400px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ═══════════════ DESKTOP ZOOM IN / LAPTOP BREAKPOINT (<= 1200px) ═══════════════ */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 20px;
    }
}

/* ═══════════════ TABLET & HIGH ZOOM DESKTOP (<= 1024px) ═══════════════ */
@media (max-width: 1024px) {
    .header__nav {
        display: none !important;
    }

    .header__whatsapp {
        display: none !important;
    }

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

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkout-summary {
        position: static !important;
    }

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shop-sidebar {
        position: static !important;
        padding: 16px;
        margin-bottom: 12px;
    }

    .shop-grid,
    .shop-grid[data-cols="4"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-cols__btn[data-cols="4"] {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .product-detail__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* ═══════════════ MEDIUM TABLET & ZOOM 150%+ (<= 768px) ═══════════════ */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    /* Strict 20px max gap retained */
    .section,
    .section--alt {
        padding: 10px 0 !important;
        margin: 0 !important;
    }

    .section__header {
        margin-bottom: 10px !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card__actions {
        opacity: 1 !important;
        transform: translateY(0) !important;
        top: 8px;
        right: 8px;
    }

    .product-card__wishlist-btn,
    .product-card__btn {
        width: 32px;
        height: 32px;
    }

    .product-card__wishlist-btn svg,
    .product-card__btn svg {
        width: 15px;
        height: 15px;
    }

    .product-card__size-drawer {
        display: none !important;
    }

    .shop-grid,
    .shop-grid[data-cols="3"],
    .shop-grid[data-cols="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .shop-cols__btn[data-cols="3"] {
        display: none;
    }

    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery {
        position: static !important;
    }

    .cart-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cart-summary {
        position: static !important;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .shop-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-toolbar {
        align-items: stretch;
        gap: 8px;
    }

    .shop-search {
        flex: 1 1 100%;
        max-width: none;
    }

    .shop-search__input {
        width: 100%;
    }

    .shop-right {
        justify-content: space-between;
    }

    .shop-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .shop-filter-btn {
        flex-shrink: 0;
    }

    .editorial-banner {
        min-height: 280px !important;
        max-height: none !important;
        margin: 10px 0 !important;
        padding: 32px 0 !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-grid--reverse {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 52px;
    }
}

/* ═══════════════ MOBILE PHONES & ZOOM 175%+ (<= 600px) ═══════════════ */
@media (max-width: 600px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero {
        min-height: 380px;
        max-height: 520px;
        margin-top: 86px;
        background-position: center 30%;
    }

    .hero__title {
        font-size: clamp(26px, 8vw, 36px);
        line-height: 1.15;
    }

    .hero__desc {
        font-size: 13.5px;
        margin-bottom: 18px;
    }

    .hero__badge {
        font-size: 9.5px;
        padding: 4px 10px;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 8px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__stats {
        gap: 10px;
        margin-top: 18px;
        padding-top: 14px;
        justify-content: center;
    }

    .hero__stat-item {
        font-size: 11px;
    }

    .luxury-marquee {
        padding: 8px 0;
    }

    .luxury-marquee__item {
        font-size: 9.5px;
        letter-spacing: 1.8px;
        gap: 6px;
    }

    .luxury-marquee__track {
        gap: 20px;
    }

    .editorial-banner__actions {
        flex-direction: column;
        gap: 10px;
    }

    .editorial-banner__actions .btn {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-card__info {
        padding: 10px 11px;
    }

    .product-card__title {
        font-size: 13.5px;
        min-height: 38px;
        line-height: 1.35;
    }

    .product-card__prices {
        gap: 6px;
        margin-bottom: 6px;
    }

    .product-card__price {
        font-size: 14px;
    }

    .product-card__old-price {
        font-size: 11.5px;
    }

    .product-card__discount {
        font-size: 10px;
        padding: 1px 5px;
    }

    .product-card__bottom {
        gap: 6px;
    }

    .product-card__add-btn {
        height: 34px;
        padding: 0 8px;
        font-size: 10.5px;
        gap: 5px;
        letter-spacing: 0.5px;
    }

    .product-card__add-btn span {
        display: inline-block;
        white-space: nowrap;
    }

    .product-card__add-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .product-card__whatsapp-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .product-card__whatsapp-btn svg {
        width: 16px;
        height: 16px;
    }

    .page-hero,
    .about-hero {
        padding: calc(var(--header-height) + 12px) 0 8px !important;
        min-height: 140px !important;
        margin: 0 !important;
    }

    .page-hero[style*="background-image"] {
        min-height: 160px !important;
        padding: calc(var(--header-height) + 14px) 0 8px !important;
    }

    .cart-shipping-meter {
        padding: 12px 14px;
        gap: 12px;
        margin-bottom: 16px;
    }

    .cart-shipping-meter__icon {
        width: 38px;
        height: 38px;
    }

    .cart-shipping-meter__text {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 12px 14px;
    }

    .cart-item__image {
        width: 80px;
        height: 102px;
    }

    .cart-item__actions {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px dashed rgba(212, 175, 55, 0.2);
        margin-top: 2px;
    }

    .cart-item__qty-wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .checkout-section {
        padding: 16px 14px;
    }

    .checkout-section__step {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .checkout-section__title {
        font-size: 16px;
    }

    .checkout-grid-2 {
        grid-template-columns: 1fr;
    }

    .checkout-pay {
        padding: 12px 14px;
        gap: 10px;
    }

    .checkout-pay__icon-wrap {
        width: 34px;
        height: 34px;
    }

    .checkout-pay__title {
        font-size: 13.5px;
    }

    .checkout-pay__desc {
        font-size: 11.5px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 12px;
    }

    .newsletter {
        padding: 10px 14px !important;
        margin: 0 !important;
    }

    .newsletter__form {
        max-width: 100%;
    }

    .newsletter__input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .newsletter__form .btn--primary {
        padding: 10px 16px;
        font-size: 12px;
    }

    .product-info__title {
        font-size: 22px;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .product-actions .btn {
        width: 100%;
    }

    .gallery__thumbs {
        gap: 6px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .editorial-banner {
        min-height: 170px !important;
        max-height: 210px !important;
        margin: 10px 0 !important;
        padding: 14px 0 !important;
    }

    .editorial-banner__content {
        padding: 0 12px;
    }

    .editorial-banner__title {
        font-size: clamp(20px, 5.5vw, 26px);
        margin-bottom: 10px;
    }
}

/* ═══════════════ ULTRA COMPACT (<= 380px) ═══════════════ */
@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .product-card__info {
        padding: 6px 8px;
    }

    .product-card__title {
        font-size: 12px;
        min-height: 34px;
        line-height: 1.35;
    }

    .product-card__price {
        font-size: 12.5px;
    }

    .product-card__old-price {
        font-size: 10.5px;
    }

    .product-card__discount {
        font-size: 9px;
        padding: 0 4px;
    }

    .product-card__bottom {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .product-card__add-btn {
        height: 30px;
        padding: 0 6px;
        font-size: 9.5px;
        gap: 3px;
        letter-spacing: 0.3px;
        flex: 1;
        min-width: 0;
    }

    .product-card__add-btn svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

    .product-card__whatsapp-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        flex-shrink: 0;
    }

    .product-card__whatsapp-btn svg {
        width: 14px;
        height: 14px;
    }

    .product-card__wishlist-btn {
        width: 28px;
        height: 28px;
    }

    .product-card__wishlist-btn svg {
        width: 13px;
        height: 13px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 24px;
    }
}

/* ── Prevent Trapped Sticky Elements on Short Screens / High Vertical Zoom ── */
@media (max-height: 720px) {
    .gallery,
    .cart-summary,
    .checkout-summary,
    .shop-sidebar {
        position: static !important;
    }
}

@media (max-width: 480px) {
    .side-cart {
        max-width: 100%;
    }
    .side-cart__header {
        padding: 16px 18px;
    }
    .side-cart__meter {
        padding: 10px 18px;
    }
    .side-cart__body {
        padding: 14px 18px;
    }
    .side-cart__footer {
        padding: 16px 18px;
    }
}

/* ═══════════════ PRINT ═══════════════ */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu,
    .mobile-menu-overlay,
    .mobile-bottom-bar,
    .cart-toast {
        display: none !important;
    }

    body {
        padding: 0;
        background: white;
        color: black;
    }
}
