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

:root {
  --pink-50: #fff8fb;
  --pink-100: #ffe8f2;
  --pink-200: #ffd0e4;
  --pink-300: #f5a8c8;
  --pink-500: #e84393;
  --pink-600: #d63384;
  --pink-700: #b8256f;
  --rose-gold: #c9956c;
  --rose-gold-light: #e8cfc0;
  --rose-gold-dark: #a67c6d;
  --gold-shimmer: #d4a574;
  --cream: #fffaf7;
  --text: #3d2c35;
  --text-muted: #8a7380;
  --white: #ffffff;
  --border: rgba(216, 51, 132, 0.12);
  --shadow-sm: 0 2px 12px rgba(184, 37, 111, 0.06);
  --shadow-md: 0 8px 32px rgba(184, 37, 111, 0.1);
  --shadow-lg: 0 16px 48px rgba(184, 37, 111, 0.12);
  --radius: 8px;
  --radius-lg: 8px;
  --header-h: 72px;
  --gradient-brand: linear-gradient(135deg, var(--pink-500), var(--rose-gold));
  --shadow-brand: 0 4px 16px rgba(216, 51, 132, 0.28);
  --shadow-brand-hover: 0 6px 24px rgba(201, 149, 108, 0.38);
}

html {
  /* Global type scale. 100% = 16px browser default.
     87.5% => 14px base on desktop; every rem across all pages scales from here. */
  font-size: 87.5%;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  html {
    /* 81.25% => 13px base on mobile */
    font-size: 81.25%;
  }

  /* Keep form controls at 16px on mobile so iOS Safari does not
     auto-zoom the page when an input is focused. */
  input,
  select,
  textarea,
  .form-input,
  .form-textarea,
  .form-select,
  .header-search__input,
  .cart-coupon__row .form-input,
  .checkout-coupon__row .form-input {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: "IRANYekan", Tahoma, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, var(--pink-50) 0%, var(--cream) 120px, var(--cream) 100%);
  min-height: 100vh;
}

a {
  color: var(--pink-600);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rose-gold-dark);
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.container--wide {
  width: min(1280px, 94vw);
  margin-inline: auto;
}

.container-fluid {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* ── Header ── */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header {
  position: static;
  z-index: auto;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

/* legacy alias */
.header-inner {
  position: static;
}

body.mobile-nav-open .site-header-wrap {
  z-index: 201;
}

.site-header__shell {
  width: 100%;
}

.header-inner,
.site-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.logo__image {
  display: block;
  width: auto;
  height: clamp(2rem, 5vw, 2.75rem);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

/* ── Header layout + mega menu ── */
.site-header-row {
  position: static;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.header-toolbar {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.account-dropdown {
  position: relative;
}

.account-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.account-dropdown__trigger:hover,
.account-dropdown--open .account-dropdown__trigger {
  background: var(--pink-100);
  color: var(--pink-700);
  border-color: var(--pink-200);
}

.account-dropdown__icon,
.account-dropdown__chevron {
  flex-shrink: 0;
}

.account-dropdown__chevron {
  transition: transform 0.2s ease;
}

.account-dropdown--open .account-dropdown__chevron {
  transform: rotate(180deg);
}

.account-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  min-width: 220px;
  padding: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 220;
}

.account-dropdown__item {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.account-dropdown__item:hover {
  background: var(--pink-50);
  color: var(--pink-700);
}

.account-dropdown__item--muted {
  color: var(--text-muted);
}

.account-dropdown__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.35rem 0;
}

.header-login {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.header-login:hover {
  background: var(--pink-100);
  color: var(--pink-700);
  border-color: var(--pink-200);
}

/* ── Header product search ── */
.header-search {
  position: relative;
  flex: 0 1 230px;
  width: 230px;
  min-width: 0;
}

.header-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search__icon {
  position: absolute;
  inset-inline-end: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.header-search__input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.header-search__input::placeholder {
  color: var(--text-muted);
}

.header-search__input:focus {
  outline: none;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.12);
}

.header-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.header-search__suggestions {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-start: auto;
  inset-inline-end: 0;
  width: min(360px, 90vw);
  max-height: min(70vh, 460px);
  overflow-y: auto;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 230;
}

.header-search__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.header-search__item:hover,
.header-search__item.is-active {
  background: var(--pink-50);
}

.header-search__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--pink-50);
}

.header-search__thumb--empty {
  display: block;
  border: 1px dashed var(--border);
}

.header-search__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.header-search__name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search__badge {
  flex-shrink: 0;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--pink-600);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.header-search__brand {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search__price {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-700);
}

.header-search__compare {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}

.header-search__empty {
  margin: 0;
  padding: 0.85rem 0.6rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.header-search__view-all {
  display: block;
  margin-top: 0.25rem;
  padding: 0.6rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink-600);
  text-decoration: none;
  background: var(--white);
  position: sticky;
  bottom: 0;
}

.header-search__view-all:hover,
.header-search__view-all.is-active {
  background: var(--pink-50);
  color: var(--pink-700);
}

.mobile-nav-panel__head {
  display: none;
}

.mobile-nav-panel__scroll {
  display: contents;
}

.utility-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.utility-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.utility-nav a:hover {
  background: var(--pink-100);
  color: var(--pink-700);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--pink-600);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  display: none;
  pointer-events: none;
}

body.mobile-nav-open {
  overflow: hidden;
}

.mega-nav {
  flex: 1;
  min-width: 0;
}

.mega-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.mega-nav__item {
  position: static;
}

.mega-nav__item:hover,
.mega-nav__item:focus-within {
  z-index: 95;
}

.mega-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.mega-nav__trigger:hover,
.mega-nav__item:focus-within .mega-nav__trigger,
.mega-nav__item:hover .mega-nav__trigger {
  background: var(--pink-100);
  color: var(--pink-700);
}

.mega-nav__chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.65;
}

.mega-menu {
  position: absolute;
  inset-inline: 0;
  /* Pull panel up into the header to remove the hover dead zone */
  top: calc(100% - 14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  transition-delay: 0.12s;
  pointer-events: none;
  background: linear-gradient(180deg, var(--pink-50) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  padding: 1rem 0 1.25rem;
}

/* Invisible bridge from nav triggers down into the panel */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -22px;
  inset-inline: 0;
  height: 36px;
}

.mega-nav__item:hover .mega-menu,
.mega-nav__item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mega-menu__inner {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 2.25rem 1.35rem;
}

.mega-menu__columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem 2.25rem;
}

.mega-menu__column {
  padding-inline: 0.25rem;
}

.mega-menu__column-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pink-700);
  text-decoration: none;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.35rem 0.55rem;
  border-bottom: 2px solid var(--pink-100);
}

.mega-menu__column-title:hover {
  color: var(--rose-gold-dark);
}

.mega-menu__links {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mega-menu__links a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.2rem 0.35rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.mega-menu__links a:hover {
  color: var(--pink-600);
  background: var(--pink-50);
}

.mega-menu__footer {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.mega-menu__view-all {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--rose-gold-dark);
}

.mega-menu__view-all:hover {
  color: var(--pink-600);
}

.mobile-mega-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.mobile-mega-nav__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.mobile-mega-nav__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-mega-nav__summary::-webkit-details-marker {
  display: none;
}

.mobile-mega-nav__summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--pink-600);
  border-block-end: 2px solid var(--pink-600);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.mobile-mega-nav__item[open] > .mobile-mega-nav__summary::after {
  transform: rotate(-135deg);
}

.mobile-mega-nav__root-link {
  text-decoration: none;
  color: var(--text);
}

.mobile-mega-nav__panel {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--pink-50);
}

.mobile-mega-nav__group {
  padding-top: 0.85rem;
}

.mobile-mega-nav__group-title {
  display: block;
  font-weight: 700;
  color: var(--pink-700);
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.mobile-mega-nav__links {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-mega-nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.category-body {
  margin-top: 2rem;
  max-width: none;
}

.catalog-section {
  margin-bottom: 2.5rem;
}

.page-section {
  margin-bottom: 2.5rem;
}

.page-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-section__view-all {
  font-size: 0.9rem;
  color: var(--pink-600);
  text-decoration: none;
  white-space: nowrap;
}

.page-section__view-all:hover {
  text-decoration: underline;
}

.page-section__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.page-section__tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-section__tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-section__tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.img-placeholder--tile {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--pink-100), var(--pink-200));
}

.page-section__tile-caption {
  padding: 0.5rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-section__tile-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.page-section__tile-badge {
  font-size: 0.8rem;
  color: var(--pink-600);
}

.page-section__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.page-section__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 64px;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.page-section__brand img {
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
}

.page-section__brand-name {
  font-weight: 600;
  color: var(--text);
}

.section-title__count {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--text-muted);
}

.category-tile__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.category-tile .img-placeholder--category {
  border-radius: 8px 8px 0 0;
}

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-card__stock {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

.product-detail__subtitle {
  margin: -0.25rem 0 0.75rem;
}

.product-detail__intro {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.product-detail__section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.product-detail__section h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--rose-gold-dark);
}

.product-detail__prose {
  line-height: 1.75;
  color: var(--text);
}

.product-detail__collapsible .product-detail__prose {
  font-size: 0.9rem;
  line-height: 1.65;
}

.product-detail__prose--clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-detail__collapsible.is-expanded .product-detail__prose--clamped {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.product-detail__collapsible .product-detail__read-more {
  display: block;
  width: fit-content;
  margin-top: 0.65rem;
  margin-left: 0;
  margin-right: auto;
}

.price-block__sale-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.price-block__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  background: var(--pink-600);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.price-block--card {
  margin-top: 0.35rem;
  text-align: left;
}

.price-block--card .price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  text-align: left;
}

.price-block--card .price-block__sale-row {
  margin-bottom: 0.25rem;
  justify-content: flex-end;
}

.price-block--lg .price-block__sale-row {
  margin-bottom: 0.4rem;
}

.price__currency {
  font-size: 0.65em;
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.product-actions__cart {
  min-width: min(100%, 220px);
}

.product-actions__view-cart {
  text-decoration: none;
  white-space: nowrap;
}

.product-actions__view-cart[hidden] {
  display: none !important;
}

.product-actions .btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.product-benefits {
  margin-top: 1.25rem;
}

.product-benefits__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-benefits__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.product-benefits__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.product-benefits__label {
  font-size: 0.6875rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-muted);
}

.product-installment-promos {
  margin-top: 1rem;
}

.product-installment-promos .digipay-promo--summary {
  margin-top: 0;
}

.product-installment-promos .snapppay-promo--summary {
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .product-benefits__icon {
    width: 44px;
    height: 44px;
  }

  .product-benefits__label {
    font-size: 0.625rem;
  }
}

.spec-table {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.spec-table__row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  border-bottom: 1px solid var(--border);
}

.spec-table__row:last-child {
  border-bottom: none;
}

.spec-table__row dt {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--pink-50);
  font-weight: 600;
  color: var(--pink-700);
}

.spec-table__row dd {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .spec-table__row {
    grid-template-columns: 1fr;
  }

  .spec-table__row dt {
    padding-bottom: 0.35rem;
  }

  .spec-table__row dd {
    padding-top: 0;
  }
}

/* ── Product variant picker ── */
.variant-option {
  margin-top: 1.25rem;
}

.variant-option .section-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.variant-option__selected {
  font-weight: 700;
  color: var(--pink-700);
}

.variant-option__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.variant-option__values--swatch {
  gap: 0.75rem;
}

.variant-option__value {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.variant-option__values--swatch .variant-option__value {
  border-radius: 50%;
  padding: 3px;
  width: 2.75rem;
  height: 2.75rem;
  justify-content: center;
}

.variant-option__values--swatch .variant-option__value.has-image-swatch {
  padding: 2px;
}

.variant-option__value:hover,
.variant-option__value.is-selected {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.12);
}

.variant-option__value.is-unavailable {
  opacity: 0.45;
}

.variant-option__value.is-unavailable .variant-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top left,
    transparent calc(50% - 1px),
    #333 calc(50% - 1px),
    #333 calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  border-radius: 50%;
  pointer-events: none;
}

.variant-swatch {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--swatch-color, var(--pink-200));
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}

.variant-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.variant-option__label {
  font-size: 0.88rem;
  font-weight: 600;
}

.variant-option__badge {
  position: absolute;
  top: -0.45rem;
  inset-inline-start: -0.25rem;
  background: var(--pink-600);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

.product-pricing {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.price-compare {
  text-decoration: line-through;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.price-block .price {
  margin: 0;
}

.product-gallery {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 0.75rem;
}

.product-gallery__main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}

.product-gallery__main .product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: var(--white);
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0.5rem;
  margin-top: 0;
}

.product-gallery__thumb {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.product-gallery__thumb.is-active {
  border-color: var(--pink-500);
}

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

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--pink-100);
  color: var(--pink-700);
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-cart {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.header-cart:hover {
  background: var(--pink-100);
  color: var(--pink-700);
  border-color: var(--pink-200);
}

.header-cart__icon {
  flex-shrink: 0;
}

.header-cart__label {
  white-space: nowrap;
}

#cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 999px;
}

/* ── Image placeholders (replace with real images later) ── */
.img-placeholder {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

.img-placeholder--hero {
  aspect-ratio: 21 / 8;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--pink-200) 0%, var(--rose-gold-light) 45%, var(--pink-300) 100%);
  box-shadow: var(--shadow-md);
}

.img-placeholder--hero-square {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: linear-gradient(145deg, var(--pink-200) 0%, var(--rose-gold-light) 55%, var(--pink-300) 100%);
}

.img-placeholder--banner {
  aspect-ratio: 3 / 1;
  min-height: 140px;
  border-radius: var(--radius-lg);
  background: var(--pink-200);
}

.img-placeholder--category {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--rose-gold-light);
}

.img-placeholder--product {
  aspect-ratio: 1;
  background: var(--pink-100);
}

.img-placeholder--product-lg {
  aspect-ratio: 1;
  min-height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--pink-100), var(--rose-gold-light));
  box-shadow: var(--shadow-md);
}

/* Alternate product placeholder tones */
.product-grid .product-card:nth-child(3n + 1) .img-placeholder--product {
  background: #ffd8e8;
}

.product-grid .product-card:nth-child(3n + 2) .img-placeholder--product {
  background: #e8cfc0;
}

.product-grid .product-card:nth-child(3n + 3) .img-placeholder--product {
  background: #f5c6d6;
}

.category-grid .img-placeholder--category:nth-child(1) {
  background: #ffd0e4;
}

.category-grid .img-placeholder--category:nth-child(2) {
  background: #e8cfc0;
}

.category-grid .img-placeholder--category:nth-child(3) {
  background: #f0b8cc;
}

/* ── Main ── */
main.container,
main.container--wide {
  padding: 2rem 0 3rem;
  min-height: 55vh;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-300), transparent);
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--pink-700), var(--rose-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Category tiles ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.category-tile {
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-tile span {
  display: block;
  padding: 0.45rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--text);
}

.brand-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.brand-list-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-list-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.brand-list-grid__item img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.brand-list-grid__name {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.promo-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* ── Product grid & cards ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card > a {
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.product-card .card-image {
  overflow: hidden;
  background: var(--white);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px 8px 0 0;
  transition: transform 0.35s ease;
}

.product-card .img-placeholder--product {
  aspect-ratio: auto;
  height: 200px;
  border-radius: 8px 8px 0 0;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card .card-body {
  padding: 0.85rem 1rem 0.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .price-block--card {
  margin-top: auto;
}

.product-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(2 * 1.5 * 0.9rem);
}

@media (max-width: 640px) {
  .product-card h3 {
    font-size: 0.9rem;
    min-height: calc(2 * 1.5 * 0.9rem);
  }
}

.product-card .brand-tag {
  font-size: 0.8rem;
  color: var(--rose-gold-dark);
  margin-bottom: 0.25rem;
}

.product-detail-info .brand-tag {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
}

.product-detail-info .brand-tag__label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.product-detail-info .brand-tag__logo {
  height: 48px;
  width: auto;
  max-width: 150px;
  flex-shrink: 0;
  object-fit: contain;
  margin-inline-start: auto;
}

.product-card form {
  padding: 0 1rem 1rem;
}

.price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--pink-600);
}

.price--lg {
  font-size: 1.5rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Buttons ── */
.btn,
button[type="submit"]:not(.link-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:hover,
button[type="submit"]:not(.link-btn):hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow-brand-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--pink-600);
  border: 2px solid var(--pink-300);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--pink-50);
  box-shadow: none;
}

.btn--gold {
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
}

.btn--gold:hover {
  box-shadow: var(--shadow-brand-hover);
}

.btn--digipay {
  background: linear-gradient(135deg, var(--pink-600), var(--pink-700));
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.28);
  color: #fff;
}

.btn--digipay:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-800));
}

.btn--digipay:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-small {
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--pink-600);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 0;
  box-shadow: none;
}

.link-btn:hover {
  color: var(--pink-700);
  transform: none;
  box-shadow: none;
}

/* ── Search ── */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form input:focus {
  outline: none;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.12);
}

.search-form button {
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Product detail ── */
.product-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

.product-detail-media {
  position: sticky;
  top: calc(var(--header-h, 72px) + 1rem);
  align-self: start;
}

.product-detail-media.is-zoom-enabled {
  z-index: 20;
}

/* ── Hover zoom (side panel, no layout shift) ── */
.product-zoom-result {
  position: absolute;
  top: 0;
  right: calc(100% + 1.25rem);
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  background-repeat: no-repeat;
  background-size: 220%;
  box-shadow: 0 12px 32px rgba(17, 12, 34, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.15s ease;
}

.product-zoom-result.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .product-detail-media.is-zoom-enabled .product-gallery__main {
    cursor: zoom-in;
  }
}

@media (max-width: 899px), (hover: none) {
  .product-zoom-result {
    display: none !important;
  }
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-detail-info h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.stock-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.stock-badge--in {
  background: #ecfdf5;
  color: #047857;
}

.stock-badge--out {
  background: var(--pink-100);
  color: var(--pink-700);
}

.description {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.description h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--rose-gold-dark);
}

.product-image {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  object-fit: cover;
}

/* ── Cart & checkout ── */
.card-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

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

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.cart-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cart-table tbody tr:hover {
  background: var(--pink-50);
}

.cart-total {
  font-size: 1.15rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--pink-50);
  border-radius: var(--radius);
}

.cart-page__main {
  min-width: 0;
}

/* ── DigiPay installment promo (same visual language as Snapp! Pay) ── */
.digipay-promo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  direction: rtl;
}

.digipay-promo__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.digipay-promo__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.35rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink-600), var(--pink-500));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}

.digipay-promo__text {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.digipay-promo__title {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  font-weight: 700;
  color: var(--text);
}

.digipay-promo__title strong {
  font-weight: 700;
}

.digipay-promo__title-desktop {
  display: none;
}

.digipay-promo__desc {
  margin: 0.1rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-muted);
}

.digipay-promo--inline {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}

.digipay-promo--summary {
  margin-top: 1.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--pink-200);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--pink-50) 0%, #fff 72%);
  box-shadow: 0 4px 16px rgba(216, 51, 132, 0.06);
}

@media (min-width: 1024px) {
  .digipay-promo__logo {
    min-width: 46px;
    height: 46px;
    font-size: 0.68rem;
  }

  .digipay-promo__title-line,
  .digipay-promo__desc {
    display: none;
  }

  .digipay-promo__title-desktop {
    display: inline;
    font-weight: 400;
    color: var(--text-muted);
  }

  .digipay-promo__title-desktop strong {
    font-weight: 700;
    color: var(--text);
  }
}

.cart-page--empty {
  text-align: center;
}

.cart-page--empty .btn {
  margin-top: 1rem;
}

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cart-item-product__image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cart-item-product__placeholder {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.cart-item-product__title {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.cart-item-product__title:hover {
  color: var(--pink-700);
}

.cart-item-product__sku {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.cart-summary__action {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.cart-coupon {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--pink-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cart-coupon--applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-coupon__label,
.checkout-coupon__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cart-coupon__row,
.checkout-coupon__row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.checkout-coupon__row {
  margin-bottom: 0.35rem;
}

.cart-coupon__row .form-input,
.checkout-coupon__row .form-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
}

.cart-coupon__applied {
  margin: 0;
  font-size: 0.92rem;
}

.checkout-coupon {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.checkout-coupon--applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--pink-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.cart-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-600);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(184, 37, 111, 0.12);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.cart-qty__btn:hover:not(:disabled) {
  background: var(--pink-600);
  color: #fff;
}

.cart-qty__btn:active:not(:disabled) {
  transform: scale(0.92);
}

.cart-qty__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.cart-qty__input {
  width: 2.5rem;
  height: 2rem;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  -moz-appearance: textfield;
}

.cart-qty__input:focus {
  outline: none;
}

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

.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.product-actions__form {
  display: contents;
}

.product-actions__form[hidden],
.cart-qty[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.85rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
  }

  .cart-table tbody tr:hover {
    background: transparent;
  }

  .cart-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .cart-table td:last-child {
    border-bottom: none;
  }

  .cart-table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .cart-item-product {
    width: 100%;
    min-width: 0;
  }

  .cart-item-product > div {
    min-width: 0;
  }

  .cart-item-product__title {
    word-break: break-word;
  }

  .cart-cell-remove {
    justify-content: flex-start;
  }

  .cart-cell-remove form {
    width: auto;
    /* push the remove button to the physical left of the row */
    margin-right: auto;
  }

  .cart-cell-remove .btn {
    width: auto;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
  }
}

.checkout-form label,
.auth-form p label,
.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.checkout-form input,
.checkout-form textarea,
.auth-form input,
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.auth-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.1);
}

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

.empty-state .img-placeholder {
  max-width: 200px;
  margin: 0 auto 1.5rem;
  aspect-ratio: 1;
  background: var(--pink-100);
  border-radius: 50%;
}

/* ── Messages ── */
.messages .message {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  margin-bottom: 0.5rem;
}

.messages .message.error {
  background: #fef2f2;
  border-color: #fecaca;
}

.messages .message.success {
  background: var(--pink-50);
  border-color: var(--pink-200);
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  text-decoration: none;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination__pages {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pagination__edge,
.pagination__page {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pagination__edge {
  border-color: var(--border);
  color: var(--rose-gold-dark);
}

.pagination__edge:hover:not(.is-disabled) {
  background: var(--pink-50);
  border-color: var(--rose-gold);
  color: var(--pink-700);
  transform: translateY(-1px);
}

.pagination__page:hover {
  background: var(--pink-50);
  border-color: var(--pink-200);
  color: var(--pink-700);
}

.pagination__page.is-active {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(216, 51, 132, 0.28);
  cursor: default;
}

.pagination__edge.is-disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination__icon {
  display: block;
}

/* ── Footer ── */
.site-footer {
  margin-top: 2rem;
  padding-top: 2.5rem;
  background: linear-gradient(180deg, var(--white), var(--pink-50));
  border-top: 1px solid var(--border);
}

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

.footer-col h3 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink-700);
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-logo-link {
  display: inline-flex;
  text-decoration: none;
  line-height: 0;
}

.footer-logo {
  display: block;
  width: auto;
  height: clamp(2rem, 5vw, 2.75rem);
  object-fit: contain;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--pink-600);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.enamad-slot {
  min-height: 80px;
  padding: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--pink-200);
}

/* ── Legal pages ── */
.legal-page {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  max-width: 820px;
  box-shadow: var(--shadow-sm);
}

.legal-page h1 {
  margin-top: 0;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink-700), var(--rose-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page h2 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  color: var(--rose-gold-dark);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.info-list dt {
  font-weight: 700;
  margin-top: 0.75rem;
  color: var(--pink-700);
}

.info-list dd {
  margin-inline-start: 0;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-info {
  background: var(--pink-50);
  padding: 1.25rem;
  border-radius: var(--radius);
}

.field-error {
  color: var(--pink-700);
  font-size: 0.85rem;
}

.checkout-legal a {
  font-weight: 600;
}

/* ── FAQ page ── */
.faq-page {
  max-width: 900px;
}

.faq-breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.faq-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.faq-breadcrumb a:hover {
  color: var(--pink-700);
}

.faq-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid var(--text-muted);
  border-block-end: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.faq-item summary:hover {
  color: var(--pink-700);
}

.faq-item__body {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.faq-item__body p {
  margin: 0;
}

.faq-item__body a {
  color: var(--pink-700);
  font-weight: 600;
}

/* ── Product Q&A & Reviews ── */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.section-heading--actions {
  align-items: center;
  justify-content: space-between;
}

.section-heading__main {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn--sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

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

.btn--ghost:hover {
  background: var(--pink-50);
  color: var(--text);
}

.section-heading h2 {
  margin: 0;
}

.section-heading__count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-form-panel {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--pink-50);
}

.product-form-panel.is-collapsed {
  display: none;
}

.product-form-panel.is-open {
  animation: panel-in 0.2s ease;
}

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

.product-form-panel__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-form-panel__title {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--rose-gold-dark);
}

.product-interaction-form {
  display: grid;
  gap: 1rem;
}

.product-interaction-form .form-textarea,
.product-interaction-form .form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field--checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-login-hint,
.product-empty-state {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.product-reviews__actions {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.product-reviews__actions .product-form-panel {
  margin-bottom: 0;
}

.product-reviews__actions .product-login-hint,
.product-reviews__actions .product-empty-state {
  margin-bottom: 0;
}

.product-reviews__actions > .btn {
  justify-self: end;
  width: fit-content;
  border-width: 1px;
  box-shadow: none;
}

.product-reviews__actions > .btn:hover {
  transform: none;
  box-shadow: none;
}

/* ── Product carousel ── */
.product-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.product-carousel__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0;
}

.product-carousel__track::-webkit-scrollbar {
  display: none;
}

.product-carousel__list {
  display: flex;
  gap: 0.85rem;
}

.product-carousel__slide {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
}

.product-carousel__nav {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--rose-gold-dark);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.product-carousel__nav:hover:not(:disabled) {
  background: var(--pink-50);
  border-color: var(--rose-gold);
}

.product-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Related products carousel ── */
.related-products__carousel .product-carousel__slide {
  flex: 0 0 min(220px, 60vw);
}

.related-products__slide .product-card {
  height: 100%;
}

.qa-list,
.review-list {
  display: grid;
  gap: 1rem;
}

.qa-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.88rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.qa-item__author {
  font-size: 0.82rem;
}

.qa-item__question {
  margin: 0;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qa-item__answer {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--pink-50);
  border-radius: 8px;
  border-inline-start: 3px solid var(--rose-gold);
}

.qa-item__answer-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qa-item__header,
.review-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.qa-item__answer-label {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: var(--rose-gold-dark);
  font-size: 0.78rem;
}

.review-item.card-panel {
  padding: 0.85rem 0.95rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.star-rating--sm {
  font-size: 0.82rem;
}

.review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

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

.review-summary__average {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rose-gold-dark);
  line-height: 1;
}

.review-summary__out-of {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.review-summary__recommend {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--pink-700);
  font-weight: 600;
}

.star-rating {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--border);
  font-size: 1rem;
  line-height: 1;
}

.star-rating--lg {
  font-size: 1.35rem;
}

.star-rating__star.is-filled {
  color: #f5b301;
}

.review-bar {
  display: grid;
  grid-template-columns: 3rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.review-bar__track {
  height: 0.5rem;
  background: var(--pink-100);
  border-radius: 999px;
  overflow: hidden;
}

.review-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-gold), var(--pink-500));
  border-radius: 999px;
}

.review-item__author {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.82rem;
}

.review-item__recommend {
  margin: 0 0 0.35rem;
  color: #2e7d32;
  font-size: 0.78rem;
}

.review-item__text {
  margin: 0;
  line-height: 1.6;
  font-size: 0.85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Feedback modal ── */
body.modal-open {
  overflow: hidden;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 15, 0.45);
}

.feedback-modal__dialog {
  position: relative;
  width: min(100%, 380px);
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem 1.5rem 1.35rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.feedback-modal__close {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.feedback-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.feedback-modal__icon--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.feedback-modal__icon--error {
  background: #ffebee;
  color: #c62828;
}

.feedback-modal__icon--warning {
  background: #fff8e1;
  color: #f57f17;
}

.feedback-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--rose-gold-dark);
}

.feedback-modal__text {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feedback-modal__action {
  min-width: 120px;
}

.cart-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.cart-modal__actions .btn {
  flex: 1 1 auto;
  min-width: 130px;
}

@media (max-width: 480px) {
  .cart-modal__actions {
    flex-direction: column;
  }

  .cart-modal__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .product-actions {
    justify-content: flex-end;
  }

  .product-actions__cart {
    min-width: 0;
  }

  .product-actions__view-cart {
    flex: 1 1 100%;
    text-align: center;
  }
}

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

  .product-carousel {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .product-carousel__nav {
    display: none;
  }

  .product-carousel__track {
    grid-row: 1;
  }
}

/* ── Auth pages ── */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card__header h1 {
  margin: 0 0 0.35rem;
}

.auth-card__footer {
  text-align: center;
  margin: 1.25rem 0 0;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-form .form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

/* ── Account panel pages ── */
.account-page {
  padding: 1.5rem 0 3rem;
}

.account-page__header {
  margin-bottom: 1.25rem;
}

.account-page__header h1 {
  margin: 0 0 0.35rem;
}

.account-page__header--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-card {
  margin-bottom: 1.25rem;
}

.account-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.account-card--empty {
  text-align: center;
}

.account-card--empty .btn {
  margin-top: 1rem;
}

.account-list {
  display: grid;
  gap: 1rem;
}

.account-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-list__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.account-list__body p {
  margin: 0.25rem 0 0;
}

.account-list__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.account-table {
  margin-top: 0.5rem;
}

.profile-phone-readonly {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.profile-phone-readonly__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.profile-phone-readonly__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.auth-form .form-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.auth-form .form-field--invalid .form-input {
  border-color: var(--pink-700);
}

.form-errors {
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--pink-700);
  font-size: 0.92rem;
}

.form-errors p {
  margin: 0;
}

.field-error-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--pink-700);
  font-size: 0.85rem;
}

.utility-nav__user {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

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

  .promo-banners {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .site-header-row {
    flex-wrap: nowrap;
  }

  .header-nav {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .site-header-row {
    flex-wrap: wrap;
    position: relative;
  }

  .site-header-wrap {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    width: auto;
    max-width: none;
    margin-bottom: 0.6rem;
  }

  .header-search__suggestions {
    inset-inline: 0;
    width: auto;
  }

  .mobile-nav-panel__head {
    display: block;
  }

  .mobile-nav-panel__scroll {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem 1rem 1.25rem;
    gap: 0.75rem;
  }

  .product-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  main.container:has(.product-detail),
  main.container--wide:has(.product-detail) {
    padding: 0.75rem 0 2rem;
  }

  main.container:has(.product-detail) .breadcrumb,
  main.container--wide:has(.product-detail) .breadcrumb {
    margin-bottom: 0.5rem;
    padding-inline: 0.75rem;
  }

  .product-detail {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .product-detail-grid {
    margin-top: 0;
    gap: 1rem;
  }

  .product-detail-media {
    position: static;
    top: auto;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .product-gallery {
    flex-direction: column;
  }

  .product-gallery__main {
    border-inline: none;
    border-radius: 0;
  }

  .product-gallery__thumbs {
    flex-direction: row;
    flex-wrap: wrap;
    padding-inline: 0.75rem;
    margin-top: 0.5rem;
  }

  .product-detail-info,
  .product-detail__section {
    padding-inline: 0.75rem;
  }

  .product-image {
    border-radius: 0;
  }

  .img-placeholder--product-lg {
    border-radius: 0;
    min-height: 280px;
    box-shadow: none;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 202;
  }

  .header-cart__label {
    display: none;
  }

  .header-cart {
    padding: 0.45rem 0.55rem;
  }

  .account-dropdown__label {
    display: none;
  }

  .account-dropdown__trigger {
    padding: 0.45rem 0.55rem;
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(61, 44, 53, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .mobile-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: none;
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: min(340px, 92vw);
    max-width: 100%;
    padding: 0;
    padding-top: var(--header-h);
    background: var(--white);
    border-inline-end: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow: hidden;
    pointer-events: none;
    justify-content: flex-start;
  }

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

  .mobile-nav-panel__head {
    flex-shrink: 0;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--pink-50), var(--white));
  }

  .mobile-nav-panel__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pink-700);
  }

  .mega-nav {
    display: none;
  }

  .mobile-mega-nav {
    display: flex;
  }

  .utility-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
  }

  .utility-nav a,
  .utility-nav__user {
    display: block;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    border-radius: var(--radius);
    text-align: start;
  }

  .utility-nav a:hover {
    background: var(--pink-50);
  }

  .utility-nav__user {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-block: 0.35rem;
  }

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

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Checkout */
.checkout-page {
  padding: 1.25rem 0 3rem;
}

.checkout-page__header {
  margin-bottom: 1.25rem;
}

.checkout-page__header h1 {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
}

.checkout-page__header .muted {
  font-size: 0.9rem;
}

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

.checkout-aside {
  min-width: 0;
}

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

.checkout-section {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.checkout-section:last-child {
  margin-bottom: 0;
}

.checkout-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.checkout-section__title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 700;
}

.checkout-section__head .checkout-section__title {
  margin: 0;
}

.checkout-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.checkout-contact-fields .form-field:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .checkout-contact-fields {
    grid-template-columns: 1fr;
  }
}

.checkout-options {
  display: grid;
  gap: 0.6rem;
}

.checkout-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.checkout-option:hover {
  border-color: var(--pink-300);
}

.checkout-option:has(input:checked) {
  border-color: var(--pink-500);
  background: var(--pink-50);
}

/* Keyboard focus indicator on the card itself, since the native radio is hidden. */
.checkout-option:has(input:focus-visible) {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px var(--pink-100);
}

/* Hide the native radio circle but keep it focusable/accessible. */
.checkout-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.checkout-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.checkout-option__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.checkout-option__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.checkout-option__price {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pink-700);
  white-space: nowrap;
}

.checkout-option__text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.checkout-option__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkout-option--disabled {
  opacity: 0.72;
  cursor: not-allowed;
  border-style: dashed;
  background: var(--pink-50);
}

/* Temporarily mute DigiPay on checkout (refund work). CSS only — leave radio/JS/backend intact. */
.checkout-options--payment
  .checkout-option:has(input[name="payment_gateway"][value="digipay"]) {
  opacity: 0.72;
  cursor: not-allowed;
  border-style: dashed;
  background: var(--pink-50);
  pointer-events: none;
}

.checkout-options--payment
  .checkout-option:has(input[name="payment_gateway"][value="digipay"])
  input {
  pointer-events: none;
}

.checkout-option--disabled:hover {
  border-color: var(--border);
}

.checkout-option--disabled:has(input:checked) {
  border-color: var(--border);
  background: var(--pink-50);
}

.checkout-option__badge {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
  color: #92400e;
  background: #fef3c7;
}

.checkout-option__price--digipay {
  color: var(--pink-800);
  font-size: 0.95rem;
}

.checkout-option--snapppay {
  pointer-events: none;
}

.checkout-option__body--snapppay {
  gap: 0.65rem;
}

.checkout-option__row--snapppay {
  margin-bottom: 0;
}

/* ── Snapp! Pay promo (checkout — visual only) ── */
.snapppay-promo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  direction: rtl;
}

.snapppay-promo__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snapppay-promo__logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.snapppay-promo__logo--compact {
  display: none;
}

.snapppay-promo__text {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.snapppay-promo__title {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  font-weight: 700;
  color: var(--text);
}

.snapppay-promo__title strong {
  font-weight: 700;
}

.snapppay-promo__title-desktop {
  display: none;
}

.snapppay-promo__desc {
  margin: 0.1rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-muted);
}

.snapppay-promo--inline {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}

.snapppay-promo--summary {
  margin-top: 1.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 72%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

.cart-page > .snapppay-promo--summary {
  margin-top: 1.5rem;
}

@media (max-width: 359px) {
  .snapppay-promo__logo--full {
    display: none;
  }

  .snapppay-promo__logo--compact {
    display: block;
  }
}

@media (min-width: 1024px) {
  .snapppay-promo__logo {
    width: 40px;
    height: 40px;
  }

  .snapppay-promo__title-line,
  .snapppay-promo__desc {
    display: none;
  }

  .snapppay-promo__title-desktop {
    display: inline;
    font-weight: 400;
    color: var(--text-muted);
  }

  .snapppay-promo__title-desktop strong {
    font-weight: 700;
    color: var(--text);
  }
}

.checkout-options--payment {
  margin-top: 0.15rem;
}

.checkout-summary__actions {
  display: grid;
  gap: 0.45rem;
}

.checkout-summary__gateway-note {
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
}

.checkout-summary__gateway-note[hidden] {
  display: none;
}

.checkout-summary__submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-summary__submit[hidden],
button.checkout-summary__submit[hidden] {
  display: none !important;
}

.checkout-summary__note[data-digipay-note][hidden] {
  display: none;
}

/* Checkout summary (sidebar) */
.checkout-summary {
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  z-index: 5;
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.checkout-summary__items {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.checkout-summary__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.88rem;
}

.checkout-summary__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-summary__qty {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.checkout-summary__price {
  white-space: nowrap;
}

.checkout-summary__totals {
  margin: 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.4rem;
}

.checkout-summary__totals div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checkout-summary__totals dt {
  color: var(--text-muted);
}

.checkout-summary__totals dd {
  margin: 0;
  font-weight: 600;
}

.checkout-summary__grand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.checkout-summary__grand span:last-child {
  color: var(--pink-700);
  font-size: 1.05rem;
  white-space: nowrap;
}

.checkout-summary__note {
  font-size: 0.8rem;
  margin: 0 0 0.9rem;
}

.checkout-summary__note[hidden] {
  display: none;
}

.checkout-summary__submit {
  width: 100%;
}

.checkout-summary__back {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.checkout-summary__back:hover {
  color: var(--pink-700);
}

.checkout-empty {
  text-align: center;
  padding: 1rem 0;
}

.checkout-empty p {
  margin-bottom: 0.9rem;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-aside {
    min-width: 0;
  }

  .checkout-summary {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* Order status badges */
.order-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.order-status--0 {
  color: var(--text-muted);
  background: var(--pink-50);
}

.order-status--1 {
  color: #8a5a00;
  background: #fff4e0;
  border-color: #f3d9a8;
}

.order-status--2 {
  color: #0b6aa2;
  background: #e4f2fb;
  border-color: #aed8f0;
}

.order-status--3 {
  color: #1f7a47;
  background: #e6f6ec;
  border-color: #b6e3c6;
}

.order-status--4 {
  color: #b02a37;
  background: #fde8ea;
  border-color: #f1bcc2;
}
