:root {
  --bg: #f4f1ec;
  --paper: #f7f3ed;
  --ink: #121212;
  --ink-soft: #565656;
  --line: rgba(18, 18, 18, 0.12);
  --panel: #111111;
  --panel-alt: #1a1a1a;
  --accent: #d9b35f;
  --accent-deep: #b98d3e;
  --muted: #e9e1d3;
  --shadow: rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #d9d4ce;
  color: var(--ink);
}

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

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

button,
input {
  font: inherit;
}

.page-shell {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.topbar {
  background: #000;
  color: #f7f7f7;
  text-align: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar p {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mainnav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  background: #f6f3ee;
  padding: 1.15rem 2.2rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-group {
  display: flex;
  align-items: center;
}

.nav-group-left {
  justify-content: flex-start;
  gap: 1.2rem;
}

.nav-group-right {
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.nav-links a {
  color: rgba(17,17,17,0.9);
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-toggle {
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 50px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand {
  justify-self: center;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  color: #0b0b0b;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, rgba(255,255,255,0.1), transparent 30%), #090909;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.7)),
    url("https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
  opacity: 0.45;
  filter: grayscale(0.7) blur(1px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-content,
.hero-visual,
.hero-badge {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(100%, 900px);
  color: #f5f1eb;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.eyebrow.dark {
  color: rgba(17,17,17,0.86);
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 9rem);
  letter-spacing: 0.04em;
  line-height: 0.8;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 0 18px rgba(0,0,0,0.25);
}

.hero h1 span {
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  transform: translateY(-8px);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.95rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #e8d2a2;
  color: #110f10;
  border-color: rgba(232,210,162,0.8);
}

.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: #fff;
}

.btn-dark {
  background: #111;
  border-color: #111;
  color: #fff;
}

.hero-visual {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  align-items: end;
  height: 100%;
  pointer-events: none;
}

.model-glow {
  position: absolute;
  bottom: 0;
  width: min(64vw, 900px);
  height: 70%;
  background: radial-gradient(circle at 50% 70%, rgba(255,255,255,0.18), rgba(255,255,255,0.01) 55%, transparent 80%);
  filter: blur(14px);
}

.hero-visual img {
  width: min(66vw, 920px);
  height: auto;
  max-height: 90%;
  object-fit: cover;
  filter: drop-shadow(10px 18px 20px rgba(0,0,0,0.6));
  transform: translateY(10px);
}

.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 10%;
  left: 10%;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f5f1eb;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.4vw, 1.1rem);
}

.hero-badge span {
  display: inline-block;
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9rem 1.2rem;
  backdrop-filter: blur(3px);
}

.featured,
.story,
.journal,
.newsletter {
  padding: 5.5rem 3rem;
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  letter-spacing: -0.06em;
  font-weight: 800;
  text-transform: uppercase;
}

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

.product-card {
  background: #f3efe9;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

.product-media {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
}

.media-one {
  background-image: url("https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=900&q=80");
}

.media-two {
  background-image: url("https://images.unsplash.com/photo-1503342217505-b0a15ec3261c?auto=format&fit=crop&w=900&q=80");
}

.media-three {
  background-image: url("https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=900&q=80");
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(17,17,17,0.75);
  color: #f7f3ed;
  padding: 0.45rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-info {
  padding: 1.4rem 1.2rem 1.3rem;
}

.product-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.product-info p {
  margin: 0;
  color: var(--ink-soft);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}

.price {
  font-size: 1.3rem;
  font-weight: 800;
}

.product-meta button {
  background: #111;
  color: #fff;
  border: 0;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  cursor: pointer;
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.25rem;
  align-items: center;
  background: #ece3d8;
}

.story-copy {
  max-width: 620px;
}

.story-copy h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.1rem, 3vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.story-copy p {
  margin: 0 0 2rem;
  color: rgba(17,17,17,0.72);
  line-height: 1.8;
  font-size: 1rem;
}

.story-collage {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.2rem;
  align-items: end;
}

.collage-card {
  overflow: hidden;
  background: #d8d1c5;
  border: 1px solid rgba(0,0,0,0.08);
}

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

.collage-card.tall {
  height: 560px;
}

.collage-card.small {
  height: 420px;
}

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

.journal-card {
  background: #f5f0ea;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

.journal-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.journal-card div {
  padding: 1.2rem 1.2rem 1.4rem;
}

.journal-card p {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17,17,17,0.7);
}

.journal-card h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.newsletter {
  background: #f1e9df;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(100%, 470px);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(17,17,17,0.2);
  background: rgba(255,255,255,0.4);
}

.newsletter-form button {
  border: 0;
  background: #111;
  color: #fff;
  padding: 1rem 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem 2rem;
  background: #121212;
  color: rgba(255,255,255,0.8);
}

.brand-footer {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 2.2rem);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .product-grid,
  .journal-grid,
  .story {
    grid-template-columns: 1fr;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .mainnav {
    grid-template-columns: auto 1fr auto;
    padding: 0.9rem 1rem;
    position: sticky;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(17,17,17,0.08);
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 26px rgba(0,0,0,0.1);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .brand {
    font-size: 1.7rem;
  }
}

@media (max-width: 680px) {
  .mainnav {
    grid-template-columns: auto 1fr auto;
    padding: 0.9rem 1rem;
  }

  .brand {
    font-size: 1.7rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    top: 34%;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 18vw, 6rem);
  }

  .hero-visual img {
    width: 110%;
    max-height: 72%;
  }

  .hero-badge {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }

  .featured,
  .story,
  .journal,
  .newsletter {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .product-media {
    height: 330px;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form button,
  .newsletter-form input {
    width: 100%;
  }
}

/* Storefront interactions and responsive layout */
.hero {
  min-height: min(78vh, 790px);
  min-height: clamp(590px, 76vh, 790px);
  justify-content: flex-start;
  background: #080808;
}

.hero-backdrop {
  z-index: 0;
}

.hero-content,
.hero-badge {
  z-index: 2;
}

.hero-visual {
  z-index: 0;
}

.hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.54) 44%, rgba(0,0,0,0.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.5), transparent 30%);
}

.hero-backdrop {
  opacity: 0.3;
}

.hero-content {
  left: 9%;
  top: 50%;
  width: min(54%, 720px);
  transform: translateY(-50%);
  text-align: left;
}

.hero h1 {
  font-size: clamp(4.5rem, 8.5vw, 8.5rem);
}

.hero-actions {
  justify-content: flex-start;
}

.hero-visual {
  left: auto;
  right: 0;
  width: 54%;
  height: 100%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 24%;
  transform: none;
  opacity: 0.83;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}

.model-glow {
  display: none;
}

.hero-badge {
  z-index: 2;
  left: auto;
  right: 3rem;
  width: auto;
  text-align: right;
}

.featured {
  max-width: 1500px;
  margin: 0 auto;
}

.catalog-page-intro {
  padding: 2rem 3rem 3.5rem;
  background: #ece3d8;
  text-align: center;
}

.catalog-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 2.3rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.catalog-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-page-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.95;
  text-transform: uppercase;
}

.catalog-page-intro > p:last-child {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.catalog-page {
  padding-top: 3.5rem;
}

.bestseller {
  background: #f0ebe4;
}

.bestseller-action {
  margin-top: 2rem;
  text-align: center;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-filter {
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(17,17,17,0.2);
  background: transparent;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.category-filter:hover,
.category-filter.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.catalog-results {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.catalog-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-soft);
}

.catalog-empty[hidden] {
  display: none;
}

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

.product-card {
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.11);
}

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

.product-media {
  height: auto;
  aspect-ratio: 0.82;
  background-position: center;
  transition: background-size 0.3s ease;
}

.product-card:hover .product-media {
  background-size: 105%;
}

.media-four {
  background-image: url("https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=900&q=80");
}

.media-five {
  background-image: url("https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=900&q=80");
}

.media-six {
  background-image: url("https://images.unsplash.com/photo-1503342217505-b0a15ec3261c?auto=format&fit=crop&w=900&q=80");
}

.product-info {
  padding: 1rem 0.15rem 1.15rem;
}

.product-info h3 {
  font-size: 1rem;
}

.product-info .product-category {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-info p {
  font-size: 0.83rem;
}

.product-meta {
  margin-top: 0.8rem;
}

.price {
  font-size: 1rem;
}

.product-meta button,
.checkout-button {
  background: #111;
  color: #fff;
  border: 1px solid #111;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.product-meta button:hover,
.checkout-button:hover {
  background: transparent;
  color: #111;
}

.catalog-callout {
  display: block;
  margin-top: 1rem;
  color: rgba(17,17,17,0.6);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
}

.cart-button {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
}

.site-footer {
  display: block;
  padding: 3.5rem 3rem 1.2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.footer-brand .brand {
  justify-self: start;
}

.footer-brand p {
  max-width: 300px;
  margin: 1rem 0;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  font-size: 0.88rem;
}

.footer-email {
  font-size: 0.87rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.footer-column h2 {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(255,255,255,0.66);
}

.footer-column a:hover,
.footer-email:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.58);
  font-size: 0.72rem;
}

.footer-bottom p {
  margin: 0;
}

.payment-label {
  letter-spacing: 0.1em;
}

.store-dialog {
  width: min(92vw, 520px);
  max-height: min(85vh, 760px);
  margin: auto;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(0,0,0,0.28);
}

.store-dialog::backdrop {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.dialog-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cart-dialog[open] {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100vw, 470px);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 1.5rem;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  display: flex;
  flex-direction: column;
}

.cart-items {
  flex: 1;
  overflow: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item h3 {
  font-size: 0.92rem;
}

.cart-item p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cart-item-controls button {
  border: 1px solid var(--line);
  background: transparent;
  min-width: 28px;
  min-height: 28px;
  cursor: pointer;
}

.cart-item-controls .remove-item {
  border: 0;
  text-decoration: underline;
  font-size: 0.72rem;
}

.cart-empty {
  margin: auto 0;
  text-align: center;
}

.cart-empty[hidden],
.cart-summary[hidden] {
  display: none;
}

.text-button {
  border: 0;
  padding: 0.5rem;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.cart-summary {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.cart-summary > p,
.demo-note {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.checkout-button {
  width: 100%;
}

.search-field input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.search-form {
  display: grid;
  gap: 0.75rem;
}

.search-feedback {
  min-height: 1.3em;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.search-result-link {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.account-dialog > p,
.info-copy {
  color: var(--ink-soft);
  line-height: 1.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.toast {
  position: fixed;
  z-index: 20;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: calc(100vw - 2.5rem);
  padding: 0.9rem 1.2rem;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.newsletter-feedback {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 650px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.75) 100%),
      linear-gradient(90deg, rgba(0,0,0,0.25), transparent 70%);
  }

  .hero-content {
    left: 50%;
    top: 34%;
    width: calc(100% - 2rem);
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 11vw, 6rem);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    height: 100%;
  }

  .hero-visual img {
    object-position: center 24%;
    opacity: 0.58;
    mask-image: linear-gradient(180deg, #000 40%, rgba(0,0,0,0.8) 72%, transparent 100%);
  }

  .hero-badge {
    right: 1rem;
    bottom: 1.2rem;
    left: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .topbar p {
    font-size: 0.62rem;
  }

  .mainnav {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 0.3rem;
    padding: 0.65rem 0.6rem;
  }

  .nav-group-left {
    gap: 0;
  }

  .nav-icons {
    gap: 0;
  }

  .nav-icons .icon-btn {
    width: 36px;
  }

  .nav-icons .icon-btn svg {
    width: 19px;
    height: 19px;
  }

  .brand {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    top: 31%;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
  }

  .hero-actions {
    gap: 0.5rem;
    margin-top: 1.3rem;
  }

  .hero-actions .btn {
    min-width: 0;
    padding: 0.8rem 1rem;
    font-size: 0.63rem;
  }

  .featured,
  .journal {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .catalog-page-intro {
    padding: 1.5rem 1rem 2.5rem;
  }

  .catalog-breadcrumb {
    margin-bottom: 1.8rem;
  }

  .catalog-page {
    padding-top: 2.75rem;
  }

  .section-header {
    margin-bottom: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 1.3rem;
  }

  .catalog-toolbar {
    display: block;
  }

  .category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem 0.5rem;
    scrollbar-width: none;
  }

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

  .category-filter {
    flex: 0 0 auto;
    padding: 0.65rem 0.8rem;
    font-size: 0.63rem;
  }

  .catalog-results {
    margin-top: 0.55rem;
    font-size: 0.74rem;
  }

  .product-media {
    aspect-ratio: 0.72;
  }

  .product-tag {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.58rem;
  }

  .product-info h3 {
    font-size: 0.87rem;
  }

  .product-info .product-category {
    font-size: 0.58rem;
  }

  .product-info p {
    font-size: 0.72rem;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .product-meta button {
    width: 100%;
  }

  .site-footer {
    padding: 2.5rem 1rem 1rem;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-feedback {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
