/* =========================================================================
   HOMEPAGE
   Loaded only on the homepage (pageCss: 'home'), after store.css.
   ========================================================================= */

.hm-eyebrow { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.6rem; }
.hm-h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-primary); }
.hm-sec { padding: clamp(3rem, 6vw, 5rem) 0; }
.hm-sec--tint { background: #fff; border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.hm-head__aside { max-width: 42ch; color: var(--color-text-muted); font-size: 0.92rem; }
.hm-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--color-primary); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--color-accent); padding-bottom: 2px; }
.hm-link:hover { color: var(--color-accent); }
.hm-note { color: var(--color-text-muted); margin: -0.75rem 0 1.5rem; max-width: 70ch; }
.hm-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .hm-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hm-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* Hero */
.hm-hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); background:
  radial-gradient(900px 420px at 85% 10%, rgba(217, 164, 126, 0.18), transparent 60%),
  linear-gradient(180deg, #F7F5F0 0%, #EFECE5 100%); }
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hm-hero__h { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--color-primary); max-width: 14ch; }
.hm-hero__lede { margin-top: 1.4rem; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--color-text-muted); max-width: 54ch; line-height: 1.65; }
.hm-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hm-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); font-size: 0.9rem; color: var(--color-text-muted); }
.hm-hero__facts li { display: flex; align-items: center; gap: 0.5rem; }
.hm-hero__facts li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; flex-shrink: 0; }
.hm-hero__facts strong { color: var(--color-primary); font-weight: 700; }

.hm-hero__product { display: block; position: relative; text-decoration: none; color: inherit; }
.hm-hero__img { display: block; aspect-ratio: 1; border-radius: 28px; background: #fff; box-shadow: var(--shadow-pop); overflow: hidden; }
.hm-hero__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.hm-hero__card { position: absolute; left: -1.5rem; bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.2rem; max-width: 300px; padding: 1rem 1.2rem; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); backdrop-filter: blur(6px); }
.hm-hero__brand { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); }
.hm-hero__title { font-weight: 700; color: var(--color-primary); line-height: 1.3; }
.hm-hero__price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1.2rem; font-weight: 800; color: var(--color-text); margin-top: 0.3rem; }
.hm-hero__price span { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--color-accent); }

.hm-hero__mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hm-hero__tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; background: #fff; border: 1px solid var(--color-border-light); border-radius: 22px; color: var(--color-primary); font-weight: 700; font-size: 0.88rem; box-shadow: var(--shadow-vault); }
.hm-hero__tile:nth-child(2n) { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.hm-hero__tile:nth-child(3) { background: var(--color-accent-soft); }
@media (max-width: 900px) {
  .hm-hero__grid { grid-template-columns: 1fr; }
  .hm-hero__card { left: 1rem; bottom: 1rem; right: 1rem; max-width: none; }
  .hm-hero__mosaic { gap: 0.6rem; }
  .hm-hero__tile { border-radius: 16px; font-size: 0.78rem; }
}

/* Departments */
.hm-depts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hm-dept { display: flex; align-items: center; gap: 1.25rem; height: 100%; padding: 1.1rem; background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hm-dept:hover { border-color: var(--color-border); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.hm-dept__media { flex-shrink: 0; width: 104px; height: 104px; border-radius: var(--radius-md); background: var(--color-bg-photo); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hm-dept__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.hm-dept__icon { color: var(--color-primary); }
.hm-dept__body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.hm-dept__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--color-primary); letter-spacing: -0.01em; }
.hm-dept__desc { font-size: 0.86rem; color: var(--color-text-muted); line-height: 1.45; }
.hm-dept__go { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.3rem; font-size: 0.84rem; font-weight: 700; color: var(--color-accent); }
@media (max-width: 1080px) { .hm-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hm-depts { grid-template-columns: 1fr; gap: 0.6rem; }
  .hm-dept__media { width: 76px; height: 76px; }
}

/* Budget and brands */
.hm-find { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; }
.hm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.hm-chips a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--color-primary); text-decoration: none; transition: border-color .15s, background .15s; }
.hm-chips a:hover { border-color: var(--color-primary); }
.hm-chips span { font-size: 0.76rem; font-weight: 600; color: var(--color-text-faint); }
@media (max-width: 900px) { .hm-find { grid-template-columns: 1fr; gap: 2rem; } }

/* Commitments */
.hm-commit { background: var(--color-primary); color: #D5DADC; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.hm-commit__h { color: #fff; margin-bottom: 2rem; }
.hm-commit__grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hm-commit__grid a { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1.4rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg); color: inherit; text-decoration: none; transition: background .2s, border-color .2s; }
.hm-commit__grid a:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }
.hm-commit__grid strong { color: #fff; font-size: 1.05rem; }
.hm-commit__grid span { font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 1024px) { .hm-commit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hm-commit__grid { grid-template-columns: 1fr; } }

/* Buying guides */
.hm-guides { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hm-guide { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.hm-guide:hover { border-color: var(--color-border); box-shadow: var(--shadow-card); }
.hm-guide__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--color-accent-soft); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; }
.hm-guide__dept { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); }
.hm-guide__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--color-primary); }
.hm-guide__lead { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.hm-guide__go { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: auto; padding-top: 0.5rem; font-weight: 700; font-size: 0.88rem; color: var(--color-accent); }
@media (max-width: 1024px) { .hm-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hm-guides { grid-template-columns: 1fr; } }

/* Newsletter */
.hm-news { background: var(--color-accent-soft); border-top: 1px solid #EBD6C9; padding: clamp(2.75rem, 5vw, 4rem) 0; }
.hm-news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hm-news__h { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; color: var(--color-primary); letter-spacing: -0.02em; }
.hm-news__text { margin-top: 0.6rem; color: var(--color-text-muted); }
.hm-news__label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.4rem; }
.hm-news__row { display: flex; gap: 0.5rem; }
.hm-news__input { flex: 1; min-width: 0; height: 50px; padding: 0 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); font: inherit; background: #fff; }
.hm-news__input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-glow); }
.hm-news__row .btn { height: 50px; }
.hm-news__fine { margin-top: 0.6rem; font-size: 0.8rem; color: var(--color-text-faint); }
.hm-news__fine a { color: inherit; text-decoration: underline; }
.hm-news__ok { font-weight: 700; color: var(--color-green); }
.hm-news__err { font-weight: 700; color: var(--color-red); }
@media (max-width: 820px) {
  .hm-news__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hm-news__row { flex-direction: column; }
}
@media (max-width: 640px) { .hm-hero__mosaic { display: none; } }
