/* Homepage: one clear route per section, consistent order on all screens. */
.home-main{display:block}
.home-main>section{width:100%;min-width:0;order:initial}
.home-main [hidden]{display:none!important}
.home-main .home-hero{padding:24px 0 30px}
.home-main .hero-panel{display:block;min-height:0;border-radius:24px;background:#eadfce}
.home-main .hero-copy{display:block;padding:38px 44px;max-width:850px}
.home-main .hero-copy .eyebrow{display:block;margin-bottom:14px}
.home-main .hero-copy h1{font-size:clamp(26px,3.2vw,38px);line-height:1.2;max-width:680px;margin:0 0 16px}
.home-main .hero-copy>p{font-size:16px;line-height:1.6;max-width:630px;margin:0 0 24px;color:#655e57}
.home-main .hero-actions{display:flex;gap:18px 28px;align-items:center;flex-wrap:wrap}
.home-main .category-section{padding:0 0 38px}
.home-main .category-intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.home-main .category-intro .eyebrow{display:none}
.home-main .category-intro h2{font-size:20px;margin:0}
.home-main .category-intro>p{font-size:14px;color:var(--muted);margin:0;line-height:1.5}
.home-main .category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.home-main .category-card{position:relative;min-height:200px;border-radius:18px;padding:24px 20px;overflow:hidden;display:block}
.home-main .cat-copy{position:relative;z-index:1;max-width:72%}
.home-main .cat-copy>span{display:block;min-height:15px;font-size:10px}
.home-main .cat-copy h3{font-size:20px;margin:12px 0}
.home-main .cat-copy p{font-size:12px;line-height:1.5;margin:0 0 18px}
.home-main .cat-copy b{font-size:11px}
.home-main .category-card img{position:absolute;right:8px;bottom:12px;height:160px;max-height:calc(100% - 24px);width:33%;object-fit:contain;transform:none;pointer-events:none}
.home-main .picks{padding:0 0 42px}
.home-main .section-head{margin-bottom:20px;gap:18px}
.home-main .section-head h2{font-size:22px;margin-top:8px}
.home-main #homeProducts .card-image,.home-main #homeProducts .card-image img{height:280px;aspect-ratio:auto}
.home-main .home-selection-extra{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.home-selection-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.home-selection-shortcuts>.eyebrow{flex-basis:100%;font-size:9px}
.home-main .home-surprise{background:none;border:0;padding:0;font-family:inherit;cursor:pointer;text-align:left}
.home-main .hero-bottle-card{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:12px;flex:0 1 330px;max-width:390px;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.home-main .hero-bottle-card .weekly-wine-label{grid-column:2;font:700 9px system-ui;letter-spacing:.1em;text-transform:uppercase;color:var(--orange);padding:0;margin:0 0 4px;background:transparent}
.home-main .hero-bottle-card img{grid-column:1;grid-row:1/3;width:44px;height:80px;object-fit:contain;aspect-ratio:auto}
.home-main .hero-bottle-meta{grid-column:2;display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:0;align-items:center}
.home-main .hero-bottle-meta>span{grid-column:1/-1;font-size:9px}
.home-main .hero-bottle-meta strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.home-main .hero-bottle-meta>b{font-size:13px;white-space:nowrap}
.home-main .hero-bottle-meta .weekly-wine-link{grid-column:1/-1;font-size:11px;margin:0}
.home-main .home-trial{padding:0 0 44px;scroll-margin-top:110px}
.home-trial-panel{display:grid;grid-template-columns:1.05fr 1fr;background:#e9dfd3;border-radius:24px;overflow:hidden;align-items:stretch}
.home-trial-photo{display:block;width:100%;height:100%;min-height:340px;object-fit:cover;object-position:center}
.home-trial-copy{padding:36px;min-width:0;align-self:center}
.home-trial-copy h2{font-size:26px;line-height:1.25;margin:12px 0 16px}
.home-trial-copy>p{font-size:15px;line-height:1.65;color:#655e57;margin:0 0 22px}
.home-trial-steps{display:flex;flex-wrap:wrap;gap:8px 16px;list-style:none;counter-reset:trial;margin:0 0 24px;padding:0}
.home-trial-steps li{font-size:11px;line-height:1.6;counter-increment:trial}
.home-trial-steps li:before{content:counter(trial,decimal-leading-zero) ' · ';color:#ae421c;font-weight:800}
.home-trial-copy .home-trial-return{font-size:12px;margin:18px 0 0}
.home-trial-return a{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.home-main .moments{padding:0 0 44px}
.home-main .moment{min-height:160px;padding:26px}
.home-main .moment h3{margin-top:25px}
.home-main .box-banner{padding:0 0 40px}
.home-main .box-banner-inner{min-height:280px}
.home-main .box-copy{padding:32px}
.home-main .box-copy p{font-size:15px;line-height:1.6}
.home-main .box-bottles{height:280px;isolation:isolate}
.home-main .box-bottles img{height:250px;mix-blend-mode:multiply}
.home-main .personal-picks{padding:0 0 28px}
.home-personal-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0}
.home-personal-details>summary{display:flex;justify-content:space-between;gap:16px;font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.home-personal-details>summary::-webkit-details-marker{display:none}
.home-personal-details[open]>summary{margin-bottom:22px}
.home-personal-details[open]>summary>span{transform:rotate(45deg)}
.home-main #over{padding:0 0 36px}
.home-main .about-panel{padding:34px 36px;gap:36px;grid-template-columns:.8fr 1.2fr}
.home-main .about-panel h2{font-size:23px;line-height:1.3}
.home-main .about-panel .eyebrow{color:#bdb5ae}
.home-main .about-points p{grid-template-columns:1fr;gap:6px;padding:14px 0}
.home-main .about-points b{font-size:14px}
.home-main .about-points span{font-size:13px;line-height:1.6}
.home-main .seo-discover{padding-top:8px;padding-bottom:38px}
.home-main .seo-discover h2{font-size:20px}
.home-main .seo-intro{font-size:14px;line-height:1.65;max-width:850px}
.home-main .seo-category-links a{font-size:12px;padding:12px 16px}
.home-main a:focus-visible,.home-main button:focus-visible,.home-main summary:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
@media(min-width:761px) and (max-width:1000px){
 .home-main .category-card{padding:20px 16px}
 .home-main .cat-copy p{display:none}
 .home-main .category-card{min-height:165px}
 .home-trial-copy{padding:26px}
 .home-trial-copy h2{font-size:23px}
 .home-trial-steps{display:grid;gap:5px}
}
@media(max-width:760px){
 .home-main{display:block}
 .home-main .home-hero{padding:12px 0 24px}
 .home-main .hero-copy{padding:26px 24px}
 .home-main .hero-copy .eyebrow{font-size:9px;line-height:1.5;margin-bottom:10px}
 .home-main .hero-copy h1{font-size:28px;max-width:100%;margin-bottom:12px}
 .home-main .hero-copy>p{font-size:14px;line-height:1.55;margin-bottom:18px}
 .home-main .hero-actions{gap:16px}
 .home-main .hero-actions .btn{font-size:12px;padding:13px 18px}
 .home-main .hero-actions .textlink{font-size:12px}
 .home-main .category-section{padding-bottom:28px}
 .home-main .category-intro{display:block;margin-bottom:14px}
 .home-main .category-intro h2{font-size:18px}
 .home-main .category-intro>p{display:none}
 .home-main .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .home-main .category-card{min-height:140px;padding:17px 14px;border-radius:16px}
 .home-main .cat-copy{max-width:76%}
 .home-main .cat-copy h3{font-size:18px;margin:10px 0 17px}
 .home-main .cat-copy p{display:none}
 .home-main .cat-copy b{font-size:10px}
 .home-main .category-card img{height:110px;max-height:calc(100% - 20px);width:30%;right:4px;bottom:10px}
 .home-main .picks{padding:0 0 30px}
 .home-main .section-head{gap:12px;margin-bottom:16px}
 .home-main .section-head h2{font-size:18px}
 .home-main #homeProducts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible}
 .home-main #homeProducts .card{min-width:0;width:auto}
 .home-main #homeProducts .card-image,.home-main #homeProducts .card-image img{height:180px}
 .home-main #homeProducts .card-body{padding:12px 4px}
 .home-main #homeProducts h3{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
 .home-main #homeProducts .meta{font-size:9px}
 .home-main #homeProducts .taste{font-size:10px;min-height:32px}
 .home-main #homeProducts .price-row{flex-wrap:wrap;gap:8px}
 .home-main #homeProducts .price{font-size:15px}
 .home-main #homeProducts .add{width:36px;height:36px}
 .home-main .home-selection-extra{display:grid;gap:18px;margin-top:12px}
 .home-main .hero-bottle-card{max-width:none;padding-top:16px;border-top:1px solid var(--line)}
 .home-main .home-selection-shortcuts{gap:12px 20px}
 .home-main .home-selection-shortcuts a,.home-main .home-surprise{font-size:11px}
 .home-main .home-trial{padding-bottom:30px}
 .home-trial-panel{grid-template-columns:1fr;border-radius:20px}
 .home-trial-photo{height:auto;aspect-ratio:16/9;min-height:0;object-fit:cover}
 .home-trial-copy{padding:24px}
 .home-trial-copy h2{font-size:23px;margin:10px 0 14px}
 .home-trial-copy>p{font-size:14px;margin-bottom:18px}
 .home-trial-steps{display:grid;gap:5px;margin-bottom:20px}
 .home-trial-copy .btn{max-width:100%;white-space:normal;text-align:center;font-size:12px}
 .home-main .moments{padding:0 0 30px}
 .home-main .moment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .home-main .moment{padding:16px 12px;min-height:135px;overflow-wrap:anywhere}
 .home-main .moment h3{font-size:13px;margin:20px 0 0;line-height:1.4}
 .home-main .moment p{display:none}
 .home-main .box-banner{padding-bottom:28px}
 .home-main .box-banner-inner{min-height:0}
 .home-main .box-copy{padding:26px 24px 12px}
 .home-main .box-bottles{height:190px}
 .home-main .box-bottles img{height:165px;margin-left:-40px}
 .home-main .personal-picks{padding:0 0 24px}
 .home-main .about-panel{padding:26px 24px;grid-template-columns:1fr;gap:16px}
 .home-main .about-panel h2{font-size:21px;margin-bottom:0}
 .home-main #over{padding:0 0 26px}
 .home-main .seo-discover{padding-top:0;padding-bottom:28px}
 .home-main .seo-category-links{grid-template-columns:1fr}
}
@media(max-width:380px){
 .home-main .hero-copy{padding:24px 20px}
 .home-main .hero-copy h1{font-size:25px}
}

/* Mobile repair: reset the legacy horizontal carousel before laying out cards. */
@media(max-width:760px){
 body.home-body header .nav{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 10px}
 body.home-body header .nav>.logo{width:clamp(120px,38vw,168px);min-width:0;max-width:100%}
 body.home-body header .nav-actions{gap:3px;min-width:0}
 body.home-body header .nav-actions .menu-toggle,
 body.home-body header .nav-actions .search-nav,
 body.home-body header .nav-actions .favorite-nav,
 body.home-body header .nav-actions .cartbtn{width:40px;height:40px;min-width:40px;flex:0 0 40px}
 .home-main .picks .section-head{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
 .home-main .picks .section-head h2{max-width:none;margin:6px 0 0}
 .home-main .picks .section-head .textlink{white-space:normal;line-height:1.5;padding:0}
 .home-main #homeProducts,
 .home-main #personalProducts{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;grid-auto-rows:auto;gap:14px;overflow:visible;scroll-snap-type:none;scroll-padding:0;padding:0;min-width:0;width:100%;align-items:start}
 .home-main #homeProducts>.card,
 .home-main #personalProducts>.card{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto;grid-column:auto;grid-row:auto;width:100%;max-width:100%;min-width:0;height:auto;min-height:0;align-self:start;align-items:stretch;scroll-snap-align:none;border-radius:18px;box-shadow:none}
 .home-main #homeProducts>.card>a,
 .home-main #personalProducts>.card>a{display:block;min-width:0;max-width:100%}
 .home-main #homeProducts .card-image,
 .home-main #personalProducts .card-image{height:100%;min-height:220px;aspect-ratio:auto;width:100%;max-width:100%;margin:0}
 .home-main #homeProducts .card-image img,
 .home-main #personalProducts .card-image img{display:block;width:100%;height:220px;max-width:100%;object-fit:contain}
 .home-main #homeProducts .card-body,
 .home-main #personalProducts .card-body{display:flex;flex-direction:column;min-width:0;width:auto;padding:18px 16px;gap:0}
 .home-main #homeProducts h3,
 .home-main #personalProducts h3{font-size:14px;line-height:1.45;margin:10px 0;word-break:normal;overflow-wrap:break-word;white-space:normal;min-height:0}
 .home-main #homeProducts .meta,
 .home-main #personalProducts .meta{font-size:10px;line-height:1.6;letter-spacing:.06em;white-space:normal;overflow-wrap:break-word}
 .home-main #homeProducts .taste,
 .home-main #personalProducts .taste{font-size:12px;line-height:1.55;min-height:0;margin-bottom:18px;overflow-wrap:break-word}
 .home-main #homeProducts .price-row,
 .home-main #personalProducts .price-row{margin-top:auto;gap:10px;flex-wrap:wrap;min-height:44px}
 .home-main #homeProducts .price,
 .home-main #personalProducts .price{font-size:18px;line-height:1.4}
 .home-main #homeProducts .add,
 .home-main #personalProducts .add{width:44px;height:44px;flex:0 0 44px}
 .home-main #homeProducts .favorite-btn,
 .home-main #personalProducts .favorite-btn{width:36px;height:36px;top:8px;right:6px;font-size:23px}
 .home-main #homeProducts .compare-btn,
 .home-main #personalProducts .compare-btn{width:36px;height:36px;top:50px;right:6px;font-size:16px}
 .home-main #homeProducts .flag,
 .home-main #personalProducts .flag{left:6px;top:8px;padding:5px 6px;font-size:8px}
 .home-main .home-selection-extra{min-width:0;width:100%;gap:20px;margin-top:22px}
 .home-main .home-selection-shortcuts{display:grid;gap:14px}
 .home-main .home-selection-shortcuts a,
 .home-main .home-surprise{font-size:13px;line-height:1.5;min-height:36px;display:flex;align-items:center;gap:10px}
 .home-main .hero-bottle-card{width:100%;min-width:0;max-width:100%;grid-template-columns:52px minmax(0,1fr);column-gap:14px}
 .home-main .hero-bottle-meta{min-width:0;grid-template-columns:minmax(0,1fr) auto}
 .home-main .hero-bottle-meta strong{font-size:13px;word-break:normal;overflow-wrap:break-word}
 .home-main .hero-bottle-meta .weekly-wine-link{font-size:12px;line-height:1.5;min-height:36px;display:flex;align-items:center}
 .home-main .moment-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .home-main .moment{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;column-gap:14px;min-height:90px;padding:18px 20px}
 .home-main .moment h3{font-size:15px;margin:0;line-height:1.4}
 .home-main .moment p{display:block;grid-column:2;font-size:12px;line-height:1.5;margin:5px 0 0}
}

/* Give the weekly selection its own visible place beside the discovery links. */
.home-main .home-selection-extra{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,520px);gap:28px;align-items:center}
.home-main .hero-bottle-card{width:100%;min-width:0;max-width:none;display:grid;grid-template-columns:108px minmax(0,1fr);grid-template-rows:auto 1fr;gap:10px 22px;padding:24px;border:1px solid #ddcbb8;border-radius:20px;background:#eee2d3;box-shadow:none;overflow:hidden}
.home-main .hero-bottle-card[hidden]{display:none}
.home-main .hero-bottle-card .weekly-wine-label{grid-column:2;grid-row:1;font:700 12px/1.5 system-ui,sans-serif;letter-spacing:.1em;color:#99431f;margin:0}
.home-main .hero-bottle-card img{grid-column:1;grid-row:1/3;align-self:center;width:108px;height:200px;max-width:100%;object-fit:contain}
.home-main .hero-bottle-meta{grid-column:2;grid-row:2;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-content:start}
.home-main .hero-bottle-meta>span{grid-column:1;font-size:10px;line-height:1.5}
.home-main .hero-bottle-meta strong{grid-column:1;font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.home-main .hero-bottle-meta>b{grid-column:1;font-size:23px;line-height:1.4;white-space:normal}
.home-main .hero-bottle-meta .weekly-wine-link{grid-column:1;font-size:13px;line-height:1.5;min-height:44px;display:flex;align-items:center;gap:8px;margin:0;text-decoration:underline;text-underline-offset:4px}
@media(max-width:900px){
 .home-main .home-selection-extra{grid-template-columns:minmax(0,1fr);gap:22px}
}
@media(max-width:760px){
 .home-main .hero-bottle-card{grid-template-columns:78px minmax(0,1fr);gap:9px 16px;padding:20px 16px;border-radius:18px}
 .home-main .hero-bottle-card img{width:78px;height:180px}
 .home-main .hero-bottle-card .weekly-wine-label{font-size:11px}
 .home-main .hero-bottle-meta strong{font-size:16px}
 .home-main .hero-bottle-meta>b{font-size:21px}
}
@media(max-width:360px){
 .home-main .hero-bottle-card{grid-template-columns:64px minmax(0,1fr);column-gap:12px;padding:18px 14px}
 .home-main .hero-bottle-card img{width:64px;height:170px}
 .home-main .hero-bottle-meta strong{font-size:15px}
 .home-main .hero-bottle-card .weekly-wine-label{font-size:10px;letter-spacing:.06em}
}

/* Align this standalone section with the shared .shell content gutters.
   Keep its DOM intact so saved CMS block keys and edits remain valid. */
.home-main>.seo-discover{max-width:var(--max,1320px);margin-inline:auto;padding-inline:24px}
@media(max-width:760px){
 .home-main>.seo-discover{padding-inline:14px}
}

/* Sommelier: three considered choices, without the separate weekly promotion. */
.home-main #home-picks .sommelier-intro{max-width:620px;font-size:15px;line-height:1.65;color:var(--muted);margin:-6px 0 24px}
.home-main #home-picks .home-selection-extra{display:block}
.home-main #homeProducts{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.home-main #homeProducts .card{display:flex;flex-direction:column;min-width:0}
.home-main #homeProducts .card-body{display:flex;flex-direction:column;flex:1;min-width:0}
.home-main #homeProducts .sommelier-note{border-top:2px solid var(--orange);padding-top:12px;margin-bottom:14px;color:#96390f;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.home-main #homeProducts .sommelier-reason{font-size:13px;line-height:1.65;color:var(--muted);margin:8px 0 10px;white-space:pre-line;overflow-wrap:anywhere;flex:1}
.home-main #homeProducts .sommelier-product-link{display:block;margin-top:14px;font-size:12px;min-height:32px;align-content:center}
@media(max-width:760px){
 .home-main #home-picks .section-head{align-items:start;flex-direction:column;gap:10px}
 .home-main #home-picks .section-head h2{font-size:23px;line-height:1.3;max-width:310px}
 .home-main #homeProducts{grid-template-columns:minmax(0,1fr);gap:24px;overflow:visible}
 .home-main #homeProducts .card{display:grid;grid-template-columns:minmax(85px,28%) minmax(0,1fr);gap:18px;overflow:visible}
 .home-main #homeProducts .card>a{display:block;align-self:center;min-width:0}
 .home-main #homeProducts .card-image,.home-main #homeProducts .card-image img{height:210px;max-width:100%}
 .home-main #homeProducts .card-body{padding:0;min-width:0}
 .home-main #homeProducts h3{font-size:16px;line-height:1.4}
 .home-main #homeProducts .sommelier-reason{font-size:13px}
 .home-main #homeProducts .sommelier-note{padding-top:10px;margin-bottom:10px}
 .home-main #homeProducts .sommelier-product-link{min-height:44px;margin-top:6px}
 .home-main #homeProducts .flag{left:0;top:2px}
 .home-main #homeProducts .favorite-btn{left:0;top:34px;right:auto}
 .home-main #homeProducts .compare-btn{right:0;top:34px}
}
