/* ============================================
   RENFI TRADING - Clean & Simple Theme
   Easy to use, easy to access
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --primary-dark: #1E3A5F;

    --accent: #F59E0B;
    --accent-hover: #D97706;
    --accent-light: #FFFBEB;

    --nav-bg: #1E3A5F;
    --nav-hover: #2A4A6F;

    --link-blue: #2563EB;
    --link-hover: #1D4ED8;
    --price-red: #DC2626;
    --star-gold: #F59E0B;

    --success: #16A34A;
    --success-bg: #F0FDF4;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --warning-bg: #FFFBEB;

    --text-dark: #111827;
    --text: #374151;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-light: #D1D5DB;

    --bg: #F8FAFC;
    --bg-white: #ffffff;
    --bg-light: #F1F5F9;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --divider: #E5E7EB;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.05);

    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: var(--link-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page-container { padding: 24px 0; }

/* ======================================================
   TOP NAVBAR
   ====================================================== */
.top-nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-nav-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 16px;
    padding: 0 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-logo-svg {
    height: 22px;
    width: auto;
    display: block;
}
.nav-logo-icon {
    background: var(--primary);
    color: #fff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
}
.nav-logo-text { color: #fff; line-height: 1.2; }
.nav-logo-text strong { font-size: 18px; font-weight: 700; display: block; }
.nav-logo-text small { font-size: 11px; color: rgba(255,255,255,0.6); display: block; }

.nav-deliver {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    color: #ccc;
    flex-shrink: 0;
}
.nav-deliver:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-deliver svg { flex-shrink: 0; }
.nav-deliver-text { line-height: 1.2; }
.nav-deliver-text small { font-size: 11px; color: rgba(255,255,255,0.5); display: block; }
.nav-deliver-text span { font-size: 13px; color: #fff; font-weight: 600; display: block; }

/* Search bar */
.nav-search {
    flex: 1;
    display: flex;
    height: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 0;
    background: #fff;
}
.nav-search:focus-within {
    box-shadow: 0 0 0 2px var(--primary);
}
.nav-search-category {
    background: var(--bg-light);
    border: none;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border-right: 1px solid var(--border);
    min-width: 50px;
    font-family: inherit;
}
.nav-search-category option { background: #fff; color: var(--text); }
.nav-search input {
    flex: 1;
    border: none;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    min-width: 0;
    background: #fff;
    color: var(--text-dark);
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search-btn {
    background: var(--primary);
    border: none;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-radius: 0;
}
.nav-search-btn:hover { background: var(--primary-hover); }
.nav-search-btn svg { color: #fff; }

.nav-actions-group {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.nav-action-item {
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.nav-action-item:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.nav-action-item small { font-size: 11px; color: rgba(255,255,255,0.6); }
.nav-action-item span { font-size: 13px; font-weight: 600; }

.nav-cart {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    position: relative;
}
.nav-cart:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.nav-cart-icon { position: relative; }
.nav-cart-badge {
    position: absolute;
    top: -6px;
    left: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    padding: 0 4px;
    line-height: 18px;
    border-radius: 10px;
}
.nav-cart-text { font-size: 13px; font-weight: 600; }

/* ======================================================
   SUB NAVIGATION
   ====================================================== */
.sub-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.sub-nav-inner {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.sub-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }
.sub-nav a.highlight { color: var(--primary); font-weight: 600; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; }

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.4;
}
.btn:hover { background: var(--bg-light); text-decoration: none; }
.btn-amazon,
.btn-buy {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-amazon:hover,
.btn-buy:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-outline-dark { background: transparent; border-color: var(--text-dark); color: var(--text-dark); }
.btn-outline-dark:hover { background: var(--text-dark); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ======================================================
   ALERTS
   ====================================================== */
.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: var(--danger-bg); color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: var(--warning-bg); color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: var(--primary-light); color: #1E40AF; border: 1px solid #BFDBFE; }

/* ======================================================
   HERO BANNER
   ====================================================== */
.hero-banner {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #2A5A8F 100%);
    margin-bottom: 0;
}
.hero-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
    align-items: center;
    padding: 0 40px;
}
.hero-text { padding: 48px 0; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}
.hero-text h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
}
.hero-text h1 .text-accent { color: var(--accent); }
.hero-text p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .number { display: block; font-size: 28px; font-weight: 700; color: #fff; }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.5); }

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.hero-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 340px;
}
.hero-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 22px 14px;
    text-align: center;
    color: #fff;
    transition: var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,0.16); }
.hero-card .icon { font-size: 26px; margin-bottom: 8px; display: block; }
.hero-card .title { font-size: 12px; font-weight: 600; }
.hero-card .count { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* ======================================================
   CATEGORY STRIP
   ====================================================== */
.category-strip {
    position: relative;
    z-index: 3;
    margin-top: -24px;
    padding: 0 20px;
    margin-bottom: 24px;
}
.category-strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.cat-chip {
    background: #fff;
    padding: 14px 10px;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid transparent;
}
.cat-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    text-decoration: none;
    color: var(--text-dark);
}
.cat-chip .cat-emoji { font-size: 24px; display: block; margin-bottom: 6px; }
.cat-chip .cat-name { font-size: 11px; font-weight: 600; color: var(--text-dark); line-height: 1.3; display: block; }
.cat-chip .cat-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; display: block; }

/* ======================================================
   SECTION LAYOUTS
   ====================================================== */
.home-section {
    padding: 0 20px;
    margin-bottom: 24px;
}
.home-section-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.section-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--border);
}
.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.section-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}
.section-card-header a {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}
.section-card-header a:hover { color: var(--primary-hover); text-decoration: none; }

.section-card > div:not(.section-card-header):not(.products-grid) {
    padding: 16px 20px;
}
.section-card > .products-grid {
    padding: 16px;
}

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.card-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ======================================================
   PRODUCT CARDS
   ====================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.product-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
}
.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.03); }
.product-card-image .no-image {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.product-card-body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-category {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 500;
}
.product-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-body h3 a { color: var(--text-dark); }
.product-card-body h3 a:hover { color: var(--primary); text-decoration: none; }

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.stars { color: var(--star-gold); font-size: 13px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--text-muted); }

.product-card-price { margin-top: auto; padding-top: 8px; }
.product-card-price .price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}
.product-card-price .price-symbol { font-size: 12px; vertical-align: super; }
.product-card-price .price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}
.product-card-price .price-pct {
    display: inline-block;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
}
.product-card-delivery {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.product-card-delivery strong { color: var(--text-dark); }
.product-card-footer { padding: 10px 16px 16px; }
.product-card-footer .btn { width: 100%; font-size: 13px; }
.product-card .badge-deal {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 2;
}
.product-card .badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 2;
}

/* ======================================================
   MINI PRODUCT CARDS
   ====================================================== */
.mini-product-card {
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 10px;
    border-radius: var(--radius);
}
.mini-product-card:hover { background: var(--bg-light); text-decoration: none; color: var(--text-dark); }
.mini-product-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-product-card-img img { max-width: 85%; max-height: 85%; object-fit: contain; }
.mini-product-card .title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mini-product-card .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 4px;
}

/* ======================================================
   DEAL BOX
   ====================================================== */
.deal-banner {
    background: var(--primary-light);
    padding: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid #BFDBFE;
}
.deal-banner h3 { font-size: 20px; font-weight: 700; }
.deal-banner p { font-size: 14px; color: var(--text-secondary); margin: 6px 0 14px; }

/* ======================================================
   FEATURES STRIP
   ====================================================== */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    transition: var(--transition);
}
.feature-item:hover { background: var(--bg-light); }
.feature-item .f-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
}
.feature-item h4 { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.feature-item p { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* ======================================================
   CATALOG PAGE
   ====================================================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.catalog-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 80px;
    overflow: hidden;
}
.catalog-sidebar h3 {
    font-size: 15px;
    font-weight: 700;
    padding: 16px 18px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.catalog-sidebar ul { padding: 8px 0; }
.catalog-sidebar ul li a {
    display: block;
    padding: 9px 18px;
    color: var(--text);
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
    border-left: 3px solid transparent;
}
.catalog-sidebar ul li a:hover { background: var(--bg-light); color: var(--text-dark); text-decoration: none; }
.catalog-sidebar ul li a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; border-left-color: var(--primary); }

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}
.catalog-toolbar .results-count { color: var(--text-secondary); font-size: 14px; }
.catalog-toolbar select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: #fff;
}

/* ======================================================
   PRODUCT DETAIL
   ====================================================== */
.product-detail {
    display: grid;
    grid-template-columns: 450px 1fr 280px;
    gap: 0;
    margin-bottom: 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.product-detail-image {
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 400px;
}
.product-detail-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-detail-info { padding: 28px 24px; }
.product-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}
.product-detail-info .product-sku {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.product-detail-info .product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.product-detail-info .product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.product-detail-info .product-price .price-symbol { font-size: 16px; vertical-align: super; }
.product-detail-info .product-price .original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 10px;
}
.product-detail-info .product-description {
    color: var(--text-secondary);
    margin: 16px 0;
    line-height: 1.7;
    font-size: 14px;
}

.buy-box {
    background: var(--bg-light);
    border-left: 1px solid var(--border);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 80px;
}
.buy-box .buy-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.buy-box .buy-price .symbol { font-size: 14px; vertical-align: super; }
.stock-status {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}
.stock-in { color: var(--success); }
.stock-low { color: var(--accent-hover); }
.stock-out { color: var(--danger); }
.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
}
.quantity-control button {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}
.quantity-control button:hover { background: var(--border); }
.quantity-control input {
    width: 50px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}
.quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}
.product-meta p { margin-bottom: 6px; }
.product-meta strong { color: var(--text-dark); font-weight: 600; }

/* ======================================================
   CART PAGE
   ====================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
.cart-main {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.cart-main h1 {
    font-size: 20px;
    font-weight: 700;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.cart-main .price-header { text-align: right; font-size: 13px; color: var(--text-muted); padding: 8px 20px; border-bottom: 1px solid var(--border); }
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.cart-item-img {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.cart-item-info h3 { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.cart-item-info h3 a { color: var(--text-dark); }
.cart-item-info h3 a:hover { color: var(--primary); }
.cart-item-info .item-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.cart-item-info .item-meta .in-stock { color: var(--success); font-weight: 600; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-actions select { padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.cart-item-actions .divider { color: var(--border); }
.cart-item-actions a { font-size: 12px; color: var(--text-muted); }
.cart-item-actions a:hover { color: var(--danger); }
.cart-item-price { text-align: right; font-size: 18px; font-weight: 700; white-space: nowrap; }

.cart-bottom-layout {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 24px;
}
.cart-bottom-left {
    display: flex;
    gap: 10px;
    align-items: center;
}
.cart-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
    overflow: hidden;
    width: 380px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cart-summary h3 {
    font-size: 16px;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    color: var(--text-dark);
    background: var(--bg-light);
}
.cart-summary .summary-items-count {
    padding: 10px 20px 2px;
    font-size: 13px;
    color: var(--text-muted);
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}
.cart-summary .summary-shipping .shipping-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}
.cart-summary .summary-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 20px;
}
.cart-summary .summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 12px 20px;
}
.cart-summary .summary-row.total .total-price {
    color: var(--accent);
    font-size: 22px;
}
.cart-summary .summary-actions {
    padding: 12px 20px 0;
}
.cart-summary .summary-checkout-btn {
    font-size: 15px;
    padding: 14px 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.cart-summary .summary-payment-methods {
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-summary .payment-badges {
    display: flex;
    gap: 8px;
}
.cart-summary .payment-badge {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}
.cart-summary .summary-guarantee {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-summary .guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.cart-summary .guarantee-item svg {
    color: #0d8a0d;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .cart-bottom-layout {
        flex-direction: column;
    }
    .cart-summary {
        width: 100%;
    }
}
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cart-empty h2 { margin-bottom: 8px; color: var(--text-secondary); }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    background: var(--bg-light);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.cart-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.cart-table tr:hover { background: var(--bg-light); }
.cart-table .cart-product { display: flex; align-items: center; gap: 14px; }
.cart-table .cart-product img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: var(--bg-light);
    padding: 5px;
    border-radius: var(--radius-sm);
}
.cart-table .cart-product-name { font-weight: 600; color: var(--text-dark); font-size: 14px; }
.cart-table .cart-remove {
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 12px;
}
.cart-table .cart-remove:hover { color: var(--danger); }

/* ======================================================
   FORMS
   ====================================================== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}
.form-group label .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    max-width: 440px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.form-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    text-align: center;
}
.form-card .form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
}
.form-card .form-group,
.form-card .btn,
.form-card p {
    margin-left: 0;
    margin-right: 0;
}
.form-card .btn-block {
    width: 100%;
    margin-bottom: 16px;
}

/* ======================================================
   CHECKOUT
   ====================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}
.checkout-section {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    overflow: hidden;
}
.checkout-section h3 {
    font-size: 16px;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    color: var(--text-dark);
}
.checkout-section .form-group,
.checkout-section .form-row,
.checkout-section .payment-options,
.checkout-section .btn {
    margin: 16px 20px;
}
.payment-options { display: flex; flex-direction: column; gap: 8px; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.payment-option:hover { border-color: var(--primary); }
.payment-option input[type="radio"] { accent-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }

/* Shipping Options (Lazada/Shopee style) */
.shipping-options { display: flex; flex-direction: column; gap: 10px; }
.shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}
.shipping-option:hover { border-color: var(--accent); }
.shipping-option input[type="radio"] {
    accent-color: var(--accent);
    margin-top: 4px;
    flex-shrink: 0;
}
.shipping-option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}
.shipping-option-content { flex: 1; }
.shipping-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.shipping-option-header strong {
    font-size: 15px;
    color: var(--text-dark);
}
.shipping-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}
.shipping-estimate {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ======================================================
   ACCOUNT PAGE
   ====================================================== */
.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}
.account-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    height: fit-content;
    overflow: hidden;
}
.account-sidebar .user-info {
    text-align: center;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}
.account-sidebar .user-info .avatar {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 8px;
}
.account-sidebar ul { padding: 8px 0; }
.account-sidebar ul li a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
    border-left: 3px solid transparent;
}
.account-sidebar ul li a:hover { background: var(--bg-light); text-decoration: none; }
.account-sidebar ul li a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; border-left-color: var(--primary); }

.account-content {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.account-content h2 {
    font-size: 18px;
    font-weight: 700;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    color: var(--text-dark);
}
.account-content > *:not(h2) {
    padding-left: 24px;
    padding-right: 24px;
}

/* ======================================================
   DATA TABLES
   ====================================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th {
    background: var(--bg-light);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tr:hover { background: var(--bg-light); }

/* ======================================================
   BADGES
   ====================================================== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-confirmed { background: #DBEAFE; color: #1E40AF; }
.badge-processing { background: #DBEAFE; color: #1E40AF; }
.badge-shipped { background: #D1FAE5; color: #065F46; }
.badge-delivered { background: var(--success); color: #fff; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-paid { background: var(--success); color: #fff; }
.badge-unpaid { background: #FEE2E2; color: #991B1B; }

/* ======================================================
   PAGINATION
   ====================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 24px 0;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
}
.pagination a { background: #fff; color: var(--text); }
.pagination a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); text-decoration: none; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ======================================================
   BREADCRUMB
   ====================================================== */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); font-size: 13px; }
.breadcrumb a:hover { color: var(--primary-hover); }
.breadcrumb span { color: var(--text-muted); }

/* ======================================================
   ABOUT / CONTACT PAGES
   ====================================================== */
.about-content, .contact-content {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.about-content h1, .contact-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.about-content p, .contact-content p {
    margin-bottom: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 14px;
}
.about-content p:first-of-type, .contact-content p:first-of-type { padding-top: 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}
.contact-info-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.contact-info-card .icon { font-size: 22px; flex-shrink: 0; }
.contact-info-card h4 { font-size: 14px; color: var(--text-dark); margin-bottom: 2px; font-weight: 600; }
.contact-info-card p { font-size: 13px; color: var(--text-secondary); margin: 0 !important; padding: 0 !important; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.feature-card {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.feature-card .feature-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.feature-card h3 { font-size: 15px; color: var(--text-dark); margin-bottom: 6px; }
.feature-card p { color: var(--text-secondary); font-size: 13px; }

/* ======================================================
   FOOTER
   ====================================================== */
.footer-back-to-top {
    background: var(--bg-light);
    color: var(--text-secondary);
    text-align: center;
    padding: 12px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border-top: 1px solid var(--border);
    font-weight: 500;
}
.footer-back-to-top:hover { background: var(--border); color: var(--text-dark); }
.site-footer {
    background: var(--nav-bg);
    color: rgba(255,255,255,0.85);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 30px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-col p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-bottom {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    text-align: center;
}
.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-bottom .logo-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.footer-logo-svg {
    height: 18px;
    width: auto;
    display: block;
}
.footer-bottom .logo-mini-icon {
    background: var(--primary);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 12px; }

/* ======================================================
   SEARCH SUGGESTIONS
   ====================================================== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    max-height: 420px;
    overflow-y: auto;
}
.ss-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.1s;
    border-bottom: 1px solid var(--border);
}
.ss-item:hover, .ss-item.ss-active {
    background: var(--bg-light);
    text-decoration: none;
    color: var(--text-dark);
}
.ss-img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ss-img img { width: 100%; height: 100%; object-fit: contain; }
.ss-no-img { font-size: 10px; color: var(--text-muted); }
.ss-info { flex: 1; min-width: 0; }
.ss-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-name strong { color: var(--primary); }
.ss-price {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 2px;
}
.ss-all {
    display: block;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.1s;
    border-top: 1px solid var(--border);
}
.ss-all:hover, .ss-all.ss-active {
    background: var(--bg-light);
    text-decoration: none;
}

/* ======================================================
   REVIEWS
   ====================================================== */
.reviews-section {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}
.reviews-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.reviews-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.reviews-avg {
    display: flex;
    align-items: center;
}
.reviews-list { }
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
}
.review-form-wrapper {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.review-form-wrapper h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.star-rating-input input { display: none; }
.star-rating-input label {
    font-size: 28px;
    color: var(--border);
    cursor: pointer;
    transition: color 0.15s;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: var(--star-gold);
}

/* ======================================================
   WISHLIST
   ====================================================== */
.wishlist-toggle {
    background: #fff;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.wishlist-toggle:hover { border-color: var(--danger); }
.wishlist-toggle.wishlisted {
    border-color: var(--danger);
    background: #FEF2F2;
}
.wishlist-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    padding: 0 3px;
    line-height: 16px;
    border-radius: 8px;
}

/* ======================================================
   COUPON INPUT
   ====================================================== */
.coupon-success { color: var(--success); }
.coupon-error { color: var(--danger); }

/* ======================================================
   FIELD VALIDATION ERRORS
   ====================================================== */
.field-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
.form-control.input-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* ======================================================
   CATALOG LOADING STATE
   ====================================================== */
.catalog-loading {
    position: relative;
    pointer-events: none;
}
.catalog-loading::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-lg);
    z-index: 10;
}
.catalog-loading::before {
    content: '';
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: catalogSpin 0.7s linear infinite;
    z-index: 11;
}
@keyframes catalogSpin {
    to { transform: translateX(-50%) rotate(360deg); }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
    .hero-banner-inner { grid-template-columns: 1fr; min-height: auto; }
    .hero-visual { display: none; }
    .hero-text h1 { font-size: 30px; }
    .product-detail { grid-template-columns: 1fr 1fr; }
    .product-detail .buy-box { grid-column: 1 / -1; position: static; border-left: none; border-top: 1px solid var(--border); }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .features-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-search { order: 10; flex-basis: 100%; height: 38px; margin: 0 0 8px; }
    .top-nav-inner { flex-wrap: wrap; height: auto; padding: 10px; }
    .nav-deliver { display: none; }
    .nav-search-category { display: none; }
    .sub-nav a { font-size: 12px; padding: 8px 10px; }
    .hero-text h1 { font-size: 24px; }
    .hero-text p { font-size: 14px; }
    .hero-banner-inner { padding: 0 20px; }
    .hero-stats { gap: 20px; }
    .hero-stat .number { font-size: 22px; }
    .category-strip-inner { grid-template-columns: repeat(4, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-info { padding: 20px; }
    .cart-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-strip { grid-template-columns: 1fr; }
    .feature-item { border-bottom: 1px solid var(--border); }
    .feature-item:last-child { border-bottom: none; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .product-card-image { height: 160px; }
    .search-suggestions { position: fixed; top: auto; left: 10px; right: 10px; max-height: 60vh; border-radius: var(--radius-lg); }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero-text h1 { font-size: 20px; }
    .hero-actions { flex-direction: column; }
    .category-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .card-grid-4 { grid-template-columns: 1fr 1fr; }
    .card-grid-2 { grid-template-columns: 1fr; }
    .product-card-price .price-current { font-size: 16px; }
    .nav-action-item small { display: none; }
    .nav-action-item span { font-size: 12px; }
    .hero-stats { flex-direction: column; gap: 10px; }
}

/* ======================================================
   VALIDATION MODAL
   ====================================================== */
.validation-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.validation-modal-overlay.active {
    display: flex;
}
.validation-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.25s ease-out;
    overflow: hidden;
}
@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.validation-modal-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.validation-modal-header .modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FEF2F2;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.validation-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
}
.validation-modal-body {
    padding: 16px 24px;
}
.validation-modal-body p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-light);
}
.validation-modal-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.validation-modal-body ul li {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--danger);
    background: #FEF2F2;
    border-radius: 6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.validation-modal-body ul li::before {
    content: "\2022";
    font-weight: bold;
}
.validation-modal-footer {
    padding: 12px 24px 20px;
    text-align: right;
}
.validation-modal-footer .btn {
    min-width: 120px;
}
