:root {
  --ink: #121410;
  --ink-soft: #3a3f36;
  --mist: #f3f1ec;
  --paper: #faf9f6;
  --line: rgba(18, 20, 16, 0.1);
  --sage: #5f6f58;
  --sage-deep: #3e4a39;
  --accent: #8a6b4a;
  --white: #ffffff;
  --danger: #9b3b2e;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(95, 111, 88, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(138, 107, 74, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
main { flex: 1; }

.announce {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

.announce strong { color: #d7c4a8; font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 249, 246, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 249, 246, 0.95);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: .5rem 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.brand-logo img {
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo--header {
  flex: 0 0 auto;
}

.brand-logo--header img {
  height: 58px;
  width: auto;
  max-width: 132px;
}

.brand-logo--footer {
  display: inline-block;
  background: #141414;
  padding: 1rem 1.25rem;
}

.brand-logo--footer img {
  height: 88px;
  max-width: 220px;
}

.main-nav {
  display: flex;
  gap: .85rem 1.1rem;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--ink); }

.main-nav a.is-active::after,
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.icon-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: opacity 0.2s;
}

.icon-link:hover { opacity: 0.65; }

.icon-link .count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.65rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Slider */
.slider {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 36px);
  overflow: hidden;
  color: var(--white);
  background: #1a1c18;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-media {
  position: absolute;
  inset: 0;
}

.slide-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s var(--ease);
}

.slide.is-active .slide-media img { transform: scale(1); }

.slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,20,16,.2) 0%, rgba(18,20,16,.55) 65%, rgba(18,20,16,.82) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.slide-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.slide-content p {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-weight: 300;
  font-size: 1.05rem;
  opacity: 0.92;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(250,249,246,.88);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.slider-btn:hover { background: var(--white); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: transform 0.2s, background 0.2s;
}

.slider-dots button.is-active {
  background: var(--white);
  transform: scale(1.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-sm { padding: 0.55rem 0.85rem; font-size: 0.72rem; }
.btn-block { width: 100%; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); background: var(--white); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--sage-deep); }
.btn-ghost { border: 1px solid currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section-alt { max-width: none; background: rgba(255,255,255,.35); }
.section-alt .section-head,
.section-alt .product-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.section-alt .product-grid { padding-bottom: 4rem; }
.section-alt .section-head { padding-top: 4rem; }

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

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin: 0;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 36ch;
}

.link-quiet {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  white-space: nowrap;
}

/* Category strip */
.cat-strip { padding-top: 2.5rem; padding-bottom: 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.cat-tile {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  font-family: var(--font-display);
  font-size: 1.35rem;
  transition: background 0.25s, border-color 0.25s;
}

.cat-tile:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s var(--ease) forwards;
}

.product-card:nth-child(n) { animation-delay: 0.05s; }

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e4e0d8;
}

.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
}

.product-meta { padding: 0.85rem 0.1rem 0; }

.product-meta .cat {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.25rem;
}

.product-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
}

.product-meta .price {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.product-meta .price s {
  color: #9a958c;
  font-weight: 400;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.icon-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.icon-btn.is-active,
.icon-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Story */
.story {
  margin: 1rem 0 0;
  padding: 4.5rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
}

.story-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.story h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  margin: 0 0 1rem;
  font-style: italic;
}
.story p { margin: 0 auto 1.5rem; opacity: 0.85; font-weight: 300; max-width: 42ch; }

/* Page hero */
.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.page-hero p { margin: 0; color: var(--ink-soft); max-width: 42ch; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-bar a {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-bar a.is-active,
.filter-bar a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Detail */
.detail {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e4e0d8;
}

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

.detail-info .cat {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.1;
}

.detail-price {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.detail-price s { color: #9a958c; font-weight: 400; font-size: 1rem; }
.detail-desc { color: var(--ink-soft); margin: 0 0 1.75rem; max-width: 40ch; }

.option-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.chip {
  min-width: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip.is-active,
.chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.chip-color { display: inline-flex; align-items: center; gap: 8px; }
.chip-color i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.15); display: inline-block; }

.qty-row input {
  width: 72px;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  margin-bottom: 1.25rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--ink-soft); }

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  width: 88px; height: 110px;
  overflow: hidden;
  background: #e4e0d8;
}

.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-info h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.cart-info p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }
.cart-info .price { margin-top: 0.35rem; font-size: 0.9rem; }

.cart-qty input {
  width: 64px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--white);
}

.cart-line { font-weight: 600; white-space: nowrap; }

.text-btn {
  font-size: 0.8rem;
  color: var(--danger);
  text-decoration: underline;
}

.cart-summary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.cart-summary h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

.sum-row.small { font-size: 0.82rem; color: var(--ink-soft); }
.sum-row.total {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.cart-summary .btn { margin-bottom: 0.55rem; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
}

.empty-state p { margin: 0 0 1.25rem; color: var(--ink-soft); }

/* Checkout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.checkout-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

.checkout-form h3 + .pay-options,
.checkout-form label + h3 { margin-top: 1.75rem; }

.checkout-form label,
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.checkout-form input,
.checkout-form textarea,
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  outline: none;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--ink); }

.pay-options { display: grid; gap: 0.55rem; margin-bottom: 1rem; }

.pay-option input { width: auto; }
.pay-option {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 !important;
}

.success-box {
  max-width: 560px;
  margin: 2rem auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
}

.success-box h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.order-no { font-size: 1.05rem; }

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.about-copy p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

/* Contact */
.contact-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4.5rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.contact-card p,
.contact-card a {
  color: var(--ink-soft);
  margin: 0.35rem 0;
  display: block;
}

.contact-form { display: grid; gap: 0.35rem; }
.contact-form textarea { min-height: 140px; resize: vertical; }

.form-success {
  display: none;
  padding: 0.9rem 1rem;
  background: rgba(95,111,88,.12);
  border: 1px solid rgba(95,111,88,.35);
  color: var(--sage-deep);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.form-success.is-visible { display: block; }

/* Toast */
.toast {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 120;
  transform: translateY(-12px);
  background: #16343a;
  color: #f7f3ea;
  padding: 0.9rem 1.15rem;
  font-size: 0.9rem;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 36, 43, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  max-width: min(360px, calc(100% - 2rem));
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.35);
  margin-top: auto;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  max-width: 28ch;
  font-size: 0.95rem;
}

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

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 1.75rem 0 0.65rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.legal-content ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.legal-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.footer-cols h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-cols a {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-cols a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.footer-bottom a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.footer-bottom a:hover {
  border-bottom-color: var(--ink);
}

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

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .detail,
  .contact-grid,
  .cart-layout,
  .checkout-grid,
  .account-grid,
  .footer-inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .brand-logo--footer img { height: 72px; }
  .cart-row {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "thumb info"
      "thumb qty"
      "thumb line"
      "thumb remove";
  }
  .cart-thumb { grid-area: thumb; width: 72px; height: 90px; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-line { grid-area: line; }
}

@media (max-width: 980px) {
  .main-nav { gap: .55rem .7rem; }
  .main-nav a { font-size: .75rem; }
  .nav-search input { width: 72px; }
  .brand-logo--header img { height: 56px; }
}

@media (max-width: 720px) {
  .header-inner { display: flex; }
  .brand-logo--header img { height: 44px; }

  .nav-toggle { display: inline-flex; order: -1; }

  .main-nav {
    position: fixed;
    inset: calc(var(--header-h) + 36px) 0 auto 0;
    background: rgba(250,249,246,.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    z-index: 40;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .section-head { flex-direction: column; align-items: flex-start; }
  .slider { min-height: 72vh; }
  .slider-btn { display: none; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem 0.75rem; }
  .product-meta h3 { font-size: 1.05rem; }
  .card-actions { flex-direction: column; align-items: stretch; }
  .footer-cols { grid-template-columns: 1fr; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.nav-search input {
  width: 92px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font: inherit; font-size: .85rem; padding: .3rem 0; outline: none;
}
.crumbs { max-width: 1180px; margin: 0 auto; padding: 1.25rem 1.25rem 0; display: flex; gap: .45rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .85rem; }
.crumbs a { border-bottom: 1px solid transparent; }
.crumbs a:hover { border-bottom-color: var(--ink); }
.sort-bar { display: flex; justify-content: flex-end; margin: 0 0 1rem; }
.sort-bar select { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); background: var(--white); }
.gallery { display: grid; gap: .6rem; }
.thumbs { display: flex; gap: .45rem; }
.thumb { width: 64px; height: 80px; padding: 0; border: 1px solid var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.auth-wrap { max-width: 460px; margin: 2.5rem auto 4rem; padding: 0 1.25rem; }
.auth-wrap h1 { font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; margin: 1rem 0 .4rem; }
.auth-stage {
  width: min(980px, calc(100% - 2rem));
  margin: 1.5rem auto 3.5rem;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 32, 51, .08);
}
.auth-visual {
  background:
    radial-gradient(220px 140px at 20% 15%, rgba(224,177,90,.4), transparent 70%),
    linear-gradient(165deg, #172744, #3a2142);
  color: #f8e7c4;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .6rem;
  min-height: 460px;
}
.auth-visual img { width: min(220px, 80%); background: #07080c; border-radius: 14px; padding: .55rem; margin-bottom: auto; }
.auth-visual h2 { font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; margin: 0; color: #fff; }
.auth-visual p { margin: 0; max-width: 26ch; line-height: 1.55; }
.auth-card { padding: 2rem 1.6rem 1.6rem; }
.auth-kicker { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: #a86b12; font-weight: 700; }
.auth-card h1 { font-family: var(--font-display); font-weight: 500; font-size: 2.6rem; margin: .2rem 0 1rem; }
.demo-note { color: var(--ink-soft); font-size: .85rem; background: #fff6e4; border: 1px solid #efd7a4; border-radius: 12px; padding: .7rem .8rem; }
@media (max-width: 800px) {
  .auth-stage { grid-template-columns: 1fr; }
  .auth-visual { min-height: 0; }
}
.hp { position: absolute; left: -9999px; }
.account { max-width: 1180px; margin: 0 auto; padding: 2.2rem 1.25rem 4rem; display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem; align-items: start; }
.account-side { background: var(--white); border: 1px solid var(--line); padding: 1.4rem 1.1rem 1.2rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.account-side h1 { font-family: var(--font-display); font-size: 2rem; margin: .15rem 0 .2rem; font-weight: 500; line-height: 1.05; }
.account-hello { margin: 0; letter-spacing: .16em; text-transform: uppercase; font-size: .68rem; color: var(--accent); font-weight: 600; }
.account-mail { color: var(--ink-soft); margin: 0; font-size: .85rem; word-break: break-word; }
.account-side nav { display: grid; gap: .15rem; margin: 1.2rem 0 .9rem; }
.account-side nav a { padding: .7rem .75rem; color: var(--ink-soft); border-left: 2px solid transparent; }
.account-side nav a.is-active, .account-side nav a:hover { color: var(--ink); border-left-color: var(--ink); background: var(--mist); }
.account-side .text-btn { color: var(--ink-soft); font-size: .8rem; letter-spacing: .04em; }
.account-main { background: rgba(255,255,255,.78); border: 1px solid var(--line); padding: 1.4rem 1.3rem 1.6rem; min-width: 0; }
.account-main h2 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; margin: 0 0 1rem; }
.account-form { max-width: 560px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 1rem .9rem; }
.stat-card.sea { border-top-color: var(--sage); }
.stat-card.coral { border-top-color: var(--accent); }
.stat-card.iris { border-top-color: var(--sage-deep); }
.stat-card p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.stat-grid h3 { font-family: var(--font-display); font-size: 1.8rem; margin: 0; font-weight: 500; }
.order-card { display: grid; grid-template-columns: 54px 1fr auto auto; gap: .8rem; align-items: center; padding: .75rem; margin-bottom: .55rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.order-card img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; }
.order-card span { display: block; color: var(--ink-soft); font-size: .82rem; }
.order-line { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.order-line img { width: 48px; height: 64px; object-fit: cover; }
.status { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .5rem; border-radius: 999px; background: #f8efd8; color: #7a5b16; }
.status-tamamlandi, .status-kargoda { background: #e5f3e8; color: #0f766e; }
.status-iptal { background: #f8e4e1; color: var(--danger); }
.empty-note { color: var(--ink-soft); }
.wish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.wish-card { display: grid; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding-bottom: .7rem; }
.wish-card img { width: 100%; height: 220px; object-fit: cover; }
.wish-card strong, .wish-card span { padding: 0 .7rem; }
.toast.is-err { background: var(--danger); }
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; display: none; gap: 1rem; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); padding: .9rem 1rem; max-width: 720px; }
.cookie:not([hidden]) { display: flex; }
.cookie p { margin: 0; font-size: .9rem; }
.cookie a { color: #d7c4a8; }
@media (max-width: 800px) {
  .account, .stat-grid, .wish-grid, .order-card { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .account-side nav { display: flex; overflow-x: auto; gap: .4rem; margin-bottom: .4rem; }
  .account-side nav a { white-space: nowrap; border: 1px solid var(--line); border-left-width: 1px; }
  .account-side nav a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .nav-search input { width: 100%; }
}
