* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


:root {
  color-scheme: dark;
  --bg: #0b1118;
  --bg-soft: #0f1620;
  --panel: #141b24;
  --panel-strong: #182230;
  --border: #1f2a37;
  --text: #f4f7fb;
  --muted: #9aa6b2;
  --primary: #1f8bff;
  --primary-700: #166fcb;
  --success: #1f6d47;
  --danger: #ff5b5b;
  --warning: #ff8f3d;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

html.i18n-loading body {
  visibility: hidden;
}

html.i18n-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
}

html.i18n-loading::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  animation: i18n-spin 0.8s linear infinite;
  z-index: 9999;
}

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

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size-adjust: 0.52;
  background: radial-gradient(1200px 600px at 10% 0%, #111a26 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #0e1824 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.cart-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

:root.theme-light {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-strong: #f1f5f9;
  --border: #d8dee8;
  --text: #111827;
  --muted: #6b7280;
  --primary: #1f8bff;
  --primary-700: #1a6fcd;
  --shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

:root.theme-light body {
  background: #f5f7fb;
}

:root.theme-light .site-header {
  background: rgba(255, 255, 255, 0.9);
}

:root.theme-light .nav-links {
  background: rgba(255, 255, 255, 0.98);
}

:root.theme-light .hero {
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.92) 30%, rgba(255, 255, 255, 0.4) 70%),
    var(--hero-image);
}

:root.theme-light .image-overlay {
  background: rgba(255, 255, 255, 0.55);
}

:root.theme-light .lovable-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2933;
}

:root.theme-light .filter-sticky {
  background: rgba(255, 255, 255, 0.96);
  border-color: #e2e8f0;
}

:root.theme-light .pill {
  background: #ffffff;
  color: #1f2933;
  border-color: #d5dde8;
}

:root.theme-light .pill-sub {
  opacity: 1;
}

:root.theme-light .pill.is-active {
  background: rgba(31, 139, 255, 0.12);
  color: #0f4e96;
  border-color: rgba(31, 139, 255, 0.45);
}

:root.theme-light .category-card {
  border-color: rgba(15, 23, 42, 0.12);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)),
    var(--category-image);
}

:root.theme-light .category-card span {
  color: #f8fafc;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

:root.theme-light .btn-added {
  background: #d1fae5;
  color: #14532d;
  border: 1px solid #22c55e;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.is-hidden {
  display: none !important;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

.live-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

.live-chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #1f8bff, #35c2ff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.live-chat-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(360px, 86vw);
  background: #0f1620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: none;
}

.live-chat-panel.is-open {
  display: block;
  animation: chat-panel-in 0.2s ease-out;
}

@keyframes chat-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #141b24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-chat-title {
  font-weight: 700;
}

.live-chat-subtitle {
  font-size: 12px;
  color: #9aa6b2;
}

.live-chat-subtitle.is-online {
  color: #7dd3fc;
}

.live-chat-close {
  font-size: 20px;
  line-height: 1;
}

.live-chat-body {
  padding: 12px 16px;
  max-height: 360px;
  overflow: auto;
}

.live-chat-reconnect {
  display: none;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 32, 0.9);
  margin-bottom: 12px;
}

.live-chat-reconnect-title {
  font-weight: 700;
}

.live-chat-reconnect-sub {
  font-size: 12px;
  color: #9aa6b2;
}

.live-chat-reconnect button {
  padding: 8px 10px;
  border-radius: 10px;
  background: #1f8bff;
  color: #fff;
  font-weight: 600;
}

.live-chat-start {
  display: grid;
  gap: 8px;
}

.live-chat-start input,
.live-chat-input input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b1118;
  color: #fff;
}

.live-chat-start button,
.live-chat-input button {
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f8bff;
  color: #fff;
  font-weight: 600;
}

.live-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-chat-message {
  max-width: 78%;
}

.live-chat-message.is-guest {
  align-self: flex-end;
}

.live-chat-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  background: #1f8bff;
  color: #fff;
  line-height: 1.4;
}

.live-chat-message.is-admin .live-chat-bubble {
  background: #1a2230;
  color: #f4f7fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-chat-meta {
  font-size: 11px;
  color: #9aa6b2;
  margin-top: 4px;
}

.live-chat-input {
  display: none;
  gap: 8px;
  padding: 12px 16px 16px;
}

.live-chat-input button {
  white-space: nowrap;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 8px;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 139, 255, 0.2);
}

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

.btn-outline {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.btn-danger {
  color: var(--danger);
  border: 1px solid rgba(255, 91, 91, 0.4);
  background: rgba(255, 91, 91, 0.08);
}

.btn-added {
  background: rgba(31, 109, 71, 0.25);
  color: #9ef0c5;
  border: 1px solid rgba(31, 109, 71, 0.5);
  cursor: default;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(9, 13, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  position: relative;
  flex-wrap: wrap;
  width: min(1400px, 96%);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  min-width: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.logo [data-site-name] {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
  white-space: nowrap;
  flex: 1 1 520px;
  min-width: 0;
  row-gap: 12px;
}

.nav-links > * {
  flex-shrink: 0;
}

.nav-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-categories {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-categories-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font: inherit;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.nav-categories-toggle::after {
  content: "▾";
  font-size: 12px;
}

.nav-categories:hover .nav-categories-toggle,
.nav-categories.is-open .nav-categories-toggle {
  color: var(--primary);
}

.nav-categories-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 220;
}

.nav-categories-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-categories:hover .nav-categories-menu,
.nav-categories.is-open .nav-categories-menu {
  display: block;
}

.nav-category-tree {
  list-style: none;
  display: grid;
  gap: 8px;
}

.nav-category-tree a {
  color: var(--text);
  font-size: 13px;
}

.nav-category-children {
  list-style: none;
  margin-left: 12px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.nav-links .theme-toggle {
  width: auto;
  justify-content: center;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.nav-links .theme-toggle {
  white-space: nowrap;
}

.nav-cart-link {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--primary);
}

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

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

.lang-select {
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  min-width: 110px;
  height: 32px;
}

.lang-select option {
  color: #111827;
  background: #ffffff;
}

.request-suggest.is-hidden {
  display: none;
}

.detail-loading {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 40px 0;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

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

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

.request-filters {
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
}

.request-filters .filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.request-filters .select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.request-product-image {
  position: relative;
}

.request-product-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.request-product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.request-product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

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

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

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

.request-product-price {
  font-weight: 600;
}

.nav-toggle {
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .theme-label {
  display: none;
}

.theme-toggle--menu .theme-label {
  display: inline-block;
  position: relative;
  width: 4.5ch;
  height: 1em;
  text-align: center;
  font-size: 0;
  color: transparent;
  white-space: nowrap;
}

.theme-toggle--menu .theme-label::after {
  content: "Tối";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--text);
}

:root.theme-light .theme-toggle--menu .theme-label::after {
  content: "Sáng";
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.header-link:hover {
  color: var(--text);
}

.cart-button {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}

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

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cart-count.is-hidden {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  place-items: center;
}

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  background-image: linear-gradient(120deg, rgba(10, 15, 22, 0.95) 30%, rgba(10, 15, 22, 0.35) 70%),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--primary);
}

.hero-text {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 14px);
    opacity: 0;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 36px;
}

.feature-card {
  text-align: center;
  padding: 16px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(31, 139, 255, 0.15);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--primary);
}

.feature-title {
  font-weight: 600;
  margin-bottom: 6px;
}

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

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

.category-card {
  height: 140px;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-image: linear-gradient(180deg, rgba(8, 12, 18, 0.1), rgba(8, 12, 18, 0.85)),
    var(--category-image);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-card span {
  font-weight: 600;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 139, 255, 0.4);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skeleton-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  position: relative;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.6s infinite;
}

.skeleton-line {
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin: 14px 16px;
}

.skeleton-line.short {
  width: 50%;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
}

.is-invalid {
  border-color: rgba(220, 38, 38, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#productSentinel {
  height: 1px;
}

.load-more.is-hidden {
  display: none;
}

.compare-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  z-index: 350;
  width: min(720px, 94%);
}

.compare-bar.is-hidden {
  display: none;
}

.compare-info {
  display: grid;
  gap: 6px;
  color: var(--text);
}

.compare-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.compare-table-wrap {
  overflow: auto;
  max-height: 70vh;
}

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

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.compare-table img {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.order-lookup {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
}

.order-lookup-header {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.order-lookup-header strong {
  color: var(--text);
  font-size: 15px;
}

.order-lookup-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.order-lookup-form input {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
}

.order-lookup-result {
  font-size: 13px;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 24px;
  color: var(--muted);
}

.empty-state p {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.product-card {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-height: 100%;
  transition: transform 0.2s ease, border 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 139, 255, 0.4);
}

.product-image {
  position: relative;
  height: 190px;
  background: #0b121a;
  overflow: hidden;
}

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

.badge-list {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.admin-edit-btn:hover {
  background: rgba(31, 139, 255, 0.75);
  border-color: rgba(31, 139, 255, 0.6);
}

.admin-edit-btn--request {
  top: 10px;
  right: 10px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge.primary {
  background: rgba(31, 139, 255, 0.2);
  color: #9fd0ff;
}

.badge.danger {
  background: rgba(255, 91, 91, 0.2);
  color: #ffb0b0;
}

.badge.sold {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
}

.badge.muted {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5f5;
}

.badge.seller {
  background: rgba(16, 185, 129, 0.2);
  color: #86efac;
}

.product-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.6);
  display: grid;
  place-items: center;
  color: #e2e8f0;
  z-index: 3;
}

.product-fav.is-active {
  color: #f97316;
}

.product-fav svg {
  width: 16px;
  height: 16px;
}

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

.product-title {
  font-weight: 600;
  cursor: pointer;
}

.product-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-products .product-desc {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#featuredProducts .product-desc {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-seller {
  font-size: 12px;
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.price {
  color: var(--primary);
}

.old-price {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 500;
}

.product-actions {
  margin-top: auto;
}

.compare-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.product-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
  border-color: rgba(31, 139, 255, 0.4);
  transform: translateY(-1px);
}

.share-btn svg {
  width: 14px;
  height: 14px;
}

.compare-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: var(--text);
}

.compare-toggle.is-active {
  background: rgba(31, 139, 255, 0.2);
  border-color: rgba(31, 139, 255, 0.4);
  color: #cfe7ff;
}

.compare-toggle svg {
  width: 16px;
  height: 16px;
}

.product-image.is-hovering .image-indicators,
.product-image.is-hovering .image-slices {
  opacity: 1;
}

.image-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
  pointer-events: auto;
}

.image-indicator {
  width: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  cursor: pointer;
}

.image-indicator.is-active {
  width: 16px;
  background: var(--primary);
}

.image-slices {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.image-slice {
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.image-slice:last-child {
  border-right: none;
}

.image-slice.is-active {
  background: rgba(255, 255, 255, 0.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.product-card:hover .image-overlay {
  opacity: 1;
}

.image-action {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.image-action svg {
  width: 18px;
  height: 18px;
}

.image-action.is-primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.image-action.is-success {
  background: #22c55e;
  border-color: transparent;
  color: #fff;
}

.add-to-cart.is-adding svg {
  animation: bump 0.5s ease;
}

@keyframes bump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.page-hero {
  padding: 60px 0 30px;
  background: linear-gradient(120deg, rgba(12, 18, 26, 0.9), rgba(12, 18, 26, 0.4));
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.filters {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.filter-search {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 16px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
}

.search-box input:focus {
  outline: none;
}

.search-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 140;
}

.search-suggestions.is-open {
  display: grid;
  gap: 6px;
}

.search-suggestion {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.search-suggestion:hover {
  background: rgba(31, 139, 255, 0.18);
}

.filter-sticky {
  position: sticky;
  top: 70px;
  z-index: 120;
  background: rgba(9, 13, 19, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 500;
}

.pill-sub {
  font-size: 12px;
  padding: 6px 12px;
  opacity: 0.85;
}

.pill.is-active {
  background: rgba(31, 139, 255, 0.2);
  color: #cfe7ff;
  border-color: rgba(31, 139, 255, 0.4);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
}

.saved-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 16px;
}

.saved-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-searches .btn {
  height: 36px;
}

.filter-tags {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
}

.filter-tags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  color: var(--text);
}

.tag-chip.is-active {
  border-color: rgba(31, 139, 255, 0.4);
  background: rgba(31, 139, 255, 0.18);
}

.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
}

.tag-count {
  color: var(--muted);
  font-size: 11px;
}

.tag-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.tag-follow.is-followed {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.tag-clear {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.tag-clear.is-hidden {
  display: none;
}

.filter-tags-followed.is-hidden {
  display: none;
}

.detail-tags,
.modal-tags {
  margin: 10px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags .tag-link,
.modal-tags .tag-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
}

.filter-wish {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-wish.is-active {
  border-color: rgba(31, 139, 255, 0.4);
  background: rgba(31, 139, 255, 0.18);
}

.select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.select-wrap select {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  appearance: none;
  position: relative;
}

.filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-clear {
  color: var(--primary);
  border: 1px solid rgba(31, 139, 255, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
}

.filter-clear.is-hidden {
  display: none;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-size: 56px;
  color: #fff;
  font-weight: 700;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px rgba(31, 139, 255, 0.35);
}

.about-avatar span {
  position: absolute;
  bottom: 10px;
  right: -10px;
  background: #2ecc71;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 3px solid var(--bg);
}

.about-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-card:hover {
  border-color: rgba(31, 139, 255, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(31, 139, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--primary);
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

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

.form-grid .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-size: 14px;
  color: var(--muted);
}

 .form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.html-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

.html-mode-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.html-editor {
  min-height: 170px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  display: none;
}

.html-editor:focus {
  border-color: rgba(31, 139, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(31, 139, 255, 0.12);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
}

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

.upload-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.upload-dropzone {
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.upload-dropzone.is-dragover {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
  color: var(--text);
  background: rgba(31, 139, 255, 0.08);
}

.upload-list.is-dragover,
.upload-preview.is-dragover,
.payment-proof.is-dragover {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
  border-radius: 10px;
  background: rgba(31, 139, 255, 0.08);
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.upload-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  cursor: grab;
}

.upload-thumb.is-dragging {
  opacity: 0.6;
}

.upload-thumb-open {
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
}

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

.upload-thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.upload-thumb-edit {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.image-editor-canvas {
  width: 100%;
  max-height: 60vh;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0b1220;
}

.image-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.image-editor-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--panel-strong);
  font-size: 13px;
  color: var(--text);
}

.upload-item.is-uploading {
  opacity: 0.7;
}

.upload-item.is-done {
  border-color: rgba(34, 197, 94, 0.6);
  color: #16a34a;
}

.upload-item.is-error {
  border-color: rgba(239, 68, 68, 0.6);
  color: #dc2626;
}

.upload-item a {
  color: inherit;
  text-decoration: underline;
}

.upload-item-remove {
  border: none;
  background: transparent;
  color: var(--danger);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

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

.cta-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}

.cta-card .cta-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(31, 139, 255, 0.2);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.detail-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
}

.detail-main {
  position: relative;
}

.detail-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  z-index: 2;
}

.detail-nav.prev {
  left: 12px;
}

.detail-nav.next {
  right: 12px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.detail-thumb {
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

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

.detail-thumb.is-active {
  border-color: rgba(31, 139, 255, 0.7);
}

.detail-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-info h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 8px 0 16px;
}

.detail-brand {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.detail-desc {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.detail-variants {
  margin: 12px 0 16px;
}

.detail-variants h4 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}

.variant-grid {
  display: grid;
  gap: 10px;
}

.variant-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.variant-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
}

.detail-variant-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.detail-desc img,
.detail-desc video,
.detail-desc iframe {
  max-width: 100%;
  height: auto;
}

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

.detail-desc table td,
.detail-desc table th {
  border: 1px solid var(--border);
  padding: 8px;
}

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

.detail-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.detail-specs h4 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.detail-features {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
}

.detail-features div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.detail-features svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

.detail-actions {
  display: grid;
  gap: 12px;
}

.detail-reviews {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 16px;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.review-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.review-stars {
  color: #fbbf24;
  font-size: 16px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-item {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 6px;
}

.review-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.review-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.review-form {
  display: grid;
  gap: 10px;
}

.review-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.review-row input {
  flex: 1;
  min-width: 180px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
}

.review-rating {
  display: inline-flex;
  gap: 6px;
  font-size: 16px;
  color: #fbbf24;
}

.review-rating input {
  display: none;
}

.review-rating label {
  cursor: pointer;
}

.review-form textarea {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  min-height: 90px;
}

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

.related-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 139, 255, 0.4);
}

.related-image {
  position: relative;
}

.related-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.related-body {
  padding: 14px;
}

.related-body h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.related-body p {
  color: var(--primary);
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-text,
.footer-link {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 300;
}

.floating-actions .floating-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-tooltip {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s ease;
}

.floating-link:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.floating-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(31, 139, 255, 0.35);
  transition: transform 0.2s ease;
}

.floating-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.floating-icon.zalo {
  background: #1f8bff;
  animation: pulseGlow 2s infinite;
}

.floating-icon.phone {
  background: #22c55e;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.3);
}

.floating-icon.facebook {
  background: #1877f2;
}

.floating-link:hover .floating-icon {
  transform: scale(1.08);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 139, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(31, 139, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 139, 255, 0);
  }
}

.lovable-badge {
  position: fixed;
  right: 20px;
  bottom: 24px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: #d6dbe3;
  z-index: 280;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 600;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 610;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-content {
  width: min(920px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal-content.modal-sm {
  width: min(520px, 100%);
}

.modal-content.modal-qr {
  width: min(620px, 100%);
}

.modal-content.modal-product {
  width: min(1280px, 96%);
}

.modal-content.modal-image {
  width: min(980px, 96%);
  padding: 16px;
}

.image-preview-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-modal img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 14px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .modal-content.modal-product .modal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 16px;
}

.modal-desc img,
.modal-desc video,
.modal-desc iframe {
  max-width: 100%;
  height: auto;
}

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

.modal-desc table td,
.modal-desc table th {
  border: 1px solid var(--border);
  padding: 8px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.modal-gallery {
  display: grid;
  gap: 12px;
}

.modal-gallery img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.modal-gallery .modal-main {
  position: relative;
}

.modal-gallery .modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 18, 26, 0.85);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 18px;
}

.modal-gallery .modal-nav.prev {
  left: 10px;
}

.modal-gallery .modal-nav.next {
  right: 10px;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.modal-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
}

.modal-thumb.is-active {
  border-color: var(--primary);
}

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

.modal-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
}

.modal-features {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.modal-features div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-features svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

.modal-actions {
  display: grid;
  gap: 12px;
}

.modal-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-brand {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.modal-original.is-hidden,
.modal-badge.is-hidden,
.modal-discount.is-hidden {
  display: none;
}

.payment-summary {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.payment-summary strong {
  color: var(--text);
}

.payment-qr {
  text-align: center;
}

.payment-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.payment-proof {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.payment-proof .form-group {
  margin-bottom: 0;
}

.payment-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.payment-option input {
  accent-color: var(--primary);
}

.payment-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.payment-qr img {
  width: 260px;
  height: 260px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
}

.bank-info {
  display: grid;
  gap: 12px;
}

.bank-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
}

.copy-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.copy-button.is-copied {
  border-color: #22c55e;
  color: #22c55e;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 400;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  width: min(420px, 100%);
  background: var(--panel);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 410;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

body.cart-open .cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

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

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

.cart-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.icon-button.danger {
  color: var(--danger);
  border-color: rgba(255, 91, 91, 0.4);
}

.cart-items {
  padding: 16px;
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--panel-strong);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border);
}

.cart-item-media {
  width: 70px;
  height: 70px;
  position: relative;
}

.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.cart-image-open {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
}

.cart-image-open svg {
  width: 14px;
  height: 14px;
}

.cart-item h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.cart-item-price {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

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

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.cart-customer {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.cart-customer h4 {
  font-size: 14px;
  color: var(--text);
}

.cart-customer .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.cart-customer .form-group {
  margin-bottom: 0;
}

.cart-customer .form-group textarea {
  min-height: 80px;
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.cart-voucher {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.cart-voucher label {
  font-size: 13px;
  color: var(--muted);
}

.voucher-row {
  display: flex;
  gap: 8px;
}

.voucher-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
}

.cart-subtotal strong {
  color: var(--text);
  font-size: 18px;
}

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

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  display: grid;
  gap: 10px;
  z-index: 500;
}

.toast {
  background: rgba(17, 24, 35, 0.95);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    gap: 12px;
  }

  .logo [data-site-name] {
    max-width: 160px;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    flex-direction: column;
    gap: 14px;
    background: rgba(11, 17, 24, 0.98);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 16px;
    display: none;
  }

  .nav-categories {
    width: 100%;
    align-items: stretch;
  }

  .nav-categories-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-categories-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    display: none;
  }

  .nav-categories:hover .nav-categories-menu {
    display: none;
  }

  .nav-categories.is-open .nav-categories-menu {
    display: block;
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links .theme-toggle {
    width: 100%;
  }

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

  .nav-actions .header-link,
  .nav-actions .theme-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  body.cart-open {
    overflow: auto;
  }

  .logo [data-site-name] {
    max-width: 120px;
  }
  .cart-drawer {
    left: 0;
    right: 0;
    width: 100%;
    border-left: 0;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-header {
    position: sticky;
    top: 0;
    background: var(--panel);
    z-index: 2;
  }

  .cart-scroll {
    flex: 0 0 auto;
    overflow: visible;
  }
  .hero {
    padding: 90px 0 80px;
    background-position: center;
  }

  .section {
    padding: 60px 0;
  }

  .filter-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-count {
    margin-left: 0;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
  }

  .cart-items {
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: visible;
  }

  .cart-footer {
    border-top: 0;
    padding-top: 0;
    max-height: none;
    overflow: visible;
  }

  .cart-customer {
    padding: 12px;
    gap: 10px;
  }

  .cart-customer h4 {
    font-size: 13px;
  }

  .cart-customer label,
  .cart-customer input,
  .cart-customer textarea {
    font-size: 12px;
  }

  .cart-subtotal strong {
    font-size: 16px;
  }

  .cart-footer .btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  .compare-bar {
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .compare-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .order-lookup-form {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 18px;
  }

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

  .filter-sticky {
    top: 60px;
  }
}
