/* ==========================================================================
   ShopVND — base styles
   ========================================================================== */

:root {
  /* Main theme colors — change these two to re-theme the whole site */
  --primary-color: #f2700f;
  --secondary-color: #d95f05;

  --primary: var(--primary-color);
  --primary-dark: var(--secondary-color);
  --primary-light: color-mix(in srgb, var(--primary-color) 12%, white);
  --text: #1f2328;
  --text-light: #6b7280;
  --border: #e8e8ec;
  --bg-gray: #f7f7f9;
  --red: #e0331f;
  --green: #0f8030;
  --blue: #2b57d6;
  --radius: 0.625rem;
  --container: 70rem;
  --font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Toàn bộ kích thước trong file này dùng rem (1rem = font-size của html).
   Muốn phóng to/thu nhỏ đồng loạt cả trang, chỉ cần đổi font-size bên dưới
   (vd: 16px -> 18px sẽ phóng to mọi thứ theo cùng tỉ lệ). */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon--lg { width: 1.375rem; height: 1.375rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.625rem;
  border-radius: 0.375rem;
  font-size: 0.90625rem;
  font-weight: 600;
  border: 0.09375rem solid transparent;
  transition: all 0.15s ease;
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }

.btn--outline { background: #fff; color: var(--text); border-color: #d8d8dc; }
.btn--outline:hover { border-color: var(--text); }

.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: #fff4e8; }

.btn--outline-blue { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--outline-blue:hover { background: rgba(255,255,255,.15); }

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar { background: var(--primary); color: #fff; font-size: 0.8125rem; }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.375rem;
}

.topbar__ship { display: flex; align-items: center; gap: 0.4375rem; margin: 0; }

.topbar__links { display: flex; align-items: center; gap: 1.375rem; }
.topbar__links li { display: flex; align-items: center; gap: 0.375rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.header { border-bottom: 0.0625rem solid var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.125rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03125rem;
  white-space: nowrap;
}

.logo__icon {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.5625rem;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo__icon svg { width: 1.1875rem; height: 1.1875rem; }

.search {
  flex: 1;
  display: flex;
  height: 2.75rem;
  border: 0.09375rem solid var(--border);
  border-radius: 0.375rem;
  overflow: hidden;
}

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 1rem;
  font-size: 0.875rem;
  min-width: 0;
}

.search select {
  border: 0;
  border-left: 0.0625rem solid var(--border);
  background: #fff;
  padding: 0 0.75rem;
  font-size: 0.84375rem;
  color: var(--text-light);
  outline: 0;
}

.search button {
  width: 3.375rem;
  border: 0;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search button svg { width: 1.1875rem; height: 1.1875rem; }

.header__actions { display: flex; align-items: center; gap: 1.375rem; }

.header__action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78125rem;
  color: var(--text-light);
  white-space: nowrap;
}
.header__action b { display: block; color: var(--text); font-size: 0.84375rem; font-weight: 600; }

/* Nav */
.nav { background: #fff; }

.nav__inner { display: flex; align-items: stretch; }

.nav__cats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  height: 2.875rem;
  margin: 0.625rem 1.5rem 0.625rem 0;
  border-radius: 0.375rem;
  white-space: nowrap;
}
.nav__cats svg { width: 1.0625rem; height: 1.0625rem; }

.nav__menu { display: flex; align-items: center; gap: 1.75rem; }
.nav__menu a {
  display: block;
  padding: 1rem 0;
  font-size: 0.90625rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 0.125rem solid transparent;
}
.nav__menu a:hover,
.nav__menu a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 1.375rem 0 0; }

.hero__wrap { position: relative; }

.hero__slides {
  position: relative;
  min-height: 28.75rem;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease;
}
.hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 100%;
  min-height: 28.75rem;
  padding: 2.5rem 2.75rem;
  border-radius: 1.25rem;
  overflow: hidden;
}

.hero__inner--peach { background: linear-gradient(135deg, #fdf3ea, #fbeee2); }
.hero__inner--blue { background: linear-gradient(135deg, #eaf1fe, #dce8fd); }
.hero__inner--mint { background: linear-gradient(135deg, #eafaf3, #ddf5ea); }

.hero__eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.84375rem;
  letter-spacing: 0.03125rem;
  margin: 0 0 0.625rem;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.625rem;
  letter-spacing: -0.0625rem;
}

.hero__desc { font-size: 1.0625rem; color: var(--text-light); margin: 0 0 1.625rem; }

.hero__specs {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
.hero__specs li { display: flex; align-items: flex-start; gap: 0.5rem; }
.hero__specs svg { width: 1.625rem; height: 1.625rem; color: var(--primary); flex-shrink: 0; }
.hero__specs span { font-size: 0.78125rem; color: var(--text-light); line-height: 1.4; }
.hero__specs b { display: block; color: var(--text); font-size: 0.84375rem; font-weight: 600; }

.hero__price {
  margin: 0 0 1.375rem;
  font-weight: 700;
  font-size: 1.625rem;
  color: var(--red);
}
.hero__price span { margin-right: 0.25rem; font-size: 0.875rem; font-weight: 400; color: var(--text-light); }

.hero__cta { display: flex; gap: 0.875rem; }

.hero__media { display: flex; justify-content: center; position: relative; }
.hero__media img { max-width: 28.75rem; width: 100%; }

.hero__media--illustration { min-height: 18.75rem; align-items: center; }

.hero__blob { width: 17.5rem; }
.hero__blob svg { width: 100%; height: auto; filter: drop-shadow(0 1.125rem 1.625rem rgba(0,0,0,.12)); }

.hero__deco {
  position: absolute;
  border-radius: 0.5rem;
  opacity: .55;
  animation: heroFloat 4s ease-in-out infinite;
}
.hero__inner--blue .hero__deco { background: linear-gradient(135deg, #7fa8f5, #3b6fe0); }
.hero__inner--mint .hero__deco { background: linear-gradient(135deg, #4fbf82, #0f8030); }
.hero__deco--1 { width: 1.625rem; height: 1.625rem; top: 12%; right: 10%; transform: rotate(18deg); animation-delay: 0s; }
.hero__deco--2 { width: 1rem; height: 1rem; bottom: 18%; left: 8%; border-radius: 50%; animation-delay: .6s; }
.hero__deco--3 { width: 1.25rem; height: 1.25rem; bottom: 8%; right: 20%; transform: rotate(-12deg); animation-delay: 1.2s; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-0.75rem) rotate(var(--r, 0deg)); }
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  border: 0.0625rem solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,.06);
  z-index: 2;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.hero__arrow:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.08); }
.hero__arrow svg { width: 1.125rem; height: 1.125rem; }
.hero__arrow--prev { left: -0.375rem; }
.hero__arrow--next { right: -0.375rem; }

.hero__dots {
  position: absolute;
  bottom: 0.875rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4375rem;
  z-index: 2;
}
.hero__dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  transition: width .25s ease, background .25s ease;
}
.hero__dots button.active { background: var(--primary); width: 1.375rem; border-radius: 0.25rem; }

/* ==========================================================================
   Features bar
   ========================================================================== */

.features { border-bottom: 0.5rem solid var(--bg-gray); }

.features__inner {
  display: flex;
  justify-content: space-between;
  padding: 1.625rem 1.25rem;
  gap: 0.625rem;
}

.feature { display: flex; align-items: center; gap: 0.75rem; }
.feature svg { width: 1.875rem; height: 1.875rem; color: var(--primary); flex-shrink: 0; }
.feature b { display: block; font-size: 0.84375rem; font-weight: 600; }
.feature span { font-size: 0.75rem; color: var(--text-light); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 2.75rem 0; }
.section--gray { background: var(--bg-gray); }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.375rem;
}
.section__head h2 { font-size: 1.3125rem; font-weight: 800; margin: 0; }

.section__head-right { display: flex; align-items: center; gap: 1.125rem; }

.link-more {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.link-more span { transition: transform .2s ease; }
.link-more:hover span { transform: translateX(0.1875rem); }

/* ==========================================================================
   Carousel (categories / blog)
   ========================================================================== */

.carousel-nav { display: flex; gap: 0.5rem; }
.carousel-nav__btn {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  border: 0.0625rem solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.carousel-nav__btn svg { width: 1rem; height: 1rem; }
.carousel-nav__btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.06); }

.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track > * img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.carousel__track a { -webkit-user-drag: none; user-drag: none; }

.carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* ==========================================================================
   Categories
   ========================================================================== */

.categories > * {
  flex: 0 0 calc((100% - 0.875rem * 5) / 6);
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.category:hover { box-shadow: 0 0.5rem 1.125rem rgba(0,0,0,.08); transform: translateY(-0.1875rem); border-color: transparent; }

.category__img {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .25s ease;
}
.category:hover .category__img { transform: scale(1.06); }
.category__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.cat-bg--1 { background: #eef1fd; }
.cat-bg--2 { background: #fbe7ec; }
.cat-bg--3 { background: #e4f5ec; }
.cat-bg--4 { background: #eef0f4; }
.cat-bg--5 { background: #f3ecfc; }
.cat-bg--6 { background: #fde9ec; }
.cat-bg--7 { background: #fbe9e4; }
.cat-bg--8 { background: #fdf1d9; }

.category b { font-size: 0.84375rem; font-weight: 600; }
.category span { font-size: 0.71875rem; color: var(--text-light); }

/* ==========================================================================
   Products
   ========================================================================== */

.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

/* Shop listing page shows 4 products per row instead of the site-wide default */
.shop__main .products {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  background: #fff;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.product-card:hover {
  box-shadow: 0 1rem 2rem rgba(0,0,0,.09);
  transform: translateY(-0.25rem);
  border-color: transparent;
}

.product-card__media {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #f7f7f9;
  aspect-ratio: 4 / 3;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.08); }

.badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  z-index: 1;
}
.badge--red { background: var(--red); }
.badge--green { background: var(--green); }

.wish {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  z-index: 1;
  transition: color .2s ease, transform .2s ease;
}
.wish svg { width: 0.9375rem; height: 0.9375rem; }
.wish:hover { color: var(--red); transform: scale(1.12); }
.wish.is-active { color: var(--red); }
.wish.is-active svg { fill: currentColor; }

.product-card h3 {
  font-size: 0.84375rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
  line-height: 1.4;
  min-height: 2.8em;
}

.stars {
  font-size: 0.6875rem;
  color: #f5a623;
  letter-spacing: 0.0625rem;
  margin-bottom: 0.5rem;
}
.stars em { color: var(--text-light); font-style: normal; margin-left: 0.25rem; letter-spacing: 0; }

.price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 0.75rem;
}
.price del {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.375rem;
}

.btn-add {
  margin-top: auto;
  width: 100%;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background .2s ease, transform .15s ease;
}
.btn-add:hover { background: var(--primary-dark); transform: translateY(-0.0625rem); }
.btn-add.is-added,
.product-buy__cart.is-added { background: var(--green); border-color: var(--green); color: #fff; }
.btn-add:active { transform: translateY(0); }

/* ==========================================================================
   Promos
   ========================================================================== */

.promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.promo {
  border-radius: 0.875rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  min-height: 10.625rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.promo:hover { transform: translateY(-0.1875rem); box-shadow: 0 1.125rem 2.125rem rgba(0,0,0,.14); }

.promo--orange { background: linear-gradient(120deg, #ef5a1f, #fb9346); }
.promo--blue { background: linear-gradient(120deg, #6fa0f7, #b9d6fb); }

.promo__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025rem;
  color: rgba(255,255,255,.9);
  margin: 0 0 0.5rem;
}
.promo__text h3 { font-size: 1.625rem; font-weight: 800; color: #fff; margin: 0 0 0.375rem; }
.promo__text p { font-size: 0.875rem; color: rgba(255,255,255,.9); margin: 0 0 1.125rem; }

.promo img { width: 10.3125rem; flex-shrink: 0; border-radius: 0.5rem; transition: transform .35s ease; }
.promo:hover img { transform: scale(1.05) rotate(-1deg); }

/* ==========================================================================
   Blog
   ========================================================================== */

.carousel__track.blog { gap: 1.25rem; }
.blog > * {
  flex: 0 0 calc((100% - 1.25rem * 2) / 3);
}

/* .products doubles as a related-items carousel track on product-detail.html —
   this override wins on specificity so it scrolls instead of wrapping to a grid. */
.carousel__track.products {
  display: flex;
  gap: 1rem;
}
.carousel__track.products > * {
  flex: 0 0 calc((100% - 1rem * 3) / 4);
}

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.0625rem solid var(--border);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.blog-card:hover { box-shadow: 0 1rem 2rem rgba(0,0,0,.09); transform: translateY(-0.25rem); border-color: transparent; }

.blog-card__media { display: block; position: relative; overflow: hidden; }
.blog-card__media img { width: 100%; height: 8.75rem; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.07); }

.blog-card h3 {
  font-size: 0.84375rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.75rem 0.875rem 0.5rem;
  min-height: 2.8em;
}
.blog-card h3 a:hover { color: var(--primary); }
.blog-card time { display: block; font-size: 0.71875rem; color: var(--text-light); margin: 0 0.875rem 0.875rem; }

.blog-card__excerpt {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0 0.875rem 0.75rem;
}

/* ==========================================================================
   News / blog pages
   ========================================================================== */

.news-tag {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3125rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}
.news-tag--sm {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  margin: 0;
  background: rgba(255,255,255,.94);
  z-index: 1;
}

.news-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  border: 0.0625rem solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.news-feature:hover { box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,.09); transform: translateY(-0.25rem); border-color: transparent; }
.news-feature__media { border-radius: 0.875rem; overflow: hidden; aspect-ratio: 4 / 3; }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-feature:hover .news-feature__media img { transform: scale(1.05); }
.news-feature__text h2 { font-size: 1.625rem; font-weight: 800; margin: 0 0 0.75rem; line-height: 1.3; }
.news-feature__text p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.6; margin: 0 0 1.125rem; }

.news-meta { display: flex; align-items: center; gap: 0.625rem; font-size: 0.8125rem; color: var(--text-light); }
.news-meta--sm { margin: 0 0.875rem 0.875rem; font-size: 0.75rem; }
.news-meta__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.news-meta__avatar--lg { width: 2.75rem; height: 2.75rem; font-size: 0.9375rem; }

.news-filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.75rem; }
.chip {
  padding: 0.5rem 1.125rem;
  border-radius: 6.25rem;
  border: 0.0625rem solid var(--border);
  background: #fff;
  color: var(--text-light);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.news-grid .blog-card.is-hidden { display: none; }

.news-empty { text-align: center; color: var(--text-light); font-size: 0.875rem; padding: 2.5rem 0; grid-column: 1 / -1; }

/* Article detail */
.article__container { max-width: 60rem; }
.article__header { max-width: 46rem; margin: 0 auto 1.75rem; text-align: center; }
.article__header h1 { font-size: 2rem; font-weight: 800; margin: 0 0 0.875rem; line-height: 1.3; }
.article__lede { font-size: 1.0625rem; color: var(--text-light); line-height: 1.6; margin: 0 0 1.25rem; }

.article__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: left;
}
.article__meta b { display: block; font-size: 0.875rem; }
.article__meta-sub { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--text-light); }

.article__share { display: flex; gap: 0.5rem; margin-left: 1rem; }
.article__share button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 0.0625rem solid var(--border);
  background: #fff;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.article__share button svg { width: 1rem; height: 1rem; }
.article__share button:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-0.125rem); }

.article__cover {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  margin-bottom: 2.5rem;
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

.article__layout {
  display: grid;
  grid-template-columns: 1fr 17.5rem;
  gap: 3rem;
  align-items: start;
}

.article__body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.article__body h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
}
.article__body ul { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1.5rem; }
.article__body ul li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}
.article__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
}

.article__body blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 0.1875rem solid var(--primary);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

.article__inline-img { border-radius: 1rem; overflow: hidden; margin: 1.75rem 0; }
.article__inline-img img { width: 100%; display: block; }

.article__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.article__tags span {
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  background: var(--bg-gray);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.article__author {
  display: flex;
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--bg-gray);
  border-radius: 0.875rem;
}
.article__author b { display: block; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.article__author p { font-size: 0.8125rem; color: var(--text-light); line-height: 1.5; margin: 0; }

.aside-list { display: flex; flex-direction: column; gap: 0.875rem; }
.aside-list a { display: flex; align-items: center; gap: 0.75rem; }
.aside-list img { width: 3.5rem; height: 3.5rem; border-radius: 0.5rem; object-fit: cover; flex-shrink: 0; }
.aside-list span { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; transition: color .2s ease; }
.aside-list a:hover span { color: var(--primary); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: #f7f7f9; border-top: 0.0625rem solid var(--border); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 1.5rem;
  padding: 2.875rem 1.25rem 2.25rem;
}

.footer__col--brand p {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0.875rem 0 1.125rem;
}

.social { display: flex; flex-direction: row; gap: 0.625rem; }
.social a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  border: 0.0625rem solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-0.125rem); }
.social svg { width: 0.9375rem; height: 0.9375rem; }

.footer__col h4 { font-size: 0.875rem; font-weight: 700; margin: 0 0 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.6875rem; }
.footer__links a { font-size: 0.8125rem; color: var(--text-light); transition: color .2s ease, padding-left .2s ease; }
.footer__links a:hover { color: var(--primary); padding-left: 0.1875rem; }

.footer__col--news p { font-size: 0.8125rem; color: var(--text-light); margin: 0 0 0.875rem; line-height: 1.5; }

.newsletter { display: flex; height: 2.625rem; border-radius: 0.375rem; overflow: hidden; border: 0.0625rem solid var(--border); background: #fff; }
.newsletter input { flex: 1; border: 0; outline: 0; padding: 0 0.75rem; font-size: 0.8125rem; min-width: 0; }
.newsletter button { width: 2.75rem; border: 0; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.newsletter button svg { width: 1.0625rem; height: 1.0625rem; }

.footer__bottom { border-top: 0.0625rem solid var(--border); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  font-size: 0.78125rem;
  color: var(--text-light);
}
.payments { display: flex; gap: 0.875rem; }
.payments li {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-light);
  border: 0.0625rem solid var(--border);
  background: #fff;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

/* ==========================================================================
   Breadcrumb / page head
   ========================================================================== */

.breadcrumb { border-bottom: 0.0625rem solid var(--border); background: var(--bg-gray); }
.breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}
.breadcrumb__inner a { transition: color .2s ease; }
.breadcrumb__inner a:hover { color: var(--primary); }
.breadcrumb__inner .is-current { color: var(--text); font-weight: 600; }

.page-head { padding: 2rem 0 0.5rem; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 0.375rem; }
.page-head p { color: var(--text-light); font-size: 0.875rem; margin: 0; }

/* ==========================================================================
   Shop layout (filters + grid)
   ========================================================================== */

.shop__layout {
  display: grid;
  grid-template-columns: 16.25rem 1fr;
  gap: 1.75rem;
  align-items: start;
}

.filters {
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
.filters__head h3 { font-size: 1rem; font-weight: 800; margin: 0; }
.filters__clear {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 0.78125rem;
  font-weight: 600;
}
.filters__clear:hover { text-decoration: underline; }

.filter-widget { padding: 1rem 0; border-top: 0.0625rem solid var(--border); }
.filter-widget:first-of-type { padding-top: 0; border-top: 0; }
.filter-widget h4 { font-size: 0.84375rem; font-weight: 700; margin: 0 0 0.75rem; }

.filter-list { display: flex; flex-direction: column; gap: 0.625rem; }
.filter-list label {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  font-size: 0.84375rem;
  color: var(--text);
  cursor: pointer;
}
.filter-list label span { flex: 1; }
.filter-list label em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-light);
}
.filter-list input[type="checkbox"],
.filter-list input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.filter-list--stars label { align-items: center; }
.filter-list--stars .stars { font-size: 0.8125rem; color: #f5a623; letter-spacing: 0.0625rem; flex: none; }
.filter-list--stars .stars i { font-style: normal; color: #e3e3e8; }
.filter-list--stars em { margin-left: -0.25rem; }

.filter-range { display: flex; align-items: center; gap: 0.5rem; margin: 0.875rem 0 0.75rem; }
.filter-range input {
  width: 0;
  flex: 1;
  border: 0.0625rem solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.78125rem;
  color: var(--text);
}
.filter-range span { color: var(--text-light); }

.filter-apply { width: 100%; padding: 0.625rem; font-size: 0.8125rem; }

.filter-banner {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  padding: 1.375rem 1.125rem;
  background: linear-gradient(135deg, #ef5a1f, #fb9346);
  color: #fff;
}
.filter-banner h4 { font-size: 1.1875rem; font-weight: 800; margin: 0.25rem 0 0.125rem; }
.filter-banner p { font-size: 0.78125rem; color: rgba(255,255,255,.9); margin: 0 0 0.875rem; }
.filter-banner .btn { padding: 0.5625rem 1.125rem; font-size: 0.8125rem; }

/* ==========================================================================
   Toolbar / view toggle / pagination
   ========================================================================== */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.125rem;
  flex-wrap: wrap;
}
.toolbar__count { font-size: 0.84375rem; color: var(--text-light); margin: 0; }
.toolbar__count b { color: var(--text); }

.toolbar__right { display: flex; align-items: center; gap: 0.875rem; }

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}
.toolbar__sort select {
  border: 0.0625rem solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--text);
  background: #fff;
}

.view-toggle { display: flex; border: 0.0625rem solid var(--border); border-radius: 0.375rem; overflow: hidden; }
.view-toggle button {
  width: 2.25rem;
  height: 2.125rem;
  border: 0;
  background: #fff;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.view-toggle button + button { border-left: 0.0625rem solid var(--border); }
.view-toggle button svg { width: 1rem; height: 1rem; }
.view-toggle button.active { background: var(--primary); color: #fff; }

.products.is-list { grid-template-columns: 1fr; }
.products.is-list .product-card {
  flex-direction: row;
  align-items: center;
  gap: 1.125rem;
  padding: 0.75rem;
}
.products.is-list .product-card__media { width: 8.125rem; flex-shrink: 0; margin-bottom: 0; }
.products.is-list h3 { min-height: 0; }
.products.is-list .btn-add { margin-top: 0.625rem; width: auto; padding: 0.625rem 1.25rem; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pagination__btn,
.pagination__num {
  width: 2.375rem;
  height: 2.375rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84375rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pagination__btn svg { width: 1rem; height: 1rem; }
.pagination__btn:disabled { opacity: .4; cursor: not-allowed; }
.pagination__btn:not(:disabled):hover,
.pagination__num:hover { border-color: var(--primary); color: var(--primary); }
.pagination__num.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination__dots { color: var(--text-light); padding: 0 0.125rem; }

.product-card__desc {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

/* ==========================================================================
   Product detail — gallery
   ========================================================================== */

.product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
}

.gallery__main {
  position: relative;
  border: 0.0625rem solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-gray);
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s ease;
}
.gallery__main .badge { top: 0.875rem; left: 0.875rem; font-size: 0.75rem; padding: 0.3125rem 0.625rem; }

.gallery__thumbs { display: flex; gap: 0.75rem; margin-top: 0.875rem; }
.gallery__thumb {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 0.625rem;
  border: 0.125rem solid var(--border);
  overflow: hidden;
  padding: 0;
  background: var(--bg-gray);
  flex-shrink: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-0.125rem); }
.gallery__thumb.is-active { border-color: var(--primary); }

/* ==========================================================================
   Product detail — info
   ========================================================================== */

.product-info__brand {
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  margin: 0 0 0.375rem;
}
.product-info h1 { font-size: 1.625rem; font-weight: 800; margin: 0 0 0.75rem; line-height: 1.25; }

.product-info__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 1.125rem;
}
.product-info__meta .stars { color: #f5a623; letter-spacing: 0.0625rem; }
.product-info__meta .stars em { color: var(--text-light); font-style: normal; margin-left: 0.25rem; }
.product-info__sep { color: var(--border); }
.product-info__stock { color: var(--green); font-weight: 600; }

.product-info__price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--bg-gray);
  border-radius: 0.75rem;
  margin-bottom: 1.125rem;
}
.product-info__price-current { font-size: 1.75rem; font-weight: 800; color: var(--red); }
.product-info__price-old { font-size: 0.9375rem; color: var(--text-light); text-decoration: line-through; }

.product-info__desc { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; margin: 0 0 1.375rem; }

.product-option { margin-bottom: 1.25rem; }
.product-option__label { font-size: 0.84375rem; margin: 0 0 0.625rem; }
.product-option__label b { color: var(--text); }

.swatches { display: flex; gap: 0.625rem; }
.swatch {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  padding: 0;
  border: 0.125rem solid transparent;
  outline: 0.0625rem solid var(--border);
  outline-offset: 0.125rem;
  background: var(--swatch, #ccc);
  transition: outline-color .2s ease, transform .2s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { outline-color: var(--primary); border-color: #fff; box-shadow: 0 0 0 0.125rem var(--primary); }

.pills { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.pill {
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  border: 0.09375rem solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pill:hover { border-color: var(--primary); }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.product-buy { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }

.qty-stepper {
  display: flex;
  align-items: center;
  border: 0.09375rem solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 2.875rem;
}
.qty-stepper button {
  width: 2.5rem;
  height: 100%;
  border: 0;
  background: #fff;
  font-size: 1rem;
  color: var(--text);
  transition: background .2s ease;
}
.qty-stepper button:hover { background: var(--bg-gray); }
.qty-stepper input {
  width: 2.625rem;
  height: 100%;
  border: 0;
  border-left: 0.0625rem solid var(--border);
  border-right: 0.0625rem solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.product-buy__cart,
.product-buy__now { height: 2.875rem; padding: 0 1.375rem; gap: 0.5rem; }
.product-buy__cart svg { width: 1.125rem; height: 1.125rem; }

.wish--lg {
  position: static;
  width: 2.875rem;
  height: 2.875rem;
  border: 0.09375rem solid var(--border);
  background: #fff;
}
.wish--lg svg { width: 1.1875rem; height: 1.1875rem; }

.product-trust {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 1.125rem;
  border-top: 0.0625rem solid var(--border);
}
.product-trust li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.8125rem; color: var(--text-light); }
.product-trust svg { width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; }

/* ==========================================================================
   Tabs / specs / reviews
   ========================================================================== */

.tabs__nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 0.0625rem solid var(--border);
  margin-bottom: 1.625rem;
  overflow-x: auto;
}
.tabs__btn {
  padding: 0.875rem 1.25rem;
  border: 0;
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 0.125rem solid transparent;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: tabFade .35s ease; }

@keyframes tabFade {
  from { opacity: 0; transform: translateY(0.375rem); }
  to { opacity: 1; transform: translateY(0); }
}

.tabs__panel h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.75rem; }
.tabs__panel p { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; margin: 0 0 0.875rem; max-width: 47.5rem; }
.tabs__panel ul { display: flex; flex-direction: column; gap: 0.5rem; max-width: 47.5rem; }
.tabs__panel ul li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--text-light);
}
.tabs__panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
}

.spec-table { width: 100%; max-width: 47.5rem; border-collapse: collapse; }
.spec-table tr { border-bottom: 0.0625rem solid var(--border); }
.spec-table tr:nth-child(odd) { background: #fff; }
.spec-table th,
.spec-table td { text-align: left; padding: 0.8125rem 1rem; font-size: 0.84375rem; }
.spec-table th { width: 12.5rem; color: var(--text-light); font-weight: 600; }
.spec-table td { color: var(--text); }

.review-summary {
  display: flex;
  gap: 2.5rem;
  padding-bottom: 1.625rem;
  margin-bottom: 1.625rem;
  border-bottom: 0.0625rem solid var(--border);
  flex-wrap: wrap;
}
.review-summary__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 7.5rem;
}
.review-summary__score strong { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.review-summary__score .stars { color: #f5a623; letter-spacing: 0.125rem; }
.review-summary__score span { font-size: 0.78125rem; color: var(--text-light); }

.review-summary__bars { flex: 1; min-width: 15rem; display: flex; flex-direction: column; gap: 0.5rem; justify-content: center; }
.review-bar { display: grid; grid-template-columns: 2.75rem 1fr 2.25rem; align-items: center; gap: 0.625rem; font-size: 0.78125rem; color: var(--text-light); }
.review-bar i {
  display: block;
  height: 0.4375rem;
  border-radius: 0.25rem;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.review-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--v, 0%);
  background: #f5a623;
  border-radius: 0.25rem;
}

.review-list { display: flex; flex-direction: column; gap: 1.25rem; }
.review-card { padding-bottom: 1.25rem; border-bottom: 0.0625rem solid var(--border); }
.review-card:last-child { border-bottom: 0; padding-bottom: 0; }
.review-card__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }
.review-card__avatar {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.review-card__head b { display: block; font-size: 0.84375rem; }
.review-card__head .stars { font-size: 0.6875rem; color: #f5a623; letter-spacing: 0.0625rem; }
.review-card__head time { margin-left: auto; font-size: 0.75rem; color: var(--text-light); }
.review-card p { font-size: 0.84375rem; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(1.125rem); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.categories > .reveal:nth-child(2) { transition-delay: .05s; }
.categories > .reveal:nth-child(3) { transition-delay: .1s; }
.categories > .reveal:nth-child(4) { transition-delay: .15s; }
.categories > .reveal:nth-child(5) { transition-delay: .2s; }
.categories > .reveal:nth-child(6) { transition-delay: .25s; }
.products .reveal:nth-child(2) { transition-delay: .05s; }
.products .reveal:nth-child(3) { transition-delay: .1s; }
.products .reveal:nth-child(4) { transition-delay: .15s; }
.products .reveal:nth-child(5) { transition-delay: .2s; }
.blog > .reveal:nth-child(2) { transition-delay: .05s; }
.blog > .reveal:nth-child(3) { transition-delay: .1s; }
.promos .reveal:nth-child(2) { transition-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__deco { animation: none; }
}

/* ==========================================================================
   Forms (shared by auth / checkout / cart)
   ========================================================================== */

.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 0.0625rem solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.1875rem rgba(242,112,15,.14);
}
.form-group textarea { resize: vertical; min-height: 5.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}
.form-check input { width: 1rem; height: 1rem; accent-color: var(--primary); flex-shrink: 0; }

.field-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.375rem; }

/* ==========================================================================
   Auth pages (login / register)
   ========================================================================== */

.auth {
  min-height: calc(100vh - 12.5rem);
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}

.auth__box {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 0.0625rem solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.06);
}

.auth__panel {
  position: relative;
  background: linear-gradient(135deg, #fdf3ea, #fbeee2);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth__panel .logo { font-size: 1.625rem; margin-bottom: 2rem; }
.auth__panel h2 { font-size: 1.75rem; font-weight: 800; line-height: 1.3; margin: 0 0 0.875rem; }
.auth__panel p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.6; margin: 0 0 1.75rem; max-width: 22rem; }

.auth__points { display: flex; flex-direction: column; gap: 0.875rem; }
.auth__points li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--text); }
.auth__points svg { width: 1.375rem; height: 1.375rem; color: var(--primary); flex-shrink: 0; }

.auth__form { padding: 3rem 2.75rem; }
.auth__form h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.5rem; }
.auth__form > p { font-size: 0.875rem; color: var(--text-light); margin: 0 0 1.75rem; }
.auth__form > p a { color: var(--primary); font-weight: 600; }

.auth__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.375rem; }
.auth__row a { font-size: 0.8125rem; color: var(--primary); font-weight: 600; }

.auth__submit { width: 100%; padding: 0.875rem; font-size: 0.9375rem; margin-bottom: 1.5rem; }

.auth__divider {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.5rem;
  color: var(--text-light);
  font-size: 0.75rem;
}
.auth__divider::before,
.auth__divider::after { content: ""; flex: 1; height: 0.0625rem; background: var(--border); }

.auth__social { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.75rem; }
.auth__social button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.auth__social button:hover { border-color: var(--text); background: var(--bg-gray); }
.auth__social svg { width: 1.125rem; height: 1.125rem; }

.auth__foot { text-align: center; font-size: 0.875rem; color: var(--text-light); }
.auth__foot a { color: var(--primary); font-weight: 600; }

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart__layout { display: grid; grid-template-columns: 1fr 22rem; gap: 2.5rem; align-items: start; }

.cart-list { border: 0.0625rem solid var(--border); border-radius: 1rem; overflow: hidden; }

.cart-item {
  display: grid;
  grid-template-columns: 6rem 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 0.0625rem solid var(--border);
  transition: background .2s ease;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item:hover { background: var(--bg-gray); }

.cart-item__media { width: 6rem; height: 6rem; border-radius: 0.625rem; overflow: hidden; background: var(--bg-gray); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__info h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.375rem; }
.cart-item__info h3 a:hover { color: var(--primary); }
.cart-item__variant { font-size: 0.78125rem; color: var(--text-light); margin: 0 0 0.625rem; }
.cart-item__remove {
  border: 0;
  background: none;
  color: var(--text-light);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  transition: color .2s ease;
}
.cart-item__remove svg { width: 0.875rem; height: 0.875rem; }
.cart-item__remove:hover { color: var(--red); }

.cart-item__price { text-align: right; font-weight: 700; color: var(--red); font-size: 0.9375rem; white-space: nowrap; }
.cart-item__price del { display: block; font-weight: 400; font-size: 0.75rem; color: var(--text-light); }

.cart-empty { display: none; text-align: center; padding: 3rem 1.5rem; color: var(--text-light); }
.cart-empty svg { width: 3.5rem; height: 3.5rem; color: var(--border); margin-bottom: 1rem; }
.cart-list.is-empty .cart-item { display: none; }
.cart-list.is-empty .cart-empty { display: block; }

.cart-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.cart-actions a { font-size: 0.8125rem; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 0.375rem; }
.cart-actions a:hover { color: var(--primary); }
.cart-actions a svg { width: 1rem; height: 1rem; }

.order-summary {
  border: 0.0625rem solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}
.order-summary h3 { font-size: 1.0625rem; font-weight: 800; margin: 0 0 1.125rem; }
.order-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-light);
  padding: 0.625rem 0;
}
.order-summary__row span:last-child { color: var(--text); font-weight: 600; }
.order-summary__row--total {
  border-top: 0.0625rem solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1rem;
}
.order-summary__row--total span { color: var(--text) !important; font-weight: 800 !important; }
.order-summary__row--total span:last-child { color: var(--red) !important; font-size: 1.25rem; }

.order-summary__coupon { display: flex; gap: 0.5rem; margin: 0.875rem 0; }
.order-summary__coupon input {
  flex: 1;
  min-width: 0;
  border: 0.0625rem solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
}
.order-summary__coupon .btn { padding: 0 1rem; font-size: 0.8125rem; white-space: nowrap; }

.order-summary__cta { display: flex; width: 100%; margin-top: 0.5rem; padding: 0.875rem; font-size: 0.9375rem; }

.order-summary__mini { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 0.0625rem solid var(--border); }
.order-summary__mini-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; }
.order-summary__mini-item img { width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; object-fit: cover; flex-shrink: 0; }
.order-summary__mini-item b { display: block; font-weight: 600; font-size: 0.8125rem; }
.order-summary__mini-item span { color: var(--text-light); font-size: 0.75rem; }
.order-summary__mini-item strong { margin-left: auto; white-space: nowrap; color: var(--text); font-size: 0.8125rem; }

/* ==========================================================================
   Checkout page
   ========================================================================== */

.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.checkout-steps__step { display: flex; align-items: center; gap: 0.625rem; font-size: 0.8125rem; color: var(--text-light); }
.checkout-steps__num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.checkout-steps__step.is-active .checkout-steps__num { background: var(--primary); color: #fff; }
.checkout-steps__step.is-active { color: var(--text); font-weight: 600; }
.checkout-steps__step.is-done .checkout-steps__num { background: var(--green); color: #fff; }
.checkout-steps__sep { width: 2.5rem; height: 0.0625rem; background: var(--border); }

.checkout__layout { display: grid; grid-template-columns: 1fr 22rem; gap: 2.5rem; align-items: start; }

.checkout-section { border: 0.0625rem solid var(--border); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.25rem; }
.checkout-section h3 { font-size: 1rem; font-weight: 800; margin: 0 0 1.125rem; display: flex; align-items: center; gap: 0.5rem; }
.checkout-section h3 svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }

.checkout-success {
  max-width: 32rem;
  margin: 2rem auto;
  text-align: center;
  padding: 3rem 2rem;
  border: 0.0625rem solid var(--border);
  border-radius: 1.25rem;
}
.checkout-success__icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.checkout-success__icon svg { width: 2.25rem; height: 2.25rem; }
.checkout-success h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.875rem; }
.checkout-success p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.6; margin: 0 0 1.75rem; }
.checkout-success p b { color: var(--text); }
.checkout-success__actions { display: flex; justify-content: center; gap: 0.75rem; }

.radio-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.radio-card:hover { border-color: var(--primary); }
.radio-card input { width: 1.0625rem; height: 1.0625rem; accent-color: var(--primary); flex-shrink: 0; }
.radio-card svg { width: 1.5rem; height: 1.5rem; color: var(--text-light); flex-shrink: 0; }
.radio-card__text { flex: 1; }
.radio-card__text b { display: block; font-size: 0.875rem; }
.radio-card__text span { font-size: 0.75rem; color: var(--text-light); }
.radio-card__price { font-size: 0.8125rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.radio-card:has(input:checked),
.radio-card.is-selected { border-color: var(--primary); background: #fff7f0; }

/* ==========================================================================
   Promotions page
   ========================================================================== */

.flash-sale {
  border-radius: 1.25rem;
  background: linear-gradient(120deg, #ef5a1f, #fb9346);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
}
.flash-sale__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.flash-sale__title { display: flex; align-items: center; gap: 0.75rem; }
.flash-sale__title svg { width: 2rem; height: 2rem; color: #fff; }
.flash-sale__title h2 { color: #fff; font-size: 1.5rem; font-weight: 800; margin: 0; }
.flash-sale__title span { display: block; color: rgba(255,255,255,.85); font-size: 0.8125rem; }

.countdown { display: flex; align-items: center; gap: 0.5rem; }
.countdown span { color: #fff; font-size: 0.8125rem; font-weight: 600; margin-right: 0.25rem; }
.countdown b {
  min-width: 2.75rem;
  text-align: center;
  background: rgba(0,0,0,.22);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 0.5rem;
  padding: 0.5rem 0.375rem;
  font-variant-numeric: tabular-nums;
}
.countdown em { color: #fff; font-style: normal; font-weight: 700; }

.flash-sale .products { gap: 1rem; }
.flash-sale .product-card { border: none; }

.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.75rem; }

.promo-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 1rem;
  padding: 1.75rem;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.promo-tile:hover { transform: translateY(-0.1875rem); box-shadow: 0 1.125rem 2.125rem rgba(0,0,0,.14); }

.promo-tile--orange { background: linear-gradient(120deg, #ef5a1f, #fb9346); }
.promo-tile--blue { background: linear-gradient(120deg, #6fa0f7, #b9d6fb); }
.promo-tile--green { background: linear-gradient(120deg, #0f8030, #4fbf82); }

.promo-tile__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.promo-tile__icon svg { width: 1.5rem; height: 1.5rem; color: #fff; }

.promo-tile__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025rem;
  color: rgba(255,255,255,.9);
  margin: 0 0 0.5rem;
}
.promo-tile h3 { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 0 0.375rem; }
.promo-tile__desc { font-size: 0.875rem; color: rgba(255,255,255,.9); line-height: 1.5; margin: 0 0 1.5rem; }
.promo-tile .btn { margin-top: auto; }

.coupons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 0.5rem; }
.coupon {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 0.0625rem dashed var(--border);
  border-radius: 0.875rem;
  padding: 1.125rem;
  background: var(--bg-gray);
}
.coupon__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.coupon__icon svg { width: 1.5rem; height: 1.5rem; }
.coupon__text { flex: 1; min-width: 0; }
.coupon__text b { display: block; font-size: 0.9375rem; }
.coupon__text span { font-size: 0.75rem; color: var(--text-light); }
.coupon__code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: #fff;
  border: 0.0625rem solid var(--border);
  border-radius: 0.5rem;
  padding: 0.4375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.0625rem;
  color: var(--primary);
  transition: background .2s ease, border-color .2s ease;
}
.coupon__code:hover { border-color: var(--primary); }
.coupon__code svg { width: 0.9375rem; height: 0.9375rem; }
.coupon__code.is-copied { background: var(--green); border-color: var(--green); color: #fff; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 0.0625rem solid var(--border);
  border-radius: 1rem;
  padding: 1.375rem;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.contact-card:hover { box-shadow: 0 1rem 2rem rgba(0,0,0,.09); transform: translateY(-0.25rem); border-color: transparent; }
.contact-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card__icon svg { width: 1.5rem; height: 1.5rem; }
.contact-card b { display: block; font-size: 0.8125rem; color: var(--text-light); font-weight: 600; margin-bottom: 0.25rem; }
.contact-card span { display: block; font-size: 1rem; font-weight: 700; }
.contact-card:hover span { color: var(--primary); }

.contact-layout { display: grid; grid-template-columns: 1fr 22rem; gap: 2.5rem; align-items: start; }

.contact-form { border: 0.0625rem solid var(--border); border-radius: 1.25rem; padding: 2rem; }
.contact-form h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.375rem; }
.contact-form > p { font-size: 0.875rem; color: var(--text-light); margin: 0 0 1.5rem; }
.contact-form__submit { padding: 0.875rem 2rem; font-size: 0.9375rem; }

.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-map {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 12rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 45%),
    linear-gradient(135deg, #fdf3ea, #fbeee2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-map::before,
.contact-map::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(242,112,15,.12);
}
.contact-map::before { width: 6rem; height: 6rem; top: -1.5rem; right: -1.5rem; }
.contact-map::after { width: 3.5rem; height: 3.5rem; bottom: 1rem; left: -1rem; }
.contact-map__pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
  padding: 0 1.5rem;
}
.contact-map__pin span {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.75rem 1.5rem rgba(242,112,15,.35);
}
.contact-map__pin span svg { width: 1.625rem; height: 1.625rem; }
.contact-map__pin b { font-size: 0.875rem; }
.contact-map__pin small { font-size: 0.75rem; color: var(--text-light); }

.office-hours { border: 0.0625rem solid var(--border); border-radius: 1.25rem; padding: 1.5rem; }
.office-hours h3 { font-size: 1rem; font-weight: 800; margin: 0 0 1rem; }
.office-hours__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  border-bottom: 0.0625rem solid var(--border);
}
.office-hours__row:last-child { border-bottom: 0; }
.office-hours__row span:first-child { color: var(--text-light); }
.office-hours__row span:last-child { font-weight: 600; }

.contact-social { border: 0.0625rem solid var(--border); border-radius: 1.25rem; padding: 1.5rem; }
.contact-social h3 { font-size: 1rem; font-weight: 800; margin: 0 0 1rem; }

.faq { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
  border: 0.0625rem solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.faq details[open] { border-color: var(--primary); background: #fff7f0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-gray);
  font-size: 1.125rem;
  color: var(--text-light);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq details[open] summary::after {
  content: "\2212";
  background: var(--primary);
  color: #fff;
}
.faq p { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; margin: 0.875rem 0 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 64rem) {
  .categories > * { flex-basis: calc((100% - 0.875rem * 3) / 4); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .shop__main .products { grid-template-columns: repeat(3, 1fr); }
  .shop__main .products.is-list { grid-template-columns: 1fr; }
  .blog > * { flex-basis: calc((100% - 1.25rem * 1) / 2); }
  .carousel__track.products > * { flex-basis: calc((100% - 1rem * 2) / 3); }
  .shop__layout { grid-template-columns: 13.75rem 1fr; gap: 1.25rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 2.125rem; }
  .hero__inner { padding: 2rem; }
  .auth__box { grid-template-columns: 1fr; max-width: 30rem; }
  .auth__panel { display: none; }
  .cart__layout { grid-template-columns: 1fr; }
  .checkout__layout { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .coupons { grid-template-columns: repeat(2, 1fr); }
  .flash-sale .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 53.75rem) {
  .topbar__ship { display: none; }
  .header__inner { flex-wrap: wrap; }
  .header__actions { order: 3; width: 100%; justify-content: flex-start; }
  .nav__menu { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 1.75rem 1.25rem; }
  .hero__slides { min-height: 40rem; }
  .hero__specs { justify-content: center; flex-wrap: wrap; }
  .hero__cta { justify-content: center; }
  .hero__media { order: -1; }
  .hero__arrow { display: none; }
  .promos { grid-template-columns: 1fr; }
  .categories > * { flex-basis: calc((100% - 0.875rem * 2) / 3); }
  .carousel__track.products > * { flex-basis: calc((100% - 1rem * 1) / 2); }
  .shop__layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product__layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .review-summary { flex-direction: column; gap: 1.125rem; }
  .news-feature { grid-template-columns: 1fr; gap: 1.25rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .article__layout { grid-template-columns: 1fr; }
  .article__meta { flex-wrap: wrap; justify-content: flex-start; }
  .article__share { margin-left: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 37.5rem) {
  .categories > * { flex-basis: calc((100% - 0.875rem) / 2); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .shop__main .products { grid-template-columns: repeat(2, 1fr); }
  .shop__main .products.is-list { grid-template-columns: 1fr; }
  .blog > * { flex-basis: 84%; }
  .carousel__track.products > * { flex-basis: 78%; }
  .features__inner { flex-wrap: wrap; }
  .footer__inner { grid-template-columns: 1fr; }
  .section__head { flex-wrap: wrap; gap: 0.625rem; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .products.is-list .product-card { flex-direction: column; align-items: stretch; }
  .products.is-list .product-card__media { width: 100%; }
  .product-buy { flex-direction: column; align-items: stretch; }
  .product-buy__cart, .product-buy__now { width: 100%; }
  .wish--lg { align-self: flex-start; }
  .gallery__thumbs { flex-wrap: wrap; }
  .spec-table th { width: 8.75rem; }
  .news-grid { grid-template-columns: 1fr; }
  .article__header h1 { font-size: 1.5rem; }
  .article__cover { aspect-ratio: 4 / 3; }
  .auth__form { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 4.5rem 1fr; row-gap: 0.75rem; }
  .cart-item__price { grid-column: 2; text-align: left; }
  .checkout-steps__label { display: none; }
  .checkout-steps__step.is-active .checkout-steps__label { display: inline; }
  .promo-grid { grid-template-columns: 1fr; }
  .coupons { grid-template-columns: 1fr; }
  .flash-sale .products { grid-template-columns: repeat(2, 1fr); }
  .flash-sale__head { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 1.5rem; }
}
