:root {
    --ink: #121417;
    --muted: #667085;
    --line: #e7e9ee;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --gold: #b78b43;
    --green: #16815b;
    --rose: #b6455f;
    --shadow: 0 16px 42px rgba(18, 20, 23, .08);
}

* { box-sizing: border-box; }

html, body {
    max-width: 100%; /* Changed from 100vw to prevent scrollbar bleed */
    overflow-x: hidden;
}

body {
    color: var(--ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.page-shell { padding-top: 1.5rem; padding-bottom: 3rem; }
.product-list-page { padding-top: 1rem; }
.nav-blur { backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(20, 25, 35, .06); }

.store-nav .container { min-height: 56px; } 

.navbar-brand { letter-spacing: 0; font-size: 1.35rem; }
.search-box { gap: .4rem; min-width: min(360px, 100%); }
.cart-pill { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; }
.cart-pill span { min-width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; }
.mobile-actions { display: none; align-items: center; gap: .5rem; margin-left: auto; }
.icon-button {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
}
.cart-icon-button { position: relative; }
.cart-icon-button span {
    position: absolute;
    top: -.25rem;
    right: -.25rem;
    min-width: 1.2rem;
    height: 1.2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
}
.mobile-search-panel { width: 100%; border-top: 1px solid var(--line); }
.mobile-search-form { display: flex; gap: .5rem; padding: .7rem 0 .85rem; }

#mainNav.show ~ #mobileSearch, 
#mainNav.collapsing ~ #mobileSearch { 
    display: none !important; 
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
.cart-count-pulse { animation: cartPulse .28s ease; }

.hero-wrap { background: #07090d; }
.hero-slide-image {
    display: block;
    width: 100%;
    height: clamp(360px, 62vh, 680px);
    object-fit: cover;
    object-position: center;
}
.eyebrow { color: var(--gold); text-transform: uppercase; font-weight: 800; font-size: .78rem; letter-spacing: .08em; }

.section-block { padding: 2.25rem 0; }
.home-products { padding-top: 1.35rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.section-heading h2, .catalog-head h1 { font-weight: 820; margin: 0; }
.section-heading a { color: var(--green); font-weight: 700; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.product-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(18, 20, 23, .11); }
.product-image { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.discount-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
    padding: .28rem .55rem;
    background: var(--rose);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    font-size: .78rem;
}
.product-tag {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    max-width: calc(100% - 1.5rem);
    padding: .28rem .6rem;
    background: #111827;
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    font-size: .75rem;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.product-body { padding: .9rem; }
.product-body h3 { font-size: .98rem; min-height: 2.45rem; margin: .15rem 0 .65rem; line-height: 1.25; }
.unit-label { color: var(--muted); font-size: .88rem; margin-top: -.35rem; margin-bottom: .5rem; }
.price-row { display: flex; align-items: center; gap: .55rem; margin-bottom: .85rem; }
.price-row strong, .detail-price strong { color: var(--green); font-size: 1.25rem; }
.price-row span, .detail-price span { color: var(--muted); text-decoration: line-through; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }

.promo-band { background: #14213d; color: #fff; margin: 2rem 0; }
.promo-band .container { min-height: 260px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.promo-band h2 { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 850; }
.promo-band p { color: rgba(255,255,255,.75); max-width: 620px; }
.promo-band span { color: #ffca6e; font-weight: 800; text-transform: uppercase; }

.category-grid, .testimonial-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.category-tile, .testimonial-row figure {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem;
    background: #fff;
}
.category-tile i { font-size: 1.8rem; color: var(--gold); }
.category-tile strong, .category-tile span { display: block; }
.category-tile span { color: var(--muted); }
.testimonial-row blockquote { font-size: .95rem; margin: 0 0 .35rem; line-height: 1.45; }
.testimonial-row figcaption { color: var(--green); font-weight: 800; }
.review-card {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    min-height: 5rem;
}
.review-avatar {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #effaf5;
    color: var(--green);
    font-size: 1.25rem;
}

.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.catalog-search { display: none; }
.empty-state { text-align: center; padding: 5rem 1rem; background: var(--soft); border-radius: 8px; }
.empty-state i { font-size: 3rem; color: var(--gold); }

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 2rem;
    align-items: start;
}
.gallery-panel, .detail-copy, .detail-tabs, .checkout-form, .order-card, .success-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(18, 20, 23, .06);
}
.gallery-panel { padding: 1rem; }
.main-product-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); border-radius: 8px; }

.thumb-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; margin-top: .8rem; }
.thumb-button { border: 2px solid transparent; background: #fff; padding: 0; border-radius: 8px; overflow: hidden; transition: border-color 0.2s; }
.thumb-button:hover, .thumb-button:focus { border-color: var(--ink); outline: none; }
.thumb-button img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.detail-copy h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.07; font-weight: 850; margin: .5rem 0; }
.sku { color: var(--muted); margin-bottom: 1rem; }
.detail-price { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.detail-price strong { font-size: 2rem; }
.detail-price em { color: #fff; background: var(--rose); border-radius: 999px; padding: .25rem .6rem; font-style: normal; font-weight: 800; }
.buy-box { display: grid; gap: .8rem; margin-top: 1.2rem; }
.buy-box label { font-weight: 800; display: flex; justify-content: space-between; }
.detail-tab-content { padding: 1.4rem; color: #30343b; line-height: 1.7; }

.btn-whatsapp { background-color: #25D366; border-color: #25D366; color: white; }
.btn-whatsapp:hover { background-color: #128C7E; border-color: #128C7E; color: white; }
.action-btn-text { font-weight: 700; transition: all 0.2s ease-in-out; }
.action-btn-text:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: start;
}
.cart-table { display: grid; gap: .7rem; }
.cart-line {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 112px 112px 44px;
    gap: .75rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .6rem;
    background: #fff;
    box-shadow: 0 8px 16px rgba(18, 20, 23, .045);
}
.cart-line img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.cart-line h2 { font-size: .95rem; margin: 0; line-height: 1.25; }
.cart-line span { color: var(--muted); font-size: .84rem; }


/* Compact Premium Quantity Control */
.qty-control {
    display: inline-flex;
    align-items: center;
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    flex: 0 0 100px !important;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Minus / Plus Buttons */
.qty-control button {
    width: 30px;
    flex: 0 0 28px;
    height: 100%;
    border: none;
    background: #f8fafc;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.qty-control button:hover {
    background: #e2e8f0;
}

.qty-control button i {
    font-size: 0.8rem;
    font-weight: 700;
}

/* Quantity Number */
.qty-control input {
    width: 50px;
    flex: 0 0 36px;
    height: 100%;
    border: none;
    outline: none;
    box-shadow: none;
    text-align: center;
    font-size: .9rem;
    font-weight: 700;
    background: #fff;
    color: #111827;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Price gets all remaining space */
.line-total-area {
    flex: 1 1 auto;
    min-width: 0;
}

/* Delete button fixed width */
.remove-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}


.remove-cart-button { border-radius: 999px; color: var(--rose); }
.cart-save-state { min-width: 5rem; color: var(--muted); font-size: .85rem; text-align: right; }
.cart-summary, .summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    font-size: 1.2rem;
}
.cart-summary-panel {
    position: sticky;
    top: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow);
}
.cart-summary-panel h2 { font-size: 1.1rem; margin-bottom: .6rem; font-weight: 850; }
.summary-note {
    display: flex;
    gap: .6rem;
    align-items: start;
    color: var(--muted);
    background: var(--soft);
    border-radius: 8px;
    padding: .75rem;
    margin: .7rem 0;
    font-size: .9rem;
}
.summary-note i { color: var(--green); }
.checkout-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.4rem; align-items: start; }
.checkout-form, .order-card, .success-panel { padding: 1.6rem; }
.checkout-form { display: grid; gap: 1rem; }
.payment-box { display: flex; gap: .8rem; align-items: center; padding: 1rem; border: 1px dashed var(--green); border-radius: 8px; background: #effaf5; }
.payment-box i { color: var(--green); font-size: 1.6rem; }
.payment-box span { display: block; color: var(--muted); }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.compact-order-card { padding: 1rem; }
.compact-order-card h2 { font-size: 1.1rem; margin-bottom: .55rem; }
.compact-summary-line { padding: .5rem 0; align-items: center; }
.compact-summary-line span { display: grid; gap: .1rem; line-height: 1.25; }
.compact-summary-line small { color: var(--muted); }
.success-panel { text-align: center; max-width: 720px; margin: 0 auto; padding: 4rem 2rem; }
.success-panel i { font-size: 4rem; color: var(--green); }
.success-panel .btn i { font-size: 1rem; color: inherit; }




/* ========================================
   Premium Compact Footer
======================================== */

.footer{
    background:
        linear-gradient(
            180deg,
            #111827 0%,
            #0f172a 100%
        );
    color: rgba(255,255,255,.75);
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 3rem;
}

.footer .container{
    max-width: 1200px;
}

/* Main Area */
.footer-main{
    padding: 1.75rem 0 1.25rem;
}

/* Brand */
.footer-brand{
    color:#fff;
    font-size:1.3rem;
    font-weight:700;
    margin:0;
}

.footer-tagline{
    max-width:420px;
    font-size:.92rem;
    line-height:1.5;
    color:rgba(255,255,255,.65);
}

/* Support Card */
.footer{
    background: linear-gradient(180deg,#111827 0%,#0f172a 100%);
    border-top:1px solid rgba(255,255,255,.08);
    color:rgba(255,255,255,.75);
}

.footer-main{
    padding:1.25rem 0;
}

.footer-brand{
    color:#fff;
    font-size:1.2rem;
    font-weight:700;
    margin-bottom:.35rem;
}

.footer-tagline{
    font-size:.85rem;
    margin-bottom:.35rem;
    color:rgba(255,255,255,.65);
}

.footer-copy{
    color:rgba(255,255,255,.5);
    font-size:.78rem;
}

.footer-contact{
    display:flex;
    flex-direction:column;
    gap:.4rem;
    font-size:.88rem;
}

.footer-contact div{
    display:flex;
    align-items:center;
    gap:.5rem;
}

.footer-contact i{
    color:#fff;
}

.footer-social-col{
    display:flex;
    justify-content:flex-end;
}

.socials{
    display:flex;
    gap:.6rem;
}

.socials a{
    width:38px;
    height:38px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    transition:.25s;
}

.socials a:hover{
    background:#fff;
    color:#0f172a;
    transform:translateY(-2px);
}




@media (max-width: 991px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail, .checkout-grid, .contact-grid, .cart-layout { grid-template-columns: 1fr; }
    .promo-band .container, .catalog-head { align-items: start; flex-direction: column; }
    .desktop-search, .cart-pill { display: none; }
    .mobile-actions { display: flex; }
    .mobile-menu-button {
        order: -1;
        margin-right: .6rem;
        border: 0;
        box-shadow: none;
        padding: .15rem;
        width: 2rem;
        height: 2rem;
    }
    .mobile-menu-button:focus { box-shadow: none; }
    .mobile-menu-button .navbar-toggler-icon { width: 1.3rem; height: 1.3rem; }
    .navbar-brand { margin-right: 0; }
    .store-nav .navbar-collapse {
        order: 5;
        flex-basis: 100%;
        border-top: 1px solid var(--line);
        margin-top: .55rem;
        padding: .55rem 0 .25rem;
    }
    .store-nav .navbar-nav { gap: .15rem; margin-bottom: 0 !important; }
    .store-nav .nav-link { padding: .55rem 0; font-weight: 700; }
    .cart-summary-panel { position: static; }
}

@media (max-width: 640px) {
    .hero-slide-image { height: 220px; }
    .page-shell { padding-top: .85rem; padding-bottom: 2rem; }
    .product-list-page { padding-top: .7rem; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .product-body { padding: .7rem; }
    .product-body h3 { font-size: .88rem; min-height: 2.2rem; }
    .unit-label { font-size: .78rem; }
    .price-row strong { font-size: .95rem; }
    .price-row span { font-size: .78rem; }
    .product-actions { grid-template-columns: 1fr; }
    .product-actions .btn { font-size: .78rem; padding: .35rem .45rem; }
    .discount-badge, .product-tag { font-size: .65rem; padding: .2rem .42rem; }
    .testimonial-row { grid-template-columns: 1fr; }
    .cart-layout { gap: .75rem; }
    
    /* FIX: Completely removed the old Grid overrides for qty-control that were breaking mobile widths */
    .cart-line { grid-template-columns: 54px minmax(0, 1fr) 34px; gap: .5rem; padding: .5rem; }
    .cart-line img { width: 54px; height: 54px; }
    .cart-line h2 { font-size: .88rem; }
    .cart-line span { font-size: .75rem; }
    
    .cart-summary-panel { padding: .8rem; }
    
    .thumb-row { grid-template-columns: repeat(5, 1fr) !important; gap: 0.25rem !important; }
    
    .detail-copy { padding: 1.25rem !important; }
    .buy-box { padding: 1.25rem !important; }
    
    .action-btn-text { font-size: 0.85rem !important; padding-left: 0.25rem !important; padding-right: 0.25rem !important; }

    
    /* Mobile Footer adjustments for extreme compactness */
.footer-main{
        padding: 1rem 0;
    }

    /* Hide brand section on mobile */
    .footer-brand-col{
        display: none;
    }

    /* Social icons first */
    .footer-social-col{
        order: 1;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    /* Contact info second */
    .footer-contact-col{
        order: 2;
        text-align: center;
    }

    .footer-contact{
        align-items: center;
        gap: .6rem;
    }

    .footer-contact div{
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .footer-contact i{
        margin-right: .35rem;
    }

    .socials{
        justify-content: center;
    }
    .footer-copy{
        display:block;
        text-align:center;
        color:rgba(255,255,255,.55);
        font-size:.75rem;
        margin-top:.8rem;
    }
    
    
    
    .action-row { flex-direction: column; gap: 0.5rem; }
    .action-row .btn { padding: 0.7rem 1rem; }
}