/**
 * Jacana Luxury Fashion — Comprehensive Responsiveness & Performance Stylesheet
 * Ensures pixel-perfect display across phones (iPhone, Galaxy), tablets (iPad), and laptops.
 */

/* ==========================================================================
   1. GLOBAL OVERFLOW & LAYOUT CONTAINMENT
   ========================================================================== */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#smooth-wrapper,
#smooth-content,
main {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

.container-2200,
.container,
.container-fluid {
    max-width: 100%;
}

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

/* ==========================================================================
   2. HEADER & MOBILE NAVIGATION
   ========================================================================== */
.at-header-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.hamburger-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    color: var(--at-neutral-900, #171717);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .hamburger-mobile-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hamburger-mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .hamburger-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Offcanvas Menu Mobile Polish */
.at-offcanvas {
    max-width: 100vw;
    width: 380px;
}

@media (max-width: 480px) {
    .at-offcanvas {
        width: 100vw;
        padding: 30px 20px;
    }
    .at-offcanvas-2-wrapper {
        padding: 30px 20px;
    }
}

.at-offcanvas-menu nav ul li a {
    font-size: 20px;
    padding: 10px 0;
    display: block;
}

/* ==========================================================================
   3. HERO SECTION (HOME)
   ========================================================================== */
@media (max-width: 991.98px) {
    .sec-1-home-12.pt-110 {
        padding-top: 80px !important;
    }
    .sec-1-home-12__hero {
        padding-top: 32px !important;
        padding-bottom: 36px !important;
    }
    .sec-1-home-12__title {
        font-size: clamp(34px, 7vw, 56px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.03em !important;
    }
    .sec-1-home-12__sub {
        font-size: 15px !important;
        line-height: 1.45 !important;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .sec-1-home-12.pt-110 {
        padding-top: 60px !important;
    }
    .sec-1-home-12__hero {
        padding-top: 20px !important;
        padding-bottom: 28px !important;
    }
    .sec-1-home-12__title {
        font-size: clamp(28px, 8.5vw, 42px) !important;
        line-height: 1.1 !important;
    }
    .sec-1-home-12__sub {
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding: 0 12px;
    }
    .sec-1-home-12__ctas {
        flex-direction: column !important;
        width: 100%;
        max-width: 290px;
        gap: 10px;
        margin-top: 8px;
    }
    .hero-shop-btn {
        width: 100% !important;
        height: 48px !important;
        justify-content: center !important;
    }
    .sec-1-home-12__btn-secondary {
        width: 100%;
        height: 44px;
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   4. HERO REEL STRIP
   ========================================================================== */
.sec-1-home-12__strip {
    position: relative;
    overflow: hidden !important;
    max-width: 100vw;
    padding-inline: 16px !important;
}

.sec-1-home-12-slider {
    overflow: visible;
}

@media (max-width: 767.98px) {
    .sec-1-home-12 {
        --sec1h12-tile-w: 180px !important;
        --sec1h12-tile-h: 240px !important;
        --sec1h12-tile-gap: 10px !important;
    }
    .sec-1-home-12__strip {
        padding-inline: 10px !important;
    }
}

@media (max-width: 480px) {
    .sec-1-home-12 {
        --sec1h12-tile-w: 150px !important;
        --sec1h12-tile-h: 200px !important;
        --sec1h12-tile-gap: 8px !important;
    }
    .sec-1-home-12__tile {
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   5. SHOWCASE SECTION & BRAND MANIFESTO
   ========================================================================== */
@media (max-width: 991.98px) {
    .sec-3-home-6.pt-110 {
        padding-top: 60px !important;
    }
    .sec-3-home-6.pb-110 {
        padding-bottom: 60px !important;
    }
    .fz-ds-1 {
        font-size: clamp(32px, 5.5vw, 48px) !important;
    }
}

@media (max-width: 767.98px) {
    .sec-3-home-6.pt-110 {
        padding-top: 40px !important;
    }
    .sec-3-home-6.pb-110 {
        padding-bottom: 40px !important;
    }
    .cs-portfolio-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px;
    }
    .cs-portfolio-content .w-md-75 {
        width: 100% !important;
    }
    .cs-portfolio-tag {
        width: 100%;
    }
    .cs-portfolio-tag ul {
        flex-wrap: wrap !important;
        white-space: normal !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }
    .cs-portfolio-tag ul li a {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
    .jacana-manifesto-wrap {
        padding-top: 40px !important;
        padding-bottom: 30px !important;
    }
    .jacana-manifesto-identity {
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 16px;
    }
    .jacana-manifesto-badge {
        width: 68px !important;
        height: 68px !important;
    }
    .jacana-manifesto-quote {
        font-size: 18px !important;
        line-height: 1.4 !important;
        text-align: center;
        margin-bottom: 24px !important;
    }
    .jacana-manifesto-action {
        text-align: center;
    }
    .jacana-manifesto-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        justify-content: center;
    }
}

/* ==========================================================================
   6. VIDEO SECTION (VID-SEC)
   ========================================================================== */
@media (max-width: 767.98px) {
    .vid-sec {
        margin-left: 8px !important;
        margin-right: 8px !important;
        border-radius: 16px !important;
    }
    .vid-sec .container.pt-100.pb-100 {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .vid-sec h2.at-section-title {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-bottom: 18px !important;
        margin-top: 10px !important;
    }
    .vid-sec p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}

/* ==========================================================================
   7. PRODUCT GRID & CATALOG (PRODUCT.BLADE.PHP & INDEX)
   ========================================================================== */
/* Store Title Scaler */
.fz-200 {
    font-size: clamp(38px, 9vw, 150px) !important;
}

@media (max-width: 991.98px) {
    .sec-1-shop-archive-1.pt-150 {
        padding-top: 80px !important;
    }
    .sec-2-shop-archive-1.pt-60 {
        padding-top: 40px !important;
    }
}

@media (max-width: 767.98px) {
    .sec-1-shop-archive-1.pt-150 {
        padding-top: 60px !important;
    }
    .sec-2-shop-archive-1.pt-60 {
        padding-top: 30px !important;
    }

    /* Mobile 2-column fashion card layout */
    .product-card.col-6 {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 20px !important;
    }
    .product-card__thumb {
        border-radius: 10px !important;
        overflow: hidden;
    }
    .product-card__brand {
        font-size: 10px !important;
        margin-bottom: 2px !important;
        letter-spacing: 0.05em;
    }
    .product-card__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    .product-card__price {
        font-size: 12px !important;
        font-weight: 600;
    }
    .product-card__row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px;
    }

    /* Filters horizontal scroll */
    .filter-portfolio {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 6px !important;
        padding-bottom: 10px;
        width: 100%;
        scrollbar-width: none;
    }
    .filter-portfolio::-webkit-scrollbar {
        display: none;
    }
    .filter-portfolio .at-btn {
        flex-shrink: 0;
        font-size: 12px !important;
        padding: 6px 14px !important;
        height: auto !important;
        line-height: 1.4 !important;
    }
}

/* ==========================================================================
   8. ABOUT STAIRCASE SECTION (SEC-2-HOME-7)
   ========================================================================== */
@media (max-width: 991.98px) {
    .sec-2-home-7__intro {
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }
    .sec-2-home-7__headline-strong {
        font-size: clamp(26px, 5.5vw, 42px) !important;
        line-height: 1.2 !important;
    }
    .sec-2-home-7__row {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 28px 0 !important;
    }
    .sec-2-home-7__cell--img .sec-2-home-7__img-wrap {
        max-width: 100% !important;
        height: 280px;
    }
    .sec-2-home-7__cell--img .sec-2-home-7__img-wrap .thumb {
        height: 100% !important;
    }
    .sec-2-home-7__cell--feature .ps-4 {
        padding-left: 0 !important;
    }
}

/* ==========================================================================
   9. CART & CHECKOUT RESPONSIVENESS
   ========================================================================== */
@media (max-width: 767.98px) {
    .cart-item__inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px;
        padding: 16px 12px !important;
    }
    .cart-item__left {
        width: 100%;
    }
    .cart-item__right {
        width: 100%;
        justify-content: space-between !important;
        padding-top: 8px;
        border-top: 1px dashed rgba(0, 0, 0, 0.08);
    }
    .checkout-billing__row--half {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .checkout-billing__row--half .checkout-billing__field {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .cart-summary {
        margin-top: 24px;
    }
}

/* ==========================================================================
   10. FOOTER RESPONSIVENESS
   ========================================================================== */
@media (max-width: 767.98px) {
    .footer-8 {
        padding-top: 40px !important;
        padding-bottom: 30px !important;
    }
    .footer-8__top {
        margin-bottom: 24px !important;
        padding-bottom: 20px !important;
    }
    .footer-8__nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .footer-8__nav-link {
        font-size: 15px !important;
    }
    .footer-8__form {
        max-width: 100% !important;
    }
    .footer-8__bottom {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center;
    }
}

/* ==========================================================================
   11. PRODUCT DETAILS - LUXURY COLOR PILLS & SWATCHES
   ========================================================================== */
.content-product-right__colors {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center;
}

.content-product-right__color-pill,
.content-product-right__color {
    width: auto !important;
    height: auto !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    border: 1px solid var(--at-neutral-300, #d5d5d5) !important;
    background-color: var(--at-neutral-0, #ffffff) !important;
    color: var(--at-neutral-900, #1d1d1d) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.content-product-right__color-pill:hover,
.content-product-right__color:hover {
    border-color: var(--at-neutral-900, #1d1d1d) !important;
    background-color: var(--at-neutral-50, #f8f8f8) !important;
}

.content-product-right__color-pill.active,
.content-product-right__color.active {
    border-color: var(--at-neutral-900, #1d1d1d) !important;
    background-color: var(--at-neutral-900, #1d1d1d) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.color-swatch-dot {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.content-product-right__color-pill.active .color-swatch-dot,
.content-product-right__color.active .color-swatch-dot {
    border-color: #ffffff !important;
}

.color-swatch-name {
    display: inline-block;
    font-size: 13px;
    letter-spacing: -0.2px;
}

