: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: 20;
  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;
}

.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 h2,
.about-copy h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.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;
}

.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;
}

.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 span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.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;
}

.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-gallery img {
  width: 100%;
  height: 370px;
  object-fit: contain;
}

.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 span:last-child {
  color: var(--blue);
  font-weight: 700;
}

.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 strong {
  color: #111;
  font-weight: 700;
}

.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;
}

.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-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;
}

.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;
}

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

.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;
}

.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-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;
}

.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;
  }

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

  .header-main {
    gap: 8px;
    min-height: 0;
    padding: 8px 0;
  }

  .brand {
    border-radius: 8px;
    padding: 4px 6px;
  }

  .brand-logo {
    width: 190px;
  }

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

  .search input,
  .search button {
    height: 40px;
  }

  .search button span,
  .card-actions .consult-btn span {
    display: none;
  }

  .nav-scroll a {
    height: 36px;
    padding: 0 9px;
    font-size: 12px;
  }

  .hero {
    min-height: 360px;
  }

  .home-slider {
    height: clamp(146px, 42vw, 180px);
    min-height: 0;
    aspect-ratio: auto;
  }

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

  .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 h2,
  .about-copy h2 {
    font-size: 18px;
  }

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

  .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: 8px;
  }

  .product-media {
    height: 132px;
  }

  .product-name {
    height: 38px;
    line-height: 18px;
  }

  .price {
    font-size: 16px;
  }

  .discount {
    min-height: 22px;
    padding: 0 6px;
  }

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

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

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

  .detail-gallery img {
    height: 250px;
  }

  .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) {
  .brand-logo {
    width: 176px;
  }

  .product-media {
    height: 122px;
  }

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