/* Một font toàn site — phong cách Shopee Display (Plus Jakarta Sans, hỗ trợ tiếng Việt) */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");
@import url("search.css");

:root {
  /* BEM Design — lấy màu từ logo (cam #F15A24 + đen) */
  --bem-orange: #f15a24;
  --bem-orange-dark: #d94e1a;
  --bem-orange-light: #ff7a47;
  --bem-black: #000000;
  --bem-black-soft: #141414;

  --bg: #fafaf8;
  --bg-alt: #ffffff;
  --bg-warm: #fff6f1;
  --text: #1a1a1a;
  --muted: #6e6863;
  --accent: var(--bem-orange);
  --accent-dark: var(--bem-orange-dark);
  --accent-soft: rgba(241, 90, 36, 0.1);
  --brand-black: var(--bem-black);
  --border: #e6e2dd;
  --border-strong: #d4cfc9;
  --sale: var(--bem-orange);
  --on-dark: #f5f5f5;
  --on-dark-muted: #c9c4bf;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  --shadow-accent: 0 8px 24px rgba(241, 90, 36, 0.22);
  --radius: 12px;
  --header-h: 68px;
  --header-bg: rgba(255, 255, 255, 0.94);
  --header-border: rgba(0, 0, 0, 0.06);
  --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --promo-bg: linear-gradient(90deg, #fff5ef 0%, #ffffff 50%, #fff5ef 100%);
  --font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Placeholder ảnh — tông kem trung tính */
  --img-placeholder: #ece8e4;
  --img-shimmer-a: #ece8e4;
  --img-shimmer-b: #f7f5f2;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  min-width: 0;
}

main {
  max-width: 100%;
  overflow-x: clip;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header .container {
  position: relative;
}

.site-header .nav a,
.site-header .nav__link {
  color: var(--text);
}

.site-header .icon-btn {
  color: var(--text);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.site-header .icon-btn:hover {
  background: var(--accent-soft);
  color: var(--bem-orange);
}

.site-header .btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-alt);
}

.site-header .btn-outline:hover {
  border-color: var(--bem-orange);
  color: var(--bem-orange);
  background: var(--accent-soft);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  min-width: 0;
}

.menu-toggle {
  display: none;
  justify-self: start;
  grid-column: 1;
}

.header-inner .nav {
  justify-self: start;
  grid-column: 1;
  min-width: 0;
}

.header-inner .logo {
  justify-self: center;
  grid-column: 2;
}

.header-inner .header-actions {
  justify-self: end;
  grid-column: 3;
}

@media (min-width: 901px) {
  .header-inner .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    overflow: visible;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    gap: clamp(1rem, 2.2vw, 2rem);
  }

  .header-inner .nav .nav__link {
    padding: 0;
    border: none;
    white-space: nowrap;
  }

  .header-inner .nav .nav__link.active {
    background: transparent;
  }

  .nav-backdrop {
    display: none !important;
  }

  .footer-quick {
    display: none;
  }

  .footer-col summary {
    pointer-events: none;
    margin-bottom: 0.75rem;
  }

  .footer-col summary::after {
    display: none;
  }

  .footer-col:not([open]) .footer-col__links,
  .footer-col[open] .footer-col__links {
    display: block;
    padding-bottom: 0;
  }

  .footer-col {
    border-bottom: none;
  }
}

.logo {
  font-family: var(--font-family);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.logo--img {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo--img img {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.logo--footer img {
  height: 32px;
  margin-bottom: 1rem;
}

.nav {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__head,
.nav__close {
  display: none;
}

.nav a,
.nav__link {
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s;
}

.nav a:hover,
.nav__link:hover {
  color: var(--accent);
}

.nav a.active,
.nav__link.active {
  color: var(--bem-orange);
}

.nav-link--sale,
.footer-quick__link.nav-link--sale {
  color: var(--bem-orange);
}

.nav-link--sale.active,
.footer-quick__link.nav-link--sale.active {
  color: var(--bem-orange);
  background: var(--accent-soft);
}

.nav-backdrop {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 901px) {
  .header-actions {
    gap: 0.5rem;
  }

  .header-call {
    margin-right: 0.25rem;
  }
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem;
  position: relative;
}

a.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

a.icon-btn:hover {
  color: var(--accent);
}

.header-admin {
  opacity: 0.85;
}

.nav__link--admin {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #e8e4e0);
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(241, 90, 36, 0.35);
}

.menu-toggle {
  display: none;
}

/* Homepage banners */
.home-banners {
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  overflow-x: clip;
}

.banner-carousel {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.banner-carousel--mobile {
  max-width: min(520px, 100%);
}

.banner-carousel--desktop {
  display: none;
}

@media (min-width: 901px) {
  .banner-carousel--desktop {
    display: block;
    padding: 0.75rem 0 0;
  }

  .banner-carousel--mobile {
    display: none;
  }

  .home-banners + .section--tight {
    padding-top: 1.25rem;
  }

  /* Cùng khung với .container — ảnh sắc, không kéo giãn full màn hình */
  .banner-pc-frame {
    width: min(1200px, 92vw);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 max(0px, env(safe-area-inset-left)) 0 max(0px, env(safe-area-inset-right));
    box-sizing: border-box;
  }

  .banner-carousel--desktop .banner-carousel__viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-warm);
    box-shadow: var(--shadow);
    aspect-ratio: 1024 / 449;
  }

  .banner-carousel--desktop .banner-carousel__viewport::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 45%;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(250, 250, 248, 0.55) 55%,
      var(--bg) 100%
    );
  }

  .banner-carousel--desktop .banner-carousel__track {
    position: absolute;
    inset: 0;
  }

  .banner-carousel--desktop .banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .banner-carousel--desktop .banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  .banner-carousel--desktop .banner-slide img {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    image-rendering: auto;
  }

  .banner-carousel--desktop .banner-nav {
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }

  .banner-carousel--desktop .banner-nav:hover {
    background: #fff;
    color: var(--bem-orange);
  }

  .banner-carousel--desktop .banner-dots--overlay {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    padding: 0.35rem 0.65rem;
    gap: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .banner-carousel--desktop .banner-dots--overlay button {
    background: rgba(0, 0, 0, 0.15);
  }

  .banner-carousel--desktop .banner-dots--overlay button.active {
    background: var(--bem-orange);
  }
}

.banner-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--brand-black);
}

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

.banner-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.banner-nav--prev {
  left: 0.5rem;
}

.banner-nav--next {
  right: 0.5rem;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0 1rem;
}

.banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-strong);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.banner-dots button.active {
  background: var(--bem-orange);
  width: 22px;
  border-radius: 999px;
}

@media (min-width: 768px) and (max-width: 900px) {
  .banner-carousel--mobile {
    max-width: 420px;
    padding-top: 1rem;
  }
}

.section--tight {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  text-align: center;
}

.home-tagline {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0;
}

.promo-bar {
  background: var(--promo-bg);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  line-height: 1.4;
}

.promo-bar__text {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.promo-bar__text strong {
  color: var(--text);
  font-weight: 700;
}

.promo-bar__dot {
  color: var(--border-strong);
  user-select: none;
}

.promo-bar__text a {
  color: var(--bem-orange);
  font-weight: 700;
  text-decoration: none;
}

.promo-bar__text a:hover {
  text-decoration: underline;
}

@media (max-width: 380px) {
  .promo-bar__dot--hide-sm {
    display: none;
  }

  .promo-bar {
    font-size: 0.7rem;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 4rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bem-orange);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero p {
  color: var(--muted);
  max-width: 34ch;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background: #eee;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

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

.btn-primary {
  background: var(--bem-orange);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--bem-orange-dark);
  box-shadow: 0 6px 20px rgba(241, 90, 36, 0.28);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--bem-orange);
  color: var(--bem-orange);
  background: var(--accent-soft);
}

.btn--dark {
  background: var(--brand-black);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--dark:hover {
  background: var(--bem-black-soft);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--block {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 0.82rem;
  border-radius: 4px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-group--buy {
  flex-direction: column;
  margin-top: 1.25rem;
}

.btn-group--buy .btn--buy-now {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn-group--buy .btn-outline {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.product-buy-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 3rem 0;
}

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

.breadcrumb a:hover,
.section-head a:hover {
  color: var(--bem-orange);
}

.collection-card,
.collection-card h3,
.collection-card__eyebrow {
  color: #fff;
}

.collection-card:hover h3,
.collection-card:hover .collection-card__eyebrow {
  color: #fff;
}

.price .sale {
  color: var(--bem-orange);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: 1.75rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-family);
  font-size: 1.15rem;
  font-style: italic;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.pagination-bar {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

.pagination-bar .pill {
  flex-shrink: 0;
}

.pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.pill:hover,
.pill.active {
  border-color: var(--bem-orange);
  background: var(--bem-orange);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 540px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 1.5rem;
  }
}

.product-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(241, 90, 36, 0.25);
  transform: translateY(-3px);
}

.product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__media {
  position: relative;
}

.product-card__media .product-like {
  top: auto;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 4;
}

.product-like {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.4rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s, color 0.15s, background 0.15s;
}

.product-like:hover {
  transform: scale(1.06);
  color: var(--bem-orange);
}

.product-like.is-liked {
  color: #e11d48;
}

.product-like.is-liked .product-like__path {
  fill: currentColor;
  stroke: currentColor;
}

.product-like__count {
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1ch;
}

.product-like--detail {
  position: static;
  background: var(--bg-alt);
  box-shadow: none;
  border: 1px solid var(--border);
}

.product-summary__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: space-between;
}

.product-summary__title-row .product-like {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 1rem;
}

.auth-modal:not([hidden]) {
  display: grid;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.auth-modal__panel {
  position: relative;
  width: min(100%, 360px);
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-modal__x {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.auth-modal__hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

.auth-modal__google {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.auth-modal__note {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

body.auth-modal-open {
  overflow: hidden;
}

.product-card__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--img-placeholder);
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  isolation: isolate;
}

.product-card__badges {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.product-card__img .img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-card__img img,
.img-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Skeleton khi đang tải ảnh */
.img-wrap {
  position: relative;
  background: linear-gradient(
    110deg,
    var(--img-shimmer-a) 8%,
    var(--img-shimmer-b) 18%,
    var(--img-shimmer-a) 33%
  );
  background-size: 200% 100%;
  animation: img-shimmer 1.2s linear infinite;
}

.img-wrap.is-loaded,
.img-wrap.is-error {
  animation: none;
  background: var(--img-placeholder);
}

.img-wrap .img-media {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.img-wrap.is-loaded .img-media,
.img-media[loading="eager"] {
  opacity: 1;
}

.img-wrap--simple {
  animation: none;
  background: var(--img-placeholder);
}

.img-wrap--simple .img-media,
.product-card__img .img-media {
  opacity: 1;
}

.img-wrap--simple.is-loaded {
  background: var(--img-placeholder);
}

.img-wrap:has(.img-media[loading="eager"]) {
  animation: none;
}

.img-wrap.is-error .img-media {
  opacity: 0;
}

.img-wrap.is-error::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-placeholder)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='%23a39d97'%3E%3Cpath d='M8 40h32L28 24l-6 8-4-6z'/%3E%3C/svg%3E")
    center / 40px no-repeat;
}

@keyframes img-shimmer {
  to {
    background-position-x: -200%;
  }
}

.badge {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Góc trên-phải — dạng tag dính mép ảnh */
.badge--sale {
  top: 0;
  right: 0;
  left: auto;
  background: var(--bem-orange);
  color: #fff;
  padding: 0.35rem 0.55rem 0.4rem 0.65rem;
  border-radius: 0 0 0 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-card__body {
  padding: 1rem;
}

.product-card__ref {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.product-card__title {
  font-family: var(--font-family);
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price del {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 0.35rem;
}

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

/* Danh mục nổi bật — tỉ lệ ảnh banner PC 1024×449, mobile vuốt ngang 4∶5 */
.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1.25rem);
  width: 100%;
  min-width: 0;
}

.collections--featured {
  --collection-ratio-pc: 1024 / 449;
  --collection-ratio-tablet: 16 / 11;
  --collection-ratio-mobile: 4 / 5;
}

.collection-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
  aspect-ratio: var(--collection-ratio-pc, 1024 / 449);
  padding: 0;
  color: #fff;
  background: var(--img-placeholder);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.collection-card__label {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: block;
  padding: clamp(0.65rem, 2vw, 1.15rem);
}

.collection-card__eyebrow {
  display: block;
  font-size: clamp(0.58rem, 1.6vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 0.2rem;
}

.collection-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(0.82rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 539px) {
  .collections--featured {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    margin-inline: calc(50% - 50vw);
    padding-inline: max(4vw, env(safe-area-inset-left)) max(4vw, env(safe-area-inset-right));
    scrollbar-width: none;
  }

  .collections--featured::-webkit-scrollbar {
    display: none;
  }

  .collections--featured .collection-card {
    flex: 0 0 min(42vw, 168px);
    aspect-ratio: var(--collection-ratio-mobile);
    scroll-snap-align: start;
  }

  .collections--featured .collection-card h3 {
    font-size: 0.8rem;
  }
}

@media (min-width: 540px) and (max-width: 900px) {
  .collections--featured .collection-card {
    aspect-ratio: var(--collection-ratio-tablet);
  }

  .collections--featured .collection-card h3 {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  }
}

@media (min-width: 901px) {
  .collections--featured {
    gap: 1.25rem;
  }

  .collections--featured .collection-card {
    aspect-ratio: var(--collection-ratio-pc);
  }

  .collections--featured .collection-card h3 {
    font-size: 1.25rem;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
  }
}

.blog-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card .img-wrap {
  aspect-ratio: 16/10;
}

.blog-card .img-wrap .img-media {
  object-fit: cover;
}

.article-hero {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: min(420px, 55vh);
}

.article-hero .img-wrap {
  aspect-ratio: 16/10;
  max-height: min(420px, 55vh);
  animation: none;
  background: var(--img-placeholder);
}

.article-hero .img-wrap .img-media,
.article-hero .img-wrap.is-loaded .img-media,
.article-hero .img-media[loading="eager"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.article-hero .img-wrap.is-error .img-media {
  opacity: 0;
}

.gallery-thumbs .img-wrap {
  animation: none;
  background: #eee;
  border-radius: 6px;
}

.gallery-thumbs .img-media {
  opacity: 1;
}

.blog-card__body {
  padding: 1.25rem;
}

.blog-card h3 {
  font-size: 1.1rem;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.blog-article__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0.5rem 0 1rem;
}

.blog-article__cover {
  margin-bottom: 1.25rem;
  border-radius: var(--radius, 8px);
  overflow: hidden;
}

.blog-article__cover .img-wrap {
  aspect-ratio: 16 / 10;
  max-height: min(420px, 55vh);
  background: var(--img-placeholder);
}

.blog-article__cover .img-wrap .img-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article__content img.img-media {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius, 8px);
  margin: 0.75rem 0;
}

.blog-article__content {
  line-height: 1.7;
  color: var(--text);
}

.blog-article__content p {
  margin: 0 0 1rem;
}

.site-footer {
  background: var(--bem-black);
  color: var(--on-dark);
  padding: 2rem 0 1.25rem;
  margin-top: 2.5rem;
}

.footer-quick {
  display: none;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.footer-quick__link {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.footer-quick__link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--bem-orange-light);
}

.footer-quick__link.active {
  background: rgba(241, 90, 36, 0.18);
  border-color: rgba(241, 90, 36, 0.45);
  color: var(--bem-orange-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand__text {
  color: var(--on-dark-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
  max-width: 26rem;
}

.footer-hotline {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bem-orange-light);
}

.footer-hotline:hover {
  color: #fff;
}

.footer-col summary {
  list-style: none;
  cursor: default;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--on-dark);
}

.footer-col summary::-webkit-details-marker {
  display: none;
}

.footer-col__links a {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.footer-col__links a:hover {
  color: var(--bem-orange-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}

.footer-bottom__copy {
  margin: 0;
}

.footer-bottom__addr {
  margin: 0;
  text-align: right;
  max-width: 36rem;
  line-height: 1.45;
}

/* Thanh menu cố định dưới màn hình (mobile) */
:root {
  --mobile-tab-h: 3.35rem;
}

.mobile-tab-bar {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(var(--mobile-tab-h) + env(safe-area-inset-bottom, 0px));
  }

  body.search-open,
  body.auth-modal-open,
  body.nav-open {
    padding-bottom: 0;
  }

  .mobile-tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    min-height: var(--mobile-tab-h);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  }

  body.search-open .mobile-tab-bar,
  body.auth-modal-open .mobile-tab-bar,
  body.nav-open .mobile-tab-bar {
    display: none;
  }

  .mobile-tab-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.15rem 0.25rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tab-bar__item:active {
    opacity: 0.65;
  }

  .mobile-tab-bar__icon {
    flex-shrink: 0;
    color: var(--text);
  }

  .mobile-tab-bar__label {
    line-height: 1.1;
    white-space: nowrap;
  }

  .mobile-tab-bar__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
  }

  .mobile-tab-bar__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .site-footer {
    margin-bottom: 0.5rem;
  }

  .cart-drawer__foot {
    padding-bottom: calc(0.75rem + var(--mobile-tab-h) + env(safe-area-inset-bottom, 0px));
  }
}

/* Liên hệ + Google Maps */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-map-wrap {
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--img-placeholder);
}

.contact-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card__lead {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.contact-card__list {
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  line-height: 1.65;
}

.contact-card__cta {
  width: 100%;
}

/* Trợ lý AI (Gemini) */
.bem-assistant-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--mobile-tab-h, 0px) + 1rem + env(safe-area-inset-bottom, 0px));
  z-index: 130;
  min-width: 3.25rem;
  height: 3.25rem;
  padding: 0 0.85rem 0 0.65rem;
  border: none;
  border-radius: 999px;
  background: var(--brand-black);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bem-assistant-fab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a0;
  flex-shrink: 0;
}

.bem-assistant-fab__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 420px) {
  .bem-assistant-fab__label {
    display: none;
  }

  .bem-assistant-fab {
    width: 3.25rem;
    padding: 0;
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .bem-assistant-fab {
    bottom: 1.25rem;
  }
}

.bem-assistant {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--mobile-tab-h, 0px) + 4.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 131;
  width: min(92vw, 360px);
  max-height: min(70vh, 480px);
  display: none;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bem-assistant:not([hidden]) {
  display: flex;
}

@media (min-width: 901px) {
  .bem-assistant {
    bottom: 5rem;
  }
}

.bem-assistant__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
  flex-shrink: 0;
}

.bem-assistant__head .icon-btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

.bem-assistant__sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.bem-assistant__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem 0;
}

.bem-assistant__chip {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
}

.bem-assistant__chip:hover {
  border-color: var(--brand-black);
}

.bem-assistant__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.bem-assistant__bot {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border-radius: 10px;
  color: var(--text);
  align-self: flex-start;
  max-width: 92%;
}

.bem-assistant__bot a {
  color: var(--brand-black);
  word-break: break-all;
}

.bem-assistant__user {
  margin: 0 0 0 auto;
  padding: 0.55rem 0.7rem;
  background: var(--accent-soft);
  border-radius: 10px;
  max-width: 88%;
  align-self: flex-end;
}

.bem-assistant__products {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.bem-assistant__product {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bem-assistant__product:hover {
  border-color: var(--bem-orange);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.bem-assistant__product img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.bem-assistant__product-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.bem-assistant__product strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.bem-assistant__product-sku {
  font-size: 0.7rem;
  font-style: normal;
  color: var(--text-muted);
}

.bem-assistant__product small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.bem-assistant__product-cta {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bem-orange);
}

.bem-assistant__thinking {
  opacity: 0.6;
  font-style: italic;
}

.bem-assistant__typing::after {
  content: "▋";
  margin-left: 1px;
  color: var(--bem-orange);
  animation: bem-cursor-blink 0.75s step-end infinite;
}

@keyframes bem-cursor-blink {
  50% {
    opacity: 0;
  }
}

.bem-assistant__sale-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--bem-orange);
  border-radius: 4px;
}

.bem-assistant__ask {
  align-self: stretch;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bem-assistant__ask-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.bem-assistant__ask-intro {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.bem-assistant__ask-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bem-assistant__ask-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.bem-assistant__ask-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bem-orange, #c45c26);
  min-width: 4.5rem;
  text-align: right;
}

.bem-assistant__ask-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bem-assistant__ask-slider {
  flex: 1;
  height: 6px;
  accent-color: var(--brand-black, #1a1a1a);
  cursor: pointer;
}

.bem-assistant__ask-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bem-assistant__ask-choice {
  min-width: 2.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bem-assistant__ask-choice:hover {
  border-color: var(--brand-black);
}

.bem-assistant__ask-choice.is-active {
  border-color: var(--brand-black);
  background: var(--accent-soft);
}

.bem-assistant__ask-submit {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

.bem-assistant__feedback {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.15rem 2.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: #faf8f6;
  border-radius: 8px;
  max-width: 92%;
}

.bem-assistant__feedback-label {
  flex: 1;
  min-width: 0;
}

.bem-assistant__feedback-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.2;
}

.bem-assistant__feedback-btn:hover:not(:disabled) {
  border-color: var(--bem-orange);
}

.bem-assistant__feedback-btn.is-picked {
  border-color: var(--bem-orange);
  background: #fff5f0;
}

.bem-assistant__feedback-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.bem-assistant__form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid var(--border);
}

.bem-assistant__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.bem-assistant__form .btn {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

body.assistant-open .bem-assistant-fab {
  opacity: 0;
  pointer-events: none;
}

/* Shop layout */
.shop-layout {
  padding: 2rem 0 3rem;
}

.shop-main {
  min-width: 0;
}

.filters {
  margin-bottom: 1rem;
}

.shop-products-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0;
}

.shop-search {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.shop-search:focus-within {
  border-color: var(--bem-orange);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.shop-search__icon {
  flex-shrink: 0;
  color: var(--muted);
}

.shop-search .search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0.65rem 0.5rem 0.65rem 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

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

.shop-products-bar .sort-select {
  flex: 0 0 auto;
  min-width: 10.5rem;
}

.shop-results {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.shop-results__count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 901px) {
  .shop-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 2rem 2.25rem;
    align-items: start;
  }

  .shop-main {
    display: contents;
  }

  .shop-main > .filters {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    align-self: start;
    margin: 0;
    padding: 1.35rem 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .shop-main > .shop-results {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
  }

  .shop-results .shop-products-bar {
    margin: 0;
    padding: 0.85rem 1.15rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .shop-results__count {
    padding: 0 0.15rem;
  }

  .shop-results .product-grid {
    width: 100%;
  }

  .shop-results .pagination-bar {
    margin-top: 0.35rem;
  }

  .filters__head {
    margin-bottom: 0.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
  }

  .filters__head h3 {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  .filters__close {
    display: none;
  }

  .filters__body {
    margin-top: 1rem;
  }

  .filters-clear {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: 1px dashed var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
  }

  .filters-clear:hover {
    color: var(--bem-orange);
    border-color: var(--bem-orange);
    background: var(--accent-soft);
  }

  .filters-clear[hidden] {
    display: none;
  }

  .filter-group {
    margin-bottom: 1.35rem;
  }

  .filter-group--price .filter-chips {
    flex-wrap: wrap;
  }

  .filter-group--price .filter-chips--scroll {
    overflow: visible;
  }

  .filter-chip span {
    font-size: 0.78rem;
    padding: 0.38rem 0.7rem;
  }

  .shop-products-bar .shop-search {
    background: var(--bg);
  }

  .shop-products-bar .sort-select {
    min-width: 11.5rem;
    background: var(--bg);
  }
}

.filters h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group label:not(.filter-chip) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
}

.filter-group__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip span {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-chip input:checked + span,
.filter-chip input:focus-visible + span {
  border-color: var(--bem-orange);
  background: var(--accent-soft);
  color: var(--text);
}


.filters-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  cursor: pointer;
}

.filters-toggle__chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.filters-toggle[aria-expanded="true"] .filters-toggle__chevron {
  transform: rotate(180deg);
}

.filters-backdrop {
  display: none;
}

.filters-toggle__count {
  min-width: 1.25rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border-radius: 999px;
  background: var(--bem-orange);
  color: #fff;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.filters__head h3 {
  margin-bottom: 0;
}

.filters__close {
  display: none;
  padding: 0.35rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}

.filters__body {
  margin-top: 1rem;
}

.filters-clear {
  display: none;
}

/* Bộ lọc cửa hàng — cùng kiểu danh mục tìm kiếm */
.facet-menu {
  font-size: 0.92rem;
  line-height: 1.5;
}

.facet-menu__section {
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.facet-menu__section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.facet-menu__toggle {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  background: none;
  border: none;
  padding: 0.45rem 0;
  cursor: pointer;
}

.facet-menu__bullet {
  color: var(--bem-orange);
  flex-shrink: 0;
}

.facet-menu__children {
  display: none;
  padding: 0.1rem 0 0.5rem 0.85rem;
}

.facet-menu__section.is-open .facet-menu__children {
  display: block;
}

.facet-menu__option {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  background: none;
  border: none;
  padding: 0.35rem 0;
  cursor: pointer;
  transition: color 0.15s;
}

.facet-menu__option:hover {
  color: var(--bem-orange);
}

.facet-menu__option.is-active {
  color: var(--bem-orange-dark);
  font-weight: 600;
}

.facet-menu__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.facet-menu__preset.facet-menu__preset-active {
  color: var(--bem-orange-dark);
  font-weight: 600;
}

.facet-menu__plus {
  flex-shrink: 0;
  color: var(--bem-orange);
  font-weight: 500;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  min-width: 0;
}

.search-input {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  background: var(--bg-alt);
}

.search-input:focus {
  outline: none;
  border-color: var(--bem-orange);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.sort-select {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  font-family: inherit;
}

/* Product detail — skeleton khi đang tải */
@keyframes product-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.product-skeleton__media,
.product-skeleton__line,
.product-skeleton__btn,
.product-skeleton__thumbs span {
  background: linear-gradient(
    90deg,
    var(--img-placeholder) 0%,
    var(--img-shimmer-b) 45%,
    var(--img-placeholder) 90%
  );
  background-size: 200% 100%;
  animation: product-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius);
}

.product-skeleton__media {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 640px);
}

.product-skeleton__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-skeleton__thumbs span {
  width: 64px;
  height: 80px;
  flex-shrink: 0;
}

.product-skeleton__line {
  height: 0.85rem;
  margin-bottom: 0.65rem;
}

.product-skeleton__line--short {
  width: 40%;
}

.product-skeleton__line--title {
  height: 1.35rem;
  width: 88%;
}

.product-skeleton__line--price {
  width: 35%;
  height: 1.1rem;
}

.product-skeleton__btn {
  height: 2.75rem;
  margin-top: 0.5rem;
}

.product-skeleton__btn--ghost {
  opacity: 0.55;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
  align-items: start;
  min-width: 0;
  width: 100%;
}

.product-gallery,
.product-summary {
  min-width: 0;
  max-width: 100%;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.product-meta__sku {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.product-meta__sku strong {
  color: var(--text);
  font-weight: 600;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.product-rating__stars {
  color: #f0b429;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  line-height: 1;
}

.product-rating__text {
  color: var(--muted);
}

.product-summary__title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-ref {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.product-ref__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.product-ref__link:hover {
  color: var(--bem-orange);
  text-decoration: underline;
}

.product-summary__price {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.product-option {
  margin-bottom: 1.25rem;
}

.product-option__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.product-option__label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.product-option__label strong {
  font-weight: 600;
}

.product-option--color .product-option__label {
  margin-bottom: 0.45rem;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.color-swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.size-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.size-guide-link:hover {
  color: var(--bem-orange);
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
}

.qty-stepper__btn {
  width: 2.5rem;
  border: none;
  background: var(--bg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.qty-stepper__btn:hover {
  background: var(--accent-soft);
}

.qty-stepper__input {
  width: 3rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-purchase {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-purchase__row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.product-purchase__row .btn-outline {
  flex: 1;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-like--purchase {
  position: static;
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: auto;
  min-height: 3rem;
  padding: 0;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-like--purchase:hover {
  transform: none;
  border-color: var(--text);
}

.product-like--purchase.is-liked {
  border-color: #e11d48;
  background: #fff5f7;
}

.product-purchase .product-buy-hint {
  margin: 0.25rem 0 0;
  text-align: center;
}

.size-guide-dialog {
  padding: 0;
  border: none;
  max-width: min(92vw, 420px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.size-guide-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.size-guide-dialog__panel {
  padding: 1.5rem 1.25rem 1.25rem;
  position: relative;
}

.size-guide-dialog__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.size-guide-dialog__title {
  font-family: var(--font-family);
  font-size: 1.2rem;
  margin: 0 2rem 0.5rem 0;
}

.size-guide-dialog__intro {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.size-guide-table th,
.size-guide-table td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.35rem;
  text-align: center;
}

.size-guide-table th {
  background: var(--bg-warm);
  font-weight: 600;
}

.size-guide-facts {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.55;
}

.product-story {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg-warm);
  border-radius: var(--radius);
  border-left: 3px solid var(--bem-orange);
}

.product-story p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
  font-size: 0.95rem;
}


.product-specs {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-specs__title {
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bem-orange);
  margin: 0 0 1rem;
}

.spec-list {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 640px) {
  .spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-bottom: 0;
    border-bottom: none;
  }

  .spec-row dt {
    font-size: 0.72rem;
  }

  .spec-row dd {
    font-size: 0.88rem;
    line-height: 1.35;
  }
}

.gallery-main {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
}

.gallery-main .img-wrap {
  width: 100%;
  height: 100%;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
  padding-bottom: 0.15rem;
  touch-action: pan-x;
}

.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  flex: 0 0 64px;
  overflow: hidden;
  background: none;
}

.gallery-thumbs button.active {
  border-color: var(--bem-orange);
}

.gallery-thumbs img {
  width: 64px;
  height: 80px;
  object-fit: cover;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.size-btn {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-alt);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.size-btn.active {
  border-color: var(--brand-black);
  background: var(--brand-black);
  color: #fff;
}

.size-btn:hover:not(.active) {
  border-color: var(--text);
}

.product-picker {
  margin-bottom: 1.15rem;
}

.product-picker__label {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.product-picker__picked {
  font-weight: 400;
  color: var(--muted, #666);
}

.product-picker__picked strong {
  color: var(--text);
  font-weight: 600;
}

.product-picker__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.product-picker__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 9.5rem;
  max-width: 100%;
  padding: 0.4rem 0.55rem 0.4rem 0.4rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-picker__item:hover {
  border-color: #ccc;
}

.product-picker__item.is-active {
  border-color: var(--bem-orange);
  box-shadow: 0 0 0 1px var(--bem-orange);
}

.product-picker__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f3f3;
  display: block;
}

.product-picker__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-picker__img--empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ece8e4 50%, #d8d2cc 50%);
}

.product-picker__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding-right: 0.35rem;
}

.product-picker__name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.product-picker__code {
  font-size: 0.72rem;
  color: var(--muted, #666);
}

.product-picker__price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bem-orange);
}

.product-picker__check {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bem-orange);
  color: #fff;
  font-size: 0.65rem;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

.product-option__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #666);
}

.product-option--qty {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--bem-orange);
  background: #fff7f2;
}

.product-option--qty .product-option__label {
  color: var(--bem-orange);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.product-option--qty .qty-stepper {
  border-color: var(--bem-orange);
}

.product-option--qty .qty-stepper__btn:hover {
  background: rgba(241, 90, 36, 0.08);
  color: var(--bem-orange-dark);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.spec-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-table td:first-child {
  color: var(--muted);
  width: 38%;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 200;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--bg-alt);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s;
  z-index: 201;
  display: flex;
  flex-direction: column;
}

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

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-drawer__foot {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 1rem 0 0;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.article h1 {
  font-size: 2rem;
}

.article .lead {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
}

.article ul {
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .hero,
  .product-detail,
  .shop-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    display: block;
  }

  .shop-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .header-inner .nav .nav__link,
  .header-inner .nav a {
    color: var(--on-dark);
  }

  .header-inner .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 120;
    width: min(288px, 86vw);
    padding: 0;
    background: var(--bem-black-soft);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    grid-column: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-inner .nav:not(.open) {
    pointer-events: none;
  }

  .header-inner .nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
  }

  .nav__close {
    display: block;
    color: var(--on-dark);
  }

  .nav.open .nav__link,
  .nav.open a.nav__link {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: normal;
    font-size: 0.82rem;
  }

  .nav.open .nav__link:last-child {
    border-bottom: none;
  }

  .nav.open .nav__link.active {
    background: rgba(241, 90, 36, 0.12);
    color: var(--bem-orange-light);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 60px;
    gap: 0.5rem;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    justify-self: start;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-warm);
  }

  .header-inner .logo {
    grid-column: 2;
    justify-self: center;
  }

  .logo--img img {
    height: 32px;
  }

  .header-inner .header-actions {
    grid-column: 3;
    justify-self: end;
    gap: 0.15rem;
  }

  .header-call {
    display: none;
  }

  .header-actions .icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-quick {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
  }

  .footer-brand__text {
    font-size: 0.82rem;
    max-width: none;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-col:last-of-type {
    border-bottom: none;
  }

  .footer-col summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    margin-bottom: 0;
  }

  .footer-col summary::after {
    content: "+";
    font-size: 1rem;
    font-weight: 400;
    color: var(--on-dark-muted);
    transition: transform 0.2s;
  }

  .footer-col[open] summary::after {
    content: "−";
  }

  .footer-col:not([open]) .footer-col__links {
    display: none;
  }

  .footer-col[open] .footer-col__links {
    padding-bottom: 0.65rem;
  }

  .footer-col__links a {
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
  }

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

  .footer-bottom__addr {
    text-align: left;
    font-size: 0.74rem;
  }

  .site-footer {
    padding: 1.25rem 0 1rem;
    margin-top: 2rem;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .shop-products-bar {
    gap: 0.5rem 0.65rem;
  }

  .shop-products-bar .sort-select {
    flex: 1 1 100%;
    width: 100%;
  }

  body.filters-panel-open {
    overflow: hidden;
  }

  .filters-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .shop-main > .filters.filters--collapsed {
    display: none;
  }

  .shop-main > .filters.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 115;
    margin: 0;
    padding: 0;
    max-height: min(88vh, 540px);
    border: none;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
    background: var(--bg);
  }

  .filters.is-open .filters__head {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .filters__close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .filters.is-open h3 {
    font-size: 0.78rem;
    margin: 0;
    flex: 1;
  }

  .filters.is-open .filters__body {
    display: block;
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0.65rem 1rem 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .filters.is-open .filters-clear {
    display: block;
    width: 100%;
    margin-bottom: 0.65rem;
    padding: 0.45rem 0.75rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: 1px dashed var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
  }

  .filters.is-open .filters-clear[hidden] {
    display: none;
  }

  .facet-menu__section.is-open .facet-menu__children {
    max-height: 11rem;
    overflow-y: auto;
  }

  .filter-group {
    margin-bottom: 0.85rem;
  }

  .filter-group:last-child {
    margin-bottom: 0;
  }

  .filter-group__label {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
  }

  .filter-chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.15rem;
    margin: 0 -0.15rem;
    scrollbar-width: none;
  }

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

}

