/* =========================================================
   NeonTech — Modern Light Theme (2026 trend)
   Inspired by: Linear, Stripe, Shopify Polaris
   ========================================================= */

:root {
  /* Surfaces — warm off-white, not stark white */
  --bg: #fafaf7;
  --bg-2: #ffffff;
  --bg-3: #f4f3ee;
  --card: #ffffff;
  --card-hover: #fcfbf8;
  --border: #e7e5e0;
  --border-2: #d4d1c9;

  /* Text — warm dark, not pure black */
  --text: #1a1d23;
  --text-2: #3f4452;
  --text-dim: #6b7280;
  --muted: #9ca3af;

  /* Brand — calm royal blue + warm amber. No purple. No pink. */
  --primary: #2563eb;       /* Blue 600 — classic, trustworthy */
  --primary-2: #1d4ed8;     /* Blue 700 */
  --primary-3: #1e40af;     /* Blue 800 — deep accent for hover */
  --primary-soft: #eff6ff;  /* Blue 50 */
  --accent: #f59e0b;        /* Amber 500 — warm, friendly, sells */
  --accent-2: #d97706;      /* Amber 600 */
  --accent-soft: #fffbeb;   /* Amber 50 */
  --heart: #e11d48;         /* Rose 600 — classic red heart for wishlist */

  /* Semantic */
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #0891b2;
  --info-soft: #ecfeff;

  /* Effects */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28,25,23,.04), 0 1px 3px rgba(28,25,23,.06);
  --shadow: 0 1px 3px rgba(28,25,23,.05), 0 4px 12px rgba(28,25,23,.06);
  --shadow-lg: 0 4px 20px rgba(28,25,23,.06), 0 12px 40px rgba(28,25,23,.08);
  --shadow-glow: 0 0 0 1px rgba(37,99,235,.18), 0 8px 28px rgba(37,99,235,.18);
  --gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);            /* blue → cyan */
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);       /* amber → orange */
  --gradient-soft: linear-gradient(135deg, #eff6ff 0%, #fffbeb 100%);       /* very subtle blue→cream */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.2; margin: 0 0 .5em; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.muted { color: var(--text-dim); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-sm { padding: 7px 13px; font-size: .82rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 1px 2px rgba(17,24,39,.12);
}
.btn-primary:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17,24,39,.18);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(245,158,11,.2);
}
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); color: #fff; }

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.3); color: #fff; }

.btn-ghost {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-3); border-color: var(--border-2); color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-2); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo-bolt {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 18px;
}
.nav-links > a, .nav-drop-toggle {
  color: var(--text-2);
  font-weight: 500;
  font-size: .92rem;
  position: relative;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all .15s;
}
.nav-links > a:hover, .nav-drop-toggle:hover { color: var(--primary); background: var(--primary-soft); }
.nav-dropdown { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s;
  z-index: 50;
}
.nav-drop-right { left: auto; right: 0; }
.nav-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: .9rem;
}
.nav-drop-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-search {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 4px 4px 14px;
  transition: border-color .15s;
}
.nav-search:focus-within { border-color: var(--primary); background: #fff; }
.nav-search input {
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
  width: 180px;
  font-family: inherit;
  font-size: .9rem;
}
.nav-search button {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 10px;
  font-size: 1rem;
}
.nav-search button:hover { color: var(--primary); }
.nav-icon {
  position: relative;
  font-size: 1.1rem;
  color: var(--text-2);
  padding: 8px 10px;
  line-height: 1;
  border-radius: 8px;
  transition: all .15s;
}
.nav-icon:hover { color: var(--primary); background: var(--primary-soft); }
.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}
.nav-user { padding: 8px 14px; border: 1px solid var(--border); border-radius: 100px; font-size: .88rem; }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* =========================================================
   Flash messages
   ========================================================= */
.flashes { padding: 16px 24px 0; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  font-size: .92rem;
}
.flash-success { background: var(--success-soft); color: var(--success); border-color: #bbf7d0; }
.flash-warn    { background: var(--warn-soft);    color: var(--warn);    border-color: #fde68a; }
.flash-error   { background: var(--danger-soft);  color: var(--danger);  border-color: #fecaca; }
.flash-info    { background: var(--info-soft);    color: var(--info);    border-color: #a5f3fc; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
  background: var(--gradient-soft);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(37,99,235,.18), transparent 70%),
    radial-gradient(500px 350px at 85% 80%, rgba(245,158,11,.15), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 18px;
  font-weight: 800;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--text-2); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; }
.hero-stat strong { display: block; color: var(--text); font-size: 1.6rem; font-family: 'Space Grotesk'; font-weight: 700; }
.hero-stat span { color: var(--text-dim); font-size: .85rem; }
.hero-art {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 70px 0;
}
.section-alt { background: var(--bg-2); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

/* =========================================================
   Categories
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all .2s;
  display: block;
  color: var(--text);
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  color: var(--text);
}
.cat-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.cat-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cat-card p { font-size: .85rem; color: var(--text-dim); margin: 0; }

/* =========================================================
   Product grid / cards
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.product-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.product-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-2);
  transition: all .18s;
  box-shadow: var(--shadow-sm);
}
.product-wishlist:hover, .product-wishlist.active {
  background: var(--heart);
  border-color: var(--heart);
  color: #fff;
}

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-cat {
  font-size: .72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--primary); }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.price-now { font-size: 1.2rem; font-weight: 700; color: var(--text); font-family: 'Space Grotesk'; }
.price-old { font-size: .88rem; color: var(--text-dim); text-decoration: line-through; }
.product-rating { font-size: .8rem; color: #f59e0b; font-weight: 600; }
.product-rating span { color: var(--text-dim); font-weight: 400; }

.product-actions { display: flex; gap: 8px; margin-top: 8px; }
.product-actions .btn { flex: 1; }

/* =========================================================
   Product detail page
   ========================================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  margin-top: 30px;
}
.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumbs img {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .7;
  transition: all .15s;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; border-color: var(--primary); }
.detail-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: .85rem; color: var(--text-dim); }
.in-stock { color: var(--success); font-weight: 600; }
.out-stock { color: var(--danger); font-weight: 600; }
.detail-prose { color: var(--text-2); margin: 24px 0; }
.detail-prose h3 { color: var(--text); }
.detail-prose ul { color: var(--text-2); }
.qty {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty button { background: transparent; border: 0; color: var(--text); width: 38px; height: 44px; cursor: pointer; font-size: 1.1rem; transition: background .15s; }
.qty button:hover { background: var(--bg-3); }
.qty input { width: 50px; text-align: center; background: transparent; border: 0; color: var(--text); height: 44px; outline: none; font-family: inherit; font-weight: 600; }
.add-to-cart-row { display: flex; gap: 12px; align-items: stretch; margin-top: 18px; flex-wrap: wrap; }

/* =========================================================
   Filters / shop layout
   ========================================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-top: 24px;
}
.filter-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 86px;
  align-self: start;
}
.filter-panel h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 18px 0 10px; font-weight: 700; }
.filter-panel h4:first-child { margin-top: 0; }
.filter-list { list-style: none; padding: 0; margin: 0 0 12px; }
.filter-list li a {
  display: flex; justify-content: space-between;
  padding: 8px 12px; border-radius: 6px;
  color: var(--text-2); font-size: .92rem;
}
.filter-list li a:hover { background: var(--bg-3); color: var(--text); }
.filter-list li a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.filter-list li a span { font-size: .75rem; opacity: .7; }
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-toolbar select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  cursor: pointer;
}
.shop-toolbar select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }

/* =========================================================
   Cart
   ========================================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 100px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item h4 { margin: 0 0 4px; font-size: 1rem; }
.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 86px;
  align-self: start;
  box-shadow: var(--shadow-sm);
}
.cart-row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-row.total { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 12px; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-dim);
}
.empty span { font-size: 4rem; display: block; margin-bottom: 16px; }

/* =========================================================
   Forms
   ========================================================= */
.form-card {
  max-width: 460px;
  margin: 60px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 6px; }
.form-card .muted { margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .88rem; color: var(--text-2); font-weight: 500; }
.input, .form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .94rem;
  outline: none;
  transition: all .15s;
}
.input:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-help { font-size: .8rem; color: var(--text-dim); margin-top: 4px; }
.form-card .alt { text-align: center; margin-top: 16px; color: var(--text-dim); font-size: .9rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: 80px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a { color: var(--text-dim); font-size: .92rem; }
.footer-grid ul li a:hover { color: var(--primary); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: var(--text-2);
  border: 1px solid var(--border);
  font-weight: 700;
  transition: all .15s;
}
.socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); }
.newsletter-msg { width: 100%; font-size: .82rem; margin: 6px 0 0; }
.newsletter-msg.success { color: var(--success); }
.newsletter-msg.error { color: var(--danger); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  color: var(--text-dim);
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   Blog
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
  display: block;
  color: var(--text);
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-lg); color: var(--text); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 1.1rem; }
.blog-meta { font-size: .8rem; color: var(--text-dim); margin-bottom: 8px; }
.post-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}
.post-cover {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { color: var(--text-2); font-size: 1.05rem; line-height: 1.8; }
.post-body h3 { color: var(--text); margin-top: 32px; }

/* =========================================================
   Reviews
   ========================================================= */
.reviews { margin-top: 50px; }
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 14px;
}
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-stars { color: #f59e0b; }

/* =========================================================
   Chatbot
   ========================================================= */
.chatbot { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.chat-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,.35);
  position: relative;
  transition: transform .15s;
}
.chat-toggle:hover { transform: scale(1.05); }
.chat-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
  z-index: -1;
  opacity: 0.5;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
.chat-window {
  position: absolute;
  bottom: 76px; right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-window[hidden] { display: none !important; }
.chat-header {
  background: var(--gradient);
  padding: 14px 18px;
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-header strong { color: #fff; }
.chat-status { display: block; font-size: .72rem; color: rgba(255,255,255,.85); }
.chat-header button { background: rgba(255,255,255,.2); border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1; width: 28px; height: 28px; border-radius: 50%; transition: background .15s; }
.chat-header button:hover { background: rgba(255,255,255,.35); }
.chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-3);
}
.chat-msg {
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 85%;
  font-size: .92rem;
  line-height: 1.45;
  animation: msgIn .18s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.chat-msg.bot { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--primary); }
.chat-msg.user a { color: #fff; text-decoration: underline; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; align-self: flex-start; }
.chat-quick button {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: .78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.chat-quick button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-form {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.chat-form input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.chat-form button {
  background: var(--primary);
  border: 0;
  color: #fff;
  font-size: 1.1rem;
  width: 50px;
  cursor: pointer;
  transition: background .15s;
}
.chat-form button:hover { background: var(--primary-2); }

/* =========================================================
   Auth pages bg
   ========================================================= */
.auth-bg {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  background: var(--gradient-soft);
}

/* =========================================================
   Account — Orders list
   ========================================================= */
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.order-items { padding: 6px 22px; }
.order-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.order-item:last-child { border-bottom: 0; }
.order-item img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.order-item-placeholder {
  width: 60px; height: 60px;
  background: var(--bg-3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.order-item-info { display: flex; flex-direction: column; gap: 2px; }
.order-item-name {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.order-item-name:hover { color: var(--primary); }
.order-item-info .muted { font-size: .82rem; }
.order-foot {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 18px 22px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}
.order-totals { font-size: .9rem; }
.order-totals > div {
  display: flex; justify-content: space-between;
  padding: 4px 0;
}
.order-grand {
  border-top: 1px solid var(--border-2);
  padding-top: 8px !important;
  margin-top: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.order-ship-to h5 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin: 0 0 6px;
  font-weight: 700;
}
.order-ship-to p { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--text-2); }
@media (max-width: 720px) {
  .order-foot { grid-template-columns: 1fr; gap: 18px; }
}

/* =========================================================
   Payment options (checkout)
   ========================================================= */
.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
}
.pay-option:hover { border-color: var(--border-2); background: var(--bg-3); }
.pay-option input[type="radio"] {
  accent-color: var(--text);
  width: 18px; height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.pay-option:has(input:checked) {
  border-color: var(--text);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--text) inset;
}
.pay-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  background: var(--bg-3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pay-text { display: flex; flex-direction: column; line-height: 1.3; }
.pay-text strong { color: var(--text); font-size: .95rem; }
.pay-text small { color: var(--text-dim); font-size: .8rem; }

/* =========================================================
   Tables
   ========================================================= */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.table th { background: var(--bg-3); color: var(--text-2); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--bg-3); }

/* =========================================================
   Crumbs / pagination / tabs
   ========================================================= */
.crumbs { font-size: .85rem; color: var(--text-dim); padding: 24px 0 0; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--primary); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.pagination a:hover, .pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a {
  padding: 12px 18px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: .92rem;
}
.tabs a.active, .tabs a:hover { color: var(--primary); border-color: var(--primary); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-search { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    margin: 0;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 10px; width: 100%; }
  .nav-dropdown { width: 100%; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 14px; }
  .nav-actions { gap: 6px; }
  .nav-user { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item img { width: 80px; height: 64px; }
  .cart-item .cart-qty,
  .cart-item .cart-sub,
  .cart-item .cart-rm { grid-column: 2; justify-self: start; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 50px 0; }
}
