:root {
  --fs-bg: #faf7f4;
  --fs-ink: #1c1412;
  --fs-muted: #6f625c;
  --fs-accent: #9a3d48;
  --fs-accent-2: #c9836a;
  --fs-card: #ffffff;
  --fs-border: #e9dfd8;
  --fs-soft: #f3ebe5;
}

body.store-body {
  margin: 0;
  color: var(--fs-ink);
  background:
    radial-gradient(circle at top right, rgba(201, 131, 106, 0.18), transparent 28%),
    linear-gradient(180deg, #fffdfb 0%, var(--fs-bg) 45%, #f3ebe6 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.store-container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 251, 0.88);
  border-bottom: 1px solid var(--fs-border);
}

.store-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.store-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--fs-ink);
}

.store-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.store-nav a {
  color: var(--fs-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.store-nav a:hover { color: var(--fs-accent); }

.store-search {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 420px;
}

.store-search input {
  flex: 1;
  border: 1px solid var(--fs-border);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #fff;
}

.btn-store {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  background: var(--fs-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.btn-store.secondary {
  background: #fff;
  color: var(--fs-ink);
  border: 1px solid var(--fs-border);
}

.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--fs-border);
  background:
    linear-gradient(120deg, rgba(28, 20, 18, 0.55), rgba(28, 20, 18, 0.15)),
    url('/banners/hero-ethnic.jpg') center/cover no-repeat,
    linear-gradient(135deg, #4a2a2d, #c9836a);
  color: #fff;
}

.hero-content {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto 3.5rem;
  animation: rise 0.8s ease both;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin: 0.2rem 0 0.8rem;
  max-width: 10ch;
  line-height: 0.95;
}

.hero p {
  max-width: 36ch;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.4rem;
}

.section {
  padding: 3.5rem 0;
}

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

.section-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--fs-card);
  border: 1px solid var(--fs-border);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(40, 24, 18, 0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(40, 24, 18, 0.08);
}

.product-card .media {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #f4e8e0, #e7d2c8);
  display: grid;
  place-items: center;
  color: var(--fs-muted);
  overflow: hidden;
}

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

.product-card .body {
  padding: 1rem;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.price {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.price .sale { color: var(--fs-accent); font-weight: 700; }
.price .compare { color: var(--fs-muted); text-decoration: line-through; font-size: 0.9rem; }

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

.category-tile {
  border-radius: 1.2rem;
  padding: 1.5rem;
  min-height: 140px;
  background: linear-gradient(145deg, #fff, var(--fs-soft));
  border: 1px solid var(--fs-border);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease;
}

.category-tile:hover { transform: translateY(-3px); }

.store-footer {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--fs-border);
  background: #fffaf7;
}

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

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}

.filters {
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: 1rem;
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 5rem;
}

.filters label {
  display: block;
  font-size: 0.85rem;
  color: var(--fs-muted);
  margin: 0.75rem 0 0.3rem;
}

.filters select,
.filters input {
  width: 100%;
  border: 1px solid var(--fs-border);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
}

.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}

.pdp-gallery .main {
  aspect-ratio: 4/5;
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--fs-soft);
}

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

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.thumb {
  aspect-ratio: 1;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--fs-border);
  cursor: pointer;
}

.swatches, .sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.chip {
  border: 1px solid var(--fs-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.chip.active {
  border-color: var(--fs-accent);
  background: #f8e9eb;
  color: var(--fs-accent);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--fs-muted);
  background: #fff;
  border: 1px dashed var(--fs-border);
  border-radius: 1rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .product-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout, .pdp, .footer-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--fs-accent);
  color: #fff;
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.6rem;
  width: min(360px, calc(100% - 2rem));
}

.toast {
  background: #1c1412;
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 30px rgba(28, 20, 18, 0.2);
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: #8b2e2e; }
.toast-success { background: #1c1412; }

.alert {
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--fs-border);
  background: #fff;
}

.alert-success { border-color: #c9e6d2; background: #f3fbf5; color: #245c38; }
.alert-error { border-color: #f0c9c9; background: #fff5f5; color: #8b2e2e; }

.store-form {
  display: grid;
  gap: 0.85rem;
}

.store-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--fs-muted);
  margin-bottom: 0.3rem;
}

.store-form input,
.store-form select,
.store-form textarea {
  width: 100%;
  border: 1px solid var(--fs-border);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  font: inherit;
}

.checkout-layout,
.account-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.panel h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
}

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

.line-item img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 0.6rem;
  background: var(--fs-soft);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin: 0.45rem 0;
  color: var(--fs-muted);
}

.totals-row.grand {
  color: var(--fs-ink);
  font-weight: 700;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fs-border);
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.brand-tile,
.testimonial {
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: 1rem;
  padding: 1rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.account-nav a {
  text-decoration: none;
  color: var(--fs-muted);
  border: 1px solid var(--fs-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.account-nav a.active,
.account-nav a:hover {
  color: var(--fs-accent);
  border-color: #efc4c8;
  background: #f8e9eb;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.5rem;
}

.thumb.active { outline: 2px solid var(--fs-accent); }

@media (max-width: 1000px) {
  .checkout-layout,
  .account-layout,
  .testimonial-grid { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .store-header-inner { flex-wrap: wrap; }
  .store-search { order: 3; max-width: none; width: 100%; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .brand-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
