/* Soft Living · focused homepage cleanup v1
   Loaded after styles.css so it does not alter product, shop, cart, checkout or backend rules.
   Uses the existing --serif and --sans font system; no new font dependencies. */

/* Photo-led hero: current photographic asset preserved, with a compact editorial text panel. */
.home-page .home-hero {
  display: grid;
  grid-template-areas: "copy media";
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  height: clamp(390px, 31vw, 480px);
  min-height: 0;
  max-height: 480px;
  overflow: hidden;
  background: #241f1a;
}
.home-page .home-hero-copy {
  grid-area: copy;
  background: #241f1a;
  color: #f7f1e9;
  padding: clamp(30px, 3.8vw, 66px) clamp(28px, 4.3vw, 70px);
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}
.home-page .home-hero .ui-kicker {
  color: #d8bf98;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .19em;
  margin: 0 0 19px;
}
.home-page .home-hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.15vw, 52px);
  line-height: 1.21;
  letter-spacing: -.025em;
  max-width: 520px;
  margin: 0;
  color: #fffaf3;
  text-wrap: pretty;
}
.home-page .home-hero-copy h1 em { color: #dec6a2; font-style: italic; }
.home-page .home-hero-copy > p {
  margin: 20px 0 25px;
  max-width: 430px;
  font-size: clamp(13px, 1.13vw, 15px);
  line-height: 1.72;
  color: #e1d9cd;
}
.home-page .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; width: 100%; }
.home-page .hero-actions > .button {
  font-family: var(--sans);
  min-height: 45px;
  padding: 12px 19px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .045em;
  font-weight: 600;
  transform: none;
  white-space: nowrap;
  flex: 0 1 auto;
}
.home-page .hero-actions .hero-shop { background: #e3c9a2; border-color: #e3c9a2; color: #241f1a; }
.home-page .hero-actions .hero-shop:hover { background: #efd9b8; border-color: #efd9b8; }
.home-page .hero-actions .hero-visit {
  display: inline-flex;
  color: #f7f1e9;
  background: transparent;
  border: 1px solid rgba(248,239,225,.6);
}
.home-page .hero-actions .hero-visit:hover { border-color: #f7f1e9; background: rgba(255,255,255,.07); }
.home-page .home-hero-media {
  grid-area: media;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  background: #37302a;
}
.home-page .home-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transition: none;
}
.home-page .home-hero:hover .home-hero-media img { transform: none; }
.home-page .hero-category-links { display: none; }

/* The separate three-box reassurance strip has been removed from HTML.
   Collections now follow directly after the hero. */
.home-page .categories { padding-top: clamp(44px, 5.5vw, 68px); padding-bottom: clamp(48px, 6vw, 80px); }
.home-page .categories .section-heading { align-items: flex-end; margin-bottom: 24px; }
.home-page .categories .section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.025em;
}
.home-page .category-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-template-rows: 1fr;
  gap: clamp(10px, 1.5vw, 20px);
}
.home-page .category-card,
.home-page .category-card-large {
  position: relative;
  grid-column: auto;
  grid-row: auto;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.03;
  background: #eae6e0;
  color: #2b2620;
}
.home-page .category-card img {
  position: absolute;
  inset: 0 0 62px;
  width: 100%;
  height: calc(100% - 62px);
  object-fit: cover;
  filter: none;
}
.home-page .category-card:hover img { filter: none; transform: scale(1.02); }
.home-page .category-shade { display: none; }
.home-page .category-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  padding: 12px 17px;
  background: #f3efe9;
  color: #2b2620;
  display: flex;
  align-items: center;
}
.home-page .category-copy > span,
.home-page .category-copy > small { display: none; }
.home-page .category-copy h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.018em;
  margin: 0;
  color: #2b2620;
}

@media (max-width: 900px) {
  .home-page .home-hero {
    grid-template-areas: "copy media";
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    height: 410px;
    max-height: none;
    min-height: 0;
  }
  .home-page .home-hero-copy { padding: 34px 28px; background: #241f1a; }
  .home-page .home-hero-copy h1 { font-size: clamp(31px, 4.4vw, 39px); }
  .home-page .home-hero-copy > p { color: #e1d9cd; margin: 17px 0 21px; font-size: 13px; }
  .home-page .hero-actions { flex-wrap: wrap; gap: 9px; }
  .home-page .hero-actions > .button { min-height: 44px; flex: 0 1 auto; font-size: 12px; }
  .home-page .home-hero-media { height: 100%; min-height: 0; max-height: none; }
  .home-page .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .home-page .category-card,.home-page .category-card-large { min-height: 0; aspect-ratio: .91; }
}
@media (max-width: 640px) {
  .home-page .home-hero {
    display: grid;
    grid-template-areas: "media" "copy";
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: 250px auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .home-page .home-hero-media {
    grid-area: media;
    height: 250px;
    min-height: 0;
    max-height: none;
  }
  .home-page .home-hero-media img { object-position: center 47%; }
  .home-page .home-hero-copy { grid-area: copy; padding: 30px 23px 32px; }
  .home-page .home-hero-copy h1 { font-size: clamp(30px, 8vw, 38px); line-height: 1.22; max-width: 520px; }
  .home-page .home-hero .ui-kicker { font-size: 10px; margin-bottom: 12px; }
  .home-page .home-hero-copy > p { font-size: 13px; margin: 14px 0 19px; }
  .home-page .hero-actions { gap: 9px; flex-wrap: wrap; }
  .home-page .hero-actions > .button { flex: 1 1 165px; min-height: 45px; padding: 11px 13px; font-size: 11px; text-align: center; }
  .home-page .categories { padding-top: 39px; padding-bottom: 50px; }
  .home-page .categories .section-heading h2 { font-size: clamp(29px, 6.5vw, 34px); line-height: 1.23; }
  .home-page .category-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 12px; }
  .home-page .category-card,.home-page .category-card-large { min-height: 0; aspect-ratio: .86; }
  .home-page .category-card:last-child { grid-column: 1 / -1; aspect-ratio: 1.7; }
  .home-page .category-card img { height: calc(100% - 54px); bottom: 54px; }
  .home-page .category-copy { height: 54px; padding: 10px 12px; }
  .home-page .category-copy h3 { font-size: 22px; }
}
@media (max-width: 360px) {
  .home-page .hero-actions > .button { flex: 1 1 100%; }
  .home-page .home-hero-copy { padding-inline: 18px; }
}

/* Flagship collection hierarchy — 4 equal editorial pillars and one dedicated service feature. */
.home-page .flagship-category-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(10px,1.6vw,22px)!important;grid-template-rows:unset!important;}
.home-page .flagship-category-grid .category-card{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;aspect-ratio:auto!important;background:transparent!important;color:#28231f!important;overflow:visible!important;position:relative!important;}
.home-page .flagship-category-grid .category-card img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/5!important;object-fit:cover!important;object-position:center!important;transition:filter .25s ease!important;}
.home-page .flagship-category-grid .category-card:hover img{transform:none!important;filter:brightness(.95)!important;}
.home-page .flagship-category-grid .category-copy{position:static!important;padding:14px 0 0!important;min-width:0!important;left:auto!important;right:auto!important;bottom:auto!important;background:transparent!important;color:#28231f!important;}
.home-page .flagship-category-grid .category-copy h3{font:400 clamp(22px,2.2vw,30px)/1.15 var(--serif)!important;margin:0 0 6px!important;letter-spacing:-.02em!important;}
.home-page .flagship-category-grid .category-copy p{display:block!important;font:400 13px/1.5 var(--sans)!important;color:#655c54!important;margin:0!important;}
.flagship-mattress-feature{margin:clamp(45px,6vw,96px) 0 0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;min-height:370px;background:#ebe5dc;color:#2e2923;}
.flagship-mattress-feature-copy{padding:clamp(30px,5vw,75px);max-width:650px;}
.flagship-mattress-feature .ui-kicker{font:700 11px/1.4 var(--sans);letter-spacing:.18em;color:#8b6a43;}
.flagship-mattress-feature h2{font:400 clamp(34px,3.55vw,56px)/1.12 var(--serif);letter-spacing:-.028em;margin:14px 0 18px;}
.flagship-mattress-feature p{font:400 clamp(14px,1.2vw,17px)/1.75 var(--sans);color:#575046;margin:0 0 25px;max-width:490px;}
.flagship-mattress-feature-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;}
.flagship-mattress-feature-actions .button{min-height:49px;display:inline-flex;align-items:center;padding-inline:23px;}
.flagship-mattress-feature-actions span{font:500 12px var(--sans);color:#7b6953;}
.flagship-mattress-feature>img{display:block;width:100%;height:100%;min-height:370px;object-fit:cover;}
@media(max-width:850px){
 .home-page .flagship-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 14px!important;}
 .home-page .flagship-category-grid .category-card img{aspect-ratio:4/5!important;}
 .home-page .flagship-category-grid .category-copy h3{font-size:clamp(19px,4vw,27px)!important;}
 .home-page .flagship-category-grid .category-copy p{font-size:12px!important;line-height:1.55!important;}
 .flagship-mattress-feature{grid-template-columns:1fr;}
 .flagship-mattress-feature>img{height:290px;min-height:0;}
}
@media(max-width:380px){.home-page .flagship-category-grid{gap:19px 10px!important;}.home-page .flagship-category-grid .category-copy h3{font-size:19px!important;}}


/* Homepage editorial simplification: flagship review v2 */
.home-page .categories{padding-top:clamp(38px,4.6vw,64px);padding-bottom:clamp(34px,4vw,54px)}
.home-page .categories .section-heading{margin-bottom:clamp(18px,2.5vw,28px)}
.home-page .flagship-category-grid{gap:clamp(12px,1.8vw,23px)!important}
.home-page .flagship-category-grid .category-card img{aspect-ratio:4/4.25!important;object-fit:cover!important}
.home-page .flagship-category-grid .category-copy h3{font-size:clamp(22px,2.15vw,29px)!important}
.home-page .flagship-category-grid .category-copy p{font-size:13px!important;line-height:1.55!important}
.home-page .flagship-mattress-feature{margin-top:clamp(27px,4vw,55px);min-height:315px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);background:#f0eae1}
.home-page .flagship-mattress-feature-copy{padding:clamp(26px,4vw,55px)}
.home-page .flagship-mattress-feature>img{min-height:315px;max-height:365px;object-fit:cover}
.home-page .featured{padding-top:clamp(45px,5vw,68px);padding-bottom:clamp(45px,5vw,68px)}
.home-page .featured .section-heading{margin-bottom:22px}
.home-page .featured .section-heading h2{font-size:clamp(30px,2.7vw,40px);line-height:1.2}
.home-page .home-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.5vw,20px)}
.home-page .home-product-grid .product-card-media{aspect-ratio:4/4.25;overflow:hidden;background:#f7f5f1}
.home-page .home-product-grid .product-card-body{padding-top:12px}
.home-page .home-product-grid .product-card-action{margin-top:9px}
.home-page .home-browse-all{text-align:center;margin-top:26px}
.home-page .home-browse-all .button{min-width:200px;min-height:46px}
.home-page .boutique-preview{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);min-height:250px;margin:0 auto clamp(42px,5vw,70px);background:#f0eee8}
.home-page .boutique-preview-image{min-height:250px;max-height:295px;overflow:hidden}
.home-page .boutique-preview-image img{width:100%;height:100%;min-height:250px;object-fit:cover;object-position:center}
.home-page .boutique-preview-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:clamp(24px,3.3vw,52px)}
.home-page .boutique-preview-copy .ui-kicker{font-size:11px;letter-spacing:.14em;color:#806344}
.home-page .boutique-preview-copy h2{font:400 clamp(26px,2.75vw,40px)/1.2 var(--serif);letter-spacing:-.025em;margin:10px 0 10px}
.home-page .boutique-preview-copy>p{font:400 14px/1.65 var(--sans);max-width:530px;margin:0;color:#554f46}
.home-page .boutique-preview-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:20px}
.home-page .boutique-preview-copy p.boutique-preview-hours{margin-top:18px;font:400 12px/1.5 var(--sans);color:#655d52}
@media(max-width:850px){
 .home-page .flagship-mattress-feature{grid-template-columns:1fr}
 .home-page .flagship-mattress-feature>img{min-height:0;max-height:none;height:260px}
 .home-page .home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-page .boutique-preview{grid-template-columns:1fr}
 .home-page .boutique-preview-image,.home-page .boutique-preview-image img{min-height:0;height:220px;max-height:220px}
}
@media(max-width:640px){
 .home-page .categories{padding-top:36px;padding-bottom:34px}
 .home-page .flagship-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 12px!important}
 .home-page .flagship-category-grid .category-card{grid-column:auto!important}
 .home-page .flagship-category-grid .category-card img{aspect-ratio:4/4.45!important}
 .home-page .flagship-category-grid .category-copy h3{font-size:clamp(19px,5vw,23px)!important}
 .home-page .flagship-category-grid .category-copy p{font-size:12px!important}
 .home-page .flagship-mattress-feature{margin-top:26px}
 .home-page .flagship-mattress-feature-copy{padding:27px 22px 30px}
 .home-page .flagship-mattress-feature h2{font-size:clamp(34px,9vw,44px)}
 .home-page .featured{padding-top:45px;padding-bottom:40px}
 .home-page .featured .section-heading h2{font-size:clamp(29px,8vw,37px)}
 .home-page .home-product-grid{gap:25px 12px}
 .home-page .home-product-grid .product-card-media{aspect-ratio:4/5}
 .home-page .boutique-preview{margin-bottom:38px}
 .home-page .boutique-preview-copy{padding:25px 21px 28px}
 .home-page .boutique-preview-copy h2{font-size:31px}
 .home-page .boutique-preview-actions{gap:13px}
}

/* Structural fixes: editorial tiles participate in normal document flow. */
.home-page .flagship-category-grid .category-card img{
  position:static!important;
  inset:auto!important;
  height:auto!important;
  width:100%!important;
  flex:none!important;
}
.home-page .flagship-category-grid .category-copy{
  display:block!important;
  position:static!important;
  flex:none!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  align-items:unset!important;
  inset:auto!important;
}
.home-page .flagship-category-grid .category-copy h3{display:block!important;}
.home-page .boutique-preview-image{height:270px;min-height:0;max-height:none;}
.home-page .boutique-preview-image img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;}
@media(max-width:850px){
 .home-page .boutique-preview-image{height:220px;min-height:0;max-height:none;}
 .home-page .boutique-preview-image img{height:100%;min-height:0;}
}
