:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-primary: #c8102e;
  --color-primary-dark: #a30d25;
  --color-accent: #dc2626;
  --color-gold: #f4c430;
  --color-gold-dark: #d4a017;
  --color-whatsapp: #25d366;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand__logo {
  height: 56px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.search-form {
  flex: 1 1 260px;
  display: flex;
  min-width: 0;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.search-form input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.search-form button {
  padding: 10px 16px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.search-form button:hover {
  background: var(--color-primary-dark);
}

.lang-switcher {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.auth-slot__phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.category-nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
}

.category-nav {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.category-nav-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.category-nav-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

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

.chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.subcategory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip--sub {
  font-size: 0.78rem;
  padding: 5px 12px;
  background: var(--color-bg);
}

.chip--sub.active,
.chip--sub:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-text);
}

.type-nav {
  margin-top: -8px;
  margin-left: 16px;
}

.nav-help-tip {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0 0 8px;
}

.nav-help-tip--type {
  margin-left: 16px;
}

/* Main content */
#app {
  min-height: calc(100vh - var(--header-height) - 140px);
  padding-top: 24px;
  padding-bottom: 48px;
}

.page-title {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.page-subtitle {
  color: var(--color-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.sort-control label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.sort-control select {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  cursor: pointer;
}

.all-products-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.all-products-filters__field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.all-products-filters__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.all-products-filters__field select {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  cursor: pointer;
}

.all-products-filters__field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 55%, var(--color-gold) 130%);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(200, 16, 46, 0.25);
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__decor::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero__decor::after {
  content: "";
  position: absolute;
  bottom: -110px;
  right: 220px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(244, 196, 48, 0.35);
  filter: blur(2px);
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1 1 360px;
  min-width: 0;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe8a3;
}

.hero__eyebrow-dot {
  color: var(--color-gold);
}

.hero__logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
}

.hero__tagline {
  margin: 0 0 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.95;
}

.hero__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.hero__quicklink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  width: 84px;
}

.hero__quicklink-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero__quicklink-icon svg {
  width: 24px;
  height: 24px;
}

.hero__quicklink:hover .hero__quicklink-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__shop-btn {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}

.hero__shop-btn:hover {
  background: #ffe8a3;
}

.hero__photo {
  position: relative;
  z-index: 1;
  flex: 0 1 380px;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
}

/* Banner carousel */
.banner-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.banner-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 210px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 32px 36px;
  color: #fff;
}

.banner-slide::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.banner-slide__icon {
  position: absolute;
  right: 20px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.banner-slide__icon svg {
  width: 150px;
  height: 150px;
}

.banner-slide__text {
  position: relative;
  z-index: 1;
  max-width: 65%;
}

.banner-slide__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banner-slide__text h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.banner-slide__text p {
  margin: 0 0 16px;
  opacity: 0.92;
  font-size: 0.95rem;
}

.banner-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.banner-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.banner-dot.active {
  background: #fff;
}

/* Homepage ads carousel — admin-managed creatives (js/admin.js's Ads tab),
   shown sliding (auto-advance + dots) in place of the hero/trust badges
   section, same track/dot mechanics as .banner-carousel above (and reuses
   its .banner-carousel__dots/.banner-dot classes directly). */
.ads-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.ads-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.ad-slide {
  flex: 0 0 100%;
  display: block;
  height: 260px;
}

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

/* Post a job banner (Jobs category) */
.post-job-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.post-job-banner h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.post-job-banner p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
}

.post-job-banner .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Trust badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge__icon svg {
  width: 20px;
  height: 20px;
}

.trust-badge__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trust-badge__text strong {
  font-size: 0.88rem;
}

.trust-badge__text span {
  font-size: 0.76rem;
  color: var(--color-muted);
}

/* Hot deals */
.hot-deals {
  margin-bottom: 32px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.grid-sentinel {
  height: 1px;
}

.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

.product-card__whatsapp {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-card__whatsapp:hover {
  background: #1ebe5b;
}

.product-card__wishlist {
  position: absolute;
  top: 8px;
  right: 48px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.product-card__wishlist svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.product-card__wishlist.is-active {
  color: var(--color-primary);
}

.product-card__wishlist.is-active svg {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

.product-detail__wishlist-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.product-detail__wishlist-btn.is-active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.product-detail__wishlist-btn.is-active svg {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

.shops-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  flex: 0 0 auto;
}

.shops-nav:hover {
  color: var(--color-primary);
}

.wishlist-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  flex: 0 0 auto;
}

.wishlist-nav:hover {
  color: var(--color-primary);
}

.wishlist-nav.has-items {
  color: var(--color-primary);
}

.wishlist-nav__count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.wishlist-nav__count:empty {
  display: none;
}

.cart-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  flex: 0 0 auto;
}

.cart-nav:hover {
  color: var(--color-primary);
}

.cart-nav.has-items {
  color: var(--color-primary);
}

.cart-nav__count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.cart-nav__count:empty {
  display: none;
}

.product-card__image-wrap {
  position: relative;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-bg);
  display: block;
}

.watermark-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.watermark-overlay img {
  width: 40%;
  max-width: 140px;
  opacity: 0.18;
  -webkit-user-select: none;
  user-select: none;
}

.product-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-card__category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  font-weight: 700;
}

.product-card__sold-by {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-decoration: none;
}

.product-card__sold-by:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.shop-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.shop-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.shop-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--color-bg);
}

.shop-card__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg);
}

.shop-card__name {
  font-size: 1rem;
  margin: 0 0 4px;
}

.shop-card__description {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 20px;
}

.shop-banner__logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--color-bg);
}

.shop-banner__body h1 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.shop-banner__body p {
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.product-card__code {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.product-card__price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.price--mrp {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.price--on-request {
  color: var(--color-whatsapp);
  font-size: 0.9rem;
}

.stock-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.stock-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge--out {
  background: #fee2e2;
  color: var(--color-accent);
}

.badge--in {
  background: #dcfce7;
  color: #15803d;
}

.badge--discount {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--color-accent);
  color: #fff;
}

.product-card__footer {
  padding: 0 12px 12px;
}

.product-card__cart {
  width: 100%;
}

.product-card__cart .btn--cart-add,
.product-card__cart .cart-qty-stepper {
  width: 100%;
}

.btn--cart-add {
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn--cart-add:hover {
  background: var(--color-primary-dark);
}

.cart-qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-qty-btn {
  border: none;
  background: var(--color-bg);
  color: var(--color-text);
  width: 32px;
  height: 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.cart-qty-btn:hover {
  background: var(--color-border);
}

.cart-qty-value {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: hidden;
}

.product-detail__image-wrap {
  position: relative;
}

.product-detail__image {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-bg);
}

.product-gallery {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.product-gallery.is-cube {
  /* The cube effect rotates faces in 3D space beyond the container's own
     box — clipping it here would cut the rotation off. Only safe when the
     cube effect is actually active (see setupProductGallery). */
  overflow: visible;
}

.product-gallery .swiper-slide {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

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

.product-gallery .swiper-button-prev,
.product-gallery .swiper-button-next {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-gallery .swiper-button-prev::after,
.product-gallery .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.product-gallery .swiper-pagination-bullet-active {
  background: var(--color-primary);
}

.product-detail__meta h1 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.product-detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0;
}

.product-detail__price-row .price {
  font-size: 1.6rem;
}

.specs-list {
  margin: 12px 0 20px;
  padding-left: 18px;
  color: var(--color-muted);
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.size-selector {
  margin: 0 0 16px;
}

.size-selector__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 8px;
}

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

.size-pill {
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.size-pill.is-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.size-pill.is-disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.size-selector__hint {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.product-qr-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.product-qr-caption {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
}

.share-wrap {
  position: relative;
}

.share-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.share-menu__item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.share-menu__item:hover {
  background: var(--color-bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn--whatsapp:hover {
  background: #1ebe5b;
}

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

.btn--ghost:hover {
  background: var(--color-bg);
}

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

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

.btn--primary:disabled,
.btn--whatsapp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Login */
.auth-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.auth-card .page-title,
.auth-card .page-subtitle {
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.auth-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

.auth-form input {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.auth-form input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.phone-input-row {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 600;
  color: var(--color-muted);
  border-right: 1px solid var(--color-border);
}

.phone-input-row input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.phone-input-row input:focus {
  outline: none;
}

.auth-form__links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.auth-form__links .btn {
  flex: 1;
  justify-content: center;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.form-error,
.form-notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  text-align: left;
}

.form-error {
  background: #fee2e2;
  color: var(--color-accent);
}

.form-notice {
  background: #dcfce7;
  color: #15803d;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.product-detail__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.product-detail__nav-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.product-detail__nav-link.is-disabled {
  color: var(--color-muted);
  opacity: 0.5;
  cursor: default;
}

.similar-products {
  margin-top: 32px;
}

.similar-products .page-title {
  margin-bottom: 16px;
}

.empty-state {
  text-align: center;
  padding: 60px 16px;
  color: var(--color-muted);
}

.empty-state h2 {
  color: var(--color-text);
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  text-align: left;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.footer-bottom {
  text-align: center;
}

.footer-contact {
  margin: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-support {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-support:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-disclaimer strong {
  color: var(--color-text);
}

.footer-disclaimer p {
  margin: 0;
}

.product-detail__disclaimer {
  max-width: none;
  margin: 0 0 16px;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(200, 16, 46, 0.3);
  color: var(--color-primary);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* Promo modal */
.promo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.promo-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: promo-modal-in 0.25s ease;
}

@keyframes promo-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.promo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.promo-modal__close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.promo-modal__banner {
  padding: 36px 28px;
  color: #fff;
  text-align: center;
}

.promo-modal__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-modal__banner h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.promo-modal__banner p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.promo-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 24px;
}

.promo-modal__actions .btn {
  width: 100%;
  justify-content: center;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 30;
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* Cart page */
.cart-category {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.cart-category__title {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.cart-category__subtotal {
  text-align: right;
  font-size: 0.9rem;
  margin-top: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}

.cart-item__image-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.cart-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-item__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.cart-item__name:hover {
  color: var(--color-primary);
}

.cart-item__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item__controls .cart-qty-stepper {
  width: 96px;
}

.cart-item__line-total {
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item__remove {
  border: none;
  background: none;
  color: var(--color-muted);
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cart-item__remove:hover {
  color: var(--color-accent);
}

.cart-grand-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cart-savings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #dcfce7;
  color: #15803d;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.cart-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.guest-mobile-field {
  margin-bottom: 20px;
}

.guest-mobile-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.guest-mobile-field__input-row {
  display: flex;
  align-items: center;
  max-width: 280px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}

.guest-mobile-field__prefix {
  padding: 10px 10px 10px 14px;
  color: var(--color-muted);
  font-weight: 600;
  border-right: 1px solid var(--color-border);
}

.guest-mobile-field__input-row input {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.guest-mobile-field__input-row input:focus {
  outline: none;
}

/* My Orders */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

.order-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.order-card__number {
  display: block;
  font-weight: 600;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.order-card__date {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.order-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.order-status--placed,
.order-status--confirmed {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status--packed,
.order-status--shipped,
.order-status--out-for-delivery {
  background: #fef3c7;
  color: #b45309;
}

.order-status--delivered {
  background: #dcfce7;
  color: #15803d;
}

.order-status--cancelled {
  background: #fee2e2;
  color: var(--color-accent);
}

.order-card__items {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 640px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .cart-item {
    grid-template-columns: 56px 1fr;
    grid-template-areas: "image body" "controls controls";
  }

  .cart-item__image-wrap {
    grid-area: image;
    width: 56px;
    height: 56px;
  }

  .cart-item__body {
    grid-area: body;
  }

  .cart-item__controls {
    grid-area: controls;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand__logo {
    height: 40px;
  }

  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
  }

  .banner-slide {
    min-height: 170px;
    padding: 22px;
  }

  .ad-slide {
    height: 170px;
  }

  .banner-slide__text {
    max-width: 100%;
  }

  .banner-slide__text h3 {
    font-size: 1.2rem;
  }

  .banner-slide__icon svg {
    width: 90px;
    height: 90px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 26px 22px;
  }

  .hero__photo {
    order: -1;
    flex-basis: auto;
    max-height: 200px;
  }

  .hero__photo img {
    max-height: 200px;
  }

  .hero__quicklinks {
    gap: 14px;
    justify-content: center;
  }

  .hero__quicklink {
    width: 68px;
  }
}
