/* CosmosChocolate editorial storefront — July 2026 */
:root {
  --v2-canvas: #fbf7f0;
  --v2-paper: #fffdf9;
  --v2-ink: #271712;
  --v2-muted: #746258;
  --v2-copper: #bd6c35;
  --v2-copper-dark: #8e4724;
  --v2-berry: #a63d58;
  --v2-line: rgba(67, 39, 27, 0.12);
  --v2-soft-line: rgba(67, 39, 27, 0.08);
  --v2-shadow: 0 24px 70px rgba(74, 42, 25, 0.11);
  --v2-small-shadow: 0 14px 36px rgba(74, 42, 25, 0.08);
}

body {
  background:
    radial-gradient(circle at 8% 2%, rgba(212, 160, 116, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 30%, rgba(163, 61, 87, 0.06), transparent 26rem),
    var(--v2-canvas);
}

body::before {
  opacity: 0.2;
  background-size: 56px 56px;
}

.page-shell {
  width: min(1360px, calc(100% - 40px));
  padding: 16px 0 48px;
}

.topbar {
  top: 12px;
  z-index: 80;
  grid-template-columns: minmax(184px, 236px) 1fr auto;
  min-height: 70px;
  padding: 10px 12px 10px 18px;
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 12px 36px rgba(67, 39, 27, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar .brand,
.brand {
  width: min(100%, 236px);
}

.topbar .brand__logo {
  width: 214px;
  max-height: 47px;
  object-fit: contain;
  object-position: left center;
}

.topnav {
  grid-column: auto;
  grid-row: auto;
  gap: 2px;
}

.topnav a {
  padding: 9px 13px;
  font-size: 0.9rem;
}

.topnav a[aria-current="page"] {
  background: #f4e8d8;
  color: var(--v2-copper-dark);
}

.profile-trigger,
.cart-trigger {
  min-height: 44px;
  background: transparent;
  box-shadow: none;
}

.topbar__actions {
  grid-column: auto;
  grid-row: auto;
}

main:not(.inner-page) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(76px, 9vw, 126px);
  padding-top: 18px;
}

.inner-page {
  min-width: 0;
  padding-top: 34px;
}

main > *,
.hero__copy,
.hero__visual,
.catalog-home,
.catalog-gateway,
.section-heading,
.featured-heading {
  min-width: 0;
}

.hero--editorial {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(540px, 1.22fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  min-height: 660px;
  margin: 0;
  padding: clamp(26px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 239, 0.74)),
    var(--v2-paper);
  box-shadow: var(--v2-shadow);
}

.hero--editorial .hero__copy {
  min-height: 0;
  padding: 10px 0;
}

.hero__eyebrow,
.eyebrow {
  margin: 0 0 13px;
  color: var(--v2-copper-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero--editorial h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 5.2vw, 5.5rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.hero--editorial .hero__lead {
  max-width: 42rem;
  margin-top: 24px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 500;
  line-height: 1.65;
}

.hero__actions {
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.hero__text-link {
  padding: 8px 2px;
  border-bottom: 1px solid rgba(39, 23, 18, 0.28);
  color: var(--v2-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero__text-link:hover,
.hero__text-link:focus-visible {
  border-color: var(--v2-copper);
  color: var(--v2-copper-dark);
}

.hero-benefits--compact {
  gap: 6px;
  margin-top: 24px;
}

.hero-benefits--compact li {
  min-height: 29px;
  padding: 5px 9px;
  border-color: var(--v2-soft-line);
  background: rgba(251, 247, 240, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__visual--showcase {
  min-height: 570px;
}

.hero-showcase--large {
  min-height: 570px;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 22% 24%, rgba(250, 210, 139, 0.34), transparent 21%),
    radial-gradient(circle at 76% 28%, rgba(173, 70, 97, 0.2), transparent 24%),
    radial-gradient(circle at 48% 68%, rgba(84, 112, 170, 0.16), transparent 26%),
    linear-gradient(145deg, #f9ead4 0%, #f7dfc5 48%, #f1d3bf 100%);
  box-shadow: inset 0 0 0 1px rgba(67, 39, 27, 0.09);
}

.hero-showcase--large::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-showcase--large .hero-showcase__galaxy {
  width: min(610px, 105%);
  opacity: 0.86;
}

.hero-showcase--large .hero-showcase__spark--bar {
  top: 10%;
  left: 7%;
  height: 155px;
}

.hero-showcase--large .hero-showcase__spark--drage {
  top: 5%;
  right: 5%;
  width: 132px;
  height: 132px;
}

.hero-showcase--large .hero-showcase__spark--hot {
  right: 18%;
  bottom: 10%;
  height: 142px;
}

.hero-showcase--large .hero-showcase__spark--milk {
  left: 25%;
  bottom: 10%;
  height: 134px;
}

.hero-showcase__hint {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(67, 39, 27, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  color: #6f5548;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(67, 39, 27, 0.08);
  backdrop-filter: blur(8px);
}

.catalog-home,
.related-products {
  scroll-margin-top: 112px;
}

.section-heading--editorial,
.featured-heading,
.section-heading--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2,
.featured-heading h2,
.catalog-intro h1,
.final-cta h2,
.product-page h1 {
  margin: 0;
  color: var(--v2-ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.section-heading h2,
.featured-heading h2 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 4vw, 4.25rem);
}

.section-heading__note {
  max-width: 36rem;
  margin: 0 0 4px;
  color: var(--v2-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.catalog-gateway {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: var(--v2-paper);
  box-shadow: var(--v2-small-shadow);
}

.category-card--bars {
  grid-row: 1 / span 2;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(300px, 1fr) auto;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: rgba(142, 71, 36, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 25px 58px rgba(74, 42, 25, 0.14);
}

.category-card__art {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(145deg, #f8e5cb, #efcfb8);
}

.category-card--drage .category-card__art {
  background: linear-gradient(145deg, #f2d9c1, #e7bdac);
}

.category-card--hot .category-card__art {
  background: linear-gradient(145deg, #f6e7cd, #e7d4b5);
}

.category-card__art::after {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.category-card__art > img:first-child {
  position: relative;
  z-index: 2;
  width: auto;
  height: clamp(120px, 15vw, 210px);
  object-fit: contain;
  filter: drop-shadow(0 22px 25px rgba(75, 39, 24, 0.22));
  transform: rotate(-7deg);
}

.category-card--bars .category-card__art > img:first-child {
  height: clamp(190px, 24vw, 330px);
}

.category-card--drage .category-card__art > img:first-child {
  transform: rotate(4deg);
}

.category-card__mini-orb,
.category-card__milk {
  position: absolute !important;
  z-index: 3 !important;
  right: 12% !important;
  bottom: 12% !important;
  width: 50px !important;
  height: 50px !important;
  transform: none !important;
}

.category-card__milk {
  right: auto !important;
  left: 10% !important;
  width: 58px !important;
  height: 70px !important;
}

.category-card__copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(22px, 3vw, 36px);
}

.category-card__count {
  color: var(--v2-copper-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.category-card h3 {
  max-width: 11ch;
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.category-card p {
  max-width: 31ch;
  margin: 0;
  color: var(--v2-muted);
  font-size: 0.88rem;
}

.category-card__link {
  margin-top: 22px;
  color: var(--v2-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.featured-heading {
  margin-top: 82px;
}

.catalog-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.product-card {
  display: flex;
  min-width: 0;
  border-color: var(--v2-soft-line);
  border-radius: 14px;
  background: var(--v2-paper);
  box-shadow: 0 10px 30px rgba(74, 42, 25, 0.065);
}

.product-card:hover {
  border-color: rgba(142, 71, 36, 0.22);
  box-shadow: 0 18px 42px rgba(74, 42, 25, 0.11);
}

.product-card__media-link {
  display: block;
  overflow: hidden;
  background: #f5e7d4;
}

.product-card__media {
  aspect-ratio: 4 / 5;
  border: 0;
  background: #f4e5d2;
}

.product-card__media img {
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-card__media img {
  transform: scale(1.025);
}

.product-card__body {
  flex: 1;
  padding: 15px;
}

.product-card__kicker {
  margin-bottom: 7px;
}

.product-card__type {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 0.62rem;
}

.product-card h3 {
  min-height: 2.4em;
  font-size: 1.13rem;
  line-height: 1.2;
}

.product-card h3 a:hover,
.product-card h3 a:focus-visible,
.product-card__details-link:hover,
.product-card__details-link:focus-visible {
  color: var(--v2-copper-dark);
}

.product-card__description {
  display: -webkit-box;
  min-height: 2.8em;
  margin-top: 8px;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-tags {
  min-height: 25px;
  margin: 9px 0;
  overflow: hidden;
}

.product-tags li {
  padding: 4px 7px;
  font-size: 0.68rem;
}

.product-card__summary-row {
  align-items: end;
}

.product-card__details-link {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 4px;
  min-height: 30px;
  color: var(--v2-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.product-card__pricing {
  padding: 0;
}

.product-card__price {
  font-size: 1.2rem;
}

.product-card .button--product {
  min-height: 42px;
  padding: 9px 14px;
}

.product-placeholder {
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.48), transparent 17%),
    linear-gradient(150deg, #eed1b9, #dca98e);
}

.product-placeholder--cream,
.product-placeholder--citrus {
  background: linear-gradient(150deg, #f4dfb8, #dcad72);
}

.product-placeholder--rose,
.product-placeholder--plum {
  background: linear-gradient(150deg, #e6bac0, #b96d80);
}

.product-placeholder--cocoa,
.product-placeholder--amber {
  background: linear-gradient(150deg, #d2a27f, #8d533b);
}

.section-card.story,
.section-card.reviews,
.section-card.faq {
  margin: 0;
  padding: 0;
}

.story__heading {
  align-items: flex-start;
}

.story-pillars {
  margin-top: 24px;
}

.story-quality {
  margin-top: 34px;
  border: 1px solid var(--v2-soft-line);
  border-radius: 20px;
  box-shadow: var(--v2-small-shadow);
}

.quality-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--v2-line);
  border-left: 1px solid var(--v2-line);
}

.quality-facts article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-right: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
}

.quality-facts strong {
  color: var(--v2-copper-dark);
  font-size: 0.7rem;
}

.quality-facts span {
  color: var(--v2-muted);
  font-size: 0.82rem;
  line-height: 1.48;
}

.reviews__grid {
  gap: 12px;
  margin-top: 30px;
}

.review-card--placeholder {
  min-height: 190px;
  border-style: dashed;
  background: rgba(255, 253, 249, 0.55);
  box-shadow: none;
}

.review-card--placeholder > span {
  color: var(--v2-copper);
  font-size: 0.7rem;
  font-weight: 800;
}

.review-card--placeholder strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.review-card--placeholder p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 0.82rem;
}

.faq__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.faq-item {
  margin: 0;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.7);
  box-shadow: none;
}

.faq-item summary {
  min-height: 68px;
  padding: 20px 38px 20px 0;
  font-size: 0.9rem;
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 0.86rem;
}

.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 20%, rgba(222, 157, 105, 0.28), transparent 26%),
    linear-gradient(135deg, #321b17, #5a2e28);
  color: #fff9ee;
  box-shadow: var(--v2-shadow);
}

.final-cta__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 68px);
}

.final-cta .eyebrow {
  color: #eab27d;
}

.final-cta h2 {
  max-width: 13ch;
  color: #fff9ee;
  font-size: clamp(2.5rem, 4vw, 4.25rem);
}

.final-cta p:not(.eyebrow) {
  max-width: 38rem;
  margin: 18px 0 0;
  color: rgba(255, 249, 238, 0.72);
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.final-cta .button--ghost {
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}

.final-cta__art {
  position: relative;
  min-height: 100%;
}

.final-cta__art::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.final-cta__art img {
  position: absolute;
  width: auto;
  height: 200px;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.3));
}

.final-cta__art img:first-child {
  top: 12%;
  left: 8%;
  transform: rotate(-14deg);
}

.final-cta__art img:last-child {
  right: 6%;
  bottom: 7%;
  height: 160px;
  transform: rotate(9deg);
}

.final-cta--compact {
  min-height: 300px;
  margin-top: 96px;
}

.final-cta--compact h2 {
  font-size: clamp(2.3rem, 3.5vw, 3.8rem);
}

.footer--expanded {
  display: grid;
  grid-template-columns: 1.4fr 0.65fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 76px;
  padding: 40px 0 10px;
}

.footer__brand,
.footer__nav,
.footer__contacts,
.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer__nav a,
.footer__legal span,
.footer__contact-link,
.footer__contact-note {
  color: var(--v2-muted);
  font-size: 0.82rem;
}

.footer__nav a:hover,
.footer__nav a:focus-visible,
.footer__contact-link:hover,
.footer__contact-link:focus-visible {
  color: var(--v2-copper-dark);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 50px;
  color: var(--v2-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--v2-copper-dark);
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 48px;
  align-items: end;
}

.catalog-intro h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 7vw, 7.2rem);
}

.catalog-intro > p {
  margin: 0 0 10px;
  color: var(--v2-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.catalog--full {
  margin-top: 58px;
}

.catalog-toolbar {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--v2-soft-line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.7);
}

.catalog-toolbar__group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.catalog-toolbar__label {
  margin: 10px 0 0;
  color: var(--v2-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.catalog-grid--full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.filter-row--ingredients {
  padding: 0 5px 4px 0;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 12px;
  background: #fffdf9;
  font-size: 0.8rem;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  background: var(--v2-ink);
  border-color: var(--v2-ink);
  color: #fff;
  box-shadow: none;
}

.product-page__layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.96fr) minmax(400px, 1.04fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.product-page__media {
  position: sticky;
  top: 112px;
}

.product-page__media > .product-card__media {
  aspect-ratio: 0.92;
  overflow: hidden;
  border: 1px solid var(--v2-soft-line);
  border-radius: 20px;
  box-shadow: var(--v2-small-shadow);
}

.product-page__media .product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-page__media .product-placeholder {
  min-height: 100%;
}

.product-page__media-note {
  display: block;
  margin-top: 11px;
  color: var(--v2-muted);
  font-size: 0.72rem;
}

.product-page__content {
  padding-top: 12px;
}

.product-page__category {
  color: var(--v2-copper-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-page h1 {
  max-width: 11ch;
  margin-top: 14px;
  font-size: clamp(3.2rem, 5.2vw, 5.6rem);
}

.product-page__lead {
  max-width: 40rem;
  margin: 24px 0 0;
  color: var(--v2-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.product-tags--page {
  min-height: 0;
  margin: 20px 0 0;
}

.product-tags--page li {
  padding: 6px 10px;
  font-size: 0.76rem;
}

.product-page__format,
.variant-row--page {
  margin-top: 32px;
}

.variant-row--page .variant-row__label {
  display: block;
  margin-bottom: 10px;
}

.variant-row--page .variant-chip {
  padding: 10px 14px;
}

.product-page__buy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
}

.product-page__buy > strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.product-page__cart-controls {
  display: grid;
  grid-template-columns: 46px 50px 46px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
}

.product-page__cart-controls button {
  height: 46px;
  background: #f2e4d3;
  color: var(--v2-ink);
  font-size: 1.2rem;
}

.product-page__cart-controls span {
  text-align: center;
  font-weight: 800;
}

.product-page__facts {
  margin-top: 28px;
}

.product-page__facts .product-details__meta {
  display: grid;
  gap: 9px;
}

.product-page__facts .product-details__meta p,
.product-page__facts .product-details__ingredients {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--v2-soft-line);
  color: var(--v2-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.product-page__service {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 12px;
  background: #f2e5d6;
}

.product-page__service p {
  margin: 0;
  color: #664a3c;
  font-size: 0.8rem;
}

.product-page__service span {
  margin-right: 7px;
  color: var(--v2-copper);
}

.product-page__not-found,
.product-page__loading {
  display: grid;
  min-height: 420px;
  place-content: center;
  justify-items: start;
}

.product-page__not-found h1 {
  margin: 0 0 16px;
}

.product-page__not-found p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--v2-muted);
}

.product-page__not-found .button {
  margin-top: 16px;
}

.related-products {
  margin-top: 110px;
}

.cart-empty,
.profile-orders__empty {
  display: grid;
  min-height: 260px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 30px 18px;
  border: 1px dashed var(--v2-line);
  border-radius: 14px;
  text-align: center;
}

.cart-empty strong,
.profile-orders__empty strong {
  color: var(--v2-ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.cart-empty > span:not(.empty-orbit),
.profile-orders__empty > span:not(.empty-orbit) {
  max-width: 30ch;
  font-size: 0.8rem;
}

.empty-orbit {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 5px;
  border: 1px solid rgba(142, 71, 36, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.empty-orbit::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--v2-copper);
  box-shadow: 0 8px 18px rgba(142, 71, 36, 0.25);
}

.profile-divider {
  position: relative;
  margin: 22px 0;
  text-align: center;
}

.profile-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--v2-line);
}

.profile-divider span {
  position: relative;
  padding: 0 10px;
  background: #fffaf2;
  color: var(--v2-muted);
  font-size: 0.7rem;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1120px) {
  .hero--editorial {
    grid-template-columns: minmax(320px, 0.82fr) minmax(440px, 1.18fr);
    min-height: 590px;
  }

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

  .hero__visual--showcase,
  .hero-showcase--large {
    min-height: 500px;
  }

  .catalog-gateway {
    grid-template-columns: 1fr 1fr;
  }

  .category-card {
    grid-template-columns: minmax(145px, 0.8fr) 1.2fr;
  }

  .category-card h3 {
    font-size: 2rem;
  }

  .catalog-grid--featured,
  .catalog-grid--full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .topbar {
    grid-template-columns: minmax(184px, 1fr) auto;
  }

  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar__actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 24px, 1360px);
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar__actions {
    grid-column: 2;
    grid-row: 1;
  }

  .hero--editorial {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .hero--editorial h1 {
    max-width: 13ch;
  }

  .hero__visual--showcase,
  .hero-showcase--large {
    min-height: 540px;
  }

  .catalog-gateway {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .category-card--bars {
    grid-row: auto;
    grid-template-columns: minmax(220px, 0.9fr) 1.1fr;
    grid-template-rows: none;
  }

  .category-card,
  .category-card--bars {
    min-height: 300px;
  }

  .category-card--bars .category-card__art > img:first-child {
    height: 240px;
  }

  .catalog-grid--featured,
  .catalog-grid--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-quality,
  .product-page__layout {
    grid-template-columns: 1fr;
  }

  .product-page__media {
    position: relative;
    top: auto;
  }

  .product-page__media > .product-card__media {
    aspect-ratio: 1.1;
  }

  .footer--expanded {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    width: min(100% - 16px, 1360px);
    padding-top: 8px;
  }

  .topbar {
    top: 6px;
    min-height: 58px;
    padding: 8px 9px 7px 12px;
    border-radius: 13px;
  }

  .topbar .brand__logo {
    width: 154px;
    max-height: 38px;
  }

  .profile-trigger,
  .cart-trigger {
    min-height: 38px;
    padding: 7px 9px;
  }

  .profile-trigger__label,
  .cart-trigger__label {
    display: none;
  }

  .topnav a {
    padding: 7px 10px;
    font-size: 0.77rem;
    white-space: nowrap;
  }

  main:not(.inner-page) {
    gap: 78px;
    padding-top: 10px;
  }

  .inner-page {
    padding-top: 28px;
  }

  .hero--editorial {
    gap: 32px;
    min-height: 0;
    padding: 28px 18px 18px;
    border-radius: 18px;
  }

  .hero--editorial h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 13vw, 4.1rem);
  }

  .hero--editorial .hero__lead {
    margin-top: 18px;
    font-size: 0.94rem;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
  }

  .hero-benefits--compact {
    margin-top: 18px;
  }

  .hero__visual--showcase,
  .hero-showcase--large {
    min-height: 390px;
  }

  .hero-showcase--large .hero-showcase__spark--bar {
    height: 108px;
  }

  .hero-showcase--large .hero-showcase__spark--drage {
    width: 88px;
    height: 88px;
  }

  .hero-showcase--large .hero-showcase__spark--hot {
    height: 95px;
  }

  .hero-showcase--large .hero-showcase__spark--milk {
    height: 88px;
  }

  .section-heading--editorial,
  .featured-heading,
  .section-heading--split,
  .catalog-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading h2,
  .featured-heading h2 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .section-heading__note {
    font-size: 0.86rem;
  }

  .catalog-gateway {
    margin-top: 24px;
  }

  .category-card,
  .category-card--bars {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(230px, auto) auto;
    min-height: 0;
  }

  .category-card__art {
    min-height: 230px;
  }

  .category-card--bars .category-card__art > img:first-child,
  .category-card__art > img:first-child {
    height: 190px;
  }

  .category-card__copy {
    padding: 24px;
  }

  .category-card h3 {
    font-size: 2.2rem;
  }

  .featured-heading {
    margin-top: 64px;
  }

  .catalog-grid--featured,
  .catalog-grid--full {
    gap: 9px;
  }

  .product-card__body {
    padding: 11px;
  }

  .product-card h3 {
    font-size: 0.96rem;
  }

  .product-card__description {
    font-size: 0.75rem;
  }

  .product-card__details-link {
    font-size: 0.7rem;
  }

  .product-card__price {
    font-size: 1rem;
  }

  .product-card .variant-row__list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-card .variant-chip {
    width: 100%;
  }

  .quality-facts,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .reviews__grid {
    margin-top: 24px;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .final-cta {
    grid-template-columns: 1fr;
    min-height: 440px;
  }

  .final-cta h2 {
    font-size: 2.7rem;
  }

  .final-cta__art {
    position: absolute;
    right: 0;
    bottom: -30px;
    width: 210px;
    height: 240px;
    opacity: 0.38;
  }

  .footer--expanded {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .breadcrumbs {
    margin-bottom: 34px;
  }

  .catalog-intro h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .catalog--full {
    margin-top: 42px;
  }

  .catalog-toolbar {
    padding: 16px;
  }

  .catalog-toolbar__group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .catalog-toolbar__label {
    margin-top: 0;
  }

  .filter-row {
    flex-wrap: nowrap;
    padding-bottom: 7px;
    overflow-x: auto;
  }

  .filter-row--ingredients {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .product-page__layout {
    gap: 30px;
  }

  .product-page__media > .product-card__media {
    aspect-ratio: 1;
    border-radius: 15px;
  }

  .product-page h1 {
    font-size: clamp(2.9rem, 15vw, 4.5rem);
  }

  .product-page__buy {
    grid-template-columns: 1fr;
  }

  .product-page__buy .button,
  .product-page__cart-controls {
    width: 100%;
  }

  .product-page__cart-controls {
    grid-template-columns: 48px 1fr 48px;
  }

  .related-products {
    margin-top: 78px;
  }
}

@media (max-width: 430px) {
  .topbar .brand__logo {
    width: 130px;
  }

  .topbar__actions {
    gap: 2px;
  }

  .hero--editorial h1 {
    font-size: 2.72rem;
  }

  .catalog-grid--featured,
  .catalog-grid--full {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
  }

  .product-card__media-link,
  .product-card__media {
    height: 100%;
    min-height: 220px;
  }

  .product-card__media {
    aspect-ratio: auto;
  }

  .product-card__body {
    min-width: 0;
  }

  .product-card__description,
  .product-tags,
  .product-card__details-link {
    display: none;
  }

  .product-card h3 {
    min-height: 0;
  }

  .product-card__summary-row {
    display: flex;
    justify-content: flex-end;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 8px 9px 8px 12px;
    overflow: visible;
  }

  .topbar .brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .topbar__actions {
    grid-column: 2;
    grid-row: 1;
    gap: 3px;
  }

  .menu-trigger {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 10px;
    place-content: center;
    gap: 4px;
    border: 1px solid rgba(83, 51, 33, 0.13);
    border-radius: 50%;
    background: transparent;
    color: var(--v2-ink);
  }

  .menu-trigger span {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
    transform-origin: center;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-trigger.is-active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .menu-trigger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-trigger.is-active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .topnav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-column: auto;
    grid-row: auto;
    gap: 4px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    justify-content: stretch;
    padding: 10px;
    overflow: visible;
    border: 1px solid var(--v2-line);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 22px 58px rgba(67, 39, 27, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .topbar.is-menu-open .topnav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topnav a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 9px;
    background: transparent;
    font-size: 0.9rem;
  }

  .topnav a + a {
    border-top: 1px solid var(--v2-soft-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card__media img {
    transition: none;
  }
}

/* Refinement pass: calmer type, compact desktop catalog, mobile menu. */
.menu-trigger {
  display: none;
}

.headline-lock {
  white-space: nowrap;
}

.hero--editorial {
  grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
}

.hero--editorial h1 {
  max-width: 14ch;
  font-size: clamp(3.1rem, 4.7vw, 4.9rem);
  line-height: 0.96;
  text-wrap: wrap;
}

.product-page h1 {
  max-width: 100%;
  font-size: clamp(3rem, 4.2vw, 4.65rem);
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading h2,
.featured-heading h2 {
  max-width: 24ch;
}

.catalog-intro h1 {
  font-size: clamp(4.2rem, 6vw, 6rem);
}

.catalog--full {
  margin-top: 42px;
}

.catalog-toolbar {
  position: relative;
  z-index: 12;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  overflow: visible;
}

.catalog-toolbar__group {
  display: flex;
  grid-template-columns: none;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.catalog-toolbar__group--taste {
  justify-content: flex-end;
}

.catalog-toolbar__label {
  flex: 0 0 auto;
  margin: 0;
}

.catalog-taste-filter {
  position: relative;
}

.catalog-taste-filter > summary {
  display: grid;
  grid-template-columns: auto auto 14px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px 9px 15px;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: var(--v2-paper);
  color: var(--v2-ink);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.catalog-taste-filter > summary:hover,
.catalog-taste-filter > summary:focus-visible,
.catalog-taste-filter[open] > summary {
  border-color: rgba(142, 71, 36, 0.26);
  background: #f4e7d8;
}

.catalog-taste-filter__selection {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(67, 39, 27, 0.07);
  color: var(--v2-muted);
  font-size: 0.68rem;
}

.catalog-taste-filter__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.catalog-taste-filter[open] .catalog-taste-filter__chevron {
  transform: translateY(2px) rotate(225deg);
}

.catalog-taste-filter > .filter-row--ingredients {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
  width: min(720px, calc(100vw - 64px));
  max-height: 310px;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 24px 70px rgba(67, 39, 27, 0.16);
  backdrop-filter: blur(16px);
}

.catalog-taste-filter .filter-chip {
  justify-content: space-between;
  width: 100%;
}

.catalog-grid--full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.catalog-grid--full .product-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1.18fr);
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--v2-soft-line);
  border-radius: 18px;
  background: var(--v2-paper);
  box-shadow: 0 12px 34px rgba(74, 42, 25, 0.07);
}

.catalog-grid--full .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(74, 42, 25, 0.12);
}

.catalog-grid--full .product-card__media-link,
.catalog-grid--full .product-card__media {
  height: 100%;
  min-height: 410px;
}

.catalog-grid--full .product-card__media {
  aspect-ratio: auto;
}

.catalog-grid--full .product-card__body {
  min-width: 0;
  padding: 24px;
}

.catalog-grid--full .product-card h3 {
  min-height: 0;
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  line-height: 1.12;
  text-wrap: balance;
}

.catalog-grid--full .product-card__description {
  min-height: 4.35em;
  margin-top: 13px;
  font-size: 0.84rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

.catalog-grid--full .product-tags {
  display: none;
}

.catalog-grid--full .variant-row {
  margin-top: 18px;
}

.catalog-grid--full .product-card__actions {
  gap: 14px;
}

.catalog-grid--full .product-card__price {
  font-size: 1.35rem;
}

@media (max-width: 1120px) and (min-width: 701px) {
  .hero--editorial {
    grid-template-columns: minmax(340px, 0.88fr) minmax(420px, 1.12fr);
  }

  .hero--editorial h1 {
    font-size: clamp(3rem, 5vw, 4.2rem);
  }

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

  .catalog-toolbar__group--taste {
    justify-content: flex-start;
  }

  .catalog-taste-filter > .filter-row--ingredients {
    right: auto;
    left: 0;
  }

  .catalog-grid--full .product-card {
    grid-template-columns: minmax(155px, 0.72fr) minmax(0, 1.28fr);
  }

  .catalog-grid--full .product-card__body {
    padding: 18px;
  }
}

@media (max-width: 700px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 8px 9px 8px 12px;
    overflow: visible;
  }

  .topbar .brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .topbar__actions {
    grid-column: 2;
    grid-row: 1;
    gap: 3px;
  }

  .menu-trigger {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 10px;
    place-content: center;
    gap: 4px;
    border: 1px solid rgba(83, 51, 33, 0.13);
    border-radius: 50%;
    background: transparent;
    color: var(--v2-ink);
  }

  .menu-trigger span {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
    transform-origin: center;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-trigger.is-active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .menu-trigger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-trigger.is-active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .topnav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-column: auto;
    grid-row: auto;
    gap: 4px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    justify-content: stretch;
    padding: 10px;
    overflow: visible;
    border: 1px solid var(--v2-line);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 22px 58px rgba(67, 39, 27, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .topbar.is-menu-open .topnav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topnav a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 9px;
    background: transparent;
    font-size: 0.9rem;
  }

  .topnav a + a {
    border-top: 1px solid var(--v2-soft-line);
  }

  .hero--editorial {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero--editorial h1 {
    max-width: 100%;
    font-size: clamp(2.38rem, 10.7vw, 3.05rem);
    line-height: 0.98;
  }

  .product-page h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 11vw, 3.25rem);
    line-height: 1;
  }

  .catalog-intro h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
  }

  .catalog-toolbar__group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .catalog-toolbar__group--taste {
    justify-content: stretch;
  }

  .catalog-taste-filter {
    width: 100%;
  }

  .catalog-taste-filter > summary {
    display: none;
  }

  .catalog-taste-filter > .filter-row--ingredients {
    position: static;
    display: flex;
    width: 100%;
    max-height: none;
    padding: 0 0 7px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .catalog-taste-filter .filter-chip {
    width: auto;
  }

  .catalog-grid--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .catalog-grid--full .product-card {
    display: flex;
    min-height: 0;
  }

  .catalog-grid--full .product-card__media-link,
  .catalog-grid--full .product-card__media {
    height: auto;
    min-height: 0;
  }

  .catalog-grid--full .product-card__media {
    aspect-ratio: 4 / 5;
  }

  .catalog-grid--full .product-card__body {
    padding: 11px;
  }

  .catalog-grid--full .product-card h3 {
    font-size: 0.96rem;
  }

  .catalog-grid--full .product-card__description {
    min-height: 2.8em;
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .catalog-grid--full .product-tags {
    display: flex;
  }
}

@media (max-width: 430px) {
  .catalog-grid--full {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-grid--full .product-card {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
  }

  .catalog-grid--full .product-card__media-link,
  .catalog-grid--full .product-card__media {
    height: 100%;
    min-height: 220px;
  }

  .catalog-grid--full .product-card__media {
    aspect-ratio: auto;
  }

  .catalog-grid--full .product-card__description,
  .catalog-grid--full .product-tags,
  .catalog-grid--full .product-card__details-link {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .menu-trigger {
    display: grid;
  }
}
