:root {
  --bg-page: #f6f7f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f3;
  --bg-muted: #f3f4f6;

  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text-primary: #182026;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --emerald: #059669;
  --emerald-hover: #047857;
  --emerald-dark: #065f46;
  --emerald-soft: #ecfdf5;
  --emerald-soft-border: #a7f3d0;

  --badge-top-text: #b45309;
  --badge-top-bg: #fef3c7;
  --badge-best-text: #047857;
  --badge-best-bg: #ecfdf5;
  --badge-new-text: #0369a1;
  --badge-new-bg: #e0f2fe;

  --danger: #dc2626;
  --danger-soft: #fef2f2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.14);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1320px;
  --sidebar-width: 260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

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

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.header-top {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-mark .icon,
.brand-logo-mark svg {
  width: 100%;
  height: 100%;
}

.site-footer .brand-logo-mark {
  width: 42px;
  height: 42px;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-name-dark {
  color: var(--emerald-dark);
}

.brand-name-accent {
  color: var(--emerald);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--emerald);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.header-email:hover {
  color: var(--emerald);
}

.tg-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-soft-border);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.tg-pill:hover {
  background: #d1fae5;
  border-color: var(--emerald);
}

/* Tier 2 — Emerald Utility Bar */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.18);
}

.header-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 40px;
  box-shadow: var(--shadow-sm);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 100%;
  border: 0;
  background: #ecfdf5;
  color: var(--emerald-dark);
  transition: background-color 0.15s ease;
}

.search-btn:hover {
  background: #d1fae5;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.open {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  transition: background-color 0.12s ease;
}

.search-item:last-child {
  border-bottom: 0;
}

.search-item:hover {
  background: var(--bg-subtle);
}

.search-item-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

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

.search-item-title {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.search-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--emerald-dark);
  white-space: nowrap;
}

.search-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

.search-show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 13.5px;
  font-weight: 700;
  border-top: 1px solid var(--emerald-soft-border);
  transition: background-color 0.14s ease;
}

.search-show-all:hover {
  background: #d1fae5;
}

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

.header-cats-inner {
  gap: 0;
}

.cat-strip-link {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 13px;
}

.bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.bar-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.bar-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--emerald-dark);
  font-size: 12px;
  font-weight: 700;
}

/* Tier 3 — Category Strip */
.header-cats {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.header-cats-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 2px;
}

.header-cats-inner::-webkit-scrollbar {
  display: none;
}

.cat-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cat-strip-link:hover {
  color: var(--emerald);
}

.cat-strip-link.active {
  color: var(--emerald-dark);
  font-weight: 600;
  border-bottom-color: var(--emerald);
}

/* Main Layout (Sidebar + Content) */
.page-shell {
  padding: 24px 0 44px;
}

.page-grid {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.trust-strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0;
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.trust-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-main {
  padding: 36px 0 28px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 28px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 10px 0 0;
  line-height: 1.55;
  max-width: 280px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--emerald);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-contact-link:hover {
  color: var(--emerald);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 1160px) {
  .brand-sub {
    display: none;
  }

  .header-nav {
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .header-nav,
  .header-email {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .header-top-inner {
    min-height: 52px;
  }

  .brand-sub {
    display: none;
  }

  .tg-pill-text {
    display: none;
  }

  .tg-pill {
    padding: 7px 10px;
  }

  .bar-btn-label {
    display: none;
  }

  .bar-btn {
    padding: 0 10px;
  }

  .header-cats {
    display: block;
  }

  .header-cats-inner {
    gap: 2px;
  }

  .cat-strip-link {
    padding: 9px 10px;
    font-size: 12.5px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Shared Cards & Surfaces */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Sidebar */
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.sidebar-cat-link:hover {
  background: var(--bg-subtle);
  color: var(--emerald-dark);
}

.sidebar-cat-link.active {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-weight: 600;
}

.sidebar-cat-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sidebar-cat-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.sidebar-cat-link.active .sidebar-cat-count {
  background: #d1fae5;
  color: var(--emerald-dark);
}

.sidebar-support {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-support-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sidebar-support-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.sidebar-schedule {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.schedule-row strong {
  color: var(--text-primary);
}

.schedule-note {
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--emerald-dark);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.08s ease;
  text-align: center;
}

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

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--emerald-hover);
}

.btn-primary.in-cart {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border-color: var(--emerald-soft-border);
}

.btn-primary.in-cart:hover {
  background: #d1fae5;
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
  background: var(--emerald-soft);
}

.btn-soft {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border-color: var(--emerald-soft-border);
}

.btn-soft:hover {
  background: #d1fae5;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Hero Banner (compact, minimalist) */
.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.hero-bullet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-bullet .icon {
  color: var(--emerald);
}

.hero-cta {
  flex-shrink: 0;
}

/* Section Headers */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--emerald-dark);
}

/* Product Grid & Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.product-card:hover {
  border-color: var(--emerald-soft-border);
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #f1f3f5;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.25s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  z-index: 2;
}

.badge-top {
  color: var(--badge-top-text);
  background: var(--badge-top-bg);
}

.badge-best {
  color: var(--badge-best-text);
  background: var(--badge-best-bg);
}

.badge-new {
  color: var(--badge-new-text);
  background: var(--badge-new-bg);
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.fav-btn:hover {
  color: var(--danger);
  border-color: #fecaca;
}

.fav-btn.active {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #fecaca;
}

.product-cat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}

.product-title:hover {
  color: var(--emerald);
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--emerald-dark);
  font-weight: 600;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.product-card-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Quick Category Tiles on Home */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.category-tile:hover {
  border-color: var(--emerald);
  background: var(--bg-subtle);
}

.category-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-tile-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.category-tile-count {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 13px;
}

.category-tile-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Breadcrumbs & Toolbar */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--emerald);
}

.breadcrumbs .sep {
  color: var(--border-strong);
}

.category-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.category-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.category-count {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 8px;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.price-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-input {
  width: 82px;
  height: 35px;
  padding: 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.price-input:focus {
  border-color: var(--emerald);
}

.price-dash {
  color: var(--text-muted);
  font-size: 13px;
}

.sort-select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13.5px;
  height: 35px;
}

/* Product Detail Page */
.product-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
}

.gallery-wrap {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-thumb {
  width: 74px;
  height: 74px;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.14s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumb.active {
  border: 2px solid var(--emerald);
}

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fafafa;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.img-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(24, 32, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.img-nav-prev {
  left: 0;
}

.img-nav-next {
  right: 0;
}

.gallery-main:hover .img-nav-zone,
.lightbox-stage:hover .img-nav-zone,
.img-nav-zone:focus-visible {
  opacity: 1;
}

.img-nav-zone:hover {
  background: rgba(24, 32, 38, 0.15);
  color: var(--text-primary);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-badge-inline {
  position: static;
}

.detail-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.detail-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.detail-buy-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  height: 42px;
}

.qty-btn {
  width: 34px;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.qty-btn:hover {
  background: var(--bg-muted);
}

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

.detail-buy-btn {
  flex: 1;
  min-width: 150px;
  height: 42px;
}

.detail-oneclick-btn {
  height: 42px;
}

.detail-delivery-box {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.detail-delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-secondary);
}

.detail-delivery-item .icon {
  color: var(--emerald);
  margin-top: 1px;
}

/* Tabs */
.tabs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  overflow-x: auto;
}

.tab-btn {
  padding: 13px 20px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--emerald);
}

.tab-btn.active {
  color: var(--emerald-dark);
  background: var(--bg-surface);
  border-bottom-color: var(--emerald);
}

.tab-panel {
  padding: 20px 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tab-panel h3 {
  margin: 18px 0 10px;
  font-size: 15.5px;
  color: var(--text-primary);
}

.tab-panel h3:first-child {
  margin-top: 0;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: 0;
}

.specs-table th,
.specs-table td {
  padding: 10px 8px;
  text-align: left;
  font-size: 14px;
}

.specs-table th {
  width: 42%;
  color: var(--text-muted);
  font-weight: 500;
}

.specs-table td {
  color: var(--text-primary);
  font-weight: 500;
}

/* Checkout & Info Pages */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-section-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.field-input:focus {
  border-color: var(--emerald);
}

.field-textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  min-height: 76px;
  resize: vertical;
  outline: none;
}

.field-textarea:focus {
  border-color: var(--emerald);
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.radio-card.selected {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.radio-card input {
  margin-top: 3px;
  accent-color: var(--emerald);
}

.radio-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.radio-card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.order-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.summary-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.summary-item-name {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.summary-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.summary-total {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
}

/* Unified Quick Order & Checkout Form */
.modal-box.quick-order-box {
  width: min(940px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.quick-order-header {
  background: var(--emerald);
  color: #ffffff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.quick-order-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-order-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.quick-order-body {
  padding: 20px;
  overflow-y: auto;
}

.qo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.qo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.qo-label-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.carrier-tiles,
.subcarrier-tiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.carrier-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.carrier-tile:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

.carrier-tile.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.subcarrier-tile {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.subcarrier-tile:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

.subcarrier-tile.active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.field-opt {
  font-weight: 400;
  color: var(--text-muted);
}

.city-wrap {
  position: relative;
}

.city-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 35;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 190px;
  overflow-y: auto;
  display: none;
}

.city-suggestions.open {
  display: block;
}

.city-suggestion-item {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
}

.city-suggestion-item:last-child {
  border-bottom: 0;
}

.city-suggestion-item:hover {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.qo-summary-box {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.order-total-row {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
}

.order-total-pill {
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--emerald);
  background: var(--bg-surface);
  color: var(--emerald-dark);
  font-size: 17px;
  font-weight: 700;
}

.form-error-msg {
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
}

.qo-actions {
  display: flex;
  gap: 10px;
}

.qo-actions-modal {
  justify-content: flex-end;
}

.order-success-modal {
  border: 0;
  padding: 24px 12px;
}

.order-success {
  background: var(--bg-surface);
  border: 1px solid var(--emerald-soft-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.order-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-card h1 {
  margin: 0;
  font-size: 24px;
}

.info-lead {
  margin: 4px 0 0;
  color: var(--text-secondary);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #fafafa;
}

.faq-q {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 14px;
}

.empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Drawers & Modals */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 32, 38, 0.48);
  z-index: 80;
  display: none;
}

.backdrop.open {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(410px, 100vw);
  background: var(--bg-surface);
  z-index: 90;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease;
}

.drawer-right {
  right: 0;
  transform: translateX(100%);
}

.drawer-left {
  left: 0;
  transform: translateX(-100%);
}

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

.drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.icon-close-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-close-btn:hover {
  background: var(--bg-muted);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
}

.modal.open {
  display: flex;
}

.modal-box {
  width: min(460px, 100%);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  cursor: default;
}

.lightbox-box {
  position: relative;
  max-width: min(820px, 95vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: default;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fafafa;
}

.lightbox-stage .img-nav-zone {
  width: 72px;
}

.lightbox-img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text-primary);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast .icon {
  color: #34d399;
}

/* Blog / SEO Guides */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.article-preview-card:hover {
  border-color: var(--emerald-soft-border);
  box-shadow: var(--shadow-md);
}

.article-preview-media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #f1f3f5;
}

.article-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.article-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.article-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-weight: 600;
  font-size: 11.5px;
}

.article-preview-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
}

.article-preview-title:hover {
  color: var(--emerald);
}

.article-preview-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.article-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-dark);
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.article-reader {
  max-width: 820px;
}

.article-h1 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.article-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-body h2 {
  margin: 24px 0 10px;
  font-size: 18px;
  color: var(--text-primary);
}

.article-body p {
  margin: 0 0 14px;
}

.article-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-link {
  color: var(--emerald-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-link:hover {
  color: var(--emerald);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .checkout-grid,
  .qo-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .hero-title {
    font-size: 19px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .category-tiles {
    grid-template-columns: 1fr;
  }

  .gallery-wrap {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
  }

  .gallery-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .img-nav-zone {
    opacity: 0.85;
    width: 44px;
    background: rgba(24, 32, 38, 0.06);
  }
}


/* === OpenCart Account, Loyalty & Theme Polish === */
.account-shell { padding: 24px 0 48px; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }
.account-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.account-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius-md); color: var(--text); font-weight: 500; font-size: 14px; text-decoration: none; transition: background .15s, color .15s; }
.account-nav-link:hover, .account-nav-link.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.account-card { padding: 24px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.loyalty-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border: 1px solid #a7f3d0; margin-bottom: 20px; }
.loyalty-points { font-size: 28px; font-weight: 800; color: #047857; line-height: 1.1; }
.oc-table-wrap { overflow-x: auto; margin-top: 16px; }
.oc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.oc-table th, .oc-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.oc-table th { font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: #f8fafc; }
.alert-box { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 16px; }
.alert-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.field-error { color: #dc2626; font-size: 12px; margin-top: 4px; display: block; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .auth-grid { grid-template-columns: 1fr; } }
.contacts-tg-card { margin-top: 16px; padding: 18px 20px; background: var(--primary-soft); border: 1px solid #a7f3d0; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 6px; }
.contacts-tg-card a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.wh-dropdown { margin-top: 6px; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-md); }
.wh-item { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--border-light, #f1f5f9); background: #fff; font-size: 13px; color: var(--text); cursor: pointer; }
.wh-item:hover { background: var(--primary-soft); color: var(--primary-dark); }
.selected-wh-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius-md); font-size: 13px; color: #065f46; margin-top: 8px; }
.bonus-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 600; margin-top: 8px; }
.loyalty-redeem-box { margin-top: 14px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-md); }
.product-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; width: 100%; }
.detail-price-box .fav-btn { position: static; flex-shrink: 0; }
.gallery-thumb { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.header-cats-inner { gap: 4px; justify-content: space-between; }
.cat-strip-link { padding: 10px 8px; font-size: 12.5px; gap: 5px; white-space: nowrap; }
.drawer-right { right: 0; left: auto; max-width: 100vw; }
.lightbox-stage { width: 100%; min-width: 320px; min-height: 280px; }
.lightbox-stage .img-nav-zone { opacity: 1; background: rgba(255, 255, 255, 0.72); }
.article-quick-answer { padding: 14px 18px; background: #ecfdf5; border-left: 4px solid var(--emerald); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 15.5px; line-height: 1.65; color: #064e3b; margin: 12px 0 20px; }
.article-body h2 { margin: 24px 0 10px; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.article-body h3 { margin: 18px 0 8px; font-size: 17px; font-weight: 600; color: var(--text-primary); }
.article-body p { margin: 0 0 12px; line-height: 1.7; }
.article-body ul, .article-body ol { margin: 8px 0 16px 20px; line-height: 1.65; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.article-body th { background: var(--bg-subtle); font-weight: 600; }

/* === Homepage Categories Expand & Compact Tile Body === */
.header-contacts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.category-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.category-tile-count { margin-left: auto; flex-shrink: 0; }
.category-tile-extra { display: none; }
.category-tiles.expanded .category-tile-extra { display: flex; }
.category-expand-btn { background: transparent; border: 0; padding: 4px 8px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--emerald); transition: background-color 0.15s ease, color 0.15s ease; }
.category-expand-btn:hover { background: var(--emerald-soft); color: var(--emerald-dark); }
.category-expand-btn svg { transition: transform 0.2s ease; }
.category-expand-btn.expanded svg { transform: rotate(180deg); }

/* === Top Header Theme Toggle Pill === */
.theme-toggle { background: transparent; border: 0; padding: 0; display: inline-flex; align-items: center; flex-shrink: 0; }
.theme-toggle-track { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 56px; height: 30px; padding: 0 7px; border-radius: 999px; background: var(--bg-muted); border: 1px solid var(--border-strong); transition: background-color 0.2s ease, border-color 0.2s ease; }
.theme-toggle-icon { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; color: var(--text-muted); transition: color 0.2s ease; }
.theme-toggle-icon svg { width: 14px; height: 14px; }
.theme-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.2s ease; z-index: 1; }
html[data-theme="light"] .theme-toggle-thumb { transform: translateX(26px); }
html[data-theme="dark"] .theme-icon-moon { color: #10b981; }
html[data-theme="light"] .theme-icon-sun { color: #f59e0b; }

/* === Default Dark Theme === */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0b0f14;
  --bg-surface: #131a22;
  --bg-subtle: #19222d;
  --bg-muted: #1e2936;
  --border: #233040;
  --border-strong: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-dark: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-soft-border: rgba(52, 211, 153, 0.34);
  --badge-top-text: #fbbf24;
  --badge-top-bg: rgba(245, 158, 11, 0.18);
  --badge-best-text: #34d399;
  --badge-best-bg: rgba(16, 185, 129, 0.18);
  --badge-new-text: #38bdf8;
  --badge-new-bg: rgba(14, 165, 233, 0.18);
  --danger: #f87171;
  --danger-soft: rgba(239, 68, 68, 0.16);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] .brand-name-dark { color: #f1f5f9; }
html[data-theme="dark"] .header-bar { background: #065f46; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .tg-pill:hover { background: rgba(16, 185, 129, 0.24); border-color: #34d399; }
html[data-theme="dark"] .search-box { background: #0b0f14; border: 1px solid #2b394a; }
html[data-theme="dark"] .search-btn { background: rgba(16, 185, 129, 0.18); color: #34d399; }
html[data-theme="dark"] .search-btn:hover { background: rgba(16, 185, 129, 0.3); }
html[data-theme="dark"] .search-show-all:hover { background: rgba(16, 185, 129, 0.24); }
html[data-theme="dark"] .bar-btn-badge { background: #34d399; color: #052e16; }

html[data-theme="dark"] .sidebar-card-header,
html[data-theme="dark"] .sidebar-support,
html[data-theme="dark"] .drawer-footer,
html[data-theme="dark"] .qo-summary-box,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .loyalty-redeem-box,
html[data-theme="dark"] .detail-delivery-box,
html[data-theme="dark"] .cart-item-img,
html[data-theme="dark"] .oc-table th,
html[data-theme="dark"] .specs-table th { background: var(--bg-subtle); border-color: var(--border); }

html[data-theme="dark"] .product-media,
html[data-theme="dark"] .gallery-main,
html[data-theme="dark"] .gallery-thumb,
html[data-theme="dark"] .lightbox-stage { background: #18212c; border-color: var(--border); }

html[data-theme="dark"] .product-badge.badge-top,
html[data-theme="dark"] .detail-badge-inline.badge-top { background: #451a03; color: #fcd34d; }
html[data-theme="dark"] .fav-btn { background: rgba(19, 26, 34, 0.9); color: #cbd5e1; border-color: var(--border-strong); }
html[data-theme="dark"] .fav-btn:hover,
html[data-theme="dark"] .fav-btn.active { color: #f87171; border-color: rgba(248, 113, 113, 0.45); background: rgba(239, 68, 68, 0.16); }
html[data-theme="dark"] .img-nav-zone { background: rgba(11, 15, 20, 0.55); color: #f1f5f9; }
html[data-theme="dark"] .img-nav-zone:hover { background: rgba(16, 185, 129, 0.35); color: #ffffff; }
html[data-theme="dark"] .gallery-zoom-hint { background: rgba(11, 15, 20, 0.85); color: #e2e8f0; border-color: var(--border); }
html[data-theme="dark"] #detailQtyInput { color: var(--text-primary); }

html[data-theme="dark"] .lightbox-box { background: var(--bg-surface); border: 1px solid var(--border); }
html[data-theme="dark"] .lightbox-box .icon-close-btn { background: var(--bg-subtle) !important; color: var(--text-primary); border-color: var(--border-strong); }
html[data-theme="dark"] .wh-dropdown { background: var(--bg-surface); border-color: var(--border); }
html[data-theme="dark"] .wh-item { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border); }
html[data-theme="dark"] .wh-item:hover { background: var(--emerald-soft); color: var(--emerald-dark); }

html[data-theme="dark"] .selected-wh-pill,
html[data-theme="dark"] .bonus-pill,
html[data-theme="dark"] .alert-success,
html[data-theme="dark"] .contacts-tg-card,
html[data-theme="dark"] .loyalty-banner { background: rgba(16, 185, 129, 0.14); border-color: rgba(52, 211, 153, 0.32); color: #6ee7b7; }
html[data-theme="dark"] .loyalty-points { color: #34d399; }
html[data-theme="dark"] .article-quick-answer { background: rgba(16, 185, 129, 0.12); color: #d1fae5; }
html[data-theme="dark"] .alert-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
html[data-theme="dark"] .backdrop { background: rgba(0, 0, 0, 0.72); }
html[data-theme="dark"] [style*="color:#047857"] { color: #34d399 !important; }
html[data-theme="dark"] [style*="color:#065f46"] { color: #6ee7b7 !important; }
html[data-theme="dark"] [style*="background:#f8fafc"] { background: var(--bg-subtle) !important; }
html[data-theme="dark"] .toast { background: #1e293b; border: 1px solid var(--border-strong); color: #f8fafc; }

.carrier-tile { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 145px; flex: 1; text-align: left; }
.carrier-tile span { font-size: 11.5px; font-weight: 400; color: var(--text-muted); }
.carrier-tile.selected,
.radio-card.selected { border-color: var(--emerald); background: var(--emerald-soft); box-shadow: 0 0 0 1px var(--emerald); color: var(--text-primary); }
.carrier-tile.selected strong { color: var(--emerald-dark); }
.carrier-tile.selected span { color: var(--text-secondary); }
.radio-card { text-align: left; cursor: pointer; }