/* ============================================================
   Meadow Shore — style.css
   Complete stylesheet for the Meadow Shore clothing brand
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES / DESIGN SYSTEM
   ============================================================ */

:root {
  /* Colors */
  --color-ivory: #f8f5ef;
  --color-beige: #ede8df;
  --color-sand: #d4c9b5;
  --color-stone: #a89f91;
  --color-terracotta: #b5614a;
  --color-terracotta-light: #c97a62;
  --color-olive: #6b7c4f;
  --color-moss: #4a5e3a;
  --color-brown: #3d2e22;
  --color-brown-dark: #2a1f16;
  --color-forest: #2d3d25;
  --color-text: #2a1f16;
  --color-text-muted: #6b5e52;
  --color-text-light: #9a8c7e;
  --color-border: rgba(61, 46, 34, 0.12);
  --color-bg: #f8f5ef;
  --color-white: #ffffff;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 2rem;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s ease;
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Header height. --header-box-h is the header's own literal box height;
     --header-h is the "clear this much from the top" offset used everywhere
     else (page-hero padding, scroll-margin, sticky tops) — normally equal to
     --header-box-h, but grows by --announcement-h when the prelaunch
     announcement bar is showing (see body.has-announcement below), so every
     existing calc(var(--header-h) + ...) site adapts without being touched. */
  --header-box-h: 72px;
  --header-h: var(--header-box-h);
  --announcement-h: 0px;
}

/* ============================================================
   2. CSS RESET / BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: pageFadeIn 0.4s ease;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.richtext p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.richtext p:last-child {
  margin-bottom: 0;
}

.richtext strong {
  font-weight: 500;
  color: var(--color-text);
}

.richtext em {
  font-style: italic;
}

.richtext h2,
.richtext h3,
.richtext h4 {
  font-weight: 500;
}

.richtext a {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.richtext ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.richtext li {
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.4;
  color: var(--color-text);
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* ============================================================
   5. BUTTON STYLES
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
  border: 1px solid var(--color-terracotta);
}

.btn--primary:hover {
  background-color: var(--color-terracotta-light);
  border-color: var(--color-terracotta-light);
  box-shadow: 0 4px 20px rgba(181, 97, 74, 0.35);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-brown);
  border: 1px solid var(--color-brown);
}

.btn--outline:hover {
  background-color: var(--color-brown);
  color: var(--color-ivory);
}


/* ============================================================
   6. LABEL STYLES
   ============================================================ */

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.75rem;
}

/* ============================================================
   ANNOUNCEMENT BAR (prelaunch, SALES_MODE=preorder only)
   ============================================================ */

body.has-announcement {
  --announcement-h: 40px;
  --header-h: calc(var(--header-box-h) + var(--announcement-h));
}

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  min-height: var(--announcement-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-forest);
  padding: 0.5rem var(--container-pad);
  text-align: center;
}

.announcement-bar__text {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--color-ivory);
  margin: 0;
}

@media (max-width: 600px) {
  body.has-announcement {
    --announcement-h: 56px;
  }

  .announcement-bar__text {
    font-size: 0.75rem;
  }
}

/* ============================================================
   7. SITE HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: var(--announcement-h);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-box-h);
  background: var(--color-ivory);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 2.06rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}

.header__brand-icon {
  height: clamp(26px, 2.6vw, 38px);
  width: auto;
  flex-shrink: 0;
}

.header__brand:hover {
  opacity: 0.8;
}

.header__nav {
  display: none;
}

/* Мобайл: бренд явно в центральную колонку, правый блок скрыт */
.header__brand {
  grid-column: 2;
}

.header__burger {
  grid-column: 3;
  justify-self: end;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__nav-link {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-terracotta);
  transition: width var(--transition-base);
}

.header__nav-link:hover {
  color: var(--color-text);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__icons {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.header__icon-link {
  display: flex;
  position: relative;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.header__icon-link:hover {
  color: var(--color-text);
}

.header__icon-link svg {
  width: 20px;
  height: 20px;
}

.header__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-ivory);
  background-color: var(--color-terracotta);
  border-radius: 999px;
}

/* Burger button */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transition: transform var(--transition-base),
              opacity var(--transition-fast),
              width var(--transition-base);
  transform-origin: center;
}

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

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

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

/* ============================================================
   8. MOBILE MENU
   ============================================================ */

.header__mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-ivory);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--container-pad);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.header__mobile-menu.is-open {
  transform: translateX(0);
}

.header__mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.header__mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-terracotta);
}

/* ============================================================
   9. HERO SECTION
   ============================================================ */

.home-page .hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(680px, calc(100svh - var(--header-h)), 920px);
}

@media (max-width: 767px) {
  .home-page .hero {
    min-height: clamp(620px, calc(100svh - var(--header-h)), 700px);
  }
}

.home-page .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-page .hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Mobile/tablet: darker toward the bottom, where the text sits */
.home-page .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(20, 30, 15, 0.7) 0%,
    rgba(20, 30, 15, 0.34) 42%,
    rgba(20, 30, 15, 0) 74%
  );
}

/* Desktop/tablet-landscape: darker toward the text (bottom-left), photo stays open on the right */
@media (min-width: 768px) {
  .home-page .hero__overlay {
    background: linear-gradient(
      115deg,
      rgba(20, 30, 15, 0.72) 0%,
      rgba(20, 30, 15, 0.4) 34%,
      rgba(20, 30, 15, 0) 66%
    );
  }
}

.home-page .hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h) + var(--space-sm));
  padding-bottom: clamp(2.25rem, 6vw, 4.5rem);
}

.home-page .hero__text {
  max-width: clamp(560px, 62vw, 800px);
  animation: heroTextIn 0.8s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero__text {
    animation: none;
  }
}

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

.home-page .hero__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(11px, 0.2vw + 10.6px, 12px);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ivory);
  margin-bottom: 1rem;
}

.home-page .hero__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.5rem + 4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--color-ivory);
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.home-page .hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  max-width: 520px;
  color: rgba(248, 245, 239, 0.82);
  margin-bottom: 2rem;
}

.home-page .hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ivory);
  background-color: var(--color-terracotta);
  border: 1px solid var(--color-terracotta);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base);
}

.home-page .hero__cta:hover {
  background-color: var(--color-terracotta-light);
  border-color: var(--color-terracotta-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(181, 97, 74, 0.3);
}

.home-page .hero__cta:focus-visible {
  outline: 2px solid var(--color-ivory);
  outline-offset: 3px;
}

.home-page .hero__cta-arrow {
  transition: transform var(--transition-fast);
}

.home-page .hero__cta:hover .hero__cta-arrow {
  transform: translateX(3px);
}

/* ============================================================
   9b. PRELAUNCH SECTION (SALES_MODE=preorder only, homepage)
   ============================================================ */

.prelaunch {
  /* Compact banner: content-driven height, no min-height. Bottom padding is
     intentionally smaller than the top — the section right after this one
     (featured products / "Первая коллекция") already carries its own large
     top padding, so equal padding on both sides would stack into the huge
     empty gap this section is specifically designed to avoid. */
  padding: var(--space-lg) 0 var(--space-md);
  background-color: var(--color-forest);
}

.prelaunch__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.prelaunch__label {
  color: var(--color-terracotta-light);
}

.prelaunch__title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 1.3rem + 1.6vw, 2.375rem);
  font-weight: 400;
  color: var(--color-ivory);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.prelaunch__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 520px;
}

.prelaunch__details p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(248, 245, 239, 0.78);
  margin: 0;
}

.prelaunch__details .prelaunch__note {
  color: var(--color-ivory);
}

.prelaunch__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 245, 239, 0.4);
  padding-bottom: 0.3rem;
  transition: border-color var(--transition-fast);
}

.prelaunch__cta:hover {
  border-color: var(--color-ivory);
}

.prelaunch__cta-arrow {
  transition: transform var(--transition-fast);
}

.prelaunch__cta:hover .prelaunch__cta-arrow {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .prelaunch {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .prelaunch__grid {
    grid-template-columns: minmax(240px, 34%) 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .prelaunch__title {
    font-size: clamp(2rem, 1.5rem + 1.4vw, 2.5rem);
  }
}

/* ============================================================
   10. COLLECTION STORY SECTION (formerly "about")
   ============================================================ */

.home-page .collection-story {
  padding: clamp(4.5rem, 4rem + 2vw, 5.5rem) 0;
  background-color: var(--color-beige);
}

.home-page .collection-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}

.home-page .collection-story__text {
  display: flex;
  flex-direction: column;
}

.home-page .collection-story__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 1.1rem;
}

.home-page .collection-story__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 2.33rem + 1.85vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--color-brown-dark);
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.home-page .collection-story__body p {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 1.4rem;
}

.home-page .collection-story__body p:last-child {
  margin-bottom: 0;
}

.home-page .collection-story__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
}

.home-page .collection-story__details span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.home-page .collection-story__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.home-page .collection-story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .collection-story .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .home-page .collection-story {
    padding: clamp(7.5rem, 5rem + 5vw, 10rem) 0;
  }

  .home-page .collection-story__grid {
    grid-template-columns: minmax(320px, 41%) 1fr;
    gap: clamp(70px, 6vw, 110px);
    align-items: start;
  }

  .home-page .collection-story__text {
    max-width: 560px;
    /* Slightly lower than the top of the image so the composition doesn't
       start both columns on the same line — a deliberately less rigid grid. */
    padding-top: clamp(1.5rem, 4vw, 3.25rem);
  }
}

.placeholder-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(168, 159, 145, 0.1) 20px,
    rgba(168, 159, 145, 0.1) 21px
  );
}

/* ============================================================
   10b. OBSERVATION SECTION
   ============================================================ */

.home-page .observation {
  background-color: var(--color-forest);
  padding: clamp(4.5rem, 4rem + 2vw, 5.5rem) 0;
}

.home-page .observation__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.home-page .observation__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.7);
  margin-bottom: 1.1rem;
}

.home-page .observation__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 2.33rem + 1.85vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--color-ivory);
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.home-page .observation__body p {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  line-height: 1.68;
  color: rgba(248, 245, 239, 0.78);
  margin-bottom: 1.4rem;
}

.home-page .observation__body p:last-child {
  margin-bottom: 0;
}

.home-page .observation__visual {
  position: relative;
}

.home-page .observation__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.home-page .observation__caption {
  margin-top: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(248, 245, 239, 0.62);
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .observation .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .home-page .observation {
    padding: clamp(7.5rem, 5rem + 5vw, 10rem) 0;
  }

  .home-page .observation__grid {
    /* Mirrors "О коллекции" (text left / image right) so the page keeps a
       visual rhythm: image sits left here via grid placement below, while
       the DOM keeps text first for a sane mobile reading order. */
    grid-template-columns: 1fr minmax(300px, 36%);
    gap: clamp(70px, 6vw, 110px);
    align-items: center;
  }

  .home-page .observation__text {
    grid-column: 2;
    grid-row: 1;
    max-width: 540px;
  }

  .home-page .observation__visual {
    grid-column: 1;
    grid-row: 1;
  }
}

/* ============================================================
   11. COLLECTIONS SECTION
   ============================================================ */

.collections {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}

.collections__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ============================================================
   12. COLLECTION CARD STYLES
   ============================================================ */

.collection-card {
  background-color: var(--color-ivory);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42, 31, 22, 0.1);
}

.collection-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-sand);
}

.collection-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.collection-card:hover .collection-card__image {
  transform: scale(1.04);
}

.collection-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-sand) 0%, var(--color-stone) 100%);
}

.collection-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.collection-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

.collection-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.collection-card__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  margin-top: var(--space-xs);
  transition: gap var(--transition-fast), color var(--transition-fast);
  gap: 0.25rem;
}

.collection-card__link:hover {
  color: var(--color-brown);
  gap: 0.5rem;
}

/* ============================================================
   13. MARQUEE / BANNING STROKA STYLES
   ============================================================ */

.marquee-wrap {
  padding: 0.65rem 0;
  background-color: var(--color-brown);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  position: relative;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  align-items: center;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-move, -50%)); }
}

.marquee__item {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-sand);
  white-space: nowrap;
  padding: 0 1.5rem;
  letter-spacing: 0.02em;
}

.marquee__sep {
  flex-shrink: 0;
  width: 30px;
  height: 60px;
  object-fit: contain;
  opacity: 0.9;
  margin: 0 1.5rem;
}

.marquee-wrap:hover .marquee__track {
  animation-play-state: paused;
}

/* ============================================================
   14. FEATURES SECTION
   ============================================================ */

.features {
  padding: var(--space-xl) 0;
  background-color: #4a5c38;
  position: relative;
  overflow: hidden;
}


.features .section-title {
  color: #f5ede0;
}

.features__header {
  margin-bottom: 4rem;
}

.features__title-line {
  width: 100px;
  height: 1px;
  background-color: rgba(245, 237, 224, 0.55);
  margin: var(--space-sm) auto;
}

.features__subtitle {
  font-size: 1rem;
  color: rgba(245, 237, 224, 0.75);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 860px;
  margin: 0 auto;
}

.feature-item {
  padding: var(--space-md);
  border: 1px solid rgba(245, 237, 224, 0.28);
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.feature-item__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: #f5ede0;
  margin-bottom: var(--space-xs);
  max-width: 22ch;
}

.feature-item__desc {
  font-size: 0.9375rem;
  color: rgba(245, 237, 224, 0.7);
  line-height: 1.7;
  max-width: 28ch;
}

/* ============================================================
   15. FABRIC SECTION
   ============================================================ */

.fabric {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}

.fabric__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.fabric__visual {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.fabric__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.fabric__image-placeholder {
  width: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, var(--color-moss) 0%, var(--color-forest) 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.fabric__texture-overlay {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 15px,
    rgba(255, 255, 255, 0.03) 15px,
    rgba(255, 255, 255, 0.03) 16px
  );
}

.fabric__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fabric__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.fabric__body {
  margin-bottom: var(--space-lg);
}

.fabric__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.fabric__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fabric__stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1;
}

.fabric__stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* ============================================================
   16. PRODUCTS GRID STYLES
   ============================================================ */

.home-page .featured-products {
  padding: clamp(4.5rem, 3.625rem + 5vw, 8.75rem) 0;
  background-color: var(--color-ivory);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.home-page .featured-products__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.home-page .featured-products__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 0.6rem;
}

.home-page .featured-products__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-brown-dark);
}

.home-page .featured-products__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-brown-dark);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.4rem;
}

.home-page .featured-products__cta span {
  transition: transform var(--transition-fast);
}

.home-page .featured-products__cta:hover {
  color: var(--color-terracotta);
}

.home-page .featured-products__cta:hover span {
  transform: translateX(3px);
}

/* Editorial card variant used only on the homepage (card_variant="homepage") —
   the catalog/favorites pages keep the default .product-card styling untouched. */
.product-card.product-card--editorial {
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  /* Only the photo and the title are real links here — no whole-card click-through */
  cursor: default;
}

.product-card.product-card--editorial:hover {
  transform: none;
  box-shadow: none;
}

.product-card--editorial .product-card__image-link,
.product-card--editorial .product-card__name a {
  cursor: pointer;
}

.product-card--editorial .product-card__body {
  padding: 1rem 0 0;
  gap: 0.4rem;
}

.product-card--editorial .product-card__price {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-brown-dark);
}

.product-card--editorial .product-card__name {
  font-size: clamp(1.4rem, 1.1rem + 0.7vw, 1.875rem);
  line-height: 1.25;
}

.product-card--editorial .product-card__tag {
  background-color: rgba(248, 245, 239, 0.92);
  color: var(--color-brown-dark);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(42, 31, 22, 0.1);
}

.product-card--editorial .favorite-toggle {
  width: 44px;
  height: 44px;
}

@media (max-width: 767px) {
  .home-page .featured-products__header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Let the carousel bleed to the true viewport edge so a card can be sized
     as a share of the viewport (not just the remaining container width) and
     still leave the next card peeking in — the header/CTA above stay inset
     inside .container as usual. */
  .home-page .featured-products .product-carousel {
    margin-right: calc(-1 * var(--container-pad));
  }

  .home-page .featured-products .product-carousel__viewport {
    padding-right: var(--container-pad);
  }

  .home-page .featured-products .product-carousel__track {
    gap: 0.75rem;
  }

  .home-page .featured-products .product-carousel__item {
    width: 82vw;
  }

  /* Touch/swipe is the primary interaction on mobile; arrows aren't required here */
  .home-page .featured-products .product-carousel__arrow {
    display: none;
  }
}

/* ============================================================
   16b. PRODUCT CAROUSEL
   ============================================================ */

.product-carousel {
  position: relative;
}

.product-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.product-carousel__track {
  display: flex;
  gap: var(--space-md);
}

.product-carousel__item {
  flex: 0 0 auto;
  width: 82%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .product-carousel__item {
    width: calc((100% - var(--space-md)) / 2);
  }
}

@media (min-width: 1024px) {
  .product-carousel__item {
    width: calc((100% - 2 * var(--space-md)) / 3);
  }
}

@media (min-width: 1280px) {
  .product-carousel__item {
    width: calc((100% - 3 * var(--space-md)) / 4);
  }
}

.product-carousel__arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              opacity var(--transition-fast);
}

.product-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.product-carousel__arrow--prev {
  left: -6px;
}

.product-carousel__arrow--next {
  right: -6px;
}

@media (min-width: 1024px) {
  .product-carousel__arrow--prev {
    left: -22px;
  }
  .product-carousel__arrow--next {
    right: -22px;
  }
}

.product-carousel__arrow:hover:not(:disabled) {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-ivory);
}

.product-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ============================================================
   17. PRODUCT CARD STYLES
   ============================================================ */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42, 31, 22, 0.1);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-beige);
  display: block;
}

.product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.product-card:hover .gallery-slide.is-active {
  transform: scale(1.05);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-beige) 0%, var(--color-sand) 100%);
}

/* Gallery slides (product card + product detail) — stacked, one visible at a time */
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease, transform var(--transition-slow);
}

.gallery-slide.is-active {
  opacity: 1;
}

.product-card__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-sm);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.gallery-dot.is-active {
  background-color: var(--color-ivory);
  transform: scale(1.3);
}

.product-card__badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.product-card__tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ivory);
  background-color: var(--color-terracotta);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

.product-card__tag--discount {
  background-color: var(--color-brown);
}

.favorite-form {
  display: inline-flex;
}

.product-card .favorite-form {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
}

.favorite-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast);
}

.favorite-toggle:hover {
  transform: scale(1.08);
}

.favorite-toggle svg {
  width: 18px;
  height: 18px;
  transition: fill var(--transition-fast);
}

.favorite-toggle.is-active {
  color: var(--color-terracotta);
}

.favorite-toggle.is-active svg {
  fill: var(--color-terracotta);
}

.product-detail__favorite {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: var(--space-sm) 0 var(--space-md);
}

.product-detail__favorite .favorite-toggle {
  width: 44px;
  height: 44px;
  background-color: var(--color-beige);
}

.product-detail__favorite-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.product-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.product-card__collection {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-card__name a:hover {
  color: var(--color-terracotta);
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-card__price {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-terracotta);
}

.product-card__old-price {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card__discount-percent {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-terracotta);
}

.product-card__add-btn-form {
  margin-top: auto;
  padding-top: var(--space-xs);
}

.product-card__add-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
}

/* ============================================================
   17b. USP STRIP
   ============================================================ */

.usp-strip {
  padding: var(--space-md) 0;
  background-color: var(--color-terracotta);
}

.usp-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.usp-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-ivory);
}

.usp-strip__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.usp-strip__icon--bird {
  width: 44px;
  height: auto;
}

.usp-strip__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .usp-strip__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ============================================================
   18. PHILOSOPHY SECTION
   ============================================================ */

.philosophy {
  padding: var(--space-2xl) 0;
  background-color: var(--color-forest);
}

.philosophy__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.philosophy__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-ivory);
  margin-bottom: var(--space-md);
}

.philosophy__attr {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: var(--space-md);
}

.philosophy__body {
  max-width: 600px;
  margin: 0 auto;
}

.philosophy__body p {
  color: var(--color-sand);
  line-height: 1.8;
}

/* ============================================================
   19. CTA SECTION
   ============================================================ */

.cta-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}

.cta-section__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.cta-section__sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* ============================================================
   20. FOOTER STYLES
   ============================================================ */

.site-footer {
  background-color: var(--color-brown-dark);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(248, 245, 239, 0.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
}

.footer__brand-img {
  width: 160px;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.footer__brand a:hover .footer__brand-img {
  opacity: 1;
}

.footer__brand-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(248, 245, 239, 0.75);
}

.footer__nav-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.75);
  margin-bottom: var(--space-sm);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav a {
  font-size: 0.9375rem;
  color: rgba(248, 245, 239, 0.75);
  transition: color var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-ivory);
}

.footer__email {
  display: inline-block;
  font-size: 0.9375rem;
  color: rgba(248, 245, 239, 0.75);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.footer__email:hover {
  color: var(--color-ivory);
}

.footer__contact-note {
  font-size: 0.8125rem;
  color: rgba(248, 245, 239, 0.75);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer__social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__social-link {
  font-size: 0.875rem;
  color: var(--color-sand);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-ivory);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.footer__social-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(248, 245, 239, 0.75);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-ivory);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(248, 245, 239, 0.4);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer__legal a {
  font-size: 0.8125rem;
  color: rgba(248, 245, 239, 0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--color-ivory);
}

/* ============================================================
   21. PAGE HERO STYLES (INNER PAGES)
   ============================================================ */

/* Delivery page */
.delivery-hero {
  padding-top: calc(var(--header-h) + 7rem);
  padding-bottom: 7rem;
  background-color: #5a6b57;
  position: relative;
  overflow: hidden;
}

.delivery-hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-item {
  position: absolute;
  width: 140px;
  height: auto;
  opacity: 0.18;
  filter: brightness(10);
}

.delivery-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--color-ivory);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.delivery-hero__sub p {
  color: rgba(248, 245, 239, 0.8);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.delivery-content {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--color-beige);
}

.delivery-content__inner {
  max-width: 720px;
}

.delivery-content__block {
  margin-bottom: var(--space-lg);
}

.delivery-image {
  width: 100%;
  line-height: 0;
}

.delivery-image__img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}

.page-hero {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background-color: var(--color-beige);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.page-hero__inner {
  max-width: 960px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-hero--compact {
  padding-top: calc(var(--header-h) + var(--space-md));
  padding-bottom: var(--space-md);
  background-color: var(--color-terracotta);
}

.page-hero--compact::after {
  background: rgba(248, 245, 239, 0.2);
}

.page-hero--compact .page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
  color: var(--color-ivory);
}

.page-hero__sub {
  max-width: 540px;
}

.page-hero__sub p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.empty-state-section {
  padding: var(--space-2xl) 0;
}

.empty-state {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.empty-state__text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.order-success__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

/* Checkout page */
.checkout-section {
  padding: var(--space-lg) 0 var(--space-2xl);
  background-color: var(--color-beige);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: start;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.checkout-form-card .contact-form {
  max-width: 560px;
}

.checkout-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background-color: var(--color-beige);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  line-height: 1.6;
}

.checkout-summary-card {
  position: sticky;
  top: calc(var(--header-h) + var(--space-sm));
}

.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.checkout-summary-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.checkout-summary-line__image {
  width: 56px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-beige);
}

.checkout-summary-line__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-summary-line__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.checkout-summary-line__title {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.checkout-summary-line__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.checkout-summary-line__price {
  font-size: 0.9375rem;
  color: var(--color-text);
  white-space: nowrap;
}

.checkout-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--color-text);
}

/* ============================================================
   22. ABOUT PAGE STYLES
   ============================================================ */

.about-story {
  padding: var(--space-xl) 0;
  background-color: var(--color-ivory);
}

.about-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.about-story__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

.about-story__body {
  max-width: 680px;
}

.about-values {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.value-item {
  padding: var(--space-md);
  background-color: var(--color-ivory);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-terracotta);
}

.value-item__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.value-item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   23. CATALOG PAGE STYLES
   ============================================================ */

.catalog-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-ivory);
}

.catalog-empty {
  text-align: center;
  padding: var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.catalog-empty__text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   24. PRODUCT DETAIL PAGE STYLES
   ============================================================ */

.product-detail {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background-color: var(--color-ivory);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.product-detail__gallery {
  position: relative;
}

.product-detail__main-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-beige);
}

.product-detail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail__discount {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
}

.product-detail__dots {
  bottom: var(--space-md);
}

.product-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-sand) 100%);
}

.product-gallery-placeholder span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-stone);
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-detail__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.product-detail__sku {
  font-size: 0.75rem;
  color: var(--color-stone);
}

.product-detail__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.product-detail__short-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.product-detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.product-detail__price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-terracotta);
}

.product-detail__old-price {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-detail__discount-percent {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-terracotta);
}

.product-detail__status {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.product-status--available {
  background-color: rgba(107, 124, 79, 0.12);
  color: var(--color-olive);
}

.product-status--coming_soon {
  background-color: rgba(181, 97, 74, 0.1);
  color: var(--color-terracotta);
}

.product-status--sold_out {
  background-color: rgba(168, 159, 145, 0.15);
  color: var(--color-stone);
}

.product-detail__cta {
  margin-top: var(--space-xs);
  align-self: flex-start;
}

.product-detail__info-block {
  background-color: var(--color-beige);
  border-radius: var(--radius-md);
}

.product-detail__info-block h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.product-detail__info-block p,
.product-detail__info-block .richtext {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Accordion (Состав / Уход / Доставка / Оплата / Описание) */
.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md);
  text-align: left;
}

.accordion__icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--color-stone);
  transition: transform var(--transition-fast);
}

.accordion__header[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}

.accordion__panel.is-open {
  grid-template-rows: 1fr;
}

.accordion__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.accordion__panel-inner > p,
.accordion__panel-inner > .richtext {
  padding: 0 var(--space-md) var(--space-md);
}

/* Size selector */
.size-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.size-selector__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.size-select-wrap {
  position: relative;
}

.size-select {
  width: 100%;
  padding: 0.875rem 2.75rem 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.size-select option:disabled {
  color: var(--color-stone);
}

.size-select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(181, 97, 74, 0.12);
}

.size-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--color-stone);
  border-bottom: 1.5px solid var(--color-stone);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: border-color var(--transition-fast);
}

.size-select-wrap.has-error .size-select {
  border-color: #c0392b;
}

.size-select-wrap.has-error::after {
  border-color: #c0392b;
}

.size-selector__error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background-color: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.22);
  border-radius: var(--radius-sm);
  color: #c0392b;
  font-size: 0.8125rem;
  animation: size-error-in 0.2s ease;
}

.size-selector__error[hidden] {
  display: none;
}

.size-selector__error svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

@keyframes size-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Thumbnail carousel (product detail gallery) */
.product-detail__thumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.product-detail__thumb-viewport {
  overflow-x: auto;
  scrollbar-width: none;
}

.product-detail__thumb-viewport::-webkit-scrollbar {
  display: none;
}

.product-detail__thumb-track {
  display: flex;
  gap: 0.5rem;
}

.product-detail__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail__thumb:hover {
  opacity: 0.85;
}

.product-detail__thumb.is-active {
  opacity: 1;
  border-color: var(--color-terracotta);
}

.thumb-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              opacity var(--transition-fast);
}

.thumb-arrow svg {
  width: 15px;
  height: 15px;
}

.thumb-arrow:hover:not(:disabled) {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-ivory);
}

.thumb-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 0.9375rem;
  width: 100%;
}

@media (min-width: 480px) {
  .btn--lg {
    width: fit-content;
  }
}

/* ============================================================
   24b. CART PAGE STYLES
   ============================================================ */

.cart-section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cart-line {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.cart-line__image {
  display: block;
  width: 90px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-beige);
}

.cart-line__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-line__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-line__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
}

.cart-line__title a {
  color: var(--color-text);
  text-decoration: none;
}

.cart-line__size,
.cart-line__price {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.cart-line__qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-line__qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

.cart-line__qty-input {
  width: 44px;
  height: 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.cart-line__qty-submit {
  font-size: 0.75rem;
  color: var(--color-terracotta);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-line__subtotal {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.cart-line__remove button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--color-stone);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cart-line__remove button:hover {
  color: var(--color-terracotta);
}

.cart-line__remove svg {
  width: 18px;
  height: 18px;
}

.cart-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.cart-summary__label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.cart-summary__total {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-right: auto;
}

.cart-summary__checkout {
  min-width: 220px;
}

@media (max-width: 480px) {
  .cart-summary {
    justify-content: space-between;
  }

  .cart-summary__checkout {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .cart-line {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "image body body"
      "image qty qty"
      "image subtotal remove";
  }

  .cart-line__image { grid-area: image; width: 64px; }
  .cart-line__body { grid-area: body; }
  .cart-line__qty { grid-area: qty; }
  .cart-line__subtotal { grid-area: subtotal; }
  .cart-line__remove { grid-area: remove; }
}

/* ============================================================
   25. CONTACT PAGE STYLES
   ============================================================ */

.contact-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-ivory);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-info__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.contact-info__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.contact-info__value {
  font-size: 1rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.contact-info__value:hover {
  color: var(--color-terracotta);
}

.contact-info__note {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.contact-fallback {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-fallback p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.contact-thank-you {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
  text-align: center;
}

/* ============================================================
   25a. THANK YOU LANDING STYLES
   ============================================================ */

.thank-you-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--space-lg)) 0 var(--space-xl);
  background-color: var(--color-beige);
  overflow: hidden;
}

.thank-you-hero__critter {
  display: none;
}

.thank-you-hero__critter-img {
  display: block;
  height: clamp(220px, 32vw, 380px);
  width: auto;
}

.thank-you-hero__accent {
  position: absolute;
  width: 34px;
  height: auto;
  opacity: 0.85;
}

.thank-you-hero__critter--left .thank-you-hero__accent--sprig-1 {
  top: 10px;
  left: -6px;
  transform: rotate(-15deg);
}

.thank-you-hero__critter--left .thank-you-hero__accent--cone-1 {
  top: 45%;
  left: -18px;
  transform: rotate(12deg);
}

.thank-you-hero__critter--left .thank-you-hero__accent--sprig-2 {
  bottom: 20px;
  left: 20px;
  transform: rotate(25deg);
}

.thank-you-hero__critter--right .thank-you-hero__accent--cone-2 {
  top: 20px;
  right: -14px;
  transform: rotate(-12deg);
}

.thank-you-hero__critter--right .thank-you-hero__accent--sprig-3 {
  bottom: 30px;
  right: -8px;
  transform: rotate(-25deg);
}

.thank-you-hero__mobile-print {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-sm);
  margin: 0 auto var(--space-md);
}

.thank-you-hero__mobile-print img {
  width: 84px;
  height: auto;
}

.thank-you-hero__mirror {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  background-color: var(--color-beige);
  border: 2px solid var(--color-terracotta);
  border-radius: 50% / 16%;
}

.thank-you-hero__logo {
  height: 32px;
  width: auto;
  margin: 0 auto var(--space-sm);
  display: block;
}

.thank-you-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.thank-you-hero__text p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.thank-you-hero__text p:last-child {
  margin-bottom: 0;
}

.thank-you-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.thank-you-hero__home-link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.thank-you-hero__home-link:hover {
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

/* ============================================================
   26. FORM STYLES
   ============================================================ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="password"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(181, 97, 74, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-light);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-error {
  font-size: 0.8125rem;
  color: #c0392b;
  margin-top: 0.25rem;
}

.form-error--top {
  margin-bottom: var(--space-sm);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #c0392b;
}

.form-group.has-error .auth-input svg {
  color: #c0392b;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.auth-form__policy-link {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-form__policy-link:hover {
  color: var(--color-terracotta-light);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-terracotta);
}

.form-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: var(--space-sm) 0;
}

.form-note a {
  color: var(--color-terracotta);
}

.account-profile {
  max-width: 480px;
  margin: 0 auto;
}

.account-profile__list {
  margin-bottom: var(--space-md);
}

.account-profile__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
}

.account-profile__row dt {
  color: var(--color-text-muted);
}

.account-profile__row dd {
  color: var(--color-text);
  text-align: right;
}

.empty-state__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================================
   34. ACCOUNT PAGE (ЛИЧНЫЙ КАБИНЕТ)
   ============================================================ */

.page-hero--account .page-hero__inner {
  position: relative;
}

.page-hero__decor {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.page-hero__decor-tree {
  height: 56px;
  width: auto;
  opacity: 0.85;
}

.page-hero__decor-cone {
  height: 40px;
  width: auto;
  opacity: 0.85;
}

.account-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--color-beige);
}

.form-alert {
  max-width: 720px;
  margin: 0 auto var(--space-md);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.form-alert--success {
  background-color: rgba(107, 124, 79, 0.12);
  color: var(--color-moss);
  border: 1px solid rgba(107, 124, 79, 0.25);
}

.form-alert--error {
  background-color: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.account-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}

.account-nav {
  width: 100%;
  background-color: var(--color-ivory);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.9375rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.account-nav__link svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--color-terracotta);
}

.account-nav__link:hover {
  background-color: var(--color-beige);
}

.account-nav__logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.account-nav__logout svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.account-nav__logout:hover {
  color: #c0392b;
}

.account-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.account-card {
  background-color: var(--color-ivory);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  scroll-margin-top: calc(var(--header-h) + var(--space-sm));
}

.account-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.account-card__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.account-card .contact-form {
  max-width: 480px;
}

.account-empty {
  text-align: center;
  padding: var(--space-md) 0;
}

.account-empty__icon {
  width: 44px;
  height: auto;
  opacity: 0.7;
  margin: 0 auto var(--space-sm);
  display: block;
}

.account-empty__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

@media (min-width: 900px) {
  .account-layout {
    flex-direction: row;
  }

  .account-nav {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + var(--space-md));
  }
}

.legal-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
}

/* Django form widget overrides */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form input[type="password"],
.contact-form input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ============================================================
   27. REVEAL ANIMATION STYLES
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--stagger.is-visible {
  transition-delay: calc(var(--stagger, 0) * 0.12s);
}

.reveal--delay.is-visible {
  transition-delay: 0.2s;
}

/* ============================================================
   28. RESPONSIVE MEDIA QUERIES — 768px
   ============================================================ */

@media (min-width: 768px) {

  /* Header nav/icons/burger switch to desktop layout at 1024px — see block 29.
     Below that, mobile/tablet header (centered brand + burger) stays in effect
     to avoid the 768–903px icon-overflow bug. */

  /* Collections */
  .collections__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Features */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Fabric */
  .fabric__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  /* Products */
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* About story */
  .about-story__grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product detail */
  .product-detail__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ============================================================
   29. RESPONSIVE MEDIA QUERIES — 1024px
   ============================================================ */

@media (min-width: 1024px) {

  :root {
    --header-box-h: 80px;
  }

  /* Header: переключение на desktop-раскладку (лого слева, меню справа,
     иконки в отдельной колонке). Раньше срабатывало с 768px и на планшетах
     (768–903px) иконки избранного/аккаунта/корзины выезжали за viewport —
     до 1023px включительно остаётся mobile/tablet-шапка (центр. лого + burger). */
  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md);
  }

  .header__brand {
    grid-column: auto;
  }

  .header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
  }

  .header__icons {
    display: flex;
  }

  .header__burger {
    display: none;
    grid-column: auto;
    justify-self: auto;
  }

  /* Hard CSS failsafe: guarantee the drawer is gone at desktop widths even if
     a viewport change doesn't reset its JS state (e.g. a resize that isn't
     accompanied by a native 'resize' event). */
  .header__mobile-menu {
    display: none;
  }

  .header__nav-list {
    gap: 4.5rem;
  }

  /* Collections 3 columns */
  .collections__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Features 3 columns */
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Products 3 columns */
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Values 4 columns */
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Thank you: ёжик и заяц по краям, текст по центру */
  .thank-you-hero {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
  }

  .thank-you-hero__mobile-print {
    display: none;
  }

  .thank-you-hero__critter {
    display: block;
    position: absolute;
    bottom: 0;
  }

  .thank-you-hero__critter--left {
    left: clamp(-20px, 2vw, 40px);
  }

  .thank-you-hero__critter--right {
    right: clamp(-20px, 2vw, 40px);
  }

  .thank-you-hero__critter-img {
    height: clamp(260px, 34vw, 420px);
  }
}

/* ============================================================
   30. RESPONSIVE MEDIA QUERIES — 1280px
   ============================================================ */

@media (min-width: 1280px) {

  :root {
    --container-pad: 3rem;
  }

  /* Hero even bigger text */
  .hero__headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  /* Products 4 columns on large screens */
  .products__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Fabric section balanced */
  .fabric__grid {
    grid-template-columns: 5fr 4fr;
    gap: var(--space-xl);
  }
}

/* ============================================================
   31. UTILITY & MISC
   ============================================================ */

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* Selection styles */
::selection {
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
}

/* Scrollbar styling (Webkit) */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-beige);
}

::-webkit-scrollbar-thumb {
  background: var(--color-stone);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brown);
}

/* Image aspect ratio helpers */
.aspect-square { aspect-ratio: 1; }
.aspect-portrait { aspect-ratio: 4 / 5; }
.aspect-landscape { aspect-ratio: 16 / 9; }

/* ============================================================
   32. PRINT STYLES
   ============================================================ */

@media print {
  .announcement-bar,
  .site-header,
  .site-footer,
  .btn,
  .marquee-wrap {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* ============================================================
   33. AUTH SPLIT-SCREEN (LOGIN / REGISTER)
   ============================================================ */

.auth-split {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.auth-split__columns {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.auth-visual {
  position: relative;
  min-height: 42svh;
  background-size: cover;
  background-position: center;
  display: flex;
  overflow: hidden;
}

.auth-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 15, 0.55) 0%, rgba(20, 30, 15, 0.35) 50%, rgba(20, 30, 15, 0.65) 100%);
}

.auth-visual__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + var(--space-lg)) var(--space-md) var(--space-lg);
}

.auth-visual__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-ivory);
  margin-bottom: var(--space-sm);
}

.auth-visual__divider {
  width: 48px;
  height: 1px;
  background: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.auth-visual__tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(248, 245, 239, 0.85);
  max-width: 380px;
}

.auth-visual__watermark {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-sm);
  z-index: 2;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(248, 245, 239, 0.55);
}

/* Плашка преимуществ — отдельная полноширинная полоса под колонками, цвет отличается от формы (ivory) и от фото */
.auth-page-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  background: var(--color-terracotta);
  padding: 0.875rem var(--space-sm);
}

.auth-visual__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.auth-visual__feature svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-ivory);
}

.auth-visual__feature div {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1.35;
}

.auth-visual__feature strong {
  font-weight: 500;
  color: var(--color-ivory);
}

.auth-visual__feature span {
  color: rgba(248, 245, 239, 0.75);
}

.auth-form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-h) + var(--space-xl)) var(--space-md) var(--space-xl);
  background-color: var(--color-ivory);
}

.auth-form-panel__inner {
  width: 100%;
  max-width: 420px;
}

.auth-form-panel__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.auth-form-panel__sub {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.auth-form-panel__footer {
  text-align: center;
  margin-top: var(--space-md);
}

.auth-input {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input svg {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--color-text-light);
  pointer-events: none;
}

.auth-input input {
  padding-left: 2.75rem !important;
}

.auth-input__toggle {
  position: absolute;
  right: 0.875rem;
  display: flex;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-light);
}

.auth-input__toggle svg {
  position: static;
  width: 18px;
  height: 18px;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-checkbox--inline {
  align-items: center;
  font-size: 0.875rem;
}

.auth-form__forgot {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-form__forgot:hover {
  color: var(--color-terracotta);
}

.auth-form__submit {
  width: 100%;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-md);
}

@media (max-width: 480px) {
  .auth-form-grid {
    grid-template-columns: 1fr;
  }
}

/* На мобильной и планшетной версии фото убирается — форма сразу первым экраном */
@media (max-width: 1023.98px) {
  .auth-visual,
  .auth-page-features {
    display: none;
  }

  .auth-form-panel {
    padding-top: calc(var(--header-h) + var(--space-sm));
    padding-bottom: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .auth-split {
    height: 100svh;
  }

  .auth-split__columns {
    flex-direction: row;
  }

  .auth-visual {
    width: 50%;
    height: 100%;
  }

  .auth-visual__content {
    padding: var(--space-xl) var(--space-2xl) var(--space-xl) var(--space-xl);
  }

  .auth-form-panel {
    width: 50%;
    height: 100%;
    overflow-y: auto;
  }
}
