/* Homepage-only layout; the catalog and product pages keep their own styles. */
.home-page .main-content { padding-block: 24px 56px; }
.home-page .header-search { display: none; }
.home-page .header-row { justify-content: space-between; }
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 238px;
  padding: clamp(22px, 2.4vw, 34px);
  overflow: hidden;
  border: 1px solid #e7dcda;
  border-radius: 22px;
  background: linear-gradient(110deg, #fcece8, #fff8f4 38%, #fffdfc 78%);
}
.home-hero-simple { grid-template-columns: minmax(0, 1fr); }
.home-hero-copy { position: relative; z-index: 2; min-width: 0; }
.home-hero h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(27px, 3.2vw, 43px);
  font-weight: 800;
  letter-spacing: -.9px;
  line-height: 1.5;
}
.home-hero h1 em { color: var(--red-dark); font-style: normal; }
.home-hero-copy > p { margin: 0 0 22px; color: #687382; font-size: 14px; }
.home-search-form {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 8px;
  border: 1px solid #e1e3e6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 9px 26px #60413c0c;
  transition: border-color .18s, box-shadow .18s;
}
.home-search-form:focus-within { border-color: #a9bac8; box-shadow: 0 0 0 3px #58728b12; }
.home-category-control {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-inline-end: 7px;
  border-inline-end: 1px solid var(--line);
}
.home-category-select-wrap { position: relative; display: inline-flex; align-items: center; max-width: 160px; }
.home-category-select {
  appearance: none;
  -webkit-appearance: none;
  field-sizing: content;
  width: auto;
  max-width: 160px;
  min-width: 0;
  height: 40px;
  padding-inline: 8px 27px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}
.home-chevron { position: absolute; inset-inline-end: 8px; width: 14px; height: 14px; pointer-events: none; color: #526579; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-arrow { flex: 0 0 auto; display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-query-field { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-query-field > svg { flex: 0 0 21px; width: 21px; height: 21px; fill: none; stroke: #7c8794; stroke-width: 1.7; stroke-linecap: round; }
.home-query-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.home-query-field input::placeholder { color: #929aa4; }
.home-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s;
}
.home-search-submit:hover { background: var(--red-dark); }
.home-search-submit .home-arrow { width: 17px; height: 17px; }
.home-quick-links { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.home-quick-links > span { color: var(--muted); font-size: 11px; margin-inline-end: 3px; }
.home-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid #ebdeda;
  border-radius: 7px;
  background: #fffdfa;
  color: #655d5b;
  font-size: 11px;
  transition: background .18s, border-color .18s, color .18s;
}
.home-quick-links .home-arrow { color: #8d9aa6; width: 13px; height: 13px; }
.home-quick-links a:hover { border-color: #e0b5b1; background: #fff; color: var(--red-dark); }

.home-hero-art {
  position: relative;
  align-self: stretch;
  min-height: 205px;
  direction: ltr;
  pointer-events: none;
}
.home-art-ring { position: absolute; display: block; border: 1px solid #dd9b902f; border-radius: 50%; }
.home-art-ring-outer { inset: -25% 0 -34% 3%; }
.home-art-ring-inner { inset: -7% 13% -15% 17%; }
.home-art-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34%;
  min-width: 112px;
  max-width: 155px;
  aspect-ratio: 1.14;
  border: 1px solid #e8e0dd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px #713d3711;
}
.home-art-tile svg { width: 90%; height: 85%; }
.home-art-tile-1 { z-index: 2; left: 12%; top: 21%; transform: rotate(-8deg); }
.home-art-tile-2 { z-index: 3; left: 43%; top: 0; transform: rotate(8deg); }
.home-art-tile-3 { z-index: 4; left: 47%; top: 39%; transform: rotate(-5deg); }
.home-art-compare {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  left: 29%;
  bottom: 0;
  width: 46px;
  height: 46px;
  border: 5px solid #fff4ee;
  border-radius: 15px;
  background: var(--red);
  box-shadow: 0 7px 20px #b04b4830;
}
.home-art-compare svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.home-category-section, .home-featured-section { margin-top: 32px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.home-section-heading h2 { margin: 0; color: var(--ink); font-size: 19px; font-weight: 750; }
.home-section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.home-section-link:hover { color: var(--red-dark); border-color: #deaaa9; }
.home-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-category-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 100px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.home-category-card:hover { transform: translateY(-2px); border-color: #d9b5b2; box-shadow: 0 6px 19px #2437460a; }
.home-category-art { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 11px; background: #f4f6f8; }
.home-category-art .product-visual { width: 100%; height: 100%; }
.home-category-art .product-render { width: 100%; height: 100%; }
.home-category-label { min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: start; }
.home-category-label strong { color: var(--ink); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.home-category-label small { color: var(--muted); font-size: 11px; line-height: 1.5; }

.home-featured-actions { display: flex; align-items: center; gap: 9px; }
.home-rail-controls { display: flex; gap: 6px; }
.home-rail-controls[hidden] { display: none; }
.home-rail-controls button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
}
.home-rail-controls button:disabled { opacity: .35; cursor: default; }
.home-rail-controls button:not(:disabled):hover { color: var(--red-dark); border-color: #deaaa9; }
.home-page .home-product-rail {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 6);
  justify-content: safe center;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #d5dce2 transparent;
}
.home-product-rail .product-card { min-width: 0; scroll-snap-align: start; }
.home-hero a:focus-visible, .home-category-card:focus-visible, .home-section-link:focus-visible,
.home-search-submit:focus-visible, .home-category-select:focus-visible,
.home-rail-controls button:focus-visible, .home-product-rail:focus-visible {
  outline: 2px solid #7892a8;
  outline-offset: 3px;
}
.home-category-select:focus-visible { outline-offset: -2px; }

@media (max-width: 1180px) {
  .home-hero { grid-template-columns: minmax(0, 1.8fr) minmax(205px, 1fr); padding: 24px; gap: 15px; }
  .home-hero-simple { grid-template-columns: minmax(0, 1fr); }
  .home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .home-product-rail { grid-auto-columns: calc((100% - 48px) / 5); }
}
@media (max-width: 920px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(160px, .4fr); }
  .home-hero-simple { grid-template-columns: minmax(0, 1fr); }
  .home-hero-art { min-height: 190px; }
  .home-art-tile { min-width: 88px; }
  .home-search-form { grid-template-columns: max-content minmax(0, 1fr) auto; }
  .home-category-select, .home-category-select-wrap { max-width: 135px; }
  .home-search-submit { padding-inline: 12px; }
  .home-page .home-product-rail { grid-auto-columns: calc((100% - 36px) / 4); }
}
@media (max-width: 760px) {
  .home-page .main-content { padding-block: 16px 38px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 22px 17px; border-radius: 16px; }
  .home-hero-art { display: none; }
  .home-hero h1 { font-size: 28px; }
  .home-hero-copy > p { font-size: 12px; margin-bottom: 16px; }
  .home-search-form { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; }
  .home-category-control { grid-column: 1 / -1; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 0 0 3px; }
  .home-category-select { height: 33px; max-width: 100%; }
  .home-query-field { gap: 6px; padding-inline-start: 3px; }
  .home-query-field input { font-size: 12px; }
  .home-search-submit { min-height: 40px; font-size: 12px; gap: 7px; }
  .home-quick-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 13px; }
  .home-quick-links > * { flex: none; }
  .home-category-section, .home-featured-section { margin-top: 24px; }
  .home-section-heading { gap: 8px; margin-bottom: 11px; }
  .home-section-heading h2 { font-size: 16px; }
  .home-section-link { font-size: 10px; padding: 6px 9px; gap: 5px; }
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-category-card { grid-template-columns: 56px minmax(0, 1fr); gap: 7px; min-height: 77px; padding: 8px; border-radius: 11px; }
  .home-category-art { width: 56px; height: 56px; border-radius: 8px; }
  .home-category-label strong { font-size: 11px; }
  .home-category-label small { font-size: 10px; }
  .home-page .home-product-rail { grid-template-columns: none; grid-auto-columns: calc((100% - 22px) / 3); gap: 11px; }
  .home-rail-controls button { width: 30px; height: 30px; font-size: 16px; }
}
@media (max-width: 520px) {
  .home-page .home-product-rail { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .home-hero h1 { font-size: 24px; letter-spacing: -.5px; }
  .home-category-card { grid-template-columns: 48px minmax(0, 1fr); gap: 6px; }
  .home-category-art { width: 48px; height: 48px; }
  .home-featured-actions { gap: 5px; }
  .home-rail-controls { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-category-card, .home-search-form, .home-search-submit,
  .home-quick-links a, .home-section-link { transition: none; }
}
