:root {
  --primary: #12275e;
  --primary-2: #1e40af;
  --primary-3: #2563eb;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --green: #16a34a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7f9fc;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.36);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--primary-3);
  color: var(--primary-3);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #fff7ed;
  color: #b45309;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: var(--primary-2);
}

.topbar {
  background: var(--primary);
  color: #dbe4ff;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  font-weight: 600;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #eef2ff;
  color: var(--primary-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--primary-3);
  color: var(--primary-3);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 15% -10%, #2b53c4 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #1d3f9e 0%, transparent 55%),
    linear-gradient(160deg, #0c1c46 0%, #12275e 55%, #0e1f4d 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 74px 0 90px;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: #dbe4ff;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 16px;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: #c7d2fe;
  max-width: 640px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-search {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  max-width: 620px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  border-radius: 10px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-stats .stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats .stat span {
  font-size: 13px;
  color: #a5b4fc;
}

.offer-marquee {
  background: linear-gradient(90deg, #f59e0b, #fb923c);
  color: #1c1300;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 0;
}

.offer-marquee .track {
  display: inline-flex;
  gap: 60px;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

.section {
  padding: 66px 0;
}

.section-sm {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-sm);
}

.cat-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--primary-2);
  font-size: 18px;
  flex: none;
}

.cat-card span small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c7d2fe;
}

.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-3);
}

.product-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-desc {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-height: 38px;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price .now {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.price .was {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.price .free {
  font-size: 17px;
  font-weight: 800;
  color: var(--green);
}

.add-btn {
  border: 0;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--primary-2);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.add-btn:hover {
  background: var(--primary-3);
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature .f-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cta-band {
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  border-radius: 22px;
  color: #fff;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.28);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: #dbe4ff;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 92px;
}

.filters h3 {
  margin: 0 0 14px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.filter-group {
  margin-bottom: 22px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-list button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.filter-list button:hover {
  background: #f1f5f9;
}

.filter-list button.active {
  background: #eef2ff;
  color: var(--primary-2);
}

.filter-list button span {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 0;
  font-size: 14.5px;
  background: transparent;
}

.select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: #334155;
}

.pagination button.active {
  background: var(--primary-2);
  border-color: var(--primary-2);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.45;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--primary-3);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}

.pd-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1f5f9;
  align-self: start;
}

.pd-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pd-info h1 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}

.pd-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 6px;
  flex-wrap: wrap;
}

.pd-price .now {
  font-size: 32px;
  font-weight: 800;
}

.pd-price .was {
  font-size: 17px;
  color: var(--muted);
  text-decoration: line-through;
}

.pd-price .save {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 999px;
}

.pd-desc {
  color: #475569;
  font-size: 15px;
  margin: 16px 0 22px;
  white-space: pre-line;
}

.pd-meta {
  display: grid;
  gap: 10px;
  margin: 20px 0 26px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pd-meta div {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.pd-meta b {
  min-width: 120px;
  color: var(--muted);
  font-weight: 600;
}

.pd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stock-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.stock-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.prose h1 {
  margin-top: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
}

.prose h2 {
  margin-top: 32px;
  font-size: 20px;
}

.prose p,
.prose li {
  color: #475569;
}

.prose a {
  color: var(--primary-3);
  font-weight: 600;
}

.page-hero {
  background: linear-gradient(160deg, #0c1c46, #12275e);
  color: #fff;
  padding: 56px 0;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: #c7d2fe;
  max-width: 640px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

.field input,
.field textarea,
.field select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary-3);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 {
  margin: 0;
  font-size: 18px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
  flex: none;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 700;
}

.cart-item-info .ci-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-2);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  line-height: 1;
}

.qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  padding: 4px;
}

.cart-foot {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
}

.cart-total strong {
  font-size: 22px;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon input {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  text-transform: uppercase;
}

.coupon button {
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 0 14px;
  font-weight: 700;
  font-size: 13px;
}

.coupon-msg {
  font-size: 12.5px;
  margin: -6px 0 12px;
  min-height: 16px;
}

.coupon-msg.ok {
  color: var(--green);
}

.coupon-msg.err {
  color: #ef4444;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  max-width: 90vw;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--green);
}

.toast.error {
  background: #dc2626;
}

.site-footer {
  background: #0b1733;
  color: #b8c4e0;
  padding: 60px 0 0;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.site-footer a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: #b8c4e0;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  font-size: 14px;
  margin: 0 0 14px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand .logo small {
  color: #8fa3cc;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8fa3cc;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 14px;
  padding: 0;
}

.footer-social a:hover {
  background: var(--primary-3);
  color: #fff;
}

.trust-strip {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}

.trust-strip span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.loading {
  text-align: center;
  padding: 60px;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--primary-3);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .filter-list button {
    border: 1px solid var(--line);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .menu-toggle {
    display: grid;
  }
  .header-inner {
    position: relative;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-detail {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 46px 0;
  }
  .hero-inner {
    padding: 52px 0 64px;
  }
  .hero-stats {
    gap: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .prose {
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .cta-band {
    padding: 28px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .product-body {
    padding: 12px;
  }
  .product-title,
  .product-desc {
    min-height: auto;
  }
  .topbar .container {
    justify-content: center;
  }
  .topbar-links {
    display: none;
  }
  .header-actions .icon-btn {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   Original Tally-shop visual theme (flat, traditional)
   ============================================================ */
:root {
  --primary: #1e3a8a;
  --primary-2: #1e3a8a;
  --primary-3: #1d4ed8;
  --accent: #dc2626;
  --accent-2: #dc2626;
  --green: #15803d;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --bg: #f5f5f5;
  --card: #ffffff;
  --radius: 3px;
  --radius-sm: 2px;
  --shadow: none;
  --shadow-sm: none;
  --font: Arial, Helvetica, "Segoe UI", sans-serif;
}

body {
  background: #ffffff;
  color: #111827;
  font-family: var(--font);
  font-size: 15px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font);
  letter-spacing: 0;
}

a {
  color: #1e3a8a;
}

.topbar {
  background: #1e3a8a;
  color: #ffffff;
  font-size: 12.5px;
}
.topbar .container {
  min-height: 38px;
}
.topbar a {
  color: #ffffff;
  text-decoration: underline;
}
.topbar strong {
  color: #fde68a;
}

.site-header {
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 2px solid #1e3a8a;
}
.header-inner {
  min-height: 72px;
  gap: 14px;
}
.logo-img {
  display: block;
  height: 56px;
  width: auto;
}
.logo-mark {
  display: none !important;
}
.main-nav {
  gap: 0;
}
.main-nav a {
  border-radius: 0;
  padding: 12px 11px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1e3a8a;
}
.main-nav a:hover,
.main-nav a.active {
  background: #1e3a8a;
  color: #ffffff;
}
.icon-btn {
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e3a8a;
}
.icon-btn:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
}
.cart-count {
  background: #dc2626;
  border-radius: 2px;
}

.btn {
  border-radius: 3px;
  box-shadow: none;
  letter-spacing: 0;
}
.btn-primary {
  background: #1e3a8a;
  border-color: #1e3a8a;
}
.btn-primary:hover {
  background: #172554;
}
.btn-accent {
  background: #b91c1c;
  border-color: #b91c1c;
}
.btn-accent:hover {
  background: #991b1b;
}
.btn-outline {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #1e3a8a;
}
.btn-outline:hover {
  background: #1e3a8a;
  color: #ffffff;
}
.btn-ghost {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #1e3a8a;
}
.btn-ghost:hover {
  background: #eff6ff;
}

.hero {
  background: #f1f5f9;
  color: #111827;
  padding: 0;
}
.hero::before {
  display: none !important;
}
.hero-inner {
  max-width: 100%;
  text-align: left;
  padding: 46px 0 42px;
}
.hero-eyebrow {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11.5px;
}
.hero h1 {
  color: #1e3a8a;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 700;
}
.hero h1 .grad {
  color: #b91c1c;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}
.hero p.lead {
  color: #374151;
  font-size: 16px;
  max-width: 720px;
}
.hero-search {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  box-shadow: none;
  max-width: 760px;
}
.hero-search input {
  background: #ffffff;
  color: #111827;
}
.hero-search button {
  border-radius: 0 2px 2px 0;
  background: #1e3a8a;
}
.hero-stats {
  border-top: 1px solid #e5e7eb;
  padding-top: 22px;
}
.hero-stats .stat strong {
  color: #1e3a8a;
  font-size: 26px;
}
.hero-stats .stat span {
  color: #4b5563;
}

.offer-marquee {
  background: #b91c1c;
  color: #ffffff;
}
.trust-strip {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
}
.trust-strip span {
  border-right: 1px solid #e5e7eb;
  padding-right: 14px;
}

.section {
  padding: 38px 0;
}
.section-head h2 {
  color: #1e3a8a;
  font-size: 24px;
  letter-spacing: 0;
  text-transform: none;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: #b91c1c;
  margin-top: 8px;
}
.section-head p {
  color: #4b5563;
}
.cat-section {
  margin-bottom: 38px;
}
.cat-section:last-child {
  margin-bottom: 0;
}

.cat-grid {
  gap: 12px;
}
.cat-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  box-shadow: none;
}
.cat-card:hover {
  border-color: #1e3a8a;
  transform: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.cat-ico {
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 2px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  box-shadow: none;
}
.product-card:hover {
  transform: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}
.product-card:hover .product-thumb img {
  transform: none;
}
.product-thumb {
  border-radius: 0;
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
}
.product-body {
  padding: 12px;
}
.product-cat {
  color: #b91c1c;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.product-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
}
.product-title a {
  color: #1f2937;
}
.product-title a:hover {
  color: #1e3a8a;
}
.product-desc {
  color: #6b7280;
  font-size: 12.5px;
}
.price .now {
  color: #b91c1c;
  font-weight: 700;
}
.price .was {
  color: #9ca3af;
}
.price .free {
  color: #15803d;
}
.add-btn {
  background: #1e3a8a;
  color: #ffffff;
  border-radius: 2px;
  font-weight: 700;
}
.add-btn:hover {
  background: #172554;
}
.discount-badge {
  background: #b91c1c;
  border-radius: 2px;
}

.page-hero {
  background: #1e3a8a;
  color: #ffffff;
}
.page-hero h1 {
  color: #ffffff;
}
.page-hero p {
  color: #dbeafe;
}
.filters,
.filters .filter-group,
.toolbar,
.search-box,
.select {
  border-radius: 3px;
}
.search-box,
.select {
  border: 1px solid #cbd5e1;
  background: #ffffff;
}
.filter-list button {
  border-radius: 2px;
}
.filter-list button.active {
  background: #1e3a8a;
  color: #ffffff;
}
.breadcrumb {
  color: #6b7280;
}

.feature {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  box-shadow: none;
}
.feature .f-ico {
  background: #eff6ff;
  border-radius: 50%;
}
.feature h3 {
  color: #1e3a8a;
}
.cta-band {
  background: #1e3a8a;
  border-radius: 3px;
}
.cta-band h2,
.cta-band p {
  color: #ffffff;
}

.prose {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  box-shadow: none;
}
.prose h1,
.prose h2,
.prose h3 {
  color: #1e3a8a;
}

.site-footer {
  background: #1e3a8a;
  color: #dbeafe;
}
.site-footer h4 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.site-footer a {
  color: #dbeafe;
}
.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-social a {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .main-nav {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 3px;
  }
}

@media (max-width: 640px) {
  .topbar-links {
    display: flex;
  }
  .topbar .container {
    justify-content: center;
    text-align: center;
  }
  .hero h1 {
    font-size: 26px;
  }
  .logo-img {
    height: 46px;
  }
}

/* Checkout billing fields */
.checkout-fields {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.cf-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #1e3a8a;
}

.cf-hint {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #64748b;
}

.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cf-grid input,
.serial-input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
}

.cf-grid #cust-name,
.cf-grid #cust-gstin,
.cf-grid #cust-country {
  grid-column: 1 / -1;
}

.cf-grid input:focus,
.serial-input:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12);
}

.serials-wrap {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cart-foot {
  max-height: 68vh;
  overflow-y: auto;
}

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