/* ── Olive Electric — Global Styles ─────────────────────────── */
:root{
  --red:#cc0000;--red-dark:#a00000;
  --black:#0d0d0d;--card:#161616;--card2:#1a1a1a;
  --border:#252525;--text:#f0f0f0;--muted:#888;--hh:64px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--black);color:var(--text);font-family:'Segoe UI',system-ui,sans-serif;min-height:100vh}
a{color:var(--red);text-decoration:none}
a:hover{color:var(--red-dark)}
img{display:block;max-width:100%}
button{cursor:pointer;font-family:inherit}
input,select,textarea{font-family:inherit}

/* ── HEADER ───────────────────────────────────────────────── */
.site-header{
  position:sticky;top:0;z-index:1000;
  height:var(--hh);background:#111;
  border-bottom:2px solid var(--red);
  display:flex;align-items:center;padding:0 24px;gap:16px;
}
.logo{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:900;letter-spacing:-0.5px;flex-shrink:0}
.logo .o{color:var(--red);transition:color .2s;display:inline-flex;align-items:center;gap:2px}
.logo-icon{height:26px;width:26px;border-radius:50%;object-fit:cover}
.logo .e{color:var(--text);transition:color .2s}
.logo:hover .o{color:var(--text)}
.logo:hover .e{color:var(--red)}

.nav{display:flex;align-items:center;gap:4px;margin-left:24px}
.nav a{color:#ccc;font-size:13px;font-weight:600;padding:6px 12px;border-radius:4px;transition:all .18s;letter-spacing:.3px;text-transform:uppercase}
.nav a:hover,.nav a.active{color:#fff;background:rgba(204,0,0,.18)}

.header-search{flex:1;max-width:360px;margin-left:auto;position:relative}
.header-search input{width:100%;background:#0d0d0d;border:1px solid var(--border);color:var(--text);border-radius:4px;padding:8px 36px 8px 14px;font-size:13px}
.header-search input:focus{outline:none;border-color:var(--red)}
.header-search button{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--muted)}

.header-actions{display:flex;align-items:center;gap:8px;margin-left:12px}
.header-actions a,.header-actions button{
  background:none;border:none;color:#ccc;font-size:13px;font-weight:600;
  padding:7px 12px;border-radius:4px;transition:all .18s;display:flex;align-items:center;gap:6px;
}
.header-actions a:hover,.header-actions button:hover{background:rgba(255,255,255,.06);color:#fff}
.cart-badge{background:var(--red);color:#fff;border-radius:50%;width:18px;height:18px;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 22px;border-radius:4px;font-size:13px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;border:none;transition:all .2s;cursor:pointer}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-dark);color:#fff}
.btn-outline{background:transparent;color:#ddd;border:2px solid #333}
.btn-outline:hover{border-color:var(--red);color:var(--red)}
.btn-sm{padding:7px 14px;font-size:11px}
.btn-full{width:100%}

/* ── HERO ────────────────────────────────────────────────── */
.hero{background:linear-gradient(140deg,#0d0d0d 0%,#190000 45%,#0d0d0d 100%);padding:90px 32px;text-align:center;position:relative;overflow:hidden;border-bottom:1px solid var(--border)}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 60%,rgba(204,0,0,.2) 0%,transparent 65%);pointer-events:none}
.hero-inner{position:relative;z-index:1;max-width:680px;margin:0 auto}
.hero h1{font-size:52px;font-weight:900;line-height:1.06;margin-bottom:18px;letter-spacing:-1.5px}
.hero h1 em{color:var(--red);font-style:normal}
.hero p{font-size:17px;color:var(--muted);margin-bottom:36px;line-height:1.7}
.hero-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ── FEATURES ────────────────────────────────────────────── */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:56px 32px;max-width:1060px;margin:0 auto}
.feat{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:28px 20px;text-align:center;transition:border-color .2s}
.feat:hover{border-color:var(--red)}
.feat-icon{font-size:34px;margin-bottom:14px}
.feat h3{font-size:15px;font-weight:700;margin-bottom:8px}
.feat p{font-size:12px;color:var(--muted);line-height:1.6}

/* ── SECTION HEADER ──────────────────────────────────────── */
.sec-header{padding:48px 32px 24px;max-width:1240px;margin:0 auto}
.sec-title{font-size:26px;font-weight:800;margin-bottom:4px}
.sec-title em{color:var(--red);font-style:normal}
.sec-sub{color:var(--muted);font-size:13px}

/* ── CHIPS ───────────────────────────────────────────────── */
.chips-section{background:#111;padding:40px 32px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.chips-title{text-align:center;font-size:22px;font-weight:800;margin-bottom:20px}
.chips-title em{color:var(--red);font-style:normal}
.chips{display:flex;flex-wrap:wrap;gap:8px;max-width:880px;margin:0 auto;justify-content:center}
.chip{background:var(--card);border:1px solid var(--border);color:#bbb;padding:7px 16px;border-radius:20px;font-size:11px;font-weight:600;transition:all .18s;cursor:pointer;text-decoration:none}
.chip:hover,.chip.active{background:var(--red);border-color:var(--red);color:#fff}

/* ── PRODUCT GRID ────────────────────────────────────────── */
.products-layout{display:flex;gap:20px;max-width:1240px;margin:0 auto;padding:24px 32px 48px}
.sidebar{width:215px;flex-shrink:0}
.product-area{flex:1;min-width:0}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}

/* product card */
.pcard{background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .18s,transform .18s}
.pcard:hover{border-color:var(--red);transform:translateY(-2px)}
.pcard-img{aspect-ratio:1;overflow:hidden;background:var(--card2);position:relative}
.pcard-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.pcard:hover .pcard-img img{transform:scale(1.07)}
.pcard-zoom{position:absolute;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;font-size:22px;cursor:pointer}
.pcard:hover .pcard-zoom{opacity:1}
.pcard-body{padding:10px 12px;flex:1;display:flex;flex-direction:column;gap:4px}
.pcard-name{font-size:12px;font-weight:600;line-height:1.35;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-price{font-size:14px;font-weight:800;color:var(--red)}
.pcard-foot{padding:8px 10px 10px;display:flex;align-items:center;gap:6px;border-top:1px solid var(--border)}
.qty-wrap{display:flex;align-items:center;background:var(--black);border:1px solid var(--border);border-radius:4px;overflow:hidden;flex-shrink:0}
.qty-btn{background:none;border:none;color:#ccc;width:26px;height:28px;font-size:16px;display:flex;align-items:center;justify-content:center;transition:background .15s}
.qty-btn:hover{background:var(--red);color:#fff}
.qty-input{width:28px;height:28px;background:none;border:none;color:#fff;text-align:center;font-size:12px;font-weight:600}
.add-btn{flex:1;background:var(--red);color:#fff;border:none;height:28px;border-radius:4px;font-size:11px;font-weight:700;transition:background .18s;white-space:nowrap}
.add-btn:hover{background:var(--red-dark)}

/* ── SIDEBAR (category list) ─────────────────────────────── */
.cat-box{background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:hidden;position:sticky;top:calc(var(--hh) + 12px)}
.cat-head{background:var(--red);color:#fff;padding:11px 15px;font-size:10px;font-weight:800;letter-spacing:2px;text-transform:uppercase}
.cat-item{display:flex;align-items:center;justify-content:space-between;padding:9px 15px;font-size:11px;font-weight:600;border-bottom:1px solid #1a1a1a;cursor:pointer;color:#aaa;text-decoration:none;transition:background .15s,color .15s}
.cat-item:hover{background:#1e1e1e;color:#fff}
.cat-item.active{background:var(--red);color:#fff}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination{display:flex;gap:6px;justify-content:center;padding:24px 0}
.page-btn{background:var(--card);border:1px solid var(--border);color:#ccc;width:36px;height:36px;border-radius:4px;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.page-btn:hover,.page-btn.active{background:var(--red);border-color:var(--red);color:#fff}

/* ── PRODUCT DETAIL ──────────────────────────────────────── */
.product-detail{max-width:1100px;margin:0 auto;padding:40px 32px;display:grid;grid-template-columns:1fr 1fr;gap:48px}
.product-gallery{}
.product-main-img{aspect-ratio:1;background:var(--card);border-radius:8px;overflow:hidden;border:1px solid var(--border);margin-bottom:12px;cursor:zoom-in}
.product-main-img img{width:100%;height:100%;object-fit:cover}
.product-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.product-thumb{width:60px;height:60px;border:2px solid var(--border);border-radius:4px;overflow:hidden;cursor:pointer;transition:border-color .18s}
.product-thumb.active,.product-thumb:hover{border-color:var(--red)}
.product-thumb img{width:100%;height:100%;object-fit:cover}
.product-info{}
.product-cat{font-size:11px;font-weight:700;color:var(--red);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}
.product-title{font-size:26px;font-weight:800;margin-bottom:10px;line-height:1.2}
.product-price{font-size:28px;font-weight:900;color:var(--red);margin-bottom:16px}
.product-price small{font-size:14px;color:var(--muted);font-weight:400}
.product-stock{font-size:12px;margin-bottom:20px}
.product-stock.in{color:#4caf50}
.product-stock.out{color:#ff5252}
.product-desc{font-size:14px;color:#bbb;line-height:1.7;margin-bottom:24px}
.product-actions{display:flex;align-items:center;gap:10px;margin-bottom:24px}
.product-actions .qty-wrap{height:44px}
.product-actions .qty-btn{width:36px;height:44px;font-size:18px}
.product-actions .qty-input{width:44px;height:44px;font-size:14px}
.product-actions .add-btn{height:44px;font-size:13px;padding:0 20px;flex:none;width:auto;border-radius:4px}
.product-specs{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:16px}
.product-specs h4{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.spec-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--border);font-size:13px}
.spec-row:last-child{border-bottom:none}
.spec-row span:first-child{color:var(--muted)}

/* ── CART ────────────────────────────────────────────────── */
.cart-page{max-width:1100px;margin:0 auto;padding:40px 32px;display:grid;grid-template-columns:1fr 360px;gap:32px}
.cart-items{}
.cart-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--border)}
.cart-item-img{width:80px;height:80px;border-radius:6px;overflow:hidden;background:var(--card);flex-shrink:0}
.cart-item-img img{width:100%;height:100%;object-fit:cover}
.cart-item-info{flex:1}
.cart-item-name{font-size:14px;font-weight:600;margin-bottom:4px}
.cart-item-price{font-size:13px;color:var(--red);font-weight:700;margin-bottom:8px}
.cart-item-remove{background:none;border:none;color:var(--muted);font-size:11px;padding:0;cursor:pointer}
.cart-item-remove:hover{color:#ff5252}
.cart-summary{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:20px;height:fit-content;position:sticky;top:calc(var(--hh) + 12px)}
.cart-summary h3{font-size:15px;font-weight:700;margin-bottom:16px}
.summary-row{display:flex;justify-content:space-between;font-size:13px;padding:6px 0;border-bottom:1px solid var(--border);color:var(--muted)}
.summary-row:last-of-type{border-bottom:none;font-size:15px;font-weight:700;color:var(--text)}
.summary-row.total{margin-top:8px}

/* ── FORMS ───────────────────────────────────────────────── */
.form-page{max-width:420px;margin:60px auto;padding:0 24px}
.form-card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:32px}
.form-title{font-size:22px;font-weight:800;margin-bottom:4px}
.form-sub{font-size:13px;color:var(--muted);margin-bottom:24px}
.field{margin-bottom:16px}
.field label{display:block;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.field input,.field select,.field textarea{width:100%;background:var(--black);border:1px solid var(--border);color:var(--text);border-radius:4px;padding:10px 14px;font-size:14px;transition:border-color .2s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--red)}
.field textarea{resize:vertical;min-height:80px}
.form-err{color:#ff5252;font-size:13px;margin-top:4px}
.form-switch{font-size:13px;color:var(--muted);text-align:center;margin-top:16px}
.form-switch a{color:var(--red)}

/* ── ACCOUNT ─────────────────────────────────────────────── */
.account-page{max-width:1000px;margin:0 auto;padding:40px 32px;display:grid;grid-template-columns:220px 1fr;gap:28px}
.account-nav{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:8px;height:fit-content}
.account-nav a{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:4px;font-size:13px;font-weight:600;color:#aaa;transition:all .18s}
.account-nav a:hover,.account-nav a.active{background:rgba(204,0,0,.15);color:var(--red)}
.account-content{}
.account-section{display:none}
.account-section.active{display:block}

/* ── ORDER CARD ──────────────────────────────────────────── */
.order-card{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:16px;margin-bottom:12px}
.order-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}
.order-id{font-size:12px;font-weight:700;color:var(--muted)}
.order-status{font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.5px}
.status-pending{background:rgba(255,193,7,.15);color:#ffc107}
.status-confirmed{background:rgba(33,150,243,.15);color:#2196f3}
.status-shipped{background:rgba(156,39,176,.15);color:#9c27b0}
.status-delivered{background:rgba(76,175,80,.15);color:#4caf50}
.status-cancelled{background:rgba(244,67,54,.15);color:#f44336}
.order-items-preview{font-size:12px;color:var(--muted)}
.order-total{font-size:14px;font-weight:700;color:var(--red);margin-top:8px}

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-layout{display:flex;min-height:100vh}
.admin-sidebar{width:220px;background:#111;border-right:1px solid var(--border);padding:16px 0;flex-shrink:0;position:sticky;top:0;height:100vh}
.admin-sidebar .logo{padding:0 16px 20px;border-bottom:1px solid var(--border);margin-bottom:8px}
.admin-nav a{display:flex;align-items:center;gap:10px;padding:10px 16px;font-size:13px;font-weight:600;color:#aaa;transition:all .18s}
.admin-nav a:hover,.admin-nav a.active{background:rgba(204,0,0,.15);color:var(--red)}
.admin-main{flex:1;padding:32px;min-width:0}
.admin-title{font-size:22px;font-weight:800;margin-bottom:24px}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:32px}
.stat-card{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:20px}
.stat-label{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.stat-value{font-size:28px;font-weight:900;color:var(--text)}
.stat-value.red{color:var(--red)}
.data-table{width:100%;border-collapse:collapse;font-size:13px}
.data-table th{text-align:left;padding:10px 12px;background:var(--card2);color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--border)}
.data-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.data-table tr:last-child td{border-bottom:none}
.data-table tr:hover td{background:var(--card2)}
.table-wrap{background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:hidden}
.table-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--border)}
.table-header h3{font-size:15px;font-weight:700}

/* ── TOAST ───────────────────────────────────────────────── */
.toast{position:fixed;bottom:22px;right:22px;z-index:9999;background:#1c1c1c;border:1px solid var(--red);border-radius:8px;padding:12px 18px;font-size:13px;font-weight:600;color:var(--text);transform:translateY(80px);opacity:0;transition:all .3s;pointer-events:none;box-shadow:0 4px 24px rgba(0,0,0,.5)}
.toast.show{transform:translateY(0);opacity:1}
.toast.success{border-color:#4caf50}
.toast.error{border-color:#ff5252}

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.94);z-index:99999;display:none;align-items:center;justify-content:center;cursor:zoom-out}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:88vh;object-fit:contain;border-radius:4px}
.lightbox-close{position:absolute;top:16px;right:20px;background:none;border:none;color:#fff;font-size:28px;cursor:pointer;opacity:.7}
.lightbox-close:hover{opacity:1}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer{background:#0a0a0a;border-top:1px solid var(--border);padding:48px 32px 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;max-width:1200px;margin:0 auto 32px}
.footer-brand .logo{margin-bottom:12px}
.footer-brand p{font-size:13px;color:var(--muted);line-height:1.6;max-width:260px}
.footer-col h4{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);margin-bottom:14px}
.footer-col a{display:block;font-size:13px;color:#aaa;margin-bottom:8px;transition:color .18s}
.footer-col a:hover{color:var(--red)}
.footer-bottom{max-width:1200px;margin:0 auto;padding-top:20px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty{text-align:center;padding:60px 20px;color:var(--muted)}
.empty h3{font-size:18px;font-weight:700;margin-bottom:8px;color:var(--text)}
.empty p{font-size:13px;margin-bottom:20px}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-red{color:var(--red)}
.text-muted{color:var(--muted)}
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
.loading{text-align:center;padding:40px;color:var(--muted)}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:900px){
  .products-layout{flex-direction:column}
  .sidebar{width:100%}
  .cat-box{position:static}
  .hero h1{font-size:34px}
  .features{grid-template-columns:1fr}
  .cart-page,.product-detail{grid-template-columns:1fr}
  .account-page{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .nav{display:none}
  .hero h1{font-size:26px}
  .pgrid{grid-template-columns:repeat(2,1fr)}
  .stats-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}
