:root {
  --bg: #fffafb;
  --ink: #1a1216;
  --muted: #8a7380;
  --line: #f0e4ea;
  --soft: #faf2f5;
  --accent: #e8b4c4;
  --accent-deep: #9a3d5c;
  --champagne: #f3e6d8;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(232, 180, 196, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(243, 230, 216, 0.45), transparent 50%),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 251, 0.88);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.25rem;
}
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c4450;
}
.main-nav a:hover { color: var(--accent-deep); }
main { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 1.5rem 0 3.5rem; }

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem 2rem;
  align-items: center;
  min-height: 460px;
  padding: 1.25rem 0 0.5rem;
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 11ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.9rem 1.45rem;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #2a1a22, #4a2436);
  color: #fff;
  box-shadow: 0 10px 24px rgba(74, 36, 54, 0.22);
}
.btn-ghost {
  background: rgba(255,255,255,0.75);
  border-color: #2a1a22;
}

.hero-desc {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
}
.hero-shoe {
  position: relative;
  z-index: 2;
  width: min(400px, 78%);
  filter: drop-shadow(0 22px 40px rgba(74, 36, 54, 0.14));
  transform: rotate(-4deg);
  object-fit: contain;
  border-radius: 1rem;
  background: transparent;
}
.hero-placeholder {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.82);
  border-radius: 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 16rem;
}

.hits-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hits-head h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e5562;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5c4450;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.cat-chip span {
  color: var(--muted);
  font-weight: 500;
}
.cat-chip:hover { border-color: #e4c4d0; color: var(--accent-deep); }
.cat-chip.is-active {
  background: #2a1a22;
  border-color: #2a1a22;
  color: #fff;
}
.cat-chip.is-active span { color: rgba(255,255,255,0.7); }
.category-block {
  margin-bottom: 2.25rem;
  scroll-margin-top: 5.5rem;
}
.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.category-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.category-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.9rem 1.35rem;
}
.product-card { display: block; }
.product-photo {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #ffffff, #faf4f6);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.product-photo img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-card:hover .product-photo img { transform: scale(1.05) rotate(-3deg); }
.product-card:hover .product-photo {
  border-color: #e4c4d0;
  box-shadow: 0 16px 36px rgba(154, 61, 92, 0.08);
}
.product-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.product-price {
  margin-top: 0.35rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.no-photo, .empty { color: var(--muted); font-size: 0.9rem; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  background: rgba(255,255,255,0.55);
}
.footer-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-inner nav a:hover { color: var(--accent-deep); }
.site-version { color: #b9a3ad; font-size: 0.85em; }

.pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 0.5rem 0 2rem;
  align-items: start;
}
.page-back {
  margin: 0 0 1rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #6e5562;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.back-link:hover {
  color: var(--accent-deep);
  border-color: #e4c4d0;
  background: #fff;
}
.pdp-main {
  width: 100%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem;
}
.pdp-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.pdp-thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  width: 72px;
  height: 72px;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pdp-thumb.is-active {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 1px var(--accent-deep);
}
.pdp-thumb:hover { border-color: #d4a3b4; }
.pdp-info h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pdp-price {
  margin: 0.35rem 0 0;
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pdp-desc { color: var(--muted); line-height: 1.6; }
.size-label { display: grid; gap: 0.35rem; margin: 1.25rem 0; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.size-label select {
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  background: #fff;
}
.stock-out { color: #9a3d5c; font-weight: 600; margin: 1rem 0 0.5rem; }
.size-out-list { display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem; color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.btn-disabled { opacity: 0.4; pointer-events: none; }
button.btn {
  font: inherit;
  cursor: pointer;
}
.nav-cart { position: relative; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.flash { padding: 0.75rem 1rem; border-radius: 0.75rem; margin: 0 0 1rem; }
.flash.ok { background: #ecfdf3; color: #166534; }
.flash.err { background: #fef2f2; color: #991b1b; }

.cart-list { display: grid; gap: 1rem; margin: 1.25rem 0; }
.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.cart-thumb {
  width: 96px;
  height: 96px;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cart-thumb img { width: 85%; height: 85%; object-fit: contain; }
.cart-info a { font-weight: 700; }
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.65rem;
}
.cart-qty {
  display: flex;
  gap: 0.5rem;
  align-items: end;
}
.cart-qty label { display: grid; gap: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.cart-qty input {
  width: 4.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font: inherit;
}
.btn-link {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.btn-link.danger { color: #9a3d5c; }
.cart-line-total { font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.cart-total { font-size: 1.15rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}
.checkout-form, .checkout-aside, .thanks-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}
.checkout-form { display: grid; gap: 0.85rem; }
.checkout-form .field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  position: relative;
}
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4d8d2;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}
.checkout-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23342924' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 14px 9px;
}
.checkout-note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #faf6f3;
  border: 1px solid #efe6e1;
  font-size: 0.86rem;
  color: #6b5f5a;
}
.delivery-block {
  display: grid;
  gap: 0.85rem;
}
.delivery-block[hidden],
.np-suggest[hidden] {
  display: none !important;
}
.np-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid #e4d8d2;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(42, 35, 33, 0.1);
  max-height: 240px;
  overflow: auto;
}
.np-suggest-item {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.7rem 0.85rem;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.np-suggest-item:hover,
.np-suggest-item:focus {
  background: #faf6f3;
  outline: none;
}
.np-status { margin: 0; min-height: 1.2em; font-size: 0.85rem; }
.pay-fieldset {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.55rem;
}
.pay-fieldset legend { padding: 0 0.35rem; font-weight: 600; }
.pay-fieldset .inline {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
}
.pay-fieldset .inline input { width: auto; margin-top: 0.2rem; flex: 0 0 auto; }
.small { font-size: 0.82rem; }
.checkout-aside h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.checkout-items { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.7rem; }
.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}
.order-thanks .lead { color: var(--muted); max-width: 36rem; }
.thanks-card { margin: 1.25rem 0; max-width: 36rem; }

.static-page { max-width: 42rem; padding: 1rem 0 2rem; }
.static-body { line-height: 1.65; color: #4a3a42; }
.muted { color: var(--muted); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 280px; order: -1; }
  .hero-shoe { width: min(300px, 72%); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: 1fr; }
  .main-nav { justify-content: flex-start; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-line-total { grid-column: 2; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem 0.75rem; }
  .hero-title { max-width: none; }
}
