:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1d2433;
  --muted: #6c7686;
  --primary: #710296;
  --primary-2: #5b0178;
  --accent: #17c3a2;
  --danger: #e14b4b;
  --border: #e6e9f0;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-size: 13px;
  --font-size-sm: 12px;
  --font-size-lg: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 24px 0;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
}

.brand-logo {
  width: 160px;
  height: 16.33px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.2px;
}

.badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(15, 110, 247, 0.12);
  color: var(--primary);
}

.main-nav {
  justify-self: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
}

.nav-item {
  position: relative;
}

.nav-menu a {
  color: var(--text);
  padding: 6px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link-btn {
  background: none;
  border: none;
  padding: 6px 4px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-link-btn:hover {
  color: var(--primary);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 60;
}

.nav-submenu .nav-item {
  width: 100%;
}

.nav-submenu a {
  width: 100%;
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  color: var(--text);
}

.nav-item:hover > .nav-submenu {
  display: grid;
  gap: 6px;
}

.submenu-toggle {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  margin-left: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.submenu-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  display: block;
}

.nav-item.has-children > a::after,
.nav-item.has-children > .nav-link-btn::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -2px;
  opacity: 0.7;
}

.currency-form {
  margin: 0;
}

.currency-option {
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: var(--font-size-sm);
  cursor: pointer;
  color: var(--text);
}

.currency-option:hover,
.currency-option.is-active {
  background: #f4f6fa;
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(113, 2, 150, 0.2);
  background: #f1f2f6;
}

.account-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.nav a:hover,
.nav-dropdown > a:hover {
  box-shadow: var(--shadow);
}

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

.currency-switch {
  margin: 0;
}

.currency-select {
  min-width: 68px;
  padding: 5px 8px;
  color: var(--primary);
  border-color: rgba(113, 2, 150, 0.2);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
}

.cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mini-cart {
  position: absolute;
  top: 46px;
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 50;
}

.mini-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mini-cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
}

.mini-cart-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f3f4f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--primary);
  font-weight: 600;
}

.mini-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-cart-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.mini-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}

.cart-link svg {
  width: 18px;
  height: 18px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-dock {
  display: none;
}

.site-footer {
  margin-top: 40px;
  background: var(--primary);
  color: #fff;
  padding: 36px 24px;
  border-radius: 0;
}

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

.site-footer a:hover {
  opacity: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-brand h3,
.footer-col h4 {
  margin: 0 0 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footer-brand p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  font-size: var(--font-size-sm);
}

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

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

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

.footer-newsletter .input {
  background: #fff;
  color: #1d2433;
  border: none;
  flex: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card .product-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-card h3 {
  margin: 0;
}

.product-card .product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

.pdp-gallery {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.pdp-hero img {
  width: 100%;
  border-radius: var(--radius-lg);
}

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

.pdp-actions .input {
  max-width: 90px;
}

.pdp-details {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pdp {
    grid-template-columns: 1fr;
  }
  .pdp-gallery {
    grid-template-columns: 1fr;
  }
  .pdp-thumbs {
    flex-direction: row;
    order: 2;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-newsletter {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


.home-header {
  background: #e6e6e6;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px;
  margin-top: 10px;
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.home-search .search-field {
  position: relative;
}

.home-search .input {
  padding-left: 36px;
  padding-right: 34px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b7b7b;
  width: 16px;
  height: 16px;
}

.search-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.search-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #7b7b7b;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.search-close:hover {
  background: #f1f3f6;
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 40;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestions .suggestion {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-suggestions .suggestion:hover {
  background: #f4f6fa;
}

.suggestion-thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef2f8;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--primary);
  font-weight: 600;
}

.suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.suggestion-text {
  flex: 1;
  display: grid;
  gap: 2px;
}

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

.home-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-search-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.nav-search-icon svg {
  width: 18px;
  height: 18px;
}

.nav-search-icon:hover {
  background: #f4f6fa;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
  z-index: 120;
}
.search-overlay[hidden] { display: none !important; }

.search-modal {
  width: min(720px, 100%);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.search-modal-title {
  font-weight: 600;
}

.home-cats a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(113, 2, 150, 0.12);
  font-size: var(--font-size-sm);
}

.home-hero {
  margin-top: 18px;
  background: #d6e4f2;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.home-hero h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.home-cat-circles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (6 * 16px)) / 7);
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
 .home-cat-circles::-webkit-scrollbar { display: none; }
 .home-cat-circles.dragging { cursor: grabbing; }

.home-cat-slider {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
}

.cat-arrow {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
 .cat-arrow:hover { background: #f4f6fa; }


.home-cat {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--text);
  font-size: var(--font-size-sm);
  scroll-snap-align: start;
}

.home-cat img,
.home-cat-fallback {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: #eef2f8;
  object-fit: cover;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
}

.home-section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.home-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
}\n.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.hero p {
  margin: 0 0 14px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-size: var(--font-size-sm);
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 18px rgba(16, 24, 40, 0.04);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.product-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef2f8;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb--empty {
  font-size: 11px;
  color: var(--muted);
}

.product-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef2f8;
  margin-bottom: 10px;
  position: relative;
}

.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.product-hero.is-zoomed img {
  transform: scale(1.6);
}

.thumb-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.thumb-row .thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  object-fit: cover;
  background: #eef2f8;
  cursor: pointer;
}

.autocomplete {
  position: relative;
  flex: 1 1 220px;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
  z-index: 20;
  display: none;
  max-height: 280px;
  overflow: auto;
}

.autocomplete-list.is-open {
  display: block;
}

.autocomplete-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
}

.autocomplete-item:hover {
  background: #f5f7fb;
}

.autocomplete-item img,
.autocomplete-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border);
  background: #eef2f8;
}

.autocomplete-title {
  font-size: 13px;
  font-weight: 600;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #c2c7d3;
  margin: 6px 0;
}

.rating-stars .star.filled {
  color: #f2b01e;
}

.rating-stars .star.half {
  color: #f2b01e;
  opacity: 0.6;
}

.rating-stars .rating-count {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px;
  background: #fff;
}

.review-text {
  font-size: var(--font-size-sm);
  color: var(--text);
}

.checkout-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.checkout-steps .step {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.checkout-steps .step.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.trust-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.trust-badges .badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-badges .badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.checkout-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 10px;
}

.checkout-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.checkout-actions .btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.shipping-estimator {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.related-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.related-carousel .card {
  scroll-snap-align: start;
}

.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 18px;
}

.rating-input input {
  display: none;
}

.rating-input label {
  color: #c2c7d3;
  cursor: pointer;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #f2b01e;
}

.product-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.product-spec {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px;
  font-size: var(--font-size-sm);
  background: #fff;
}

.video-embed {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
}

.price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 6px;
}

.price-new {
  color: var(--primary);
  font-weight: 700;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 120, 74, 0.12);
  color: #0c784a;
  font-weight: 600;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.input, select {
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-size: var(--font-size-sm);
  width: 100%;
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.image-preview-item {
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef2f8;
}

.image-preview-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}

.file-preview {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
}

.menu-pool {
  display: grid;
  gap: 12px;
}

.menu-group {
  background: #f7f7fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.menu-items {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.menu-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: grab;
}

.menu-structure {
  min-height: 220px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.menu-node {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px;
  background: #fdfdff;
}

.menu-node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.menu-children {
  margin-top: 8px;
  padding-left: 12px;
  display: grid;
  gap: 6px;
}

.menu-custom {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.currency-grid {
  display: grid;
  gap: 8px;
}

.currency-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.currency-head {
  font-size: 11px;
  color: var(--muted);
}

.status {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  background: rgba(23, 195, 162, 0.12);
  color: #0c6c5b;
}

.admin-shell {
  padding-bottom: 90px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 12px 12px;
  box-shadow: 0 -10px 24px rgba(16, 24, 40, 0.08);
  z-index: 20;
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.admin-group {
  position: relative;
}

.admin-group summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f4f6;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text);
}

.admin-group summary::-webkit-details-marker {
  display: none;
}

.admin-group-panel {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 6px;
  z-index: 40;
}

.admin-group-panel a {
  text-align: left;
  font-size: 12px;
  color: var(--text);
  padding: 6px 8px;
  border-radius: var(--radius-xs);
}

.admin-group-panel a:hover {
  background: #f2f2f7;
}

.admin-group[open] summary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.small-note {
  font-size: 11px;
  color: var(--muted);
}

.footer {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "actions actions";
    gap: 10px;
  }

  .brand { grid-area: brand; }
  .menu-toggle { grid-area: toggle; display: inline-flex; }
  .main-nav {
    grid-area: nav;
    width: 100%;
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
  }
  .main-nav.is-open { display: block; }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-submenu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 6px 0 0 12px;
  }
  .nav-item.is-open > .nav-submenu {
    display: grid;
    gap: 6px;
  }
  .submenu-toggle {
    display: inline-flex;
  }
  .topbar-actions {
    grid-area: actions;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .brand {
    width: 100%;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .home-cat-circles {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
  .home-cat-slider {
    grid-template-columns: 28px 1fr 28px;
    gap: 8px;
  }
  .cat-arrow {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .mobile-dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--primary);
    padding: 10px 18px;
    border-radius: 999px;
    z-index: 80;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  }

  .mobile-dock a {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
  }

  .mobile-dock a svg {
    width: 20px;
    height: 20px;
  }

  .mobile-dock a.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    transform: translateY(-12px);
  }

  .mobile-dock a.active::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
  }

  body {
    padding-bottom: 90px;
  }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 110, 247, 0.12);
  color: var(--primary);
  font-size: 10px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 50;
}

.nav-dropdown:hover .dropdown {
  display: grid;
  gap: 6px;
}

.nav-dropdown .dropdown a {
  font-size: var(--font-size-sm);
  color: var(--primary);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--primary);
}


