:root {
  --green: #073b6d;
  --green-dark: #04284c;
  --green-soft: #eaf2fb;
  --yellow: #ff8a00;
  --red: #df111d;
  --pink: #ff6a00;
  --blue: #0b4f8a;
  --ink: #172635;
  --muted: #60717f;
  --line: #dbe5ec;
  --panel: #ffffff;
  --page: #f4f7fb;
  --shadow: 0 8px 22px rgba(4, 40, 76, 0.14);
  --font-ui: Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

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

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.header-main {
  display: grid;
  grid-template-columns: 280px minmax(280px, 1fr) 150px;
  gap: 14px;
  align-items: center;
  min-height: 118px;
}

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-backdrop,
.mobile-nav-head {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  border-radius: 10px;
  background: #fff;
  padding: 7px 9px;
  box-shadow: 0 7px 18px rgba(4, 40, 76, 0.18);
}

.brand-logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #dcecff;
  font-size: 12px;
  font-weight: 400;
}

.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  min-width: 0;
}

.search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 14px;
  color: var(--ink);
  outline: 0;
}

.search button,
.primary-link,
.secondary-link,
.clear-filter,
.consult-btn,
.admin-primary,
.admin-secondary,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  border-radius: 6px;
  font-weight: 500;
}

.search button {
  height: 44px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--yellow);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.search button svg,
.hotline svg,
.primary-link svg,
.secondary-link svg,
.clear-filter svg,
.consult-btn svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.hotline {
  min-height: 44px;
}

.hotline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hotline small {
  display: block;
  color: #dcecff;
  font-size: 12px;
  line-height: 1.15;
}

.hotline strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.category-nav {
  background: var(--green-dark);
}

.nav-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-scroll a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  border-bottom: 3px solid transparent;
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-scroll a.is-active,
.nav-scroll a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--yellow);
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f7faff;
}

.home-banner {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.home-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 520;
  overflow: hidden;
}

.home-slider-track {
  display: flex;
  width: var(--track-width, 400%);
  height: 100%;
}

.home-slider.is-count-2 .home-slider-track {
  animation: home-slide-2 14s infinite ease-in-out;
}

.home-slider.is-count-3 .home-slider-track {
  animation: home-slide-3 18s infinite ease-in-out;
}

.home-slider.is-count-4 .home-slider-track {
  animation: home-slide-4 22s infinite ease-in-out;
}

.home-slide {
  display: block;
  flex: 0 0 var(--slide-width, 25%);
  width: var(--slide-width, 25%);
  height: 100%;
}

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

.home-slider:hover .home-slider-track {
  animation-play-state: paused;
}

.home-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.home-slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.home-slider.is-count-1 .home-slider-dots {
  display: none;
}

.home-slider.is-count-4 .home-slider-dots span:nth-child(1) {
  animation: home-dot-1 22s infinite ease-in-out;
}

.home-slider.is-count-4 .home-slider-dots span:nth-child(2) {
  animation: home-dot-2 22s infinite ease-in-out;
}

.home-slider.is-count-4 .home-slider-dots span:nth-child(3) {
  animation: home-dot-3 22s infinite ease-in-out;
}

.home-slider.is-count-4 .home-slider-dots span:nth-child(4) {
  animation: home-dot-4 22s infinite ease-in-out;
}

@keyframes home-slide-2 {
  0%, 42% {
    transform: translateX(0);
  }
  50%, 92% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes home-slide-3 {
  0%, 25% {
    transform: translateX(0);
  }
  33%, 58% {
    transform: translateX(-33.3333%);
  }
  66%, 91% {
    transform: translateX(-66.6667%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes home-slide-4 {
  0%, 18% {
    transform: translateX(0);
  }
  25%, 43% {
    transform: translateX(-25%);
  }
  50%, 68% {
    transform: translateX(-50%);
  }
  75%, 93% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes home-dot-1 {
  0%, 18%, 100% {
    background: #111;
  }
  25%, 93% {
    background: rgba(255, 255, 255, 0.55);
  }
}

@keyframes home-dot-2 {
  0%, 18%, 50%, 100% {
    background: rgba(255, 255, 255, 0.55);
  }
  25%, 43% {
    background: #111;
  }
}

@keyframes home-dot-3 {
  0%, 43%, 75%, 100% {
    background: rgba(255, 255, 255, 0.55);
  }
  50%, 68% {
    background: #111;
  }
}

@keyframes home-dot-4 {
  0%, 68%, 100% {
    background: rgba(255, 255, 255, 0.55);
  }
  75%, 93% {
    background: #111;
  }
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0.1) 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 0;
}

.hero-copy p,
.section-head p,
.about-copy p,
.admin-actions p,
.login-card p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 560px;
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  min-height: 46px;
  padding: 0 18px;
}

.primary-link {
  background: var(--green);
  color: #fff;
}

.secondary-link {
  border: 1px solid var(--green);
  background: #fff;
  color: var(--green-dark);
}

.service-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-grid div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}

.service-grid div:first-child {
  border-left: 1px solid var(--line);
}

.service-grid svg {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  color: var(--green);
}

.service-grid span,
.promo-grid p,
.about-copy span {
  color: var(--muted);
}

.promo-band {
  padding: 22px 0 0;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.promo-grid article,
.admin-card,
.admin-table-wrap,
.admin-form,
.detail-gallery,
.detail-info,
.spec-box,
.desc-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(4, 40, 76, 0.07);
}

.promo-grid article {
  min-height: 124px;
  padding: 18px;
}

.promo-grid span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 700;
}

.promo-grid strong {
  display: block;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.product-section {
  scroll-margin-top: 140px;
  padding: 28px 0 34px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.section-head h1,
.section-head h2,
.about-copy h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.section-head span {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.chips a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.chips a.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 500;
}

.sort-select select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.login-card input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.sort-select select {
  height: 36px;
  padding: 0 10px;
}

.tv-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.tv-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tv-filter-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 14px;
}

.tv-filter-form .admin-primary,
.tv-filter-form .admin-secondary {
  min-height: 38px;
  white-space: nowrap;
}

.tv-filter-bar {
  display: grid;
  gap: 9px;
  margin: 10px 0 8px;
  position: relative;
  z-index: 30;
}

.tv-filter-row,
.tv-filter-scroll,
.tv-sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tv-filter-scroll {
  overflow-x: auto;
  scrollbar-width: none;
}

.tv-filter-scroll::-webkit-scrollbar {
  display: none;
}

.tv-filter-open,
.tv-filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tv-filter-open {
  border: 1px solid #1b66ff;
  background: #fff;
  color: #1b66ff;
  cursor: pointer;
  font-family: inherit;
}

.tv-filter-open svg,
.tv-filter-chip svg,
.tv-panel-chip svg {
  width: 16px;
  height: 16px;
}

.tv-filter-chip {
  border: 1px solid transparent;
  background: #f3f5f8;
  color: #111827;
}

.tv-filter-chip.is-active {
  border-color: #1b66ff;
  background: #eaf1ff;
  color: #104fbf;
}

.tv-filter-chip.brand-samsung {
  color: #174ea6;
  text-transform: uppercase;
}

.tv-filter-chip.brand-lg {
  color: #111;
  font-size: 20px;
  font-weight: 800;
}

.tv-filter-chip.brand-tcl {
  color: #e60012;
  font-size: 18px;
  font-weight: 800;
}

.tv-filter-chip.brand-sony,
.tv-filter-chip.brand-toshiba {
  color: #111;
  text-transform: uppercase;
}

.tv-filter-chip.brand-aqua,
.tv-filter-chip.brand-haier {
  color: #1769c2;
}

.tv-filter-chip.brand-hisense {
  color: #00856f;
}

.tv-filter-chip.brand-xiaomi {
  color: #999;
}

.tv-filter-chip.ac-brand.brand-daikin,
.tv-panel-chip.ac-brand.brand-daikin {
  color: #0b79d0;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-filter-chip.ac-brand.brand-panasonic,
.tv-panel-chip.ac-brand.brand-panasonic {
  color: #1468b3;
  font-weight: 900;
}

.tv-filter-chip.ac-brand.brand-casper,
.tv-panel-chip.ac-brand.brand-casper {
  color: #6f7681;
  font-style: italic;
  font-weight: 800;
}

.tv-filter-chip.ac-brand.brand-nagakawa,
.tv-panel-chip.ac-brand.brand-nagakawa {
  color: #e60012;
  font-weight: 900;
}

.tv-filter-chip.ac-brand.brand-toshiba,
.tv-panel-chip.ac-brand.brand-toshiba {
  color: #e53935;
  font-weight: 900;
}

.tv-filter-chip.ac-brand.brand-comfee,
.tv-panel-chip.ac-brand.brand-comfee {
  color: #24a6e8;
  font-style: italic;
  font-weight: 900;
}

.tv-filter-chip.ac-brand.brand-funiki,
.tv-panel-chip.ac-brand.brand-funiki,
.tv-filter-chip.ac-brand.brand-midea,
.tv-panel-chip.ac-brand.brand-midea,
.tv-filter-chip.ac-brand.brand-gree,
.tv-panel-chip.ac-brand.brand-gree,
.tv-filter-chip.ac-brand.brand-aux,
.tv-panel-chip.ac-brand.brand-aux {
  color: #1268b7;
  font-weight: 900;
}

.tv-filter-chip.ac-brand.brand-sharp,
.tv-panel-chip.ac-brand.brand-sharp,
.tv-filter-chip.ac-brand.brand-sunhouse,
.tv-panel-chip.ac-brand.brand-sunhouse {
  color: #e53935;
  font-weight: 900;
}

.tv-filter-chip.ac-brand.brand-kangaroo,
.tv-panel-chip.ac-brand.brand-kangaroo {
  color: #65a30d;
  font-style: italic;
  font-weight: 900;
}

.tv-filter-chip.ac-brand.brand-livotec,
.tv-panel-chip.ac-brand.brand-livotec {
  color: #0eb5aa;
  font-weight: 900;
}

.tv-filter-chip.fridge-brand.brand-hitachi,
.tv-panel-chip.fridge-brand.brand-hitachi {
  color: #111;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-filter-chip.fridge-brand.brand-sharp,
.tv-panel-chip.fridge-brand.brand-sharp,
.tv-filter-chip.fridge-brand.brand-toshiba,
.tv-panel-chip.fridge-brand.brand-toshiba {
  color: #e53935;
  font-weight: 900;
}

.tv-filter-chip.fridge-brand.brand-funiki,
.tv-panel-chip.fridge-brand.brand-funiki {
  color: #1268b7;
  font-size: 17px;
  font-weight: 900;
}

.tv-filter-chip.fridge-brand.brand-hisense,
.tv-panel-chip.fridge-brand.brand-hisense {
  color: #00856f;
  font-weight: 900;
}

.tv-filter-chip.washer-brand.brand-electrolux,
.tv-panel-chip.washer-brand.brand-electrolux {
  color: #1f2a44;
  font-size: 12px;
  font-weight: 900;
}

.tv-filter-chip.washer-brand.brand-bosch,
.tv-panel-chip.washer-brand.brand-bosch,
.tv-filter-chip.washer-brand.brand-sharp,
.tv-panel-chip.washer-brand.brand-sharp,
.tv-filter-chip.washer-brand.brand-toshiba,
.tv-panel-chip.washer-brand.brand-toshiba {
  color: #e53935;
  font-weight: 900;
}

.tv-filter-chip.washer-brand.brand-casper,
.tv-panel-chip.washer-brand.brand-casper {
  color: #6f7681;
  font-style: italic;
  font-weight: 800;
}

.tv-filter-chip.washer-brand.brand-hitachi,
.tv-panel-chip.washer-brand.brand-hitachi {
  color: #111;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-filter-chip.washer-brand.brand-hisense,
.tv-panel-chip.washer-brand.brand-hisense {
  color: #00856f;
  font-weight: 900;
}

.tv-filter-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  z-index: 40;
  overflow: hidden;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.tv-filter-bar.is-open .tv-filter-panel {
  display: block;
}

.tv-filter-arrow {
  position: absolute;
  top: -8px;
  left: 31px;
  width: 16px;
  height: 16px;
  border-top: 1px solid #dde3ec;
  border-left: 1px solid #dde3ec;
  background: #fff;
  transform: rotate(45deg);
}

.tv-filter-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 120px;
}

.tv-filter-panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
}

.tv-filter-close {
  position: absolute;
  right: 12px;
  top: 50%;
  min-height: 36px;
  transform: translateY(-50%);
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.tv-filter-panel-body {
  max-height: min(620px, 72vh);
  overflow: auto;
  padding: 12px 18px 22px;
}

.tv-filter-checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #374151;
  font-size: 13px;
}

.tv-filter-checkline span {
  width: 16px;
  height: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
}

.tv-filter-checkline.is-active span {
  border-color: #1b66ff;
  background: #1b66ff;
  box-shadow: inset 0 0 0 3px #fff;
}

.tv-filter-checkline strong {
  font-weight: 500;
}

.tv-filter-group {
  border-top: 1px solid #eef2f7;
  padding: 17px 0 0;
  margin-top: 14px;
}

.tv-filter-group h3 {
  margin: 0 0 9px;
  color: #333;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.tv-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-panel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 36px;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  background: #fff;
  color: #374151;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.tv-panel-chip.is-active {
  border-color: #1b66ff;
  background: #eaf1ff;
  color: #104fbf;
  box-shadow: inset 0 0 0 1px #1b66ff;
}

.tv-panel-chip.ac-capacity-chip {
  flex-direction: column;
  gap: 3px;
  width: 98px;
  min-height: 88px;
  padding: 8px 6px;
  text-align: center;
}

.tv-panel-chip.ac-capacity-chip svg {
  width: 27px;
  height: 20px;
  color: #aab3bf;
  stroke-width: 1.6;
}

.tv-panel-chip.ac-capacity-chip strong {
  color: #1681ff;
  font-size: 14px;
  line-height: 1.1;
}

.tv-panel-chip.ac-capacity-chip span {
  color: #374151;
  font-size: 14px;
  line-height: 1.2;
}

.tv-panel-chip.ac-design-chip {
  gap: 8px;
  min-height: 50px;
}

.tv-panel-chip.ac-design-chip svg {
  width: 27px;
  height: 20px;
  color: #c7ccd4;
  stroke-width: 1.7;
}

.tv-panel-chip.fridge-type-chip {
  gap: 8px;
  min-height: 50px;
}

.tv-panel-chip.fridge-type-chip svg {
  width: 26px;
  height: 26px;
  color: #8dc9f0;
  stroke-width: 1.7;
}

.tv-panel-chip.washer-type-chip {
  gap: 8px;
  min-height: 50px;
}

.tv-panel-chip.washer-type-chip svg {
  width: 24px;
  height: 24px;
  color: #c8ced8;
  stroke-width: 1.7;
}

.filter-note-link {
  display: inline-flex;
  margin-top: 12px;
  color: #1985e8;
  font-size: 14px;
  font-weight: 500;
}

.ac-filter-bar .tv-filter-panel {
  max-height: min(650px, 78vh);
}

.fridge-filter-bar .tv-filter-panel {
  max-height: min(650px, 78vh);
}

.washer-filter-bar .tv-filter-panel {
  max-height: min(650px, 78vh);
}

.ac-filter-bar .tv-filter-panel-body {
  max-height: min(542px, calc(78vh - 116px));
  padding-bottom: 16px;
}

.fridge-filter-bar .tv-filter-panel-body {
  max-height: min(542px, calc(78vh - 116px));
  padding-bottom: 16px;
}

.washer-filter-bar .tv-filter-panel-body {
  max-height: min(542px, calc(78vh - 116px));
  padding-bottom: 16px;
}

.ac-capacity-options {
  gap: 6px;
}

.ac-filter-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid #edf0f5;
  background: #fff;
  padding: 10px 14px;
  box-shadow: 0 -8px 16px rgba(15, 23, 42, 0.05);
}

.ac-filter-clear,
.ac-filter-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 38px;
  border-radius: 4px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ac-filter-clear {
  border: 1px solid #ff1f1f;
  background: #fff;
  color: #ff1f1f;
}

.ac-filter-view {
  border: 1px solid #2d92db;
  background: #2d92db;
  color: #fff;
}

.tv-panel-chip.brand-samsung {
  color: #174ea6;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-panel-chip.brand-lg {
  color: #111;
  font-size: 20px;
  font-weight: 900;
}

.tv-panel-chip.brand-tcl {
  color: #e60012;
  font-size: 18px;
  font-weight: 900;
}

.tv-panel-chip.brand-sony,
.tv-panel-chip.brand-toshiba {
  color: #111;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-panel-chip.brand-aqua,
.tv-panel-chip.brand-haier {
  color: #1769c2;
  font-weight: 800;
}

.tv-panel-chip.brand-hisense {
  color: #00856f;
  font-weight: 900;
}

.tv-panel-chip.brand-xiaomi {
  color: #8a8f99;
  font-size: 18px;
  font-weight: 800;
}

.tv-price-custom {
  display: grid;
  max-width: 640px;
  gap: 12px;
  margin-top: 14px;
  color: #1780f7;
}

.tv-price-custom > div:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.tv-price-custom svg {
  width: 16px;
  height: 16px;
}

.tv-price-range-line {
  position: relative;
  height: 18px;
  margin: 0 12px;
}

.tv-price-range-line::before,
.tv-price-range-line b {
  content: "";
  position: absolute;
  left: 32%;
  right: 10%;
  top: 8px;
  height: 4px;
  border-radius: 999px;
  background: #4d8df7;
}

.tv-price-range-line span,
.tv-price-range-line b::before {
  content: "";
  position: absolute;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4d8df7;
  box-shadow: 0 0 0 3px #fff;
}

.tv-price-range-line span {
  left: 31%;
}

.tv-price-range-line b::before {
  right: -4px;
}

.tv-price-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 78px;
  max-width: 330px;
  margin-left: 272px;
}

.tv-price-inputs input {
  width: 116px;
  height: 34px;
  border: 1px solid #c6cbd3;
  border-radius: 4px;
  background: #fff;
  color: #4b5563;
  text-align: center;
  font: inherit;
  font-size: 14px;
}

.tv-sort-row {
  flex-wrap: wrap;
  color: #4b5563;
  font-size: 14px;
}

.tv-sort-row > span {
  color: #334155;
}

.tv-sort-row a {
  color: #3b5fa9;
  font-size: 13px;
}

.tv-sort-row a.is-active {
  color: #1b66ff;
  font-weight: 700;
}

.tv-sort-row i {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #d5dbe5;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 10px;
  color: var(--muted);
}

.clear-filter {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 7px 8px 10px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  z-index: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  display: grid;
  height: 202px;
  place-items: center;
  margin-bottom: 7px;
  background: #fff;
  overflow: hidden;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  display: block;
  height: 40px;
  margin: 0 0 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 19px;
  text-align: left;
}

.product-name a {
  display: block;
  color: inherit;
  overflow-wrap: anywhere;
}

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

.price {
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.discount {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  border-radius: 3px;
  background: var(--pink);
  color: #fff;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.installment-card-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border: 1px solid #ff9f43;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.96);
  color: var(--green-dark);
  padding: 2px 7px 2px 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 39, 79, 0.12);
}

.installment-card-badge span {
  display: inline-grid;
  min-width: 28px;
  min-height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ff7a00;
  color: #fff;
  font-size: 11px;
}

.installment-card-badge b {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
}

.old-price {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  text-decoration: line-through;
}

.rating-row,
.stock-row {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.rating-row {
  margin-top: 6px;
}

.stars {
  color: #f7b500;
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
}

.stock-row {
  justify-content: space-between;
  min-height: 22px;
  margin-top: 4px;
  color: var(--blue);
}

.stock-row.is-out-of-stock {
  color: var(--red);
}

.stock-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-row .sold-count {
  color: #555;
  font-size: 12px;
  white-space: nowrap;
}

.stock-row svg {
  width: 15px;
  height: 15px;
  color: #333;
}

.stock-row input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--green);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.card-buy-form {
  display: flex;
  min-width: 0;
}

.card-buy-form .card-buy-btn,
.card-buy-btn {
  width: 100%;
}

.consult-btn,
.compare-btn {
  min-height: 38px;
  border: 0;
}

.consult-btn {
  background: var(--green);
  color: #fff;
}

.compare-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.consult-btn svg,
.compare-btn svg {
  width: 17px;
  height: 17px;
}

.badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--green-dark);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.product-detail {
  padding: 28px 0 46px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.breadcrumb svg {
  width: 18px;
  height: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.product-media-gallery {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
}

.gallery-thumb {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  padding: 3px;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

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

.detail-gallery {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  padding: 20px;
}

.detail-zoom {
  display: grid;
  width: 100%;
  height: 370px;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
}

.detail-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: transform 0.18s ease;
  will-change: transform;
}

.detail-zoom.is-zooming img {
  transform: scale(2.15);
}

.gallery-share {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 5px;
  min-height: 26px;
  margin-top: 8px;
  border-radius: 4px;
  background: #1877f2;
  color: #fff;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.gallery-share svg {
  width: 15px;
  height: 15px;
}

.detail-info {
  padding: 24px;
}

.detail-info p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-info h1 {
  margin: 0;
  color: #111;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.detail-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
}

.detail-rating .stock-label,
.detail-rating .sold-count {
  color: var(--blue);
  font-weight: 700;
}

.detail-rating .sold-count {
  color: #555;
}

.detail-price {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.detail-price strong {
  color: var(--red);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.detail-price span {
  color: var(--muted);
  text-decoration: line-through;
}

.detail-price b {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  padding: 0 8px;
}

.detail-promo {
  max-width: 520px;
  margin-top: 14px;
  color: #333;
  font-size: 13px;
  line-height: 19px;
}

.detail-promo-title {
  margin-bottom: -1px;
  color: #111;
  font-weight: 700;
}

.detail-promo-box {
  border: 1px solid #ddd;
  background: #fff;
  padding: 10px;
}

.detail-promo-box ul {
  margin: 0;
  padding-left: 18px;
}

.detail-promo-box li {
  margin: 0;
  padding: 0;
}

.detail-promo-box .promo-total-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px -18px;
  border: 1px solid #ffd1a8;
  border-radius: 6px;
  background: #fffaf4;
  padding: 8px 10px;
  color: var(--green-dark);
  font-weight: 700;
  list-style: none;
}

.promo-total-value strong {
  color: var(--red);
  font-size: 15px;
  white-space: nowrap;
}

.detail-promo-box .installment-promo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px -18px;
  border: 1px solid #ffbe7a;
  border-radius: 6px;
  background: #fff8ef;
  padding: 8px 11px;
  color: var(--green-dark);
  font-weight: 700;
  list-style: none;
}

.installment-promo-rate {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 30px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff7a00 0%, #ff9d2e 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.22);
}

.installment-promo-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.35;
}

.detail-promo-box strong {
  color: #111;
  font-weight: 700;
}

.detail-promo-box .installment-promo-copy strong {
  color: var(--green-dark);
  font-size: 13px;
  white-space: nowrap;
}

.installment-promo-copy small {
  color: #6b3b00;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .detail-promo-box .installment-promo-item {
    gap: 8px;
    padding: 8px;
  }

  .installment-promo-rate {
    min-width: 38px;
    min-height: 28px;
    font-size: 14px;
  }

  .installment-promo-copy small {
    font-size: 11px;
  }
}

.out-stock-note {
  display: grid;
  gap: 5px;
  max-width: 520px;
  margin-top: 12px;
  border: 1px solid #ffd0a3;
  border-left: 4px solid #ff7a00;
  border-radius: 8px;
  background: #fff8ed;
  color: #5f3300;
  padding: 12px 14px;
  line-height: 1.45;
}

.out-stock-note strong {
  color: #c93000;
  font-size: 15px;
}

.out-stock-note span {
  color: #55310a;
  font-size: 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.buy-form {
  display: inline-flex;
}

.buy-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: #ffd21f;
  color: #1b1b1b;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.buy-btn svg {
  width: 19px;
  height: 19px;
}

.buy-btn[disabled] {
  background: #d8e0ea;
  color: #5a6673;
  cursor: not-allowed;
}

.buy-btn.is-preorder {
  background: #ff7a00;
  color: #fff;
}

.buy-btn.is-preorder:hover {
  background: #e86800;
}

.detail-rating.is-out-of-stock .stock-label {
  color: var(--red);
  font-weight: 700;
}

.detail-consult {
  min-height: 46px;
  padding: 0 16px;
}

.detail-benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.detail-benefits li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.detail-benefits svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex: 0 0 auto;
}

.detail-bottom {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.spec-box,
.desc-box {
  padding: 20px;
}

.spec-box h2,
.desc-box h2,
.related-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.spec-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-box li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spec-box li:last-child {
  border-bottom: 0;
}

.spec-box span {
  color: var(--muted);
}

.desc-content {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
  white-space: pre-line;
}

.desc-collapsible {
  --desc-collapsed-height: 520px;
  position: relative;
}

.desc-box.is-collapsible:not(.is-expanded) .desc-collapsible {
  max-height: var(--desc-collapsed-height);
  overflow: hidden;
}

.desc-box.is-collapsible:not(.is-expanded) .desc-collapsible::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 76%);
}

.desc-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  margin: 16px auto 0;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.desc-box.is-collapsible .desc-toggle {
  display: inline-flex;
}

.desc-toggle[hidden] {
  display: none !important;
}

.desc-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.desc-box.is-expanded .desc-toggle svg {
  transform: rotate(180deg);
}

.desc-rich {
  display: grid;
  gap: 12px;
  white-space: normal;
}

.desc-rich h2,
.desc-rich h3,
.desc-rich h4 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.desc-rich p,
.desc-rich ul,
.desc-rich ol,
.desc-rich figure {
  margin: 0;
}

.desc-rich ul,
.desc-rich ol {
  padding-left: 20px;
}

.desc-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.desc-image img {
  width: 100%;
  height: auto;
}

.related-section {
  margin-top: 20px;
}

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

.related-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.related-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  background: #f7faff;
}

.related-card span {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card strong {
  color: var(--red);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: center;
  padding: 8px 0 48px;
}

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

.brand-cloud b {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 5px 16px rgba(4, 40, 76, 0.07);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f7faff;
  padding: 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 1fr;
  gap: 22px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-brand img {
  width: 210px;
  max-width: 100%;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  display: block;
  margin: 0 0 7px;
  color: var(--green-dark);
}

.footer-note {
  color: var(--muted);
}

.policy-page,
.cart-page,
.checkout-page {
  padding: 30px 0 46px;
}

.policy-page h1,
.cart-page h1,
.checkout-page h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 28px;
}

.policy-content,
.cart-panel,
.order-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(4, 40, 76, 0.07);
}

.policy-content {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.65;
}

.policy-content p,
.policy-content ul {
  margin-top: 0;
}

.cart-panel {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 120px 70px 120px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: #fff;
}

.cart-item a {
  color: var(--ink);
  font-weight: 700;
}

.cart-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item input {
  width: 64px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
}

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

.cart-summary strong,
.order-summary strong {
  color: var(--red);
  font-size: 20px;
}

.order-shipping-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cart-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.checkout-page > div > p,
.checkout-note {
  color: var(--muted);
}

.order-summary ul {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.order-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, 0.42);
}

.consult-modal.is-open {
  display: block;
}

.consult-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 100%);
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

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

.consult-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.consult-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.consult-head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.consult-panel p {
  margin: 0;
  padding: 16px 18px 0;
  color: var(--muted);
}

.consult-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.consult-options a {
  display: grid;
  min-height: 88px;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  text-align: center;
  font-weight: 700;
}

.consult-options a:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.consult-options svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.consult-options .zalo-link span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.admin-auth,
.admin-shell {
  padding: 30px 0 48px;
}

.admin-card,
.login-card {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.login-card {
  display: grid;
  gap: 14px;
}

.login-card h1,
.admin-actions h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.login-card label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.login-card input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
}

.admin-primary {
  min-height: 42px;
  border: 0;
  background: var(--green);
  color: #fff;
  padding: 0 14px;
}

.admin-secondary {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  padding: 0 12px;
}

.danger-btn {
  min-height: 38px;
  border: 1px solid #ffd7d7;
  background: #fff4f4;
  color: var(--red);
  padding: 0 12px;
}

.admin-topbar,
.admin-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-topbar a,
.admin-topbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  padding: 0 12px;
  font-weight: 700;
}

.admin-topbar form {
  margin: 0;
}

.admin-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-flash {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.admin-flash.is-success {
  border-color: #b8e6c9;
  background: #effbf3;
  color: #08733a;
}

.admin-flash.is-error {
  border-color: #ffc7c7;
  background: #fff1f1;
  color: var(--red);
}

.import-form {
  display: grid;
  gap: 18px;
}

.import-source-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.import-source-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.import-source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.import-source-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.import-source-head h2 {
  color: var(--ink);
  font-size: 22px;
  margin: 0;
}

.import-source-head span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}

.import-source-note {
  color: var(--muted);
  margin: 8px 0 0;
}

.import-source-actions {
  justify-content: flex-end;
}

.import-note {
  border: 1px solid #ffe2a8;
  border-radius: 8px;
  background: #fff8e6;
  color: #6f4d00;
  padding: 12px 14px;
}

.import-note strong {
  display: block;
  margin-bottom: 4px;
  color: #4d3700;
}

.sync-admin-form {
  display: grid;
  gap: 16px;
}

.sync-actions,
.sync-action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sync-action-panel {
  justify-content: flex-end;
  margin-top: 14px;
}

.sync-action-panel form {
  margin: 0;
}

.sync-last-result {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 14px;
  padding: 14px;
}

.sync-last-result strong {
  color: var(--green-dark);
}

.sync-last-result span,
.sync-last-result small {
  color: var(--muted);
}

.sync-last-result code,
.sync-last-result pre {
  font-family: Consolas, "Courier New", monospace;
}

.sync-last-result code {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sync-last-result pre {
  margin: 8px 0 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  overflow: auto;
  white-space: pre-wrap;
}

.sync-agent-status {
  border-left: 4px solid var(--line);
}

.sync-agent-status.is-pending {
  border-left-color: #f59e0b;
}

.sync-agent-status.is-running {
  border-left-color: #2563eb;
}

.sync-agent-status.is-success {
  border-left-color: #16a34a;
}

.sync-agent-status.is-error {
  border-left-color: #dc2626;
}

.catalog-filter-form {
  margin-bottom: 14px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.admin-table-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
}

.pager {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  padding: 0 10px;
}

.pager span {
  color: var(--muted);
}

.banner-admin-form {
  display: grid;
  gap: 16px;
}

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

.banner-admin-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.banner-admin-preview {
  aspect-ratio: 1500 / 520;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faff;
}

.banner-admin-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-field-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.import-check {
  min-height: 42px;
}

.gallery-editor {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
  padding: 12px;
}

.gallery-editor-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}

.gallery-editor-head strong {
  color: var(--green-dark);
}

.gallery-editor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gallery-editor-item {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.gallery-editor-image {
  position: relative;
  display: grid;
  height: 92px;
  place-items: center;
  border-radius: 6px;
  background: #f0f5fb;
  overflow: hidden;
}

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

.gallery-editor-image span {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 59, 109, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.gallery-editor-url {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-editor-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid #ffd7d7;
  border-radius: 6px;
  background: #fff4f4;
  color: var(--red);
  font-weight: 700;
}

.gallery-editor-delete svg {
  width: 16px;
  height: 16px;
}

.gallery-editor-item.has-error .gallery-editor-image {
  border: 1px dashed #ffb7b7;
  background: #fff4f4;
}

.gallery-editor-empty {
  margin: 0;
  color: var(--muted);
}

.admin-description-preview {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.admin-description-preview > strong {
  color: var(--green-dark);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

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

.admin-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table th a {
  color: inherit;
}

.admin-table .number-cell {
  text-align: right;
  font-weight: 700;
}

.admin-table .select-cell {
  width: 42px;
  text-align: center;
}

.admin-table .select-cell input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.installment-bulk-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
}

.promotion-scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promotion-scope-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  font-weight: 700;
}

.promotion-scope-row input {
  width: auto;
  min-height: 0;
}

.promotion-admin-form {
  margin-bottom: 16px;
}

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

.promotion-product-search {
  margin-top: 6px;
}

.promotion-product-search-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.promotion-admin-table .admin-table {
  min-width: 1080px;
}

.promotion-admin-table td:nth-child(3) {
  min-width: 260px;
  line-height: 1.45;
}

.admin-product-cell {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
}

.admin-product-cell img {
  width: 70px;
  height: 58px;
  object-fit: contain;
  background: #f7faff;
}

.admin-product-cell span {
  display: block;
  color: var(--muted);
}

.status-pill {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 0 10px;
  font-weight: 700;
}

.status-contacted {
  background: #eef2ff;
  color: #304a9c;
}

.status-shipping {
  background: #fff3d8;
  color: #8a5200;
}

.status-completed {
  background: #e7f7ed;
  color: #08733a;
}

.status-cancelled {
  background: #fff0f0;
  color: var(--red);
}

.admin-subline,
.muted-text {
  display: block;
  color: var(--muted);
}

.order-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.order-filter-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  padding: 0 12px;
  font-weight: 700;
}

.order-filter-tabs a.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.admin-order-table {
  min-width: 1080px;
}

.admin-order-id span,
.admin-order-customer span,
.admin-order-customer em,
.admin-order-items span {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.admin-order-customer {
  display: grid;
  gap: 4px;
  min-width: 210px;
}

.admin-order-customer a {
  color: var(--green);
  font-weight: 700;
}

.admin-order-items {
  display: grid;
  gap: 8px;
  min-width: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-order-items li {
  display: grid;
  gap: 3px;
}

.admin-order-items a {
  color: var(--ink);
}

.admin-order-actions {
  min-width: 220px;
}

.order-status-form {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 0;
}

.order-status-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
}

.row-actions,
.admin-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.row-actions form {
  margin: 0;
}

.admin-form {
  padding: 18px;
}

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

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.check-row {
  align-content: end;
  grid-template-columns: auto 1fr;
  justify-content: start;
}

.check-row input {
  width: auto;
  min-height: auto;
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 268px minmax(260px, 1fr);
  }

  .brand-logo {
    width: 248px;
  }

  .hotline {
    display: none;
  }

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

@media (max-width: 860px) {
  .wrap {
    width: min(100% - 22px, 760px);
  }

  .header-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero {
    min-height: 390px;
  }

  .home-slider {
    min-height: 300px;
  }

  .home-slide img {
    object-fit: cover;
    object-position: center;
  }

  .hero-copy {
    min-height: 390px;
  }

  .hero-copy h1 {
    max-width: 520px;
    font-size: 34px;
  }

  .service-grid,
  .promo-grid,
  .about-section,
  .detail-layout,
  .detail-bottom,
  .footer-grid,
  .checkout-page {
    grid-template-columns: 1fr 1fr;
  }

  .cart-item {
    grid-template-columns: 68px minmax(0, 1fr) 82px;
  }

  .cart-item strong,
  .cart-item input,
  .cart-item b {
    grid-column: 2 / -1;
  }

  .toolbar,
  .admin-topbar,
  .admin-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-editor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .banner-admin-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.filter-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    z-index: 200;
  }

  body.nav-open .tv-filter-bar {
    z-index: 0;
    pointer-events: none;
  }

  body.nav-open .tv-filter-panel {
    display: none !important;
  }

  .wrap {
    width: min(100% - 18px, 560px);
  }

  .site-header {
    position: sticky;
  }

  .header-main {
    width: 100%;
    grid-template-columns: 64px minmax(0, 1fr) 112px;
    gap: 8px;
    min-height: 0;
    padding: 10px 12px 0;
  }

  .mobile-menu-toggle {
    display: grid;
    min-width: 0;
    min-height: 62px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0;
    text-transform: uppercase;
  }

  .mobile-menu-toggle svg {
    width: 42px;
    height: 42px;
    stroke-width: 2.2;
  }

  .mobile-menu-toggle span {
    display: block;
    margin-top: -3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  .brand {
    justify-self: center;
    width: 100%;
    max-width: 180px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .brand-logo {
    width: 100%;
    max-height: 62px;
    object-fit: contain;
  }

  .hotline {
    display: flex;
    justify-content: flex-end;
    min-height: 62px;
    gap: 0;
    text-align: right;
  }

  .hotline svg {
    display: none;
  }

  .hotline small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
  }

  .hotline strong {
    color: #fff;
    font-size: clamp(17px, 5.2vw, 22px);
    font-weight: 500;
    white-space: nowrap;
  }

  .search {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 106px;
    margin: 10px -12px 0;
    background: #fff;
    padding: 14px 12px;
  }

  .search input,
  .search button {
    height: 58px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    font-size: 18px;
  }

  .search input {
    padding: 0 16px;
    border-right: 0;
  }

  .search input::placeholder {
    color: #6b6b6b;
  }

  .search button {
    background: #e6e6e6;
    color: #333;
    font-size: 16px;
    font-weight: 700;
  }

  .search button svg {
    display: none;
  }

  .search button span {
    display: inline;
  }

  .category-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 220;
    width: min(82vw, 310px);
    height: 100dvh;
    transform: translateX(-105%);
    background: var(--green);
    box-shadow: 18px 0 36px rgba(0, 0, 0, 0.24);
    transition: transform 180ms ease;
  }

  .category-nav.is-open {
    transform: translateX(0);
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 0 14px;
  }

  .mobile-nav-head strong {
    font-size: 16px;
  }

  .mobile-menu-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .mobile-menu-close svg {
    width: 22px;
    height: 22px;
  }

  .category-nav .nav-scroll {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    padding: 8px 0 18px;
  }

  .nav-scroll a {
    width: 100%;
    height: 46px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 16px;
    font-size: 13px;
  }

  .nav-scroll a.is-active,
  .nav-scroll a:hover {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: none;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    padding: 0;
  }

  .mobile-menu-backdrop.is-open {
    display: block;
  }

  .hero {
    min-height: 360px;
  }

  .home-slider {
    height: auto;
    min-height: 0;
    aspect-ratio: 1500 / 520;
  }

  .home-slide img {
    object-fit: contain;
    object-position: center;
  }

  .home-slider-dots {
    bottom: 8px;
    gap: 7px;
  }

  .home-slider-dots span {
    width: 9px;
    height: 9px;
    background: rgba(87, 87, 87, 0.72);
  }

  .service-strip,
  .promo-band {
    display: none;
  }

  .hero img {
    object-position: 62% center;
  }

  .hero-copy {
    min-height: 360px;
  }

  .hero-copy h1 {
    max-width: 340px;
    font-size: 28px;
  }

  .service-grid,
  .about-section,
  .detail-layout,
  .detail-bottom,
  .footer-grid,
  .checkout-page,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .service-grid div {
    grid-template-columns: 28px 1fr;
    min-height: 62px;
    padding: 10px 8px;
  }

  .service-grid svg {
    width: 23px;
    height: 23px;
  }

  .service-grid strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .service-grid span {
    font-size: 11px;
    line-height: 1.25;
  }

  .promo-band {
    padding-top: 12px;
  }

  .promo-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .promo-grid::-webkit-scrollbar {
    display: none;
  }

  .promo-grid article {
    flex: 0 0 82%;
    min-height: 108px;
    padding: 13px;
    scroll-snap-align: start;
  }

  .promo-grid span {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .promo-grid strong {
    font-size: 15px;
  }

  .promo-grid p {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .cart-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cart-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-actions > * {
    width: 100%;
  }

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

  .section-head h1,
  .section-head h2,
  .about-copy h2 {
    font-size: 18px;
  }

  .product-section {
    padding: 0 0 28px;
    scroll-margin-top: 190px;
  }

  .product-section .section-head,
  .product-section .result-line {
    display: none;
  }

  .section-head {
    gap: 9px;
    margin-bottom: 6px;
    min-width: 0;
    overflow: hidden;
  }

  .toolbar {
    align-self: stretch;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  .chips {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chips a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .sort-select {
    align-self: stretch;
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }

  .result-line {
    min-height: 36px;
    margin-bottom: 8px;
  }

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

  .product-card {
    min-height: 0;
    padding: 10px 9px 12px;
  }

  .product-media {
    height: clamp(152px, 42vw, 190px);
    margin-bottom: 9px;
  }

  .product-name {
    height: 42px;
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 21px;
  }

  .price {
    font-size: 20px;
  }

  .discount {
    min-height: 28px;
    padding: 0 8px;
    font-size: 14px;
  }

  .old-price {
    font-size: 15px;
  }

  .rating-row,
  .stock-row {
    font-size: 15px;
  }

  .stars {
    font-size: 18px;
  }

  .stock-row {
    min-height: 30px;
  }

  .stock-row input {
    width: 22px;
    height: 22px;
  }

  .consult-btn,
  .compare-btn {
    min-height: 36px;
  }

  .detail-gallery {
    min-height: 290px;
    padding: 16px;
  }

  .detail-zoom {
    height: 250px;
  }

  .detail-zoom.is-zooming img {
    transform: none;
  }

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

  .gallery-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    order: 2;
  }

  .gallery-thumb {
    width: 100%;
    height: 58px;
  }

  .detail-info {
    padding: 18px;
  }

  .detail-info h1 {
    font-size: 20px;
  }

  .detail-price strong {
    font-size: 34px;
  }

  .spec-box li {
    grid-template-columns: 110px 1fr;
  }

  .consult-panel {
    width: calc(100% - 18px);
  }

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

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

@media (max-width: 380px) {
  .header-main {
    grid-template-columns: 58px minmax(0, 1fr) 104px;
    gap: 6px;
  }

  .mobile-menu-toggle svg {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 100%;
    max-height: 58px;
  }

  .hotline strong {
    font-size: 17px;
  }

  .search {
    grid-template-columns: minmax(0, 1fr) 94px;
  }

  .search input,
  .search button {
    height: 54px;
    font-size: 16px;
  }

  .product-media {
    height: 122px;
  }

  .price-line {
    gap: 5px;
  }
}

@media (max-width: 420px) {
  .product-card {
    padding: 8px 7px 10px;
  }

  .product-media {
    height: clamp(126px, 38vw, 146px);
    margin-bottom: 7px;
  }

  .product-name {
    height: 40px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 20px;
  }

  .price {
    font-size: 18px;
  }

  .discount {
    min-height: 24px;
    padding: 0 6px;
    font-size: 12px;
  }

  .old-price {
    font-size: 13px;
  }

  .rating-row {
    flex-wrap: nowrap;
    gap: 3px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.15;
  }

  .rating-row span:last-child {
    min-width: 0;
    white-space: nowrap;
  }

  .stars {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .stock-row {
    display: grid;
    grid-template-columns: auto minmax(38px, 1fr) auto;
    column-gap: 4px;
    min-height: 28px;
    font-size: 12px;
    line-height: 1.15;
  }

  .stock-row > span:first-child {
    gap: 2px;
    white-space: nowrap;
  }

  .stock-row .sold-count {
    justify-self: center;
    font-size: 11px;
  }

  .stock-row svg {
    width: 13px;
    height: 13px;
  }

  .stock-row input {
    justify-self: end;
    width: 18px;
    height: 18px;
  }

  .card-actions {
    grid-template-columns: 1fr 34px;
    gap: 6px;
    padding-top: 8px;
  }

  .consult-btn,
  .compare-btn {
    min-height: 34px;
  }

  .consult-btn {
    gap: 5px;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .tv-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tv-filter-form {
    grid-template-columns: 1fr;
    margin: 10px 0 12px;
  }

  .tv-filter-form .admin-primary,
  .tv-filter-form .admin-secondary {
    width: 100%;
  }

  .tv-filter-bar {
    z-index: 220;
  }

  .tv-filter-open,
  .tv-filter-chip {
    min-height: 38px;
    padding: 0 10px;
  }

  .tv-filter-panel {
    position: fixed;
    inset: 8px;
    top: 8px;
    right: 8px;
    left: 8px;
    bottom: 8px;
    display: none;
    max-width: none;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 8px;
    z-index: 260;
  }

  .tv-filter-bar.is-open .tv-filter-panel {
    display: grid;
  }

  .tv-filter-arrow {
    display: none;
  }

  .tv-filter-panel-head {
    z-index: 2;
    min-height: 54px;
    background: #fff;
    padding: 0 88px 0 16px;
  }

  .tv-filter-panel-head h2 {
    font-size: 17px;
  }

  .tv-filter-close {
    right: 8px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .tv-filter-panel-body {
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 10px 12px 14px;
  }

  .tv-filter-options {
    gap: 7px;
  }

  .tv-panel-chip {
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .tv-panel-chip.ac-capacity-chip {
    width: calc(50% - 4px);
    min-height: 82px;
  }

  .tv-panel-chip.ac-design-chip {
    flex: 1 1 46%;
    justify-content: flex-start;
    white-space: normal;
  }

  .tv-panel-chip.fridge-type-chip {
    flex: 1 1 46%;
    justify-content: flex-start;
    white-space: normal;
  }

  .tv-panel-chip.washer-type-chip {
    flex: 1 1 46%;
    justify-content: flex-start;
    white-space: normal;
  }

  .ac-filter-bar .tv-filter-panel-body {
    max-height: none;
  }

  .fridge-filter-bar .tv-filter-panel-body {
    max-height: none;
  }

  .washer-filter-bar .tv-filter-panel-body {
    max-height: none;
  }

  .ac-filter-actions {
    gap: 8px;
    padding: 9px 10px;
  }

  .ac-filter-clear,
  .ac-filter-view {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
  }

  .tv-price-custom {
    max-width: none;
  }

  .tv-price-range-line::before,
  .tv-price-range-line b {
    left: 8%;
    right: 8%;
  }

  .tv-price-range-line span {
    left: 7%;
  }

  .tv-price-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
    margin-left: 0;
  }

  .tv-price-inputs input {
    width: 100%;
  }
}

.product-questions {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.qa-head p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.qa-head h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.qa-panel {
  padding: 14px;
  border: 1px solid #d8e3ef;
  background: #f7fbff;
}

.qa-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.facebook-login-btn,
.google-login-btn,
.qa-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  background: #1877f2;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.google-login-btn {
  border: 1px solid #d8e3ef;
  background: #fff;
  color: var(--ink);
}

.google-login-btn span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px #d8e3ef;
}

.qa-facebook-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qa-facebook-user a {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.qa-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.qa-avatar img,
.qa-avatar span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}

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

.qa-rating-input {
  display: grid;
  gap: 8px;
}

.qa-rating-input > span {
  color: var(--ink);
  font-weight: 800;
}

.qa-rating-input > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-rating-input label {
  cursor: pointer;
}

.qa-rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qa-rating-input label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  background: #fff;
  color: #f59e0b;
  font-weight: 900;
}

.qa-rating-input input:checked + span {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #b45309;
}

.qa-form textarea,
.question-admin-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #cfdbe8;
  padding: 10px 12px;
  font: inherit;
}

.qa-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.qa-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
}

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

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

.qa-item p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.qa-answer {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--orange);
  background: #fff7ed;
}

.qa-answer strong {
  display: block;
  color: var(--orange-dark);
  margin-bottom: 3px;
}

.qa-empty,
.qa-login-note,
.qa-message {
  padding: 10px 12px;
  border: 1px solid #d8e3ef;
  background: #f8fafc;
  color: var(--muted);
}

.qa-message {
  margin-bottom: 12px;
  font-weight: 700;
}

.qa-message.is-success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.qa-message.is-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.question-admin-table td {
  vertical-align: top;
}

.question-admin-table p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.question-admin-form {
  min-width: 280px;
}

.question-admin-form .row-actions {
  margin-top: 8px;
}

.question-admin-form select {
  min-height: 38px;
  border: 1px solid #cfdbe8;
  padding: 0 10px;
  background: #fff;
}

.question-rating {
  color: #f59e0b;
  white-space: nowrap;
}

.review-qa {
  border: 0;
  border-radius: 12px;
  padding: 28px 30px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.review-qa h2 {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.review-overview {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(220px, 1fr) minmax(220px, 250px);
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.review-score {
  text-align: center;
}

.review-score > div {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  color: #94a3b8;
}

.review-score b {
  color: #fb923c;
  font-size: 28px;
  line-height: 1;
}

.review-score strong {
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
}

.review-score span {
  font-size: 16px;
}

.review-score p {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 15px;
}

.review-score small {
  color: #94a3b8;
  font-size: 14px;
}

.review-bars {
  display: grid;
  gap: 9px;
}

.review-bar-row {
  display: grid;
  grid-template-columns: 42px minmax(90px, 1fr) 54px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.review-bar-row span {
  color: var(--ink);
  text-align: right;
}

.review-bar-row b {
  color: #fb923c;
}

.review-bar-row i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff3;
}

.review-bar-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #60a5fa;
}

.review-bar-row strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.review-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.review-photos:empty {
  display: none;
}

.review-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f7;
}

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

.review-photo span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  background: rgba(2, 6, 23, 0.62);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.review-compose {
  margin: 0 0 20px;
  border-radius: 10px;
  background: #f8fbff;
}

.review-list {
  gap: 0;
  margin-top: 0;
}

.qa-review-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #e5edf6;
}

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

.qa-review-body > p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.5;
}

.qa-review-item .qa-meta {
  gap: 10px;
  align-items: center;
}

.qa-review-item .qa-meta strong {
  color: var(--ink);
}

.qa-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #16a34a;
  font-size: 13px;
}

.qa-verified svg {
  width: 14px;
  height: 14px;
}

.qa-item-stars {
  margin-top: 7px;
  color: #f59e0b;
  font-size: 15px;
}

.qa-no-rating {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.qa-review-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.qa-review-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qa-review-foot svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 640px) {
  .product-questions {
    margin: 14px 0;
    padding: 0;
  }

  .review-qa {
    border-radius: 10px;
    padding: 16px 12px;
  }

  .review-qa h2 {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.4;
  }

  .review-overview {
    grid-template-columns: minmax(112px, 0.9fr) minmax(158px, 1.1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
  }

  .review-score {
    min-width: 0;
    text-align: center;
  }

  .review-score b {
    font-size: 22px;
  }

  .review-score strong {
    font-size: 38px;
  }

  .review-score span {
    font-size: 13px;
  }

  .review-score p {
    margin-top: 6px;
    font-size: 13px;
  }

  .review-score small {
    font-size: 13px;
  }

  .review-bars {
    min-width: 0;
    gap: 7px;
  }

  .review-bar-row {
    grid-template-columns: 26px minmax(54px, 1fr) 38px;
    gap: 6px;
    font-size: 13px;
  }

  .review-bar-row strong {
    font-size: 12px;
  }

  .review-photos {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  .review-photos::-webkit-scrollbar {
    display: none;
  }

  .review-photo {
    width: 82px;
    min-width: 82px;
    border-radius: 7px;
  }

  .review-photo span {
    padding: 6px;
    font-size: 12px;
  }

  .qa-review-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .qa-review-item .qa-avatar {
    display: none;
  }

  .qa-review-item .qa-meta {
    align-items: flex-start;
    gap: 6px;
  }

  .qa-verified {
    font-size: 12px;
  }

  .qa-item-stars {
    margin-top: 6px;
    font-size: 14px;
  }

  .qa-review-body > p {
    font-size: 14px;
    line-height: 1.48;
  }

  .qa-review-foot {
    gap: 10px;
    font-size: 12px;
  }

  .qa-panel,
  .qa-item {
    padding: 12px;
  }

  .facebook-login-btn,
  .google-login-btn,
  .qa-form button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .review-overview {
    grid-template-columns: 1fr;
  }

  .review-score {
    text-align: left;
  }

  .review-bars {
    width: 100%;
  }
}
