/* =============================================================
   NatureMart — Main Stylesheet
   Theme: Forest Green × Emerald × Warm Amber (Nature E-commerce)
   ============================================================= */

/* ---- Variables ---- */
:root {
    --primary:       #16a34a;
    --primary-dark:  #14532d;
    --primary-light: #4ade80;
    --secondary:     #d97706;
    --accent:        #059669;
    --gold:          #f59e0b;
    --danger:        #ef4444;
    --success:       #15803d;
    --warning:       #f59e0b;

    --bg:            #f0fdf4;
    --surface:       #ffffff;
    --nav-bg:        #052e16;
    --footer-bg:     #031a0d;

    --text:          #0f172a;
    --text-sec:      #374151;
    --text-muted:    #6b7280;
    --border:        #e2e8f0;
    --border-light:  #ecfdf5;

    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow:        0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:     0 10px 30px rgba(0,0,0,.12);
    --shadow-xl:     0 20px 50px rgba(0,0,0,.15);

    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --radius-full:   9999px;

    --transition:    0.25s cubic-bezier(.4,0,.2,1);
    --font:          'Inter', system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
    background: var(--primary-dark);
    color: #94a3b8;
    font-size: .78rem;
    padding: 6px 0;
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar a { color: #94a3b8; }
.topbar a:hover { color: var(--accent); }

/* ================================================================
   NAVBAR
   ================================================================ */
.nova-navbar {
    background: var(--nav-bg);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.logo-text span {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search bar */
.search-form { flex: 1; max-width: 520px; margin: 0 24px; }
.search-wrap {
    display: flex;
    background: #fff;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow var(--transition);
}
.search-wrap:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search-cat {
    border: none;
    outline: none;
    background: #f1f5f9;
    padding: 0 12px;
    font-size: .82rem;
    color: var(--text);
    border-right: 1px solid var(--border);
    min-width: 90px;
    cursor: pointer;
}
.search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: .9rem;
    background: transparent;
}
.search-wrap button {
    background: var(--primary);
    border: none;
    padding: 10px 18px;
    color: #fff;
    cursor: pointer;
    transition: background var(--transition);
}
.search-wrap button:hover { background: var(--accent); }

/* Nav icons */
.nav-icons { display: flex; align-items: center; gap: 6px; }
.nav-icon {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.85);
    border-radius: var(--radius-full);
    transition: background var(--transition), color var(--transition);
    font-size: 1.1rem;
    cursor: pointer;
}
.nav-icon:hover { background: rgba(255,255,255,.1); color: #fff; }
.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.nova-navbar .nav-link { color: rgba(255,255,255,.8) !important; font-weight: 500; font-size: .92rem; padding: 8px 14px !important; border-radius: var(--radius-sm); }
.nova-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.nova-navbar .dropdown-menu { background: #fff; border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 8px 0; min-width: 220px; }
.nova-navbar .dropdown-item { padding: 8px 16px; font-size: .9rem; }
.nova-navbar .dropdown-item:hover { background: #f0f4f8; color: var(--primary); }
.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
    background: linear-gradient(135deg, #040d21 0%, #0f3460 50%, #1a1a5e 100%);
    overflow: hidden;
    position: relative;
    padding: 80px 0;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-title span { background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 32px; max-width: 480px; }
.btn-hero {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-hero-primary { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; box-shadow: 0 8px 25px rgba(6,182,212,.3); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(6,182,212,.45); color: #fff; }
.btn-hero-outline { border: 2px solid rgba(255,255,255,.3); color: #fff; }
.btn-hero-outline:hover { border-color: var(--accent); background: rgba(6,182,212,.1); color: var(--accent); }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.5); }
.hero-img-wrap { position: relative; text-align: center; }
.hero-img-wrap img { max-height: 380px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); animation: heroFloat 4s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-shape {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    opacity: .12;
    filter: blur(80px);
}
.hero-shape-1 { background: var(--accent); top: -100px; right: -100px; }
.hero-shape-2 { background: var(--secondary); bottom: -150px; left: 30%; }

/* ================================================================
   SECTION COMMON
   ================================================================ */
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 8px; }
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--text-sec); font-size: .95rem; max-width: 520px; margin: 0 auto; }

/* ================================================================
   CATEGORIES SECTION
   ================================================================ */
.categories-section { padding: 64px 0; background: var(--surface); }
.category-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
}
.category-card:hover {
    background: var(--surface);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.cat-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 12px;
}
.cat-name { font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: 4px; }
.cat-count { font-size: .8rem; color: var(--text-muted); }

/* ================================================================
   PRODUCT CARDS
   ================================================================ */
.products-section { padding: 64px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    border: 1px solid var(--border-light);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg);
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.product-card:hover .product-image img { transform: scale(1.07); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.badge-sale { background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }
.badge-new  { background: var(--success); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }
.product-actions {
    position: absolute; right: 10px; top: 10px;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(10px);
    transition: all var(--transition); z-index: 1;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.action-btn {
    width: 34px; height: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    color: var(--text-sec);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.action-btn:hover, .action-btn.active { background: var(--danger); border-color: var(--danger); color: #fff; }
.action-btn.wishlist-active { background: var(--danger); border-color: var(--danger); color: #fff; }

.product-body { padding: 14px 16px; }
.product-cat  { font-size: .75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; display: block; }
.product-name { font-size: .92rem; font-weight: 600; color: var(--text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .8rem; color: var(--text-muted); }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.price-original { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 9px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,86,219,.35); }
.btn-add-cart:active { transform: scale(.97); }

/* Card dual-button group (Add to Cart + Buy Now) */
.card-btn-group {
    display: flex;
    gap: 6px;
}
.card-btn-group .btn-add-cart {
    flex: 1;
    width: auto;
    font-size: .78rem;
    padding: 9px 8px;
    border-radius: var(--radius-md, 10px);
}
.btn-card-buynow {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 10px);
    font-weight: 700;
    font-size: .78rem;
    padding: 9px 8px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}
.btn-card-buynow:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,.35);
    color: #fff;
}
.btn-card-buynow:active { transform: scale(.97); }

/* ================================================================
   DEALS SECTION
   ================================================================ */
.deals-section {
    padding: 64px 0;
    background: linear-gradient(135deg, #040d21, #0f3460);
    position: relative; overflow: hidden;
}
.deal-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--danger);
    color: #fff;
    font-size: .85rem; font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}
.deal-timer { display: flex; gap: 12px; margin: 20px 0; }
.timer-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 10px 16px; text-align: center; min-width: 60px; }
.timer-num { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.timer-label { font-size: .7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; }

/* ================================================================
   SHOP PAGE — FILTERS + GRID
   ================================================================ */
.shop-page { padding: 40px 0; }
.filter-sidebar {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: sticky; top: 90px;
}
.filter-title { font-weight: 700; font-size: .95rem; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.filter-group { margin-bottom: 24px; }
.filter-label { font-size: .82rem; font-weight: 600; color: var(--text-sec); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; cursor: pointer; }
.filter-check input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-check label { font-size: .875rem; color: var(--text); cursor: pointer; }
.price-range-inputs { display: flex; gap: 8px; }
.price-range-inputs input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font-size: .85rem; width: 100%; }

.sort-bar { background: var(--surface); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; box-shadow: var(--shadow-sm); flex-wrap: wrap; gap: 10px; }
.sort-bar .results-count { font-size: .875rem; color: var(--text-sec); }
.sort-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 12px; font-size: .875rem; outline: none; cursor: pointer; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all var(--transition); background: none; }
.view-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ================================================================
   PRODUCT DETAIL PAGE
   ================================================================ */
.product-detail { padding: 40px 0; }
.detail-image-wrap { position: sticky; top: 90px; }
.main-image { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-list { display: flex; gap: 8px; margin-top: 12px; }
.thumb-item { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.thumb-item.active, .thumb-item:hover { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.detail-name { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-price { margin-bottom: 16px; }
.detail-price .current { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.detail-price .original { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.detail-price .save-badge { background: #fef2f2; color: var(--danger); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); margin-left: 8px; }
.qty-control { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-full); overflow: hidden; width: fit-content; }
.qty-btn { width: 40px; height: 40px; border: none; background: none; font-size: 1.1rem; cursor: pointer; transition: background var(--transition); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--bg); }
.qty-input { width: 50px; border: none; text-align: center; font-size: .95rem; font-weight: 600; outline: none; }
.btn-detail-cart { padding: 12px 32px; border-radius: var(--radius-full); font-size: 1rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-detail-cart.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.btn-detail-cart.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,86,219,.35); }
.btn-detail-cart.outline { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn-detail-cart.outline:hover { border-color: var(--primary); color: var(--primary); }
.detail-meta { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--border); }
.detail-meta span { font-size: .875rem; color: var(--text-sec); }
.detail-meta strong { color: var(--text); }

/* Tabs */
.detail-tabs .nav-link { color: var(--text-sec); font-weight: 500; }
.detail-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Reviews */
.review-card { background: var(--surface); border-radius: var(--radius); padding: 16px; border: 1px solid var(--border-light); margin-bottom: 12px; }
.review-author { font-weight: 600; font-size: .9rem; }
.review-date { font-size: .78rem; color: var(--text-muted); }

/* ================================================================
   CART PAGE
   ================================================================ */
.cart-page { padding: 40px 0; }
.cart-table-wrap { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.cart-table th { background: var(--bg); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border: none; padding: 12px 16px; }
.cart-table td { vertical-align: middle; border-color: var(--border-light); padding: 14px 16px; }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-name { font-weight: 600; font-size: .9rem; color: var(--text); }
.cart-item-remove { color: var(--text-muted); cursor: pointer; transition: color var(--transition); font-size: .85rem; }
.cart-item-remove:hover { color: var(--danger); }
.cart-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); width: fit-content; }
.cart-qty button { width: 30px; height: 30px; border: none; background: none; cursor: pointer; font-size: .9rem; }
.cart-qty input  { width: 40px; border: none; text-align: center; font-size: .875rem; font-weight: 600; outline: none; }
.order-summary-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.order-summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: .9rem; }
.order-summary-row.total { border-bottom: none; font-size: 1.1rem; font-weight: 700; padding-top: 12px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .875rem; outline: none; }
.coupon-form input:focus { border-color: var(--primary); }

/* ================================================================
   CHECKOUT PAGE
   ================================================================ */
.checkout-page { padding: 40px 0; }
.checkout-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); margin-bottom: 20px; }
.checkout-section-title { font-weight: 700; font-size: 1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-section-title .step-num { width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.payment-method-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 12px; }
.payment-method-card:hover { border-color: var(--primary); background: #f0f4ff; }
.payment-method-card.selected { border-color: var(--primary); background: #f0f4ff; }
.pay-logo { width: 48px; height: 28px; object-fit: contain; }
.mtn-color  { background: #ffcb00; color: #000; }
.airtel-color { background: #e60012; color: #fff; }

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page { min-height: 100vh; background: linear-gradient(135deg, #040d21, #0f3460); display: flex; align-items: center; padding: 40px 0; }
.auth-card { background: var(--surface); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-xl); max-width: 460px; width: 100%; margin: 0 auto; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-text { font-size: 2rem; }
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.form-floating .form-control { border-radius: var(--radius-sm); }
.form-floating .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.btn-auth { width: 100%; padding: 13px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all var(--transition); margin-top: 8px; }
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26,86,219,.35); }
.auth-divider { text-align: center; position: relative; margin: 20px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: var(--surface); padding: 0 12px; position: relative; font-size: .85rem; color: var(--text-muted); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary-nova {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600; font-size: .9rem;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
}
.btn-primary-nova:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,86,219,.35); color: #fff; }
.btn-accent-nova {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff; border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600; font-size: .9rem;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
}
.btn-accent-nova:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(6,182,212,.35); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); }
.btn-accent:hover { background: var(--primary); color: #fff; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.65); }
.footer-main { padding: 60px 0; }
.footer-logo { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { background: linear-gradient(135deg, var(--accent), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.footer-contact div { display: flex; align-items: center; gap: 8px; }
.footer-contact i { color: var(--accent); width: 14px; }
.footer-title { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 8px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: all var(--transition); }
.social-btn.facebook  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.social-btn.instagram { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.social-btn.whatsapp  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.social-btn.twitter   { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.social-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.newsletter-form .form-control { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form .form-control:focus { background: rgba(255,255,255,.1); border-color: var(--accent); box-shadow: none; color: #fff; }
.payment-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 700; }
.pay-badge.mtn    { background: #ffcb00; color: #000; }
.pay-badge.airtel { background: #e60012; color: #fff; }
.pay-badge.bank   { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
.footer-bottom { background: rgba(0,0,0,.3); padding: 16px 0; border-top: 1px solid rgba(255,255,255,.05); }

/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */
.whatsapp-float {
    position: fixed; bottom: 24px; left: 24px; z-index: 999;
    width: 54px; height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: all var(--transition);
    animation: waPulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes waPulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); } 50% { box-shadow: 0 4px 32px rgba(37,211,102,.7); } }

/* ================================================================
   TOAST
   ================================================================ */
.toast-nova { border-radius: var(--radius); border: none; box-shadow: var(--shadow-lg); }
.toast-nova .toast-header { border-radius: var(--radius) var(--radius) 0 0; }

/* ================================================================
   ADMIN DASHBOARD
   ================================================================ */
.admin-wrapper { display: flex; min-height: 100vh; background: #f0f4f8; }
.admin-sidebar {
    width: 250px; min-width: 250px;
    background: var(--nav-bg);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; height: 100vh;
    z-index: 100; overflow-y: auto;
    transition: transform var(--transition);
}
.sidebar-logo { padding: 20px 20px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-logo .logo-text { font-size: 1.4rem; }
.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-section-label { padding: 4px 20px 8px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.25); }
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,.6);
    font-size: .875rem; font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
    border-left: 3px solid transparent;
}
.sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; border-left-color: rgba(255,255,255,.2); }
.sidebar-link.active { background: rgba(26,86,219,.2); color: var(--accent); border-left-color: var(--accent); }
.sidebar-link i { width: 18px; text-align: center; font-size: .9rem; }
.sidebar-link .badge { margin-left: auto; background: var(--danger); font-size: .7rem; }

.admin-main { margin-left: 250px; flex: 1; }
.admin-topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 90; box-shadow: var(--shadow-sm); }
.admin-topbar-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.admin-content { padding: 28px; }

/* Stat Cards */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon { width: 54px; height: 54px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; flex-shrink: 0; }
.stat-icon.blue   { background: linear-gradient(135deg, #1a56db, #06b6d4); }
.stat-icon.green  { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.stat-change { font-size: .78rem; margin-top: 4px; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Admin table */
.admin-table-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); overflow: hidden; }
.admin-table-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.admin-table-title { font-weight: 700; font-size: .95rem; }
.table-nova { margin: 0; }
.table-nova thead th { background: #f8fafc; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border: none; padding: 12px 16px; font-weight: 600; }
.table-nova tbody td { padding: 12px 16px; vertical-align: middle; border-color: var(--border-light); font-size: .875rem; }
.table-nova tbody tr:hover { background: #f8fafc; }

/* Badges */
.badge-status { padding: 4px 10px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 600; }
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-paid       { background: #d1fae5; color: #065f46; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-shipped    { background: #ede9fe; color: #5b21b6; }
.badge-delivered  { background: #d1fae5; color: #065f46; }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }

/* Admin form card */
.admin-form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.form-label-sm { font-size: .82rem; font-weight: 600; color: var(--text-sec); margin-bottom: 4px; }
.form-control-nova { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .875rem; width: 100%; outline: none; transition: border-color var(--transition); }
.form-control-nova:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }

/* ================================================================
   ORDER SUCCESS
   ================================================================ */
.success-page { padding: 80px 0; text-align: center; }
.success-icon { width: 90px; height: 90px; background: linear-gradient(135deg, var(--success), #059669); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff; margin: 0 auto 24px; box-shadow: 0 8px 30px rgba(16,185,129,.3); }
.order-info-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); max-width: 600px; margin: 24px auto; }

/* ================================================================
   MISC / UTILITY
   ================================================================ */
.breadcrumb-nova { background: none; padding: 0; margin-bottom: 24px; }
.breadcrumb-nova .breadcrumb-item { font-size: .85rem; }
.breadcrumb-nova .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.page-hero { background: linear-gradient(135deg, #040d21, #0f3460); padding: 48px 0; margin-bottom: 40px; }
.page-hero h1 { color: #fff; font-size: 2rem; font-weight: 800; }
.page-hero .breadcrumb-item { color: rgba(255,255,255,.6) !important; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.6) !important; }
.page-hero .breadcrumb-item.active { color: #fff !important; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3) !important; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3.5rem; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h4 { font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-sec); margin-bottom: 20px; }

/* Pagination */
.pagination-nova .page-link { border-radius: var(--radius-sm) !important; margin: 0 2px; border-color: var(--border); color: var(--text); }
.pagination-nova .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .hero-img-wrap { display: none; }
    .hero-stats { justify-content: center; }
}
@media (max-width: 767px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-section { padding: 48px 0; }
    .hero-title { font-size: 1.75rem; }
    .hero-stats { gap: 16px; flex-wrap: wrap; }
    .deal-timer { gap: 8px; }
    .timer-box { min-width: 50px; padding: 8px 10px; }
    .timer-num { font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-body { padding: 10px 12px; }
    .product-name { font-size: .85rem; }
}
