@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --primary:       #E11D48;
    --primary-dark:  #BE123C;
    --primary-light: #FB7185;
    --accent:        #F59E0B;
    --accent-dark:   #D97706;
    --dark:          #1C1917;
    --dark-2:        #292524;
    --gray-100:      #FAFAF9;
    --gray-200:      #E7E5E4;
    --gray-400:      #A8A29E;
    --gray-600:      #57534E;
    --gray-800:      #44403C;
    --white:         #FFFFFF;
    --success:       #10B981;
    --warning:       #F59E0B;
    --danger:        #EF4444;
    --info:          #3B82F6;
    --radius-sm:     6px;
    --radius:        12px;
    --radius-lg:     20px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow:        0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
    --transition:    0.25s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--dark); background: var(--gray-100); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.4rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; border: none; transition: all var(--transition); cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 14px rgba(225,29,72,.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-1px); }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 2.2rem; height: 2.2rem; padding: 0; justify-content: center; border-radius: 50%; }

/* ─── Badge ──────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: white; }
.badge-best-seller { background: var(--primary); }
.badge-new-flavor  { background: var(--success); }
.badge-classic     { background: var(--gray-800); }
.badge-extra-hot   { background: var(--accent); }
.badge-limited     { background: #7c3aed; }

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(250,250,249,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); padding: .9rem 0; }
.navbar-inner { display: flex; align-items: center; gap: 2rem; }
.navbar-brand { font-size: 1.1rem; font-weight: 900; color: var(--primary); letter-spacing: -.02em; white-space: nowrap; }
.navbar-brand span { color: var(--dark); }
.navbar-nav { display: flex; align-items: center; gap: 1.75rem; margin: 0 auto; }
.navbar-nav a { font-size: .9rem; font-weight: 500; color: var(--gray-600); transition: color var(--transition); position: relative; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); }
.navbar-nav a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 2px; }
.navbar-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.search-box { display: flex; align-items: center; gap: .5rem; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: .4rem .85rem; }
.search-box input { border: none; background: none; outline: none; font-size: .85rem; width: 130px; color: var(--dark); }
.search-box svg { color: var(--gray-400); flex-shrink: 0; }
.cart-btn { position: relative; display: flex; align-items: center; gap: .4rem; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: .45rem .85rem; font-size: .85rem; font-weight: 600; transition: all var(--transition); }
.cart-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--primary); color: white; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--gray-100); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(192,0,14,.08) 0%, rgba(249,115,22,.05) 100%); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .15; }
.hero-content { position: relative; z-index: 1; padding: 5rem 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: white; border: 1px solid var(--gray-200); border-radius: 20px; padding: .3rem .85rem; font-size: .78rem; font-weight: 600; color: var(--primary); margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.05; margin-bottom: 1.25rem; }
.hero-title .highlight { color: var(--primary); }
.hero-desc { color: var(--gray-600); font-size: 1rem; max-width: 440px; line-height: 1.65; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-card { background: white; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); text-align: center; max-width: 200px; border: 1px solid var(--gray-200); }
.hero-card img { width: 90px; margin: 0 auto 1rem; }
.hero-card-name { font-size: .95rem; font-weight: 800; color: var(--primary); letter-spacing: .02em; }

/* ─── Section ────────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p { color: var(--gray-600); font-size: .95rem; }

/* ─── Product Card ───────────────────────────────────────────────────────── */
.product-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; transition: all var(--transition); position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: transparent; }
.product-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge { position: absolute; top: .75rem; left: .75rem; z-index: 1; }
.product-card-body { padding: 1.1rem; }
.product-card-name { font-weight: 700; font-size: 1rem; margin-bottom: .35rem; }
.product-card-desc { color: var(--gray-600); font-size: .82rem; line-height: 1.5; margin-bottom: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 800; font-size: 1rem; color: var(--dark); }
.add-cart-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); flex-shrink: 0; }
.add-cart-btn:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ─── Stars ──────────────────────────────────────────────────────────────── */
.stars { display: flex; gap: 2px; }
.star { color: #FFC107; font-size: .85rem; }
.star.empty { color: var(--gray-200); }

/* ─── Grid ───────────────────────────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ─── Feature Cards (Anatomy of Fire) ───────────────────────────────────── */
.feature-card { background: white; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--gray-200); transition: all var(--transition); }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card.highlighted { background: linear-gradient(135deg, #fff5f5, #fff); border-color: rgba(192,0,14,.15); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.4rem; }
.feature-icon.red { background: rgba(192,0,14,.1); }
.feature-icon.orange { background: rgba(249,115,22,.1); }
.feature-icon.green { background: rgba(22,163,74,.1); }
.feature-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.feature-card p { color: var(--gray-600); font-size: .875rem; line-height: 1.65; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer-brand { font-size: 1.1rem; font-weight: 900; color: white; margin-bottom: .75rem; }
.footer-desc { font-size: .82rem; line-height: 1.65; max-width: 220px; }
.footer-col h4 { color: white; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .6rem; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .8rem; text-align: center; color: rgba(255,255,255,.4); }
.newsletter-form { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter-form input { flex: 1; padding: .5rem .85rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: white; font-size: .85rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form button { padding: .5rem .85rem; border-radius: var(--radius-sm); background: var(--primary); color: white; border: none; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--primary-dark); }

/* ─── Alert / Flash ──────────────────────────────────────────────────────── */
.alert { padding: .9rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; display: flex; align-items: center; gap: .75rem; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .45rem; color: var(--gray-800); }
.form-control { width: 100%; padding: .65rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .9rem; color: var(--dark); background: white; transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,0,14,.08); }
.form-control.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: .8rem; margin-top: .3rem; }
select.form-control { cursor: pointer; }

/* ─── Shop Filter Sidebar ────────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filter-sidebar { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.5rem; position: sticky; top: 80px; }
.filter-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.5rem; }
.filter-section { margin-bottom: 1.5rem; }
.filter-section-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: .85rem; }
.filter-checkbox { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .88rem; color: var(--gray-600); margin-bottom: .6rem; transition: color var(--transition); }
.filter-checkbox:hover { color: var(--dark); }
.filter-checkbox input[type="checkbox"] { width: 16px; height: 16px; border-radius: 4px; accent-color: var(--primary); }
.size-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-btn { padding: .35rem .9rem; border-radius: 20px; border: 1.5px solid var(--gray-200); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all var(--transition); background: white; color: var(--gray-600); }
.size-btn:hover, .size-btn.active { border-color: var(--primary); background: var(--primary); color: white; }
.price-range { width: 100%; accent-color: var(--primary); }
.price-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--gray-600); margin-top: .35rem; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 2.5rem; }
.pagination a, .pagination span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .88rem; font-weight: 600; transition: all var(--transition); border: 1.5px solid transparent; }
.pagination a { color: var(--gray-600); border-color: var(--gray-200); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination span.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination span.dots { border: none; color: var(--gray-400); }

/* ─── Cart ───────────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: .75rem 1rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); border-bottom: 1px solid var(--gray-200); }
.cart-table td { padding: 1rem; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.cart-product-info { display: flex; align-items: center; gap: 1rem; }
.cart-product-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-product-name { font-weight: 600; font-size: .9rem; }
.cart-product-size { color: var(--gray-400); font-size: .8rem; }
.qty-input { width: 60px; text-align: center; padding: .35rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; }
.order-summary { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.5rem; position: sticky; top: 80px; }
.order-summary h3 { margin-bottom: 1.25rem; font-size: 1rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: .9rem; color: var(--gray-600); }
.summary-row.total { font-weight: 700; color: var(--dark); font-size: 1.05rem; border-top: 1px solid var(--gray-200); padding-top: .75rem; margin-top: .25rem; }

/* ─── Admin Layout ───────────────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: #0F172A; border-right: none; padding: 1.5rem 0; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; }
.admin-brand { padding: 0 1.5rem 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-brand-name { font-size: 1.15rem; font-weight: 900; color: white; line-height: 1.1; letter-spacing: -0.02em; }
.admin-brand-sub { font-size: .75rem; color: var(--gray-400); margin-top: .15rem; font-weight: 500; }
.admin-nav { flex: 1; padding: 0 1rem; }
.admin-nav a { display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; color: var(--gray-400); margin-bottom: .4rem; transition: all var(--transition); border-left: 3px solid transparent; }
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: white; }
.admin-nav a.active { background: rgba(59,130,246,0.15); color: #3B82F6; font-weight: 700; border-left-color: #3B82F6; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1rem; padding-left: calc(1rem + 3px); }
.admin-nav a svg { flex-shrink: 0; }
.admin-sidebar-footer { padding: 1rem 1.5rem 0; margin-top: auto; display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-footer a, .admin-sidebar-footer button { color: var(--gray-400) !important; transition: color var(--transition); }
.admin-sidebar-footer a:hover, .admin-sidebar-footer button:hover { color: white !important; }
.admin-main { margin-left: 250px; flex: 1; background: #F8FAFC; min-height: 100vh; }
.admin-topbar { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.04); padding: 1.2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.admin-content { padding: 2.5rem; }
.admin-title { font-size: 1.85rem; font-weight: 900; margin-bottom: .25rem; color: var(--dark); letter-spacing: -0.02em; }
.admin-subtitle { color: var(--gray-600); font-size: .95rem; }

/* ─── Stats Card ─────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.03); transition: transform var(--transition), box-shadow var(--transition); }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.stat-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon.red { background: linear-gradient(135deg, rgba(192,0,14,.15) 0%, rgba(192,0,14,.05) 100%); color: var(--primary); }
.stat-icon.orange { background: linear-gradient(135deg, rgba(249,115,22,.15) 0%, rgba(249,115,22,.05) 100%); color: var(--accent); }
.stat-icon.blue { background: linear-gradient(135deg, rgba(59,130,246,.15) 0%, rgba(59,130,246,.05) 100%); color: var(--info); }
.stat-icon.green { background: linear-gradient(135deg, rgba(22,163,74,.15) 0%, rgba(22,163,74,.05) 100%); color: var(--success); }
.stat-value { font-size: 1.85rem; font-weight: 900; color: var(--dark); margin-bottom: .4rem; letter-spacing: -0.02em; }
.stat-change { font-size: .8rem; color: var(--gray-400); display: flex; align-items: center; gap: .4rem; font-weight: 500; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ─── Admin Table ────────────────────────────────────────────────────────── */
.admin-table-wrapper { background: white; border-radius: var(--radius-lg); border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.03); overflow: hidden; }
.admin-table-header { padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,0.03); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 1rem 1.5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); background: rgba(0,0,0,0.01); border-bottom: 1px solid rgba(0,0,0,0.03); }
.admin-table td { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.03); font-size: .875rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,0,0,0.01); }
.customer-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: white; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(192,0,14,0.2); }
.customer-info { display: flex; align-items: center; gap: .85rem; }

/* ─── Status Badge ───────────────────────────────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending    { background: #fff7ed; color: var(--accent); }
.status-processing { background: #eff6ff; color: var(--info); }
.status-shipped    { background: #f5f3ff; color: #7c3aed; }
.status-delivered  { background: #f0fdf4; color: var(--success); }
.status-cancelled  { background: #fef2f2; color: var(--danger); }

/* ─── Chart container ────────────────────────────────────────────────────── */
.chart-card { background: white; border-radius: var(--radius-lg); border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.03); padding: 1.75rem; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.chart-title { font-weight: 800; font-size: 1.1rem; color: var(--dark); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; margin-bottom: 2rem; }

/* ─── Top Flavors ────────────────────────────────────────────────────────── */
.top-flavor-item { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--gray-200); }
.top-flavor-item:last-child { border-bottom: none; }
.top-flavor-img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--gray-100); flex-shrink: 0; }
.top-flavor-name { font-weight: 600; font-size: .875rem; }
.top-flavor-sales { color: var(--gray-400); font-size: .78rem; }
.top-flavor-revenue { font-weight: 700; color: var(--primary); font-size: .875rem; margin-left: auto; }

/* ─── Login Page ─────────────────────────────────────────────────────────── */
.auth-wrapper { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-left { position: relative; overflow: hidden; }
.auth-left img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-left-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 40%, rgba(0,0,0,.25) 100%); }
.auth-left-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 3rem; color: white; }
.auth-left-content h1 { font-size: 3rem; font-weight: 900; line-height: 1.0; margin-bottom: 1rem; }
.auth-left-content p { font-size: .95rem; color: rgba(255,255,255,.75); line-height: 1.65; }
.auth-left-logo { position: absolute; top: 2rem; left: 2rem; display: flex; align-items: center; gap: .75rem; }
.auth-left-logo-box { background: white; border-radius: var(--radius-sm); padding: .5rem; }
.auth-left-logo-box img { width: 36px; }
.auth-left-logo-text { color: white; font-weight: 700; font-size: 1.05rem; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 3rem; background: white; }
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-title { font-size: 2rem; font-weight: 800; margin-bottom: .4rem; }
.auth-sub { color: var(--gray-600); font-size: .9rem; margin-bottom: 2rem; }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray-100); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 1.5rem; }
.role-tab { text-align: center; padding: .55rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; color: var(--gray-600); cursor: pointer; transition: all var(--transition); border: none; background: none; }
.role-tab.active { background: white; color: var(--dark); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .navbar-nav { display: none; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-main { margin-left: 0; }
}
@media (max-width: 480px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
