/* =====================================================
   HATORA SHOP - Premium Design System
   Version: 1.0
   ===================================================== */

/* ============================================
   1. CSS RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Color Palette */
    --primary: #FF6B00;
    --primary-dark: #E55A00;
    --primary-light: #FF8C1A;
    --primary-soft: #FFF1E5;
    --secondary: #FF8C1A;
    --bg: #F8F9FB;
    --card: #FFFFFF;
    --border: #ECECEC;
    --border-light: #F2F2F2;
    --text: #222222;
    --gray: #666666;
    --gray-light: #999999;
    --gray-soft: #B5B5B5;
    --success: #10B981;
    --success-soft: #D1FAE5;
    --danger: #EF4444;
    --danger-soft: #FEE2E2;
    --warning: #F59E0B;
    --warning-soft: #FEF3C7;
    --info: #3B82F6;
    --info-soft: #DBEAFE;
    --dark: #1F2937;
    --dark-soft: #374151;
    --white: #FFFFFF;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.10);
    --shadow-orange: 0 8px 24px rgba(255,107,0,0.25);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 999px;

    /* Spacing */
    --container-max: 1280px;
    --header-h: 124px;
    --topbar-h: 36px;

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.25s ease;
    --t-slow: 0.4s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }

/* ============================================
   2. LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 48px 0; }
.section-sm { padding: 24px 0; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col { padding: 0 12px; }

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
p { color: var(--text); }
.text-muted { color: var(--gray); font-size: 14px; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-center { text-align: center; }

/* ============================================
   4. TOP BAR
   ============================================ */
.topbar {
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: rgba(255,255,255,0.8); }
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item i { font-size: 12px; }
.topbar-select {
    background: transparent;
    color: var(--white);
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 13px;
}
.topbar-select option { color: var(--text); }

/* ============================================
   5. HEADER & NAV
   ============================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}
.header-main {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    justify-content: space-around;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 26px;
    color: var(--primary);
    flex-shrink: 0;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    box-shadow: var(--shadow-orange);
}
.logo-text { color: var(--primary); }
.logo-text small { display: block; font-size: 9px; color: var(--gray); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }

.search-form {
    flex: 1;
    max-width: 640px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--t-base);
    overflow: hidden;
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,107,0,0.1); }
.search-form input {
    flex: 1;
    padding: 12px 22px;
    font-size: 14px;
    background: transparent;
    color: var(--text);
}
.search-form input::placeholder { color: var(--gray-soft); }
.search-form button {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
}
.search-form button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
    position: relative;
    min-width: 64px;
}
.header-action:hover { background: var(--primary-soft); color: var(--primary); }
.header-action i { font-size: 20px; margin-bottom: 2px; }
.header-action span { font-size: 11px; font-weight: 500; }
.header-action .badge-count {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Navigation */
.navbar {
    border-top: 1px solid var(--border);
    background: var(--white);
}
.navbar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}
.btn-categories {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: background var(--t-fast);
    flex-shrink: 0;
}
.btn-categories:hover { background: var(--primary-dark); color: var(--white); }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.nav-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-md);
    position: relative;
    transition: all var(--t-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.nav-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 4px;
    text-transform: uppercase;
}

/* Categories Dropdown */
.categories-dropdown { position: relative; }
.categories-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 280px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--t-base);
}
.categories-dropdown:hover .categories-menu,
.categories-dropdown.open .categories-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.categories-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text);
    transition: all var(--t-fast);
}
.categories-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.categories-menu i { width: 20px; color: var(--primary); }

/* Mobile menu toggle */
.mobile-menu-toggle { display: none; }

/* ============================================
   6. MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    z-index: 999;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    color: var(--gray);
    font-size: 10px;
    font-weight: 500;
    transition: all var(--t-fast);
    position: relative;
}
.mbn-item i { font-size: 18px; }
.mbn-item.active { color: var(--primary); }
.mbn-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 2px 2px;
}
.mbn-item .badge-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--white);
}
body { padding-bottom: 0; }
.has-mbn body { padding-bottom: 76px; }

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all var(--t-base);
    border: 1.5px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,107,0,0.35); }
.btn-secondary {
    background: var(--dark);
    color: var(--white);
}
.btn-secondary:hover { background: var(--dark-soft); color: var(--white); }
.btn-outline {
    background: var(--white);
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
    background: transparent;
    color: var(--text);
}
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover { background: #DC2626; color: var(--white); }
.btn-success {
    background: var(--success);
    color: var(--white);
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-icon:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

/* ============================================
   8. CARDS
   ============================================ */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--t-base);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }
.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title { font-size: 17px; font-weight: 700; }

/* Product Card */
.product-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--t-base);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-soft);
}
.product-image-wrap {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.product-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.product-badge.discount { background: var(--primary); color: var(--white); }
.product-badge.new { background: var(--success); color: var(--white); }
.product-badge.hot { background: var(--danger); color: var(--white); }
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--t-base);
    z-index: 2;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-fast);
    border: none;
    cursor: pointer;
}
.product-action-btn:hover { background: var(--primary); color: var(--white); }
.product-action-btn.active { background: var(--primary); color: var(--white); }
.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}
.product-title:hover { color: var(--primary); }
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    flex-wrap: wrap;
}
.price-current { color: var(--primary); font-weight: 700; font-size: 16px; }
.price-old { color: var(--gray-soft); text-decoration: line-through; font-size: 13px; }
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}
.product-rating i { color: #FFB400; font-size: 11px; }
.product-add-cart {
    margin-top: 10px;
    padding: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--t-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    width: 100%;
}
.product-add-cart:hover { background: var(--primary); color: var(--white); }

/* Category Card */
.category-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--t-base);
    display: block;
    color: var(--text);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
    color: var(--text);
}
.category-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    transition: all var(--t-base);
}
.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}
.category-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.category-count { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.category-action { font-size: 13px; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ============================================
   9. BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 10px; color: var(--gray-soft); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ============================================
   10. FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text);
    transition: all var(--t-fast);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,107,0,0.1); }
.form-control::placeholder { color: var(--gray-soft); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ============================================
   11. TABLES
   ============================================ */
.table-wrap { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.table th { font-weight: 600; color: var(--gray); background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.table tbody tr:hover { background: var(--bg); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================================
   12. BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-default { background: var(--bg); color: var(--gray); }

/* ============================================
   13. FLASH MESSAGES
   ============================================ */
.flash-messages { position: fixed; top: 80px; right: 20px; z-index: 9999; max-width: 360px; }
.flash {
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--primary);
    animation: slideInRight var(--t-base);
}
.flash-success { border-left-color: var(--success); color: var(--success); }
.flash-error,
.flash-danger  { border-left-color: var(--danger);  color: var(--danger); }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================
   14. HERO / BANNER
   ============================================ */
.hero-banner {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--card);
    margin-bottom: 32px;
}
.hero-banner img { width: 100%; aspect-ratio: 16/5; object-fit: cover; transition: transform 1s ease; }
.hero-banner:hover img { transform: scale(1.02); }
.hero-banner a { display: block; }
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.hero-dots .dot {
    width: 24px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: all var(--t-base);
    cursor: pointer;
}
.hero-dots .dot.active { background: var(--primary); width: 32px; }

/* ============================================
   15. PROMO BANNER (orange themed)
   ============================================ */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.promo-card {
    background: linear-gradient(135deg, #FFE4D0 0%, #FFD0A8 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    min-height: 160px;
    position: relative;
}
.promo-card.alt { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); }
.promo-content h3 { font-size: 18px; margin-bottom: 4px; }
.promo-content p { font-size: 13px; color: var(--gray); }
.promo-content .promo-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.promo-content .promo-sub { color: var(--gray); margin-bottom: 12px; }
.promo-content strong { color: var(--primary); font-size: 18px; }
.promo-img { font-size: 80px; opacity: 0.9; }

/* Flash sale timer */
.flash-timer { display: flex; gap: 8px; margin-top: 12px; }
.flash-timer .timer-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    text-align: center;
    min-width: 56px;
    box-shadow: var(--shadow-sm);
}
.flash-timer .timer-num { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1; }
.flash-timer .timer-label { font-size: 10px; color: var(--gray); margin-top: 2px; }

/* ============================================
   16. FEATURES STRIP
   ============================================ */
.features-strip {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
    border: 1px solid var(--border-light);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.feature-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.feature-text span { font-size: 12px; color: var(--gray); }

/* ============================================
   17. SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-title { font-size: 22px; font-weight: 700; }
.section-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   18. PAGE HEADERS
   ============================================ */
.page-header { margin-bottom: 24px; }
.page-title { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { color: var(--gray); font-size: 14px; }

/* ============================================
   19. FOOTER
   ============================================ */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding: 48px 0 16px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray); font-size: 14px; transition: all var(--t-fast); }
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-about p { color: var(--gray); font-size: 14px; margin: 12px 0; line-height: 1.7; }
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.footer-social a:hover { background: var(--primary); color: var(--white); padding-left: 0; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
}
.footer-contact-item i { color: var(--primary); margin-top: 3px; }
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--gray);
    font-size: 13px;
}
.footer-payments { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.footer-payments i { font-size: 24px; color: var(--gray); }

/* ============================================
   20. CART PAGE
   ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: flex-start;
}
.cart-table { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.cart-table-header {
    display: grid;
    grid-template-columns: 40px 80px 1fr 120px 140px 120px 40px;
    padding: 14px 18px;
    background: var(--bg);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 600;
    letter-spacing: 0.5px;
    align-items: center;
}
.cart-item {
    display: grid;
    grid-template-columns: 40px 80px 1fr 120px 140px 120px 40px;
    padding: 18px;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    gap: 8px;
}
.cart-item:last-child { border-bottom: none; }
.cart-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
    background: var(--white);
    position: relative;
    flex-shrink: 0;
}
.cart-checkbox:checked { background: var(--primary); border-color: var(--primary); }
.cart-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
}
.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-info p { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.cart-item-info .stock-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}
.cart-item-price { font-weight: 700; font-size: 15px; color: var(--primary); }
.cart-item-price .old { display: block; color: var(--gray-soft); text-decoration: line-through; font-size: 12px; font-weight: 400; }
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.qty-control button {
    width: 32px;
    height: 32px;
    background: var(--white);
    color: var(--text);
    transition: background var(--t-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qty-control button:hover { background: var(--primary-soft); color: var(--primary); }
.qty-control input {
    width: 42px;
    height: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.cart-item-total { font-weight: 700; font-size: 15px; }
.cart-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    color: var(--gray-soft);
    transition: all var(--t-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-remove:hover { background: var(--danger-soft); color: var(--danger); }
.cart-actions {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg);
    flex-wrap: wrap;
}
.cart-actions-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.cart-summary { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); padding: 20px; position: sticky; top: 140px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray);
}
.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.summary-row .value { color: var(--text); font-weight: 600; }
.summary-row .value.primary { color: var(--primary); }
.summary-row .value.discount { color: var(--success); }
.savings-banner {
    background: var(--success-soft);
    color: var(--success);
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-align: center;
    margin: 12px 0;
    font-weight: 600;
}
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; }
.trust-badges { margin-top: 18px; display: grid; gap: 10px; }
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
}
.trust-badge i { color: var(--primary); font-size: 18px; }
.trust-badge strong { display: block; color: var(--text); font-size: 13px; }

/* ============================================
   21. CHECKOUT
   ============================================ */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    max-width: 600px;
    position: relative;
}
.checkout-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 36px;
    right: 36px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    flex: 1;
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--t-base);
}
.checkout-step.active .step-circle { background: var(--primary); border-color: var(--primary); color: var(--white); }
.checkout-step.done .step-circle { background: var(--success); border-color: var(--success); color: var(--white); }
.step-label { font-size: 12px; color: var(--gray); font-weight: 500; }
.checkout-step.active .step-label { color: var(--primary); font-weight: 600; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: flex-start; }
.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 20px;
}
.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.checkout-section-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.checkout-section-title { font-size: 16px; font-weight: 700; }
.checkout-section .add-new { margin-left: auto; color: var(--primary); font-size: 13px; font-weight: 600; }

.option-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all var(--t-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
}
.option-card:hover { border-color: var(--primary-soft); }
.option-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.option-card.selected .option-radio { border-color: var(--primary); }
.option-card.selected .option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}
.option-card-icon {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.option-card-body { flex: 1; }
.option-card-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.option-card-sub { font-size: 12px; color: var(--gray); }
.option-card-price { font-weight: 700; color: var(--primary); }
.option-card .tag-default {
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.option-card .tag-free { color: var(--success); font-weight: 600; font-size: 13px; }

/* ============================================
   22. PRODUCT DETAIL
   ============================================ */
.product-detail-layout {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 24px;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    margin-bottom: 24px;
}
.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.active { border-color: var(--primary); }
.product-main-image {
    aspect-ratio: 1/1;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-main-image .discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
}
.product-main-image .zoom-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    cursor: pointer;
}
.product-info-detail { padding: 0; }
.product-stock-tag { color: var(--success); font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 8px; }
.product-title-lg { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.product-rating-lg { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.product-rating-lg .stars { color: #FFB400; font-size: 14px; }
.product-rating-lg .review-text { color: var(--gray); font-size: 13px; }
.product-price-lg { display: flex; align-items: center; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.product-price-lg .current { color: var(--primary); font-size: 28px; font-weight: 800; }
.product-price-lg .old { color: var(--gray-soft); text-decoration: line-through; font-size: 16px; }
.product-price-lg .discount { background: var(--primary-soft); color: var(--primary); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; }
.product-features { margin: 16px 0; }
.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
}
.product-features i { color: var(--primary); width: 18px; }
.variant-section { margin: 18px 0; }
.variant-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--t-fast);
    position: relative;
}
.variant-option.selected { border-color: var(--primary); transform: scale(1.1); }
.variant-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--white);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}
.variant-option.black { background: #1A1A1A; }
.variant-option.beige { background: #E5D5C0; }
.variant-option.silver { background: #C0C0C0; }
.variant-option.pink  { background: #FFB6C1; }

.product-actions-lg { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.product-actions-lg .btn { flex: 1; min-width: 160px; }
.product-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.product-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); }
.product-trust-item i { color: var(--primary); font-size: 18px; }
.product-trust-item strong { display: block; color: var(--text); font-size: 13px; }

.seller-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 16px;
}
.seller-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.seller-header .label { font-size: 12px; color: var(--gray); }
.seller-header .name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.seller-header .name .verified { color: var(--primary); }
.seller-tag { display: inline-block; padding: 3px 8px; background: var(--primary-soft); color: var(--primary); font-size: 11px; border-radius: 4px; font-weight: 600; }
.seller-stats { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border-light); }
.seller-stat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray); }
.seller-stat i { color: var(--primary); }

.product-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 32px 0 0; flex-wrap: wrap; }
.product-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--t-fast);
}
.product-tab:hover { color: var(--text); }
.product-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { padding: 24px 0; }
.tab-content h3 { margin-bottom: 12px; }

/* Specs */
.specs-list { width: 100%; }
.specs-list .spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.specs-list .spec-row strong { color: var(--text); font-weight: 600; }
.specs-list .spec-row span { color: var(--gray); }

/* Review item */
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--gray); }
.review-stars { color: #FFB400; font-size: 13px; }
.review-text { color: var(--text); font-size: 14px; line-height: 1.7; }

/* Product highlights */
.product-highlights { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 24px 0; }
.highlight-item { text-align: center; padding: 16px 8px; }
.highlight-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.highlight-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.highlight-sub { font-size: 11px; color: var(--gray); }

/* ============================================
   23. SHOP / CATEGORY PAGE
   ============================================ */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: flex-start;
}
.shop-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}
.filter-group { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.filter-group:last-child { border-bottom: none; }
.filter-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.filter-list a, .filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: color var(--t-fast);
}
.filter-list a:hover, .filter-list label:hover { color: var(--primary); }
.filter-list .count { margin-left: auto; color: var(--gray); font-size: 12px; }
.filter-list a.active { color: var(--primary); font-weight: 600; }
.filter-list input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.price-range { display: flex; gap: 8px; margin-bottom: 8px; }
.price-range input { flex: 1; }
.range-input {
    width: 100%;
    accent-color: var(--primary);
    margin: 8px 0;
}
.rating-filter { display: flex; align-items: center; gap: 4px; color: #FFB400; }
.rating-filter .num { color: var(--gray); margin-left: 4px; }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-toolbar .results-count { color: var(--gray); font-size: 14px; }
.shop-toolbar .sort-select { display: flex; align-items: center; gap: 8px; }
.shop-toolbar .view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    cursor: pointer;
}
.view-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

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

/* ============================================
   24. DASHBOARD / ACCOUNT
   ============================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: flex-start;
}
.account-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: sticky;
    top: 140px;
}
.account-user {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--primary-soft) 0%, transparent 100%);
}
.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: var(--shadow-orange);
}
.account-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.account-email { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.account-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    border-radius: var(--radius-full);
    font-weight: 600;
}
.account-nav { padding: 8px; }
.account-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--t-fast);
    position: relative;
}
.account-nav a i { width: 18px; color: var(--gray); }
.account-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.account-nav a:hover i { color: var(--primary); }
.account-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.account-nav a.active i { color: var(--primary); }
.account-nav a .badge { margin-left: auto; }

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 20px;
}
.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.dashboard-card-title { font-size: 18px; font-weight: 700; }
.dashboard-card-sub { color: var(--gray); font-size: 13px; margin-top: 2px; }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.info-item {
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}
.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-label { font-size: 12px; color: var(--gray); margin-bottom: 2px; }
.info-value { font-weight: 600; font-size: 14px; }

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.stat-icon.orange { background: var(--primary-soft); color: var(--primary); }
.stat-icon.yellow { background: var(--warning-soft); color: var(--warning); }
.stat-icon.green  { background: var(--success-soft); color: var(--success); }
.stat-icon.purple { background: #F3E8FF; color: #9333EA; }
.stat-label { font-size: 12px; color: var(--gray); margin-bottom: 2px; }
.stat-value { font-size: 20px; font-weight: 700; }
.stat-link { font-size: 12px; color: var(--primary); display: block; margin-top: 2px; }

.order-item-row {
    display: grid;
    grid-template-columns: 56px 1fr auto auto auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.order-item-row:last-child { border-bottom: none; }
.order-item-image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg);
    overflow: hidden;
}
.order-item-image img { width: 100%; height: 100%; object-fit: cover; }
.order-item-id { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.order-item-meta { font-size: 12px; color: var(--gray); }

/* Account quick links (mobile/grid) */
.account-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.account-quick-link {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    transition: all var(--t-fast);
    color: var(--text);
    position: relative;
}
.account-quick-link:hover { border-color: var(--primary); color: var(--primary); }
.account-quick-link i { font-size: 20px; color: var(--primary); display: block; margin-bottom: 6px; }
.account-quick-link span { font-size: 12px; font-weight: 500; }
.account-quick-link .badge-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.account-quick-link.logout i { color: var(--danger); }
.account-quick-link.logout { color: var(--danger); }

/* ============================================
   25. FORMS / AUTH PAGES
   ============================================ */
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 440px;
    width: 100%;
}
.auth-card.wide { max-width: 720px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { color: var(--gray); text-align: center; margin-bottom: 28px; font-size: 14px; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--gray);
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray); }
.auth-footer a { color: var(--primary); font-weight: 600; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ============================================
   26. WISHLIST
   ============================================ */
.wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.wishlist-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wishlist-cta {
    background: linear-gradient(135deg, var(--primary-soft) 0%, #FFE4D0 100%);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.wishlist-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.wishlist-cta-content h3 { font-size: 16px; }
.wishlist-cta-content p { font-size: 13px; color: var(--gray); margin: 0; }

/* ============================================
   27. ADMIN PANEL
   ============================================ */
.admin-wrap { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar .logo { margin-bottom: 24px; padding: 0 6px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-soft);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 14px 12px 6px;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--t-fast);
}
.admin-nav a i { width: 18px; color: var(--gray); font-size: 14px; }
.admin-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.admin-nav a:hover i { color: var(--primary); }
.admin-nav a.active { background: var(--primary); color: var(--white); }
.admin-nav a.active i { color: var(--white); }
.admin-nav a .badge { margin-left: auto; }
.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    background: var(--white);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-search { flex: 1; max-width: 400px; position: relative; }
.admin-search input { width: 100%; padding: 9px 16px 9px 38px; background: var(--bg); border-radius: var(--radius-full); border: 1px solid var(--border-light); }
.admin-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-user { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-md); }
.admin-user:hover { background: var(--bg); }
.admin-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.admin-content { padding: 24px; flex: 1; }
.admin-page-header { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-page-title { font-size: 22px; font-weight: 700; }
.admin-page-sub { color: var(--gray); font-size: 14px; }
.admin-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); padding: 20px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.admin-stat-card .stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.admin-stat-card .stat-label { font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.admin-stat-card .stat-value { font-size: 26px; font-weight: 800; }
.admin-stat-card .stat-trend { font-size: 12px; margin-top: 4px; color: var(--success); }
.admin-stat-card .stat-trend.down { color: var(--danger); }

/* ============================================
   28. PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--t-fast);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-dots { padding: 0 6px; color: var(--gray); }

/* ============================================
   29. UTILITIES
   ============================================ */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }

/* ============================================
   30. RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .product-highlights { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .features-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    :root { --header-h: auto; }
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    .topbar { display: none; }
    .navbar { display: none; }
    .nav-menu { display: none; }
    .search-form { order: 3; flex: 1 0 100%; }
    .header-main { flex-wrap: wrap; gap: 12px; padding: 12px 0; justify-content: space-between;}
    .header-actions .header-action span { display: none; }
    .header-action { min-width: 40px; padding: 6px; }
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary-soft);
        color: var(--primary);
        border-radius: var(--radius-md);
        font-size: 18px;
    }
    .logo { font-size: 22px; }
    .logo-icon { width: 38px; height: 38px; font-size: 18px; }
    .header { position: sticky; top: 0; }
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 76px; }
    .cart-layout, .checkout-layout, .shop-layout, .dashboard-layout, .product-detail-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary, .shop-sidebar, .account-sidebar { position: static; }
    .product-thumbs { flex-direction: row; }
    .cart-table-header { display: none; }
    .cart-item {
        grid-template-columns: 40px 80px 1fr 40px;
        gap: 12px;
    }
    .cart-item .cart-item-price, .cart-item .cart-item-total { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .info-grid, .account-quick-links { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); transition: transform var(--t-base); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .product-highlights { grid-template-columns: repeat(3, 1fr); }
    .quick-stats { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .container { padding: 0 14px; }
    .section { padding: 32px 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .products-grid.cols-3, .products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .product-info { padding: 10px; }
    .product-title { font-size: 13px; min-height: 36px; }
    .price-current { font-size: 14px; }
    .product-highlights { grid-template-columns: repeat(2, 1fr); }
    .features-strip { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 24px; }
    .product-trust { grid-template-columns: 1fr 1fr; }
    .promo-card { flex-direction: column; text-align: center; }
    .promo-img { font-size: 60px; }
    .section-title { font-size: 18px; }
    .stat-grid { grid-template-columns: 1fr; }
    .topbar-mobile { display: block; background: var(--primary); color: var(--white); text-align: center; font-size: 12px; padding: 6px; }
}
@media (max-width: 480px) {
    .cart-item { grid-template-columns: 1fr; }
    .cart-item-image { width: 100%; height: 160px; }
    .product-card { font-size: 12px; }
    .info-grid, .account-quick-links { grid-template-columns: 1fr 1fr; }
}

