 :root{
            --bg:#f6f7f8;
            --card:#ffffff;
            --text:#111827;
            --muted:#6b7280;
            --line:#ececec;
            --brand:#d97706;
            --brand-dark:#b45309;
        }

        * { box-sizing: border-box; }

        html, body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: var(--bg);
            color: var(--text);
            overflow-x: hidden;
        }

        a { color: inherit; }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 8px;
        }

        .stack {
            display: grid;
            gap: 16px;
            min-width: 0;
        }

        .card {
            background: var(--card);
            border-radius: 20px;
            border: 1px solid var(--line);
            padding: 18px;
            box-shadow: 0 4px 18px rgba(0,0,0,.04);
            min-width: 0;
        }

        .section-title {
            font-size: 22px;
            font-weight: 800;
            margin: 0 0 10px;
            line-height: 1.2;
        }

        .muted {
            color: var(--muted);
        }

        .btn,
        .btn-outline {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px 16px;
            border-radius: 14px;
            text-decoration: none;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .btn {
            background: var(--brand);
            color: #fff;
            border-color: var(--brand);
        }

        .btn-outline {
            background: #fff;
            color: #374151;
            border-color: #d1d5db;
        }

        .site-header {
            background: transparent;
            margin-bottom: 14px;
            position: sticky;
            top: 0;
            z-index: 70;
        }

        .site-header-shell {
            background: linear-gradient(180deg, #fff8ef 0%, #fff2df 100%);
            border: 1px solid #f1dfc7;
            border-radius: 18px;
            padding: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,.05);
            backdrop-filter: blur(8px);
        }

        .site-header-info {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f1eadf;
            margin-bottom: 10px;
        }

        .site-header-info-left {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .site-header-info-center {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .header-pill {
            background: rgba(255,255,255,0.92);
            border: 1px solid #ecdcc7;
            padding: 7px 12px;
            border-radius: 999px;
            font-weight: 600;
            font-size: 13px;
            text-decoration: none;
            color: #374151;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            line-height: 1.2;
        }

        .header-pill-phone {
            white-space: nowrap;
        }

        .header-pill-muted {
            color: #6b7280;
            text-align: center;
        }

        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-height: 48px;
        }

        .topbar-left {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
            flex: 1 1 auto;
        }

        .topbar-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: 1px solid #eadfce;
            background: #fff;
            color: var(--text);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,.04);
        }

        .icon-btn:hover {
            background: #fff8ef;
        }

        .brand-link {
            text-decoration: none;
            color: var(--brand-dark);
            font-size: clamp(20px, 4.2vw, 24px);
            font-weight: 900;
            line-height: 1;
            white-space: nowrap;
            letter-spacing: .2px;
        }

        .brand-logo-link {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            min-width: 0;
        }

        .brand-logo-box {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            max-width: 180px;
        }

        .brand-logo-img {
            max-height: 42px;
            max-width: 180px;
            object-fit: contain;
            display: block;
        }

        .cart-placeholder {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: 1px dashed #e7c89a;
            background: #fff8ef;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--brand-dark);
            font-size: 17px;
            flex-shrink: 0;
        }

        .search-panel {
            display: none;
            margin-top: 12px;
            position: relative;
        }

        .search-panel.open {
            display: block;
        }

        .search-form {
            display: flex;
            gap: 10px;
            align-items: stretch;
            width: 100%;
        }

        .search-input {
            flex: 1;
            min-width: 0;
            border: 1px solid #e2d5c4;
            border-radius: 14px;
            padding: 13px 14px;
            font-size: 15px;
            outline: none;
            background: #fff;
        }

        .search-input:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 3px rgba(217,119,6,.10);
        }

        .search-btn {
            min-width: 52px;
            border-radius: 14px;
            border: 1px solid var(--brand);
            background: var(--brand);
            color: #fff;
            font-size: 18px;
            cursor: pointer;
        }

        .search-live-box {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 16px;
            box-shadow: 0 12px 30px rgba(0,0,0,.08);
            z-index: 80;
            overflow: hidden;
            display: none;
        }

        .search-live-item {
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 10px 12px;
            text-decoration: none;
            color: var(--text);
            border-bottom: 1px solid #f3f4f6;
        }

        .search-live-item:hover {
            background: #fafafa;
        }

        .search-live-item img {
            width: 52px;
            height: 52px;
            object-fit: contain;
            border-radius: 10px;
            background: #f8f8f8;
            flex-shrink: 0;
        }

        .search-live-name {
            font-weight: 700;
            font-size: 14px;
            line-height: 1.3;
        }

        .search-live-ref {
            font-size: 12px;
            color: var(--muted);
            margin-top: 3px;
        }

        .search-live-price {
            font-size: 12px;
            color: #92400e;
            margin-top: 3px;
            font-weight: 700;
        }

        .menu-drawer-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(17,24,39,.42);
            z-index: 90;
            display: none;
        }

        .menu-drawer-backdrop.open {
            display: block;
        }

        .menu-drawer {
            position: fixed;
            top: 0;
            left: 0;
            width: min(88vw, 360px);
            height: 100vh;
            background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
            z-index: 91;
            transform: translateX(-100%);
            transition: transform .25s ease;
            box-shadow: 0 10px 30px rgba(0,0,0,.12);
            padding: 16px;
            overflow-y: auto;
        }

        .menu-drawer.open {
            transform: translateX(0);
        }

        .drawer-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
        }

        .drawer-title {
            font-size: 22px;
            font-weight: 900;
            color: var(--brand-dark);
        }

        .menu-wrap-premium {
            display: grid;
            gap: 8px;
        }

        .menu-level {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 8px;
        }

        .menu-item {
            display: grid;
            gap: 8px;
        }

        .menu-row {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 13px 14px;
            border: 1px solid #eee7da;
            border-radius: 14px;
            background: #fff;
            color: #111827;
            text-decoration: none;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s ease;
        }

        .menu-row:hover {
            background: #fffaf3;
            border-color: #eadfce;
        }

        .menu-row-toggle {
            border: 1px solid #eee7da;
            appearance: none;
            text-align: left;
        }

        .menu-row-label {
            flex: 1;
            text-align: left;
            line-height: 1.3;
        }

        .menu-row-right {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .menu-row-open-link {
            font-size: 12px;
            font-weight: 700;
            color: #b45309;
            background: #fff7ed;
            border: 1px solid #f3d7b3;
            border-radius: 999px;
            padding: 5px 9px;
        }

        .menu-chevron,
        .menu-leaf-arrow {
            font-size: 18px;
            line-height: 1;
            color: #9ca3af;
            transition: transform .18s ease;
        }

        .menu-item.open > .menu-row .menu-chevron {
            transform: rotate(90deg);
            color: #b45309;
        }

        .submenu {
            display: grid;
            gap: 8px;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            padding-left: 14px;
            margin-left: 8px;
            border-left: 2px solid #f1eadf;
            transition: all .22s ease;
        }

        .menu-item.open > .submenu {
            max-height: 1200px;
            opacity: 1;
            padding-top: 2px;
        }

        .menu-level-1 .menu-row,
        .menu-level-2 .menu-row,
        .menu-level-3 .menu-row {
            background: #fffdf9;
        }

        .menu-level-1 .menu-row {
            font-size: 14px;
        }

        .menu-level-2 .menu-row,
        .menu-level-3 .menu-row {
            font-size: 13px;
            font-weight: 600;
        }

        .menu-link-only:hover .menu-leaf-arrow {
            transform: translateX(2px);
            color: #b45309;
        }

        .success-box,
        .error-box {
            padding: 12px 14px;
            border-radius: 14px;
            font-weight: 600;
        }

        .success-box {
            background: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }

        .error-box {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        .field {
            display: grid;
            gap: 6px;
            margin-bottom: 14px;
        }

        .field label {
            font-size: 14px;
            font-weight: 700;
        }

        .field input,
        .field select,
        .field textarea {
            width: 100%;
            border: 1px solid #d1d5db;
            border-radius: 12px;
            padding: 11px 12px;
            font-size: 14px;
            box-sizing: border-box;
        }

        .field textarea {
            min-height: 110px;
            resize: vertical;
        }

        .form-row-2 {
            display: grid;
            grid-template-columns: 1fr;
            gap: 14px;
        }

        .small-list {
            display: grid;
            gap: 10px;
        }

        .site-footer {
            margin-top: 24px;
            padding: 8px 0 12px;
        }

        .footer-card {
            background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
            border: 1px solid var(--line);
            border-radius: 22px;
            padding: 18px;
            box-shadow: 0 4px 18px rgba(0,0,0,.04);
        }

        .footer-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
            padding-bottom: 14px;
            border-bottom: 1px solid #f1eadf;
        }

        .footer-brand {
            font-size: 20px;
            font-weight: 900;
            color: var(--brand-dark);
        }

        .footer-text {
            margin-top: 6px;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.6;
        }

        .footer-contact-line {
            margin-top: 8px;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            color: var(--muted);
            font-size: 14px;
        }

        .footer-socials,
        .footer-socials-inline {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: nowrap;
        }

        .footer-social-btn {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            box-shadow: 0 6px 18px rgba(0,0,0,.08);
            transition: transform .15s ease, opacity .15s ease;
            flex: 0 0 auto;
        }

        .footer-social-btn:hover {
            transform: translateY(-1px);
            opacity: .92;
        }

        .footer-social-facebook { background: #1877f2; }
        .footer-social-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
        .footer-social-tiktok { background: #000000; }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 14px;
            padding: 14px 0;
            border-bottom: 1px solid #f1eadf;
        }

        .footer-links a {
            color: #374151;
            text-decoration: none;
            font-size: 14px;
            font-weight: 700;
            padding: 6px 10px;
            border-radius: 10px;
            background: #fff;
            border: 1px solid #f1eadf;
        }

        .footer-links a:hover {
            background: #fff8ef;
        }

        .footer-bottom {
            padding-top: 14px;
            display: flex;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            color: var(--muted);
            font-size: 13px;
        }

        @media (max-width: 640px) {
            .container {
                padding: 6px;
            }

            .site-header {
                margin-bottom: 10px;
            }

            .site-header-shell {
                padding: 10px;
                border-radius: 14px;
            }

            .site-header-info {
                grid-template-columns: 1fr;
                justify-items: stretch;
                gap: 8px;
            }

            .site-header-info-left,
            .site-header-info-center {
                justify-content: center;
            }

            .header-pill {
                width: 100%;
                justify-content: center;
            }

            .topbar {
                gap: 8px;
            }

            .topbar-left {
                gap: 10px;
            }

            .icon-btn,
            .cart-placeholder {
                width: 38px;
                height: 38px;
                border-radius: 11px;
                font-size: 16px;
            }

            .brand-link {
                font-size: 20px;
            }

            .brand-logo-box {
                max-width: 140px;
                min-height: 36px;
            }

            .brand-logo-img {
                max-height: 36px;
                max-width: 140px;
            }

            .card {
                padding: 14px;
                border-radius: 16px;
            }

            .section-title {
                font-size: 20px;
            }

            .btn,
            .btn-outline {
                padding: 10px 14px;
                font-size: 13px;
                border-radius: 12px;
            }

            .footer-socials-inline {
                justify-content: flex-start;
                width: 100%;
            }
        }

        @media (min-width: 768px) {
            .form-row-2 {
                grid-template-columns: 1fr 1fr;
            }

            .container {
                padding: 16px;
            }
        }
        /* HOME */
.home-stack { gap: 14px !important; }
.home-hero-card, .home-section-card { padding: 18px !important; }
.home-section-card { overflow: hidden; min-width: 0; }

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-section-title { margin: 0 !important; }

.category-slider-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 10px;
}

.category-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.category-slider::-webkit-scrollbar { display: none; }

.category-card {
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #111;
    scroll-snap-align: start;
    border: 1px solid #f1f1f1;
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.category-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.06);
    transition: opacity .35s ease;
    display: block;
}

.category-name {
    padding: 10px 8px 12px;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    line-height: 1.25;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    word-break: break-word;
}

.cat-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cat-nav-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    flex-shrink: 0;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin-top: 12px;
}

/* PRODUCT CARD */
.product-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 3px 14px rgba(0,0,0,.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.product-card-image-wrap {
    position: relative;
    background: #fff;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #b45309;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.product-card-image {
    aspect-ratio: 1 / 1;
    background: #fff;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-card-body {
    padding: 12px;
}

.product-card-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    min-height: 40px;
    color: #111827;
}

.product-card-note {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
}

.product-card-price {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.old-price {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    text-decoration-line: line-through;
    text-decoration-color: #dc2626;
    text-decoration-thickness: 2px;
    opacity: .78;
}

.sale-price {
    color: #dc2626;
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 699px) {
    .home-hero-card, .home-section-card {
        padding: 16px !important;
    }

    .home-stack { gap: 12px !important; }
    .home-grid { gap: 10px; margin-top: 10px; }
}

@media (min-width: 480px) and (max-width: 699px) {
    .category-card {
        flex: 0 0 140px;
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }

    .category-name { font-size: 12px; }
}

@media (min-width: 700px) {
    .category-card {
        flex: 0 0 176px;
        width: 176px;
        min-width: 176px;
        max-width: 176px;
    }

    .category-name {
        font-size: 13px;
        min-height: 52px;
    }

    .cat-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    #featuredGrid, #bestGrid, #recentGrid, #homeProductsGrid {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    }
}

@media (min-width: 1024px) {
    #featuredGrid, #bestGrid, #recentGrid, #homeProductsGrid {
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    }
}

@media (max-width: 640px) {
    .product-card-title {
        font-size: 13px;
        min-height: 36px;
    }

    .sale-price {
        font-size: 17px;
    }

    .old-price {
        font-size: 13px;
    }
}