/* ================================================================
   IP Marketplace — Professional UI
   Typography : DM Serif Display (display) + DM Sans (body)
   Palette    : Slate-900 primary · Indigo-600 accent · Amber-500 badge
   Mood       : Premium, clean, editorial
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

:root {
  --ink:        #0d1117;
  --ink-light:  #1e2a3b;
  --accent:     #4f46e5;
  --accent-h:   #4338ca;
  --accent-soft:#eef2ff;
  --gold:       #f59e0b;
  --emerald:    #059669;
  --rose:       #e11d48;
  --n-50:  #f8fafc;
  --n-100: #f1f5f9;
  --n-200: #e2e8f0;
  --n-300: #cbd5e1;
  --n-400: #94a3b8;
  --n-500: #64748b;
  --n-700: #334155;
  --n-900: #0f172a;
  --white: #ffffff;
  --page:  #f4f6fb;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh:    0 4px 16px rgba(15,23,42,.08);
  --sh-md: 0 8px 30px rgba(15,23,42,.12);
  --sh-lg: 0 20px 60px rgba(15,23,42,.16);
  --transition: all .18s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--page); color: var(--n-900); font-size: 14.5px; line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--n-100); }
::-webkit-scrollbar-thumb { background: var(--n-300); border-radius: 99px; }

/* TOPBAR */
.topbar { background: var(--ink); color: rgba(255,255,255,.72); font-size: 12px; font-weight: 500; letter-spacing: .02em; padding: 7px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; margin-right: 6px; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right a { color: rgba(255,255,255,.72); }
.topbar-right a:hover { color: var(--gold); }

/* HEADER */
.main-header { background: var(--white); border-bottom: 1px solid var(--n-200); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; white-space: nowrap; }
.logo-main { font-family: var(--font-display); font-size: 24px; color: var(--ink); letter-spacing: -.02em; }
.logo-main .logo-ip { color: var(--accent); }
.logo-tag { font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--n-400); margin-top: 1px; }
.logo:hover .logo-main { color: var(--accent); }

/* SEARCH */
.search-form { flex: 1; max-width: 640px; display: flex; border: 2px solid var(--n-200); border-radius: var(--r-lg); overflow: hidden; transition: var(--transition); background: var(--white); }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,70,229,.1); }
.search-cat { border: none; border-right: 1px solid var(--n-200); background: var(--n-50); padding: 0 12px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--n-700); cursor: pointer; min-width: 120px; outline: none; }
.search-form input { flex: 1; border: none; padding: 11px 16px; font-family: var(--font-body); font-size: 14px; color: var(--n-900); outline: none; background: transparent; }
.search-form input::placeholder { color: var(--n-400); }
.search-btn { background: var(--accent); border: none; padding: 0 20px; cursor: pointer; font-size: 18px; transition: var(--transition); }
.search-btn:hover { background: var(--accent-h); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px; border-radius: var(--r); color: var(--n-700); font-size: 11px; font-weight: 600; cursor: pointer; transition: var(--transition); position: relative; white-space: nowrap; }
.action-btn:hover { background: var(--accent-soft); color: var(--accent); }
.action-icon { font-size: 20px; line-height: 1; }
.cart-badge { position: absolute; top: 5px; right: 8px; background: var(--rose); color: white; font-size: 10px; font-weight: 800; border-radius: 99px; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid white; }

/* CAT NAV */
.cat-nav { background: var(--white); border-bottom: 1px solid var(--n-100); }
.cat-nav-inner { display: flex; gap: 2px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link { padding: 11px 18px; font-size: 13px; font-weight: 600; color: var(--n-500); white-space: nowrap; border-bottom: 3px solid transparent; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.cat-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cat-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* MAIN */
.main-content { padding: 28px 0 56px; }

/* ALERTS */
.alert { padding: 13px 18px; border-radius: var(--r); margin-bottom: 18px; font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #22c55e; }
.alert-danger  { background: #fff1f2; color: #be123c; border-color: #f43f5e; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border-color: #60a5fa; }
.alert-warning { background: #fffbeb; color: #b45309; border-color: var(--gold); }

/* HERO */
.hero { background: var(--ink); border-radius: var(--r-xl); padding: 56px; margin-bottom: 36px; position: relative; overflow: hidden; color: white; min-height: 280px; display: flex; align-items: center; }
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg-shapes::before { content: ''; position: absolute; width: 500px; height: 500px; right: -100px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(79,70,229,.35) 0%, transparent 70%); }
.hero-bg-shapes::after  { content: ''; position: absolute; width: 300px; height: 300px; right: 200px; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.2) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 1; max-width: 580px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(10px); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 99px; margin-bottom: 20px; }
.hero-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 52px); line-height: 1.1; font-weight: 400; margin-bottom: 18px; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.6); margin-bottom: 32px; line-height: 1.65; font-weight: 400; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary { background: var(--accent); color: white; padding: 13px 28px; border-radius: var(--r); font-weight: 700; font-size: 14.5px; display: inline-block; transition: var(--transition); border: 2px solid transparent; }
.btn-hero-primary:hover { background: var(--accent-h); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.4); }
.btn-hero-outline { background: transparent; color: rgba(255,255,255,.85); padding: 13px 28px; border-radius: var(--r); font-weight: 700; font-size: 14.5px; display: inline-block; transition: var(--transition); border: 2px solid rgba(255,255,255,.25); }
.btn-hero-outline:hover { border-color: rgba(255,255,255,.6); color: white; background: rgba(255,255,255,.08); }
.hero-stats { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 1; }
.hero-stat-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); border-radius: var(--r-lg); padding: 14px 20px; text-align: center; min-width: 120px; }
.hero-stat-num { font-family: var(--font-display); font-size: 24px; color: white; }
.hero-stat-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }

/* SECTION HEADER */
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.section-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: -.02em; }
.view-all { font-size: 13px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.view-all:hover { gap: 8px; }

/* CATEGORY CARDS */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 40px; }
.cat-card { background: var(--white); border-radius: var(--r-lg); padding: 22px 12px 16px; text-align: center; box-shadow: var(--sh-xs); border: 1.5px solid var(--n-100); transition: var(--transition); color: var(--n-700); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--accent); color: var(--accent); }
.cat-icon { font-size: 30px; margin-bottom: 10px; }
.cat-name { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }

/* PRODUCT CARDS */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.product-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-xs); border: 1.5px solid var(--n-100); transition: var(--transition); display: flex; flex-direction: column; cursor: pointer; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--n-200); }
.product-img-wrap { position: relative; overflow: hidden; background: var(--n-50); aspect-ratio: 1; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform .35s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; letter-spacing: .04em; z-index: 2; }
.badge-sale     { background: var(--rose); color: white; }
.badge-featured { background: var(--gold); color: var(--ink); }
.badge-new      { background: var(--emerald); color: white; }
.product-wishlist { position: absolute; top: 10px; right: 10px; background: white; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: var(--sh-xs); cursor: pointer; transition: var(--transition); z-index: 2; }
.product-wishlist:hover { background: #fff1f2; transform: scale(1.1); }
.product-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--n-900); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; margin-bottom: 8px; }
.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.stars { letter-spacing: -1px; font-size: 12px; }
.stars .full, .stars .half { color: var(--gold); }
.stars .empty { color: var(--n-200); }
.rating-count { font-size: 11.5px; color: var(--n-400); font-weight: 500; }
.product-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-current { font-size: 17px; font-weight: 800; color: var(--ink); }
.price-mrp { font-size: 12px; color: var(--n-400); text-decoration: line-through; }
.price-discount { font-size: 11.5px; font-weight: 800; color: var(--emerald); }
.product-card-footer { padding: 0 16px 16px; }
.btn-add-cart { width: 100%; padding: 10px; border: 2px solid var(--accent); background: transparent; color: var(--accent); border-radius: var(--r); font-family: var(--font-body); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: var(--transition); letter-spacing: .02em; }
.btn-add-cart:hover { background: var(--accent); color: white; box-shadow: 0 4px 16px rgba(79,70,229,.3); }
.btn-add-cart:disabled { border-color: var(--n-200); color: var(--n-400); cursor: not-allowed; background: var(--n-50); }

/* FEATURES STRIP */
.features-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0; }
.feature-card { background: var(--white); border-radius: var(--r-lg); padding: 20px; display: flex; align-items: flex-start; gap: 14px; box-shadow: var(--sh-xs); border: 1.5px solid var(--n-100); transition: var(--transition); }
.feature-card:hover { border-color: var(--accent); box-shadow: var(--sh); }
.feature-icon-wrap { width: 44px; height: 44px; border-radius: var(--r); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.feature-title { font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
.feature-desc  { font-size: 12px; color: var(--n-400); font-weight: 500; }

/* PROMO */
.promo-banner { border-radius: var(--r-xl); overflow: hidden; margin: 8px 0 36px; position: relative; background: linear-gradient(120deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%); padding: 36px 48px; display: flex; align-items: center; gap: 20px; color: white; }
.promo-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.promo-banner h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.2; margin-bottom: 8px; }
.promo-banner p { font-size: 14px; opacity: .7; margin-bottom: 18px; }
.promo-code { display: inline-block; background: rgba(255,255,255,.12); border: 1.5px dashed rgba(255,255,255,.35); color: white; font-size: 13px; font-weight: 800; letter-spacing: .1em; padding: 6px 14px; border-radius: 6px; margin-bottom: 18px; }
.promo-emoji { font-size: 90px; position: absolute; right: 80px; opacity: .15; pointer-events: none; }

/* PRODUCT DETAIL */
.product-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.product-gallery { position: sticky; top: 88px; }
.gallery-main { background: var(--white); border-radius: var(--r-xl); padding: 28px; border: 1.5px solid var(--n-100); margin-bottom: 12px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { max-height: 380px; object-fit: contain; transition: transform .4s ease; }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb { width: 68px; height: 68px; border-radius: var(--r); border: 2px solid var(--n-200); overflow: hidden; cursor: pointer; transition: var(--transition); background: white; display: flex; align-items: center; justify-content: center; padding: 6px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.product-detail-info { padding-top: 4px; }
.detail-brand { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.product-detail-info h1 { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.3; color: var(--ink); margin-bottom: 14px; letter-spacing: -.02em; }
.detail-rating { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--n-100); border-bottom: 1px solid var(--n-100); margin-bottom: 20px; }
.rating-pill { background: var(--emerald); color: white; font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; display: flex; align-items: center; gap: 4px; }
.detail-price { margin-bottom: 22px; }
.detail-price .price-current { font-size: 30px; font-weight: 800; }
.stock-ok  { color: var(--emerald); font-size: 13px; font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.stock-out { color: var(--rose); font-size: 13px; font-weight: 700; margin-top: 6px; }
.detail-description { color: var(--n-500); font-size: 14px; line-height: 1.75; margin-bottom: 22px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-label { font-size: 13px; font-weight: 700; color: var(--n-700); }
.qty-ctrl { display: flex; align-items: center; border: 2px solid var(--n-200); border-radius: var(--r); overflow: hidden; }
.qty-btn { background: var(--n-50); border: none; width: 38px; height: 38px; font-size: 18px; cursor: pointer; font-weight: 700; transition: var(--transition); font-family: var(--font-body); }
.qty-btn:hover { background: var(--accent); color: white; }
.qty-input { width: 52px; text-align: center; border: none; font-size: 15px; font-weight: 800; font-family: var(--font-body); outline: none; color: var(--ink); }
.detail-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.btn-primary { flex: 1; padding: 13px 24px; background: var(--accent); color: white; border: 2px solid var(--accent); border-radius: var(--r); font-family: var(--font-body); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: var(--transition); }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,.3); }
.btn-secondary { flex: 1; padding: 13px 24px; background: var(--ink); color: white; border: 2px solid var(--ink); border-radius: var(--r); font-family: var(--font-body); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: var(--transition); }
.btn-secondary:hover { background: var(--ink-light); border-color: var(--ink-light); transform: translateY(-2px); }
.btn-wishlist { width: 100%; padding: 11px; background: transparent; color: var(--n-700); border: 2px solid var(--n-200); border-radius: var(--r); font-family: var(--font-body); font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--transition); margin-bottom: 20px; }
.btn-wishlist:hover { border-color: var(--rose); color: var(--rose); background: #fff1f2; }
.delivery-info { background: var(--n-50); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 18px; }
.delivery-info h4 { font-size: 12px; font-weight: 800; color: var(--ink); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.delivery-row { display: flex; gap: 10px; font-size: 13px; color: var(--n-500); padding: 5px 0; }
.delivery-row strong { color: var(--n-900); font-weight: 600; }

/* CART */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.cart-item { background: var(--white); border-radius: var(--r-lg); padding: 20px; border: 1.5px solid var(--n-100); display: flex; gap: 18px; margin-bottom: 14px; box-shadow: var(--sh-xs); transition: var(--transition); }
.cart-item:hover { border-color: var(--n-200); box-shadow: var(--sh); }
.cart-item-img { width: 96px; height: 96px; background: var(--n-50); border-radius: var(--r); display: flex; align-items: center; justify-content: center; padding: 10px; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.cart-item-price { font-size: 19px; font-weight: 800; color: var(--ink); }
.cart-item-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.btn-remove { background: none; border: none; color: var(--rose); cursor: pointer; font-size: 13px; font-weight: 700; font-family: var(--font-body); padding: 4px 8px; border-radius: 6px; transition: var(--transition); }
.btn-remove:hover { background: #fff1f2; }
.cart-summary { background: var(--white); border-radius: var(--r-xl); padding: 24px; border: 1.5px solid var(--n-100); box-shadow: var(--sh-xs); position: sticky; top: 88px; height: fit-content; }
.cart-summary h3 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--n-400); margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--n-100); font-size: 14px; color: var(--n-700); }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0; font-weight: 800; font-size: 18px; color: var(--ink); }
.summary-savings { background: #f0fdf4; color: var(--emerald); padding: 9px 14px; border-radius: var(--r); font-size: 13px; font-weight: 700; margin: 10px 0; display: flex; align-items: center; gap: 6px; }
.btn-checkout { width: 100%; padding: 14px; background: var(--accent); color: white; border: none; border-radius: var(--r); font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer; transition: var(--transition); margin-top: 14px; letter-spacing: .02em; }
.btn-checkout:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,.3); }

/* CHECKOUT */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.checkout-form { background: var(--white); border-radius: var(--r-xl); padding: 32px; border: 1.5px solid var(--n-100); box-shadow: var(--sh-xs); }
.form-section { margin-bottom: 30px; }
.form-section h3 { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); padding-bottom: 12px; border-bottom: 2px solid var(--n-100); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--n-500); text-transform: uppercase; letter-spacing: .06em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 2px solid var(--n-200); border-radius: var(--r); font-family: var(--font-body); font-size: 14px; color: var(--n-900); outline: none; transition: var(--transition); background: white; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--n-200); border-radius: var(--r); cursor: pointer; transition: var(--transition); }
.payment-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.payment-option input { accent-color: var(--accent); width: auto; cursor: pointer; }
.payment-option-icon { font-size: 22px; }
.payment-option-label { font-weight: 700; font-size: 14px; }
.payment-option-sub   { font-size: 12px; color: var(--n-400); }

/* ORDERS */
.order-card { background: var(--white); border-radius: var(--r-xl); border: 1.5px solid var(--n-100); box-shadow: var(--sh-xs); overflow: hidden; margin-bottom: 18px; transition: var(--transition); }
.order-card:hover { box-shadow: var(--sh); border-color: var(--n-200); }
.order-header { background: var(--n-50); padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--n-100); }
.order-num  { font-weight: 800; font-size: 14px; color: var(--ink); }
.order-date { font-size: 12.5px; color: var(--n-400); margin-top: 2px; }
.order-items-list { padding: 16px 22px; }
.order-item-row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--n-100); }
.order-item-row:last-child { border-bottom: none; }
.order-item-thumb { width: 58px; height: 58px; background: var(--n-50); border-radius: var(--r); flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 6px; overflow: hidden; }
.order-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.status-badge { padding: 4px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: capitalize; }
.status-pending    { background: #fffbeb; color: #b45309; }
.status-confirmed  { background: #eff6ff; color: #1d4ed8; }
.status-processing { background: #faf5ff; color: #7e22ce; }
.status-shipped    { background: #ecfeff; color: #0e7490; }
.status-delivered  { background: #f0fdf4; color: #15803d; }
.status-cancelled  { background: #fff1f2; color: #be123c; }

/* AUTH */
.auth-wrapper { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-box { background: var(--white); border-radius: var(--r-xl); padding: 44px 40px; box-shadow: var(--sh-lg); width: 100%; max-width: 460px; border: 1.5px solid var(--n-100); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-text { font-family: var(--font-display); font-size: 30px; color: var(--ink); letter-spacing: -.03em; }
.auth-logo-text .ip { color: var(--accent); }
.auth-tagline { font-size: 13px; color: var(--n-400); margin-top: 4px; font-weight: 500; }
.auth-box h2 { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 26px; color: var(--ink); }
.auth-footer { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--n-500); }
.auth-footer a { color: var(--accent); font-weight: 700; }
.btn-submit { width: 100%; padding: 13px; background: var(--accent); color: white; border: none; border-radius: var(--r); font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer; transition: var(--transition); letter-spacing: .02em; }
.btn-submit:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,.3); }
.demo-creds { background: var(--n-50); border: 1.5px dashed var(--n-200); border-radius: var(--r); padding: 12px 14px; font-size: 13px; color: var(--n-500); margin-top: 18px; text-align: center; }

/* SHOP LAYOUT */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.filters-panel { background: var(--white); border-radius: var(--r-xl); padding: 22px; border: 1.5px solid var(--n-100); box-shadow: var(--sh-xs); height: fit-content; position: sticky; top: 88px; }
.filters-heading { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--n-400); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1.5px solid var(--n-100); }
.filter-section { margin-bottom: 22px; }
.filter-section h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--n-700); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; font-size: 13.5px; color: var(--n-700); }
.filter-option input { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }
.filter-option label { cursor: pointer; }
.price-range { display: flex; gap: 8px; }
.price-range input { flex: 1; padding: 9px 10px; border: 1.5px solid var(--n-200); border-radius: var(--r-sm); font-size: 13px; font-family: var(--font-body); outline: none; transition: var(--transition); }
.price-range input:focus { border-color: var(--accent); }
.filter-apply { width: 100%; margin-top: 12px; padding: 9px; background: var(--accent); color: white; border: none; border-radius: var(--r-sm); font-family: var(--font-body); font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition); }
.filter-apply:hover { background: var(--accent-h); }
.sort-bar { display: flex; align-items: center; gap: 12px; background: var(--white); padding: 12px 18px; border-radius: var(--r); border: 1.5px solid var(--n-100); box-shadow: var(--sh-xs); margin-bottom: 18px; flex-wrap: wrap; }
.sort-bar label { font-size: 12.5px; font-weight: 700; color: var(--n-500); text-transform: uppercase; letter-spacing: .06em; }
.sort-bar select { padding: 6px 10px; border: 1.5px solid var(--n-200); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 13px; outline: none; cursor: pointer; }
.results-count { font-size: 13px; color: var(--n-400); margin-left: auto; font-weight: 600; }

/* MISC */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--n-400); margin-bottom: 22px; font-weight: 500; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .empty-icon { font-size: 64px; margin-bottom: 18px; opacity: .6; }
.empty-state h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; color: var(--ink); }
.empty-state p { color: var(--n-400); margin-bottom: 28px; font-size: 15px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { width: 38px; height: 38px; border: 1.5px solid var(--n-200); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; color: var(--n-700); transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.card-box { background: var(--white); border-radius: var(--r-xl); padding: 26px; border: 1.5px solid var(--n-100); box-shadow: var(--sh-xs); margin-bottom: 22px; }
.card-box h2 { font-size: 17px; font-weight: 800; margin-bottom: 20px; color: var(--ink); }
#imagePreviewContainer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.img-preview-item { width: 80px; height: 80px; border-radius: var(--r); overflow: hidden; border: 2px solid var(--n-200); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* FOOTER */
.site-footer { background: var(--ink); color: rgba(255,255,255,.55); margin-top: 48px; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 26px; color: white; margin-bottom: 14px; letter-spacing: -.02em; }
.footer-logo .ip { color: var(--accent); }
.footer-desc { font-size: 13.5px; line-height: 1.7; max-width: 280px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badge { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); padding: 5px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.6); }
.site-footer h4 { color: white; font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul li a { color: rgba(255,255,255,.5); font-size: 13.5px; font-weight: 500; transition: var(--transition); display: inline-block; }
.site-footer ul li a:hover { color: white; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px; }

/* ADMIN */
.admin-sidebar { width: 250px; background: var(--ink); color: white; position: fixed; height: 100vh; overflow-y: auto; z-index: 50; display: flex; flex-direction: column; }
.admin-logo { padding: 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-logo-text { font-family: var(--font-display); font-size: 22px; color: white; letter-spacing: -.02em; }
.admin-logo-text .ip { color: var(--accent); }
.admin-logo-sub { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.3); margin-top: 3px; }
.admin-nav { padding: 14px 12px; flex: 1; }
.admin-nav-section { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.25); padding: 12px 10px 6px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: rgba(255,255,255,.55); font-weight: 600; font-size: 13.5px; border-radius: var(--r); transition: var(--transition); margin-bottom: 2px; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.95); }
.admin-nav a.active { background: var(--accent); color: white; }
.admin-nav a .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-notif { background: var(--rose); color: white; border-radius: 99px; min-width: 18px; height: 18px; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; margin-left: auto; }
.admin-sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-footer a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: rgba(255,255,255,.4); font-size: 13px; font-weight: 600; border-radius: var(--r); transition: var(--transition); }
.admin-sidebar-footer a:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.admin-main { margin-left: 250px; min-height: 100vh; background: #f0f2f7; }
.admin-topbar { background: white; border-bottom: 1px solid var(--n-200); padding: 0 28px; height: 62px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.admin-topbar-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.admin-user-chip { display: flex; align-items: center; gap: 9px; background: var(--n-50); border: 1.5px solid var(--n-200); border-radius: 99px; padding: 5px 14px 5px 5px; font-weight: 700; font-size: 13px; color: var(--n-700); }
.admin-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.admin-content { padding: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--r-lg); padding: 20px 22px; border: 1.5px solid var(--n-100); box-shadow: var(--sh-xs); display: flex; justify-content: space-between; align-items: flex-start; transition: var(--transition); }
.stat-card:hover { box-shadow: var(--sh); border-color: var(--n-200); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12.5px; color: var(--n-500); font-weight: 600; }
.stat-sub { font-size: 11.5px; font-weight: 700; margin-top: 3px; }
.stat-icon { width: 46px; height: 46px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.bg-blue   { background: #eff6ff; }
.bg-green  { background: #f0fdf4; }
.bg-orange { background: #fff7ed; }
.bg-purple { background: #faf5ff; }
.bg-rose   { background: #fff1f2; }
.bg-teal   { background: #f0fdfa; }
.data-table { background: var(--white); border-radius: var(--r-xl); border: 1.5px solid var(--n-100); box-shadow: var(--sh-xs); overflow: hidden; }
.data-table-header { padding: 18px 22px; border-bottom: 1px solid var(--n-100); display: flex; justify-content: space-between; align-items: center; }
.data-table-header h3 { font-size: 15px; font-weight: 800; color: var(--ink); }
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--n-50); padding: 11px 18px; text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--n-400); border-bottom: 1px solid var(--n-100); }
.data-table td { padding: 13px 18px; border-bottom: 1px solid var(--n-50); font-size: 13.5px; vertical-align: middle; color: var(--n-700); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--n-50); }
.table-actions { display: flex; gap: 6px; }
.btn-sm { padding: 5px 12px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; cursor: pointer; border: none; font-family: var(--font-body); transition: var(--transition); }
.btn-edit   { background: #eff6ff; color: #1d4ed8; }
.btn-edit:hover   { background: #1d4ed8; color: white; }
.btn-delete { background: #fff1f2; color: #be123c; }
.btn-delete:hover { background: #be123c; color: white; }
.btn-view   { background: #f0fdf4; color: #15803d; }
.btn-view:hover   { background: #15803d; color: white; }
.img-thumb { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: contain; background: var(--n-50); padding: 4px; border: 1px solid var(--n-100); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } }
.product-card { animation: fadeUp .3s ease both; }
.product-card:nth-child(1) { animation-delay: .04s; }
.product-card:nth-child(2) { animation-delay: .08s; }
.product-card:nth-child(3) { animation-delay: .12s; }
.product-card:nth-child(4) { animation-delay: .16s; }
.product-card:nth-child(5) { animation-delay: .20s; }
.cat-card { animation: fadeUp .25s ease both; }

/* RESPONSIVE */
@media (max-width: 1100px) { .product-detail { grid-template-columns: 1fr; } .product-gallery { position: static; } .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } .checkout-layout { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; } .features-strip { grid-template-columns: repeat(2,1fr); } .hero-stats { display: none; } }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } .filters-panel { position: static; } .admin-sidebar { width: 210px; } .admin-main { margin-left: 210px; } }
@media (max-width: 768px) { .header-inner { flex-wrap: wrap; gap: 12px; } .search-form { order: 3; width: 100%; max-width: none; } .search-cat { display: none; } .hero { padding: 36px 28px; } .products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; } .cat-grid { grid-template-columns: repeat(4,1fr); } .footer-grid { grid-template-columns: 1fr; gap: 28px; } .form-row { grid-template-columns: 1fr; } .promo-emoji { display: none; } }
@media (max-width: 520px) { .products-grid { grid-template-columns: 1fr; } .cat-grid { grid-template-columns: repeat(3,1fr); } .admin-sidebar { display: none; } .admin-main { margin-left: 0; } .detail-actions { flex-direction: column; } .auth-box { padding: 32px 22px; } }
