:root {
  --ink: #17151a;
  --muted: #68616d;
  --line: #e8e3e7;
  --soft: #f8f5f6;
  --paper: #ffffff;
  --rose: #bd3d63;
  --rose-dark: #8f2444;
  --moss: #58694d;
  --gold: #c8a15a;
  --shadow: 0 18px 50px rgba(23, 21, 26, .12);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

a { color: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--soft);
}

.site-nav .cart-link {
  color: var(--paper);
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-login {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 19, .82), rgba(18, 16, 19, .28), rgba(18, 16, 19, .74)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding: 54px 0;
}

.login-copy {
  max-width: 610px;
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-copy .eyebrow { color: #f2c9d5; }

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}

.login-copy p:not(.eyebrow),
.page-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
}

.login-card {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card[hidden] {
  display: none;
}

[data-auth-link][hidden] {
  display: none;
}

.auth-user h2 {
  margin-bottom: 10px;
  font-size: 34px;
}

.auth-user p:not(.eyebrow) {
  color: var(--muted);
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-head img { width: 118px; }

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

input:focus,
select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(189, 61, 99, .12);
}

.login-card > label + label { margin-top: 16px; }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 20px;
  font-size: 13px;
}

.form-row a,
.products-topline a {
  color: var(--rose-dark);
  font-weight: 800;
  text-decoration: none;
}

.check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--rose);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  width: 100%;
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.btn.ghost {
  width: 100%;
  margin-top: 10px;
  color: var(--ink);
  background: transparent;
}

.carousel-band,
.shop-layout,
.faq-shell,
.stores-toolbar,
.stores-map-section,
.stores-grid,
.page-hero {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.carousel-band {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform .42s ease;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 4.8;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  inset: auto 18px 18px auto;
  display: flex;
  gap: 8px;
}

.carousel-nav button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(23, 21, 26, .72);
  cursor: pointer;
}

.page-hero {
  padding: 58px 0 28px;
}

.page-hero.compact {
  min-height: 250px;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 72px);
}

.page-hero p {
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0 72px;
}

.filters {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.filters h2 {
  margin: 0;
  font-size: 20px;
}

.filter-title {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.products-panel {
  min-width: 0;
}

.products-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(23, 21, 26, .08);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

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

.product-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.product-body h2 {
  margin: 0;
  font-size: 26px;
}

.price {
  color: var(--rose-dark);
  font-size: 18px;
  font-weight: 900;
}

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

.amounts span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: var(--soft);
}

.faq-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0 76px;
}

.faq-tabs {
  display: grid;
  gap: 8px;
  align-self: start;
}

.faq-tabs button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--paper);
  font-weight: 800;
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
}

.faq-tabs button.active {
  color: var(--paper);
  border-color: var(--rose-dark);
  background: var(--rose-dark);
}

.faq-group {
  display: none;
}

.faq-group.active {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  padding: 18px 20px;
  font-weight: 900;
  cursor: pointer;
}

details div {
  padding: 0 20px 20px;
  color: var(--muted);
}

.stores-toolbar {
  display: grid;
  grid-template-columns: 220px minmax(240px, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.stores-map-section {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

#stores-map {
  position: relative;
  z-index: 1;
  height: min(62vh, 560px);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.leaflet-container {
  font-family: inherit;
  z-index: 1;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 1;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content a {
  color: var(--rose-dark);
  font-weight: 800;
  text-decoration: none;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding-bottom: 76px;
}

.store-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(23, 21, 26, .07);
  cursor: pointer;
}

.store-card h2 {
  margin: 0;
  font-size: 22px;
}

.store-card p {
  margin: 0;
  color: var(--muted);
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--moss);
  background: #eef2eb;
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 44px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--soft);
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(var(--max), calc(100% - 36px));
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 13px;
}

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

.breadcrumb strong {
  color: var(--ink);
}

.product-detail {
  width: min(var(--max), calc(100% - 36px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.detail-gallery {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-summary {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(23, 21, 26, .08);
}

.detail-summary h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
}

.detail-lead {
  color: var(--muted);
  font-size: 17px;
}

.detail-price {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-block h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.amount-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-picker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 800;
}

.amount-picker span.active {
  color: var(--paper);
  border-color: var(--rose-dark);
  background: var(--rose-dark);
}

.gift-flow-note {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.gift-flow-note strong {
  color: var(--ink);
}

.gift-flow-note span {
  color: var(--muted);
  font-size: 14px;
}

.detail-buy {
  width: 100%;
}

.detail-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.how-to-use {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.how-to-use h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.how-to-use p:last-child {
  max-width: 900px;
  color: var(--muted);
}

.detail-info {
  width: min(var(--max), calc(100% - 36px));
  margin: 28px auto 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.detail-info p {
  color: var(--muted);
}

.store-mini-list {
  display: grid;
  gap: 10px;
}

.store-mini-list span {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .login-shell,
  .shop-layout,
  .faq-shell,
  .product-detail,
  .detail-info {
    grid-template-columns: 1fr;
  }

  .login-shell {
    min-height: auto;
    padding: 62px 0;
  }

  .filters {
    position: static;
  }

  .carousel-slide {
    aspect-ratio: 16 / 8;
  }

  .stores-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .brand img { width: 128px; }

  .login-card {
    padding: 20px;
  }

  .section-head,
  .products-topline,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
