/* ========== DigiMart — Global Styles ========== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --max-width: 1280px;
  --header-height: 64px;
  --topbar-height: 36px;
  --transition: .2s ease;
  --font: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --success: #22c55e;
  --danger: #ef4444;
  --star: #f59e0b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #1e293b;
    --shadow: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.4);
  }
}

:root[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-light: #1e293b;
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.4);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }

/* ========== Utilities ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ========== Top Bar ========== */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: .8125rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar-left, .topbar-right { display: flex; gap: 1.25rem; align-items: center; }
.topbar-left span, .topbar-right span { display: flex; align-items: center; gap: .35rem; }

/* ========== Header ========== */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--secondary); }

/* Search bar */
.search-bar {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: .5rem 2.75rem .5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  font-size: .9rem;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar button {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  padding: .25rem;
}
.search-bar button:hover { color: var(--primary); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.header-actions a {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-secondary);
  font-size: .85rem;
  white-space: nowrap;
}
.header-actions a:hover { color: var(--primary); }
.cart-badge {
  position: relative;
}
.cart-badge .count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ========== Mobile Nav (checkbox hack) ========== */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav {
  display: flex;
  align-items: center;
}
.main-nav ul {
  display: flex;
  gap: .25rem;
}
.main-nav a {
  display: block;
  padding: .5rem .75rem;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(37,99,235,.06);
}

@media (max-width: 1024px) {
  .nav-toggle-label { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition);
    z-index: 200;
    overflow-y: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    padding: .75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
  }
  .nav-toggle:checked ~ .main-nav {
    left: 0;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
  }
  .nav-toggle:checked ~ .nav-overlay {
    display: block;
  }
  .search-bar { max-width: 100%; }
  .header .container { gap: .75rem; }
  .header-actions .action-text { display: none; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .header-actions { gap: .5rem; }
  .logo { font-size: 1.25rem; }
}

/* ========== Hero Banner ========== */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 1.5rem auto;
  max-width: var(--max-width);
}
.hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.85) 0%, rgba(37,99,235,.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  color: #fff;
}
.hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
  line-height: 1.2;
}
.hero-overlay p {
  font-size: 1.125rem;
  opacity: .95;
  max-width: 500px;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn-secondary {
  background: var(--secondary);
  color: #000;
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  color: #000;
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  background: #f8fafc;
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .hero img { height: 280px; }
  .hero-overlay { padding: 1.5rem 2rem; }
  .hero-overlay h1 { font-size: 1.5rem; }
  .hero-overlay p { font-size: .95rem; }
}

/* ========== Category Quick Links ========== */
.category-links {
  padding: 2rem 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .5rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-align: center;
  color: var(--text);
}
.category-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary);
}
.category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(37,99,235,.08);
  border-radius: 50%;
  color: var(--primary);
}
.category-item span {
  font-size: .8125rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .category-item { padding: .75rem .25rem; }
  .category-icon { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* ========== Product Tabs ========== */
.product-tabs { padding: 2rem 0; }
.tabs-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========== Product Cards ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card .badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}
.product-card .badge-new {
  background: var(--success);
}
.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-alt);
}
.product-info {
  padding: .875rem;
}
.product-info h3 {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: .5rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-info h3 a { color: inherit; }
.product-info h3 a:hover { color: var(--primary); }
.product-price {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.price-current {
  font-size: 1rem;
  font-weight: 700;
  color: var(--danger);
}
.price-old {
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-rating {
  margin-top: .35rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.stars {
  color: var(--star);
  font-size: .75rem;
  letter-spacing: 1px;
}
.rating-count {
  font-size: .75rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .product-info { padding: .625rem; }
  .product-info h3 { font-size: .8rem; }
  .price-current { font-size: .9rem; }
}

/* ========== Promo Banners ========== */
.promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}
.promo-banner {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1.5rem;
  color: #fff;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-banner.amber {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: #000;
}
.promo-banner.green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.promo-banner h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .35rem; }
.promo-banner p { font-size: .85rem; opacity: .9; }

@media (max-width: 768px) {
  .promo-row { grid-template-columns: 1fr; }
}

/* ========== Trust Badges ========== */
.trust-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.trust-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.1);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--primary);
}
.trust-item h4 { font-size: .9rem; font-weight: 600; }
.trust-item p { font-size: .8rem; color: var(--text-secondary); }

@media (max-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Blog Section ========== */
.blog-section { padding: 2rem 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1rem;
}
.blog-card-body .tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37,99,235,.08);
  padding: .15rem .5rem;
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}
.blog-card-body h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .5rem;
  line-height: 1.4;
}
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.footer p, .footer li {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--primary); }
.footer-brand p {
  margin-bottom: .75rem;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========== Page Hero ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.page-hero p { opacity: .9; font-size: 1rem; }

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: .75rem 0;
  font-size: .8125rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}
.breadcrumb li::after {
  content: '›';
  margin-left: .5rem;
  color: var(--text-muted);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

/* ========== Filters ========== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.filter-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
}
.filter-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.filter-group h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--text);
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  font-size: .85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.filter-group label:hover { color: var(--text); }
.filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
}

/* ========== Store Locator ========== */
.store-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.store-card:hover { box-shadow: var(--shadow-md); }
.store-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--primary); }
.store-card p { font-size: .85rem; color: var(--text-secondary); margin-bottom: .35rem; }
.store-card .store-hours {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border-light);
  font-size: .8rem;
  color: var(--text-muted);
}

/* ========== Blog Article ========== */
.article-layout {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 3rem;
}
.article-header {
  margin-bottom: 2rem;
}
.article-header .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37,99,235,.08);
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}
.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.article-featured-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  max-height: 450px;
  object-fit: cover;
}
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}
.article-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 .75rem;
}
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .5rem; }
.article-content strong { font-weight: 600; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ========== B2B Page ========== */
.b2b-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 1.5rem auto;
}
.b2b-hero img { width: 100%; height: 350px; object-fit: cover; }
.b2b-hero .hero-overlay { padding: 2.5rem 3rem; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 0;
}
.benefit-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.1);
  border-radius: 50%;
  margin: 0 auto .75rem;
  font-size: 1.75rem;
  color: var(--primary);
}
.benefit-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.benefit-card p { font-size: .85rem; color: var(--text-secondary); }

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ========== Contact Form ========== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.contact-form h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--transition);
  font-size: .9rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-actions { text-align: center; margin-top: 1.5rem; }

/* ========== 404 ========== */
.error-page {
  text-align: center;
  padding: 5rem 1rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page h1 { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 1.5rem; font-weight: 600; margin: 1rem 0; }
.error-page p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 400px; }

/* ========== Blog List (tin-tuc) ========== */
.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.featured-article img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.featured-article-body {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-article-body .tag {
  display: inline-block;
  width: fit-content;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37,99,235,.08);
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}
.featured-article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
  line-height: 1.3;
}
.featured-article-body h2 a { color: var(--text); }
.featured-article-body h2 a:hover { color: var(--primary); }
.featured-article-body p {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article-body { padding: 1.5rem; }
}

/* ========== Newsletter ========== */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2rem 0;
}
.newsletter h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.newsletter p { opacity: .9; margin-bottom: 1.25rem; font-size: .9rem; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: .625rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-size: .9rem;
  color: var(--text);
  background: #fff;
}
.newsletter-form button {
  padding: .625rem 1.5rem;
  background: var(--secondary);
  color: #000;
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--secondary-dark); }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ========== Policy / Legal Pages ========== */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 3rem;
}
.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  color: var(--text);
}
.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.legal-content ul {
  margin: .5rem 0 1rem 1.5rem;
  list-style: disc;
}
.legal-content li {
  margin-bottom: .5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Misc ========== */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-weight: 600;
  font-size: .875rem;
  color: var(--primary);
}
.section-link:hover { gap: .5rem; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Product grid for category pages - 8 items */
.product-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .product-grid-8 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .product-grid-8 { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }

/* Back to top (optional) */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 50;
  font-size: 1.25rem;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
