/**
 * ============================================================
 * DeltaStore — Premium Redesign v4
 * Primary: #2563eb (blue) — preserved as requested
 * ============================================================
 */

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

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    /* Brand — ORIGINAL BLUE kept */
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-deeper: #1e3a8a;
    --primary-light:  #dbeafe;
    --primary-glow:   rgba(37,99,235,.18);

    /* Semantic */
    --success: #10b981; --success-s: #d1fae5;
    --danger:  #ef4444; --danger-s:  #fee2e2;
    --warning: #f59e0b; --warning-s: #fef3c7;
    --info:    #3b82f6; --info-s:    #dbeafe;

    /* Neutral */
    --dark:       #1e293b;
    --ink:        #0f172a;
    --text:       #334155;
    --muted:      #94a3b8;
    --border:     #e2e8f0;
    --surface:    #ffffff;
    --canvas:     #f8fafc;
    --light:      #f8fafc;
    --gray:       #94a3b8;
    --gray-light: #e2e8f0;
    --white:      #ffffff;

    /* Radius */
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl:28px;

    /* Shadow */
    --shadow:    0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 4px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
    --shadow-lg: 0 12px 40px rgba(15,23,42,.12), 0 4px 8px rgba(15,23,42,.05);
    --shadow-brand: 0 8px 24px -4px rgba(37,99,235,.35);

    /* Motion */
    --transition: all 0.22s cubic-bezier(.16,1,.3,1);

    /* Admin tokens */
    --adm-side:    #1e293b;
    --adm-side2:   #0f172a;
    --adm-accent:  #2563eb;
    --adm-canvas:  #f1f5f9;
    --adm-surface: #ffffff;
    --adm-border:  #e2e8f0;
    --adm-text:    #1e293b;
    --adm-muted:   #94a3b8;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.6; color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; line-height: 1.2; color: var(--ink); margin-bottom: .5rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.container-fluid { width: 100%; padding: 0 1.25rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.col { flex: 1; padding: 0 .75rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; padding: .7rem 1.5rem; font-size: .9rem; font-weight: 700;
    border-radius: var(--radius-lg); cursor: pointer; transition: var(--transition);
    border: 2px solid transparent; font-family: inherit; white-space: nowrap; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 28px -4px rgba(37,99,235,.42); }
.btn-secondary { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-secondary:hover { background: var(--ink); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-sm { padding: .42rem .85rem; font-size: .82rem; border-radius: var(--radius); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; margin-bottom: .45rem; font-weight: 700; font-size: .84rem; color: var(--ink); }
.form-control {
    width: 100%; padding: .72rem 1rem; border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: .9rem; font-family: inherit;
    color: var(--text); background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; position: relative; font-weight: 500; font-size: .9rem; }
.alert-success { background: var(--success-s); color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: var(--danger-s);  color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-s); color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: var(--info-s);    color: #1e40af; border: 1px solid #bfdbfe; }
.btn-close { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); background: none; border: none; font-size: 1.1rem; cursor: pointer; color: inherit; opacity: .5; }
.btn-close:hover { opacity: 1; }

/* ============================================================
   STORE HEADER
   ============================================================ */
.header { background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }

.header-top { background: var(--ink); color: rgba(255,255,255,.7); padding: .5rem 0; font-size: .8rem; text-align: center; }

.header-main { padding: 1rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* Logo */
.logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.65rem; font-weight: 900; color: var(--primary); letter-spacing: -.03em; flex-shrink: 0; }
.logo span { color: var(--ink); }

/* Search */
.search-bar { flex: 1; max-width: 500px; position: relative; }
.search-bar input { width: 100%; padding: .7rem 3rem .7rem 1.1rem; border: 1.5px solid var(--border); border-radius: 50px; font-size: .88rem; font-family: inherit; background: var(--canvas); color: var(--text); transition: all .2s; }
.search-bar input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-bar button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: var(--primary); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: background .2s; }
.search-bar button:hover { background: var(--primary-dark); }

/* Actions */
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-action { display: flex; flex-direction: column; align-items: center; gap: .2rem; color: var(--text); font-size: .75rem; font-weight: 600; position: relative; cursor: pointer; padding: .4rem; border-radius: var(--radius); transition: all .2s; }
.header-action:hover { color: var(--primary); background: var(--primary-light); }
.header-action svg, .header-action i { font-size: 1.2rem; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: var(--danger); color: #fff; font-size: .65rem; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--surface); }

/* Nav */
.nav-menu { background: var(--primary); }
.nav-menu ul { display: flex; gap: 0; }
.nav-menu a { display: block; padding: .8rem 1.2rem; color: rgba(255,255,255,.8); font-weight: 600; font-size: .87rem; transition: all .2s; border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: #fff; background: var(--primary-dark); }
.nav-menu a.active { color: #fff; border-bottom-color: rgba(255,255,255,.5); background: var(--primary-dark); }

/* ============================================================
   HERO — Blue gradient, enhanced
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deeper) 100%);
    color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 75% 50%, rgba(255,255,255,.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 5% 90%, rgba(255,255,255,.04) 0%, transparent 60%);
}
.hero::after {
    content: ''; position: absolute; top: -80px; right: -80px; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 65%); border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }

/* Hero eyebrow */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9); padding: .32rem .85rem; border-radius: 50px;
    font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.hero-content h1 { font-size: clamp(2rem,4vw,3.25rem); font-weight: 900; color: #fff; margin-bottom: 1rem; line-height: 1.1; letter-spacing: -.02em; }
.hero-content p { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn-white { background: #fff; color: var(--primary); font-weight: 800; border: none; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.hero-cta .btn-white:hover { background: var(--primary-light); transform: translateY(-2px); }
.hero-cta .btn-ghost-white { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.hero-cta .btn-ghost-white:hover { background: rgba(255,255,255,.2); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat-number { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 900; color: #fff; }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 600; margin-top: .1rem; }
.hero-image { display: flex; align-items: center; justify-content: center; }
.hero-visual {
    width: 100%; max-width: 400px; aspect-ratio: 1;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-2xl); display: flex; align-items: center; justify-content: center;
    font-size: 6rem; position: relative; overflow: hidden;
}
.hero-visual::after { content: '🛒'; filter: drop-shadow(0 8px 20px rgba(0,0,0,.2)); }

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features-bar { background: var(--surface); padding: 1.75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.feature-item { display: flex; align-items: center; gap: 1rem; }
.feature-icon { width: 48px; height: 48px; flex-shrink: 0; background: var(--primary-light); color: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.feature-text h4 { font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: .1rem; }
.feature-text p { font-size: .78rem; color: var(--muted); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 3.5rem 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.25rem; }
.section-title { font-size: clamp(1.4rem,2.5vw,1.9rem); color: var(--ink); margin: 0; }
.section-title::after { content: ''; display: block; width: 44px; height: 4px; background: var(--primary); margin-top: .5rem; border-radius: 2px; }
.view-all { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--primary); padding: .45rem .9rem; border: 1.5px solid var(--border); border-radius: 50px; transition: all .2s; }
.view-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 1rem; }
.category-card {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius-xl); padding: 1.75rem 1rem;
    text-align: center; cursor: pointer; transition: all .22s;
    position: relative; overflow: hidden;
}
.category-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deeper) 100%);
    opacity: 0; transition: opacity .22s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.category-card:hover::before { opacity: 1; }
.category-card:hover .category-icon,
.category-card:hover .category-name { position: relative; z-index: 1; }
.category-icon { width: 56px; height: 56px; margin: 0 auto 1rem; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transition: all .22s; }
.category-card:hover .category-icon { background: rgba(255,255,255,.2); color: #fff; }
.category-name { font-weight: 700; font-size: .9rem; color: var(--ink); transition: color .22s; }
.category-card:hover .category-name { color: #fff; }

/* ============================================================
   PRODUCT CARDS — Premium
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 1.25rem; }
.product-card {
    background: var(--surface); border-radius: var(--radius-xl);
    overflow: hidden; border: 1.5px solid var(--border);
    transition: all .22s; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-badge { position: absolute; top: .85rem; left: .85rem; padding: .3rem .7rem; border-radius: 50px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; z-index: 10; }
.badge-sale     { background: var(--danger);  color: #fff; }
.badge-new      { background: var(--success); color: #fff; }
.badge-featured { background: var(--warning); color: #fff; }
.product-image { position: relative; height: 220px; overflow: hidden; background: var(--canvas); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-actions { position: absolute; bottom: -50px; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; padding: .75rem; background: linear-gradient(transparent,rgba(15,23,42,.65)); transition: bottom .22s; }
.product-card:hover .product-actions { bottom: 0; }
.product-action-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: all .2s; box-shadow: var(--shadow); }
.product-action-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.product-info { padding: 1.1rem 1.2rem 1.25rem; }
.product-category { font-size: .7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.product-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.45; margin: .4rem 0 .6rem; min-height: 2.6em; }
.product-title:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: .4rem; margin-bottom: .75rem; }
.stars { color: #fbbf24; font-size: .82rem; }
.rating-count { font-size: .76rem; color: var(--muted); }
.product-price { display: flex; align-items: baseline; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.price-old { font-size: .85rem; color: var(--muted); text-decoration: line-through; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail { padding: 2rem 0 3rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.product-gallery { background: var(--surface); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); border: 1.5px solid var(--border); }
.gallery-main { height: 440px; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.product-details h1 { font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: .75rem; }
.product-meta { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1.5px solid var(--border); }
.product-price-display { margin-bottom: 1.75rem; }
.price-big { font-size: 2.2rem; font-weight: 900; color: var(--primary); letter-spacing: -.03em; }
.quantity-selector { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-lg); width: fit-content; overflow: hidden; }
.qty-btn { width: 40px; height: 40px; background: var(--canvas); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; transition: background .2s; }
.qty-btn:hover { background: var(--border); }
.qty-input { width: 52px; height: 40px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); font-size: .95rem; font-weight: 700; background: var(--surface); }
.product-detail-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.product-detail-actions .btn { flex: 1; }

/* ============================================================
   CART
   ============================================================ */
.cart-page { padding: 2rem 0 3rem; }
.cart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.cart-items { background: var(--surface); border-radius: var(--radius-xl); border: 1.5px solid var(--border); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-image { width: 90px; height: 90px; background: var(--canvas); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details h4 { font-size: .92rem; font-weight: 700; margin-bottom: .35rem; }
.cart-item-price { color: var(--primary); font-weight: 800; font-size: 1.05rem; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.remove-btn { color: var(--danger); font-size: .82rem; cursor: pointer; background: none; border: none; font-weight: 600; }
.remove-btn:hover { text-decoration: underline; }
.cart-summary { background: var(--surface); border-radius: var(--radius-xl); border: 1.5px solid var(--border); padding: 1.5rem; height: fit-content; position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: .85rem; font-size: .9rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 800; color: var(--primary); padding-top: 1rem; border-top: 1.5px solid var(--border); margin-top: 1rem; }
.coupon-form { display: flex; gap: .5rem; margin: 1.25rem 0; }
.coupon-form input { flex: 1; }
.empty-cart { text-align: center; padding: 4rem 2rem; }
.empty-cart-icon { font-size: 4rem; color: var(--border); margin-bottom: 1rem; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.checkout-form { background: var(--surface); border-radius: var(--radius-xl); border: 1.5px solid var(--border); padding: 2rem; }
.form-section { margin-bottom: 2rem; }
.form-section-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1.5px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.payment-methods { display: flex; flex-direction: column; gap: .75rem; }
.payment-method { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all .2s; }
.payment-method:hover, .payment-method.active { border-color: var(--primary); background: var(--primary-light); }
.payment-method input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ============================================================
   ORDER SUCCESS
   ============================================================ */
.order-success { text-align: center; padding: 5rem 2rem; }
.success-icon { width: 90px; height: 90px; background: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 2rem; box-shadow: 0 12px 32px rgba(16,185,129,.3); }
.order-number { background: var(--primary-light); color: var(--primary); padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 800; font-size: 1.05rem; display: inline-block; margin: 1rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding: 4rem 0 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .88rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: #fff; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; color: rgba(255,255,255,.45); font-size: .88rem; }
.footer-contact i { color: var(--primary); margin-top: .2rem; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.3); }

/* ============================================================
   AUTH
   ============================================================ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: linear-gradient(135deg, var(--primary-light) 0%, var(--canvas) 100%); }
.auth-card { background: var(--surface); border-radius: var(--radius-2xl); padding: 2.75rem; box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; border: 1.5px solid var(--border); }
.auth-card .logo { text-align: center; margin-bottom: 2rem; }
.auth-title { text-align: center; margin-bottom: .4rem; font-size: 1.5rem; }
.auth-subtitle { text-align: center; color: var(--muted); margin-bottom: 2rem; font-size: .88rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: .88rem; }
.auth-footer a { color: var(--primary); font-weight: 700; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); font-weight: 700; font-size: .88rem; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); transition: all .2s; }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination span.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   SHOP / FILTERS
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.filters-sidebar { background: var(--surface); border-radius: var(--radius-xl); border: 1.5px solid var(--border); padding: 1.5rem; height: fit-content; position: sticky; top: 90px; }
.filter-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title { font-size: .92rem; font-weight: 800; margin-bottom: .85rem; color: var(--ink); }
.filter-list li { margin-bottom: .4rem; }
.filter-list a { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; padding: .3rem 0; font-weight: 500; }
.filter-list a:hover, .filter-list a.active { color: var(--primary); }
.filter-list .count { background: var(--canvas); padding: .1rem .45rem; border-radius: 6px; font-size: .72rem; font-weight: 700; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { background: var(--surface); padding: .9rem 0; border-bottom: 1px solid var(--border); }
.breadcrumb-inner { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.breadcrumb-inner a { color: var(--text); font-weight: 600; }
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-separator { color: var(--border); }

/* ============================================================
   ACCOUNT
   ============================================================ */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.account-sidebar { background: var(--surface); border-radius: var(--radius-xl); border: 1.5px solid var(--border); padding: 1.5rem; height: fit-content; }
.account-menu li { margin-bottom: .2rem; }
.account-menu a { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-radius: var(--radius); color: var(--muted); font-size: .88rem; font-weight: 600; transition: all .2s; }
.account-menu a:hover, .account-menu a.active { background: var(--primary-light); color: var(--primary); }
.account-content { background: var(--surface); border-radius: var(--radius-xl); border: 1.5px solid var(--border); padding: 2rem; }

/* ============================================================
   ORDERS
   ============================================================ */
.order-card { border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.order-number { font-weight: 800; color: var(--primary); }
.order-status { padding: .3rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.status-pending    { background: var(--warning-s); color: #92400e; }
.status-processing { background: var(--info-s);    color: #1e40af; }
.status-shipped    { background: #e0e7ff;           color: #3730a3; }
.status-delivered  { background: var(--success-s);  color: #065f46; }
.status-cancelled  { background: var(--danger-s);   color: #991b1b; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; } .text-right { text-align: right; }
.text-primary { color: var(--primary); } .text-success { color: var(--success); }
.text-danger { color: var(--danger); } .text-gray { color: var(--gray); }
.bg-white { background: var(--white); } .bg-light { background: var(--light); }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.d-flex{display:flex}.justify-between{justify-content:space-between}.align-center{align-items:center}
.gap-1{gap:.5rem}.gap-2{gap:1rem}.w-100{width:100%}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.fade-in { animation: fadeIn .4s ease forwards; }

/* ============================================================
   ADMIN DASHBOARD — Full redesign, blue accent kept
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-layout * { font-family: 'Inter', sans-serif; }

/* ---- Sidebar ---- */
.admin-sidebar {
    background: linear-gradient(180deg, #1e3a8a 0%, #1e293b 100%);
    color: #fff; padding: 0;
    position: fixed; width: 248px; height: 100vh;
    overflow-y: auto; display: flex; flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.04);
    box-shadow: 4px 0 24px rgba(15,23,42,.12);
}
.admin-sidebar::-webkit-scrollbar { width: 3px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* Logo */
.admin-sidebar .logo {
    display: flex; align-items: center; gap: .85rem;
    padding: 1.4rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar .logo::before {
    content: ''; width: 34px; height: 34px; flex-shrink: 0;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    border-radius: 9px; box-shadow: 0 4px 14px rgba(37,99,235,.45);
}
.admin-sidebar .logo a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem; font-weight: 800; color: #fff; letter-spacing: -.01em; line-height: 1.1; }
.admin-sidebar .logo a + div { font-size: .68rem; color: rgba(255,255,255,.35); font-weight: 500; margin-top: .1rem; }

/* Eyebrow */
.admin-sidebar-eyebrow { font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.28); padding: 1.2rem 1.25rem .45rem; display: block; }

/* Menu */
.admin-menu { padding: .5rem .7rem; flex: 1; }
.admin-menu li { margin-bottom: .15rem; }
.admin-menu a {
    display: flex; align-items: center; gap: .8rem;
    padding: .65rem .9rem; border-radius: 9px;
    color: rgba(255,255,255,.55); font-size: .84rem; font-weight: 600;
    transition: all .18s; position: relative; text-decoration: none;
}
.admin-menu a i { width: 16px; text-align: center; font-size: .88rem; color: rgba(255,255,255,.35); transition: color .18s; }
.admin-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu a:hover i { color: rgba(255,255,255,.7); }
.admin-menu a.active {
    background: linear-gradient(135deg, rgba(37,99,235,.7) 0%, rgba(29,78,216,.8) 100%);
    color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.admin-menu a.active i { color: #93c5fd; }

/* Main content */
.admin-main { margin-left: 248px; padding: 1.5rem 1.75rem 3rem; min-height: 100vh; background: var(--adm-canvas, #f1f5f9); }

/* Top bar */
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    padding: 1rem 1.4rem; border-radius: var(--radius-xl);
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.admin-header h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.admin-header p { color: var(--muted); margin: 0; font-size: .8rem; margin-top: .15rem; }
.admin-header > div:last-child { display: flex; align-items: center; gap: 1.1rem; }

/* ---- Stat Cards — with visual flair ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1rem; }

.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem;
    position: relative; overflow: hidden;
    transition: all .22s;
}
/* Decorative circle on stat cards */
.stat-card::after {
    content: ''; position: absolute; right: -18px; top: -18px;
    width: 80px; height: 80px; border-radius: 50%;
    opacity: .07; transition: opacity .22s;
}
.stat-card.blue-card::after  { background: #2563eb; }
.stat-card.green-card::after  { background: #10b981; }
.stat-card.orange-card::after { background: #f59e0b; }
.stat-card.red-card::after    { background: #ef4444; }

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card:hover::after { opacity: .14; }

.stat-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: transform .22s; }
.stat-card:hover .stat-icon { transform: scale(1.12) rotate(-6deg); }
.stat-icon.blue   { background: #dbeafe; color: #2563eb; }
.stat-icon.green  { background: var(--success-s); color: var(--success); }
.stat-icon.orange { background: var(--warning-s); color: var(--warning); }
.stat-icon.red    { background: var(--danger-s);  color: var(--danger); }

.stat-info h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.55rem; font-weight: 900; margin-bottom: .15rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stat-info p  { font-size: .76rem; color: var(--muted); font-weight: 600; margin: 0; }

/* Admin card */
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.admin-card-header h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .92rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: .5rem; margin: 0; }
.admin-card-header h3 i { color: var(--primary); }
.admin-card-header .btn-outline { color: var(--primary); border-color: var(--border); background: var(--surface); font-size: .78rem; padding: .35rem .8rem; }
.admin-card-header .btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.admin-table th, .admin-table td { padding: .82rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 2px solid var(--border); white-space: nowrap; background: transparent; }
.admin-table tbody tr:hover { background: #eff6ff; }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge { padding: .28rem .65rem; border-radius: 50px; font-size: .7rem; font-weight: 700; display: inline-block; letter-spacing: .02em; }
.table-actions { display: flex; gap: .4rem; }
.table-actions .btn-sm { padding: .35rem .7rem; font-size: .78rem; }

/* Chart */
.chart-container { position: relative; height: 280px; }

/* Admin login */
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--dark) 100%); padding: 2rem; }
.admin-login-card { background: rgba(255,255,255,.05); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-2xl); padding: 2.5rem; width: 100%; max-width: 400px; }
.admin-login-card .logo { text-align: center; margin-bottom: 1.75rem; color: #fff; justify-content: center; }
.admin-login-card h2 { text-align: center; color: #fff; margin-bottom: .4rem; font-size: 1.4rem; }
.admin-login-card p { text-align: center; color: rgba(255,255,255,.45); font-size: .88rem; margin-bottom: 2rem; }
.admin-login-card .form-control { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #fff; }
.admin-login-card .form-control::placeholder { color: rgba(255,255,255,.3); }
.admin-login-card .form-control:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.15); }
.admin-login-card .form-label { color: rgba(255,255,255,.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { display: none; }
    .features-grid { grid-template-columns: repeat(2,1fr); }
    .categories-grid { grid-template-columns: repeat(3,1fr); }
    .products-grid { grid-template-columns: repeat(2,1fr); }
    .product-detail-grid { grid-template-columns: 1fr; }
    .shop-layout, .account-layout { grid-template-columns: 1fr; }
    .filters-sidebar, .account-sidebar { position: static; }
    .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .header-main .search-bar { display: none; }
    .nav-menu ul { overflow-x: auto; white-space: nowrap; }
    .hero-content h1 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 0; }
    .hero-content h1 { font-size: 1.7rem; }
    .section { padding: 2rem 0; }
    .auth-card { padding: 1.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
}
