/* Homepage structure: composable Section variants, existing visual tokens. */
body.home {
  --section-space: 64px;
  --section-compact-space: 48px;
}
body.home .ds-section {
  padding-block: var(--section-space);
  margin-block: 0;
  background-color: var(--color-background);
  scroll-margin-top: var(--space-3);
}
body.home .ds-section--cream,
body.home .home-finder,
body.home .home-newsletter {
  background-color: var(--color-surface);
}
body.home .ds-section--compact {
  padding-block: var(--section-compact-space);
}
body.home .ds-section--full {
  width: 100%;
  max-width: none;
}
body.home .ds-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
body.home .ds-section-header > div {
  min-width: 0;
}
body.home .ds-section-header > a {
  flex-shrink: 0;
}
body.home .ds-section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.home .ds-section-header p {
  max-width: 65ch;
  margin: var(--space-2) 0 0;
}
body.home .home-hero {
  height: clamp(620px, 70vh, 760px);
  min-height: 620px;
  padding-block: 0;
  background-color: var(--color-surface-warm);
}
body.home .home-hero > .home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
}
body.home .home-hero-copy {
  max-width: 100%;
  min-width: 0;
}
body.home .home-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
body.home .home-trust {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: var(--section-compact-space);
}
body.home .home-trust > div {
  min-width: 0;
  align-items: center;
}
body.home .home-categories {
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.home .home-categories > a {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
body.home .home-categories img {
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}
body.home .home-categories > a > div {
  flex: 1;
  gap: var(--space-2);
}
body.home .home-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}
body.home .home-product {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.home .home-product-image {
  padding: 20px 20px 0;
}
body.home .home-product-image img {
  height: 300px;
  aspect-ratio: auto;
  object-fit: contain;
}
body.home .home-product-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  gap: 8px;
}
body.home .home-product h3 {
  font-size: 18px;
  line-height: 1.4;
  min-height: 0;
}
body.home .home-product-type {
  font-size: 14px;
  line-height: 1.5;
  min-height: 0;
  margin: 0;
}
body.home .home-product-notes {
  margin: 0;
  font-size: 14px;
}
body.home .home-product-price {
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
}
body.home .home-product-copy > .home-button {
  width: 100%;
  min-height: 48px;
  padding-block: 12px;
  font-size: 15px;
}
body.home .home-center {
  margin-top: var(--space-5);
}
body.home .home-finder > .home-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: center;
}
body.home .home-pills {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  justify-content: flex-end;
}
body.home .home-pills a {
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.home .home-story {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
}
body.home .home-story > img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
body.home .home-story > div {
  min-width: 0;
}
body.home .home-review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.home .home-newsletter {
  padding-block: var(--section-compact-space);
}
body.home .home-newsletter > .home-shell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.home .home-newsletter form {
  min-width: 0;
}
@media (min-width: 1600px) {
  body.home {
    --section-space: 64px;
  }
}
@media (max-width: 1200px) {
  body.home {
    --section-space: 64px;
    --page-gutter: 24px;
  }
  body.home .home-finder > .home-shell {
    grid-template-columns: 1fr;
  }
  body.home .home-pills {
    justify-content: flex-start;
  }
}
@media (max-width: 1000px) {
  body.home .home-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
  body.home .home-trust > div {
    padding: 0;
    border: 0;
  }
  body.home .home-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.home .home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.home .home-hero > .home-shell {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--space-3);
  }
}
@media (max-width: 900px) {
  body.home .home-newsletter > .home-shell {
    grid-template-columns: 1fr;
  }
  body.home .home-review-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  body.home {
    --section-space: 64px;
    --section-compact-space: 32px;
    --page-gutter: 16px;
  }
  body.home .ds-section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--space-4);
  }
  body.home .ds-section-header--center {
    align-items: center;
  }
  body.home .home-hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  body.home .home-hero > .home-shell {
    display: block;
    height: auto;
  }
  body.home .home-hero-copy {
    padding-block: var(--space-6);
  }
  body.home .home-hero > img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    order: 2;
  }
  body.home .home-categories {
    grid-template-columns: 1fr;
  }
  body.home .home-story {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  body.home .home-trust {
    gap: var(--space-3) var(--space-2);
  }
  body.home .home-trust > div {
    align-items: flex-start;
  }
}
@media (max-width: 350px) {
  body.home .home-products,
  body.home .home-trust {
    grid-template-columns: 1fr;
  }
}

/* One shared container; no nested fixed-width caps. */
body.home :is(.home-shell, .ds-container) {
  width: min(100% - 64px, 1360px);
  max-width: none;
  margin-inline: auto;
}
body.home #categorii {
  padding-block: 28px 0;
}
body.home #selectia-doty {
  padding-block: 36px 32px;
}
body.home .home-status:empty {
  display: none;
}
body.home .home-center {
  margin-top: 32px;
}
body.home .home-heading h2 {
  font-size: clamp(40px, 3.5vw, 52px);
}
body.home .home-story {
  padding-bottom: 0;
}
body.home .home-reviews {
  padding-top: 72px;
}
@media (max-width: 1366px) {
  body.home :is(.home-shell, .ds-container) {
    width: min(100% - 48px, 1280px);
  }
}
@media (max-width: 1200px) {
  body.home .home-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.home .home-product-image img {
    height: 280px;
  }
}
@media (max-width: 1023px) {
  body.home .home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  body.home :is(.home-shell, .ds-container) {
    width: min(100% - 32px, 100%);
  }
  body.home .home-products {
    gap: 24px 16px;
  }
  body.home .home-product-copy {
    padding: 16px;
  }
  body.home .home-product-image {
    padding: 16px 16px 0;
  }
  body.home .home-product-image img {
    height: 260px;
  }
  body.home .home-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  body.home .home-heading h2 {
    font-size: 36px;
  }
  body.home #categorii {
    padding-top: 24px;
  }
  body.home #selectia-doty {
    padding-top: 32px;
  }
}
@media (max-width: 419px) {
  body.home .home-products {
    grid-template-columns: 1fr;
  }
  body.home .home-product-copy {
    padding: 20px;
  }
  body.home .home-product-image img {
    height: 300px;
  }
}

body.home .home-product-price .doty-price-info {
  margin-top: 4px;
}

/* Adjacent section paddings add up to 64�80px, rather than doubling it. */
body.home .home-finder {
  padding-block: 40px 32px;
}
body.home .home-story {
  padding-top: 40px;
}
body.home .home-reviews {
  padding-bottom: 32px;
}
body.home .home-newsletter {
  padding-block: 32px;
}

/* Compact trust strip requested by the store owner. */
body.home .home-trust { padding-block: 12px; }
@media (max-width: 1000px) {
  body.home .home-trust { row-gap: 12px; }
}

/* Fragrance finder imagery shares the product-note assets. */
body.home .home-pills a { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 12px; padding: 12px 16px; }
body.home .home-pills a img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; margin-bottom: 4px; }

/* Refine the hero framing and keep the header search compact. */
body.home .home-hero h1 {
  font-size: clamp(3.0875rem, 5.7vw, 5.4625rem);
}
body.home .home-hero > img { object-position: center 20%; }
body.home .home-search input { min-height: 44px; padding: 10px 12px; font-size: 14px; }
body.home .home-search button { min-height: 44px; }
@media (min-width: 1024px) {
  body.home .home-search { flex: 0 1 240px; max-width: 240px; }
}

/* Let search fill the available space between navigation and account actions. */
@media (min-width: 1024px) {
  body.home .home-search { flex: 1 1 240px; max-width: none; }
}

/* A centered, narrower hero with room for the complete perfume bottle. */
@media (min-width: 768px) {
  body.home .home-hero {
    width: calc(100% - 64px);
    max-width: 1280px;
    margin-inline: auto;
    height: clamp(480px, 45vw, 600px);
    min-height: 480px;
  }
  body.home .home-hero > img { object-position: center 30%; }
  body.home .home-hero > .home-shell { width: calc(100% - 64px); gap: 24px; }
}

/* Slightly wider hero, preserving the current bottle composition. */
@media (min-width: 768px) {
  body.home .home-hero {
    width: calc(100% - 40px);
    max-width: 1360px;
  }
}

/* Category cards mirror the four main navigation groups. */
@media (min-width: 1200px) {
  body.home .home-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1199px) {
  body.home .home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact category heading after removing its eyebrow label. */
body.home #categorii { padding-top: 16px; }
body.home #categorii .home-heading { margin-bottom: 20px; }

/* Compact, explicit fragrance selection with a separate results action. */
body.home #aroma-ta { padding-block: 24px; }
body.home #aroma-ta > .home-shell { grid-template-columns: 1fr; gap: 16px; }
body.home #aroma-ta h2 { margin: 0 0 6px; }
body.home #aroma-ta p { margin: 0; }
body.home #aroma-ta .home-pills { justify-content: flex-start; gap: 12px; }
body.home .home-scent-choice {
  display: grid; grid-template-columns: 40px auto; column-gap: 10px;
  align-items: center; text-align: left; padding: 10px 14px;
  border: 2px solid var(--color-border); border-radius: 10px;
  background: #fff; color: var(--color-text); cursor: pointer;
  font: inherit; min-height: 64px;
}
body.home .home-scent-choice img { width: 40px; height: 40px; object-fit: contain; grid-row: span 2; }
body.home .home-scent-choice small { font-size: 12px; color: var(--color-text-muted); }
body.home .home-scent-choice[aria-pressed="true"] { border-color: #94583d; background: #faf5f0; }
body.home .home-scent-choice:focus-visible { outline: 2px solid #94583d; outline-offset: 3px; }
body.home .home-finder-submit { margin-top: 16px; }
body.home .home-finder-submit[hidden] { display: none; }
@media (max-width: 767px) {
  body.home #aroma-ta .home-pills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body.home .home-scent-choice { padding: 8px; column-gap: 6px; font-size: 13px; }
}

/* Center the fragrance finder as one balanced group. */
body.home #aroma-ta > .home-shell { text-align: center; }
body.home #aroma-ta .home-pills { justify-content: center; }
body.home #aroma-ta .home-finder-controls { text-align: center; }
@media (max-width: 767px) {
  body.home #aroma-ta .home-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  body.home #aroma-ta .home-scent-choice {
    flex: 0 1 calc(50% - 4px);
    min-width: 0;
    max-width: 190px;
  }
}

/* Larger, softly rounded fragrance-note images. */
body.home #aroma-ta .home-scent-choice { grid-template-columns: 52px auto; }
body.home #aroma-ta .home-scent-choice img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
@media (max-width: 767px) {
  body.home #aroma-ta .home-scent-choice { grid-template-columns: 48px auto; }
  body.home #aroma-ta .home-scent-choice img { width: 48px; height: 48px; }
}

/* Reduce the gap after the story by approximately thirty percent. */
body.home .home-story + .home-reviews { padding-top: 50px; }
body.home .home-story + .home-newsletter { padding-top: 22px; }

body.home #newsletter { background: #faf7f2; }
body.home #newsletter > .home-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
body.home #newsletter h2 { font-size: clamp(32px,3vw,44px); }
body.home #home-newsletter > div { display: flex; flex-wrap: nowrap; gap: 8px; }
body.home #newsletter-email { flex: 1; min-width: 0; width: 0; }
body.home #home-newsletter button { flex-shrink: 0; white-space: nowrap; }
body.home #home-newsletter .newsletter-consent { font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
body.home #home-newsletter .newsletter-consent a { text-decoration: underline; }
body.home #newsletter-confidentialitate { font-size: 12px; margin-top: 8px; }
body.home #newsletter-status:empty { display: none; }
body.home .doty-newsletter-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width: 1000px){body.home #newsletter > .home-shell { grid-template-columns: 1fr; gap: 20px; }}
@media(max-width: 480px){body.home #home-newsletter button { font-size: 12px; padding-inline: 10px; } body.home #newsletter-email { font-size: 13px; padding-inline: 10px; }}

body.home #home-newsletter > div { flex-direction: row; }
body.home #home-newsletter button { width: auto; }
body.home #newsletter > .home-shell > div { min-width: 0; }
