/* Shared presentation for the shop and its directly addressable catalogue pages. */
:root{--store-width:1280px;--store-gutter:32px;--store-title:clamp(30px,3.4vw,46px);--store-section-title:clamp(26px,2.7vw,34px);--store-card-title:20px;--store-card-gap:24px;--store-card-surface:#fff;--store-card-line:#dcd5ca80}
html{scroll-padding-top:100px}
body{line-height:1.6}
#app h1,.seo-page h1{font-size:var(--store-title);line-height:1.15;letter-spacing:-.025em;overflow-wrap:break-word}
#app .home-hero h1{font-size:clamp(34px,4vw,56px);line-height:1.1}
#app .section-heading h2,#app .home-craft h2,#app .finder-teaser h2,.seo-guide h2{font-size:var(--store-section-title);line-height:1.2;letter-spacing:-.02em}
.section,.seo-page{width:100%;max-width:calc(var(--store-width) + var(--store-gutter)*2);margin-inline:auto;padding:40px var(--store-gutter) 48px}
.home-page>.section{padding-top:40px;padding-bottom:40px}
.section-heading{align-items:start;gap:32px;margin-bottom:24px}
.section-heading h1{margin:12px 0 0}
.section-heading p{margin:0;max-width:52ch;font-size:15px;line-height:1.7}
.catalog-section .section-heading{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}
.catalog-section .finder-catalog-link{margin:0 0 12px;min-height:44px;font-size:14px}
.catalog-toolbar{margin:16px 0 12px;gap:16px}
.catalog-toolbar .btn,.sort-control select{min-height:44px;padding:10px 16px;font-size:14px}
.sort-control{font-size:14px}
/* A single card scale and image treatment; descriptions remain fully visible. */
.products,.home-selected .products,.seo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--store-card-gap);align-items:stretch}
.product-card{display:flex;flex-direction:column;min-width:0;height:100%;background:var(--store-card-surface);border:1px solid var(--store-card-line);border-radius:3px;transition:border-color .18s ease}
.product-card:hover{border-color:#bcb3a5}
.product-card .card-image-wrap{min-width:0}
.product-card .visual,.popular-strip .product-card .visual{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;min-width:0;background:#fff;padding:18px;overflow:hidden}
.product-card .visual img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform:scale(var(--product-image-scale,1));transition:transform .25s ease}
.product-card:hover .visual img{transform:scale(calc(var(--product-image-scale,1)*1.015))}
.product-card>.card-link{display:flex;flex:1;min-width:0}
.product-card .card-meta{display:flex;flex-direction:column;align-items:stretch;flex:1;gap:12px;padding:16px 18px 14px;min-width:0}
.product-card .card-meta>div{min-width:0}
.product-card .card-meta h3,.product-card .card-meta h2,.home-selected .product-card h3,.popular-strip .product-card h3{font:500 var(--store-card-title)/1.3 Georgia,serif;letter-spacing:-.01em;min-height:2.6em;margin:0 0 8px;overflow-wrap:break-word}
.product-card .card-meta p,.product-card .card-features{font:400 14px/1.6 Arial,sans-serif;color:var(--muted);max-width:none;margin:0}
.product-card .price{display:block;margin-top:auto;font:500 16px/1.5 Arial,sans-serif;white-space:normal}
.product-card .price-note{font-size:12px;margin-top:2px}
.product-card>.compare-button{margin:0 18px 14px;align-self:start;min-height:44px;font-size:13px}
.product-card .favorite-button{top:10px;right:10px;box-shadow:none}
.seo-card>.card-link{flex-direction:column}
.seo-card .card-meta{gap:0}
.seo-card .card-meta p{flex:1}
.seo-card-action{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-top:14px;border-top:1px solid var(--line);font:400 13px/1.5 Arial,sans-serif;color:var(--accent)}
.product-card a:focus-visible{outline-offset:-3px}
/* Direct catalogue routes share the same typography rather than inheriting section H2 sizes. */
.seo-page{padding-top:24px}
.seo-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;padding:0 0 18px;margin:0 0 28px;border-bottom:1px solid var(--line);font-size:14px}
.seo-nav a{display:inline-flex;align-items:center;min-height:44px}
.seo-nav .seo-brand{font:500 19px/1.2 Georgia,serif;letter-spacing:.1em;margin-right:auto}
.seo-nav a[aria-current=page]{color:var(--accent);text-decoration:underline;text-underline-offset:7px}
.seo-intro{max-width:900px;margin-bottom:28px}
.seo-intro h1{margin:0 0 16px}
.seo-page p{font-size:15px;line-height:1.7}
.seo-intro>p{max-width:78ch;margin:0 0 20px;color:var(--muted)}
.seo-intro .btn{margin:0;min-height:46px}
.seo-guide{max-width:80ch;margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}
.seo-guide h2{margin:0 0 16px}
.seo-guide ul{padding-left:20px;font-size:15px;line-height:1.8}
.seo-guide li{margin-bottom:10px}
.seo-support{margin-top:36px;padding-top:24px;border-top:1px solid var(--line);color:var(--muted)}
.seo-support p{font-size:13px;margin:0 0 10px}
.seo-support a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink)}
/* Product detail layouts keep their existing sections and configurator. */
.product-layout{max-width:calc(var(--store-width) + var(--store-gutter)*2);margin-inline:auto;padding-inline:var(--store-gutter);padding-bottom:40px;gap:0}
.product-heading h1,#app .product-heading h1{font-size:clamp(30px,3vw,40px);margin:8px 0 0;line-height:1.18}
.product-heading{padding-top:0;padding-bottom:16px}
.product-heading .product-subtitle{font-size:15px;line-height:1.6}
.gallery{padding-right:32px}
.gallery-track .main-image{max-width:460px;height:400px;object-fit:contain}
.details .live-price{font-size:27px;line-height:1.3;margin-top:12px}
.details .lead-time{font-size:14px;line-height:1.6}
.seo-model{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:40px}
.seo-model>div{background:white;padding:24px;min-width:0;border:1px solid var(--store-card-line)}
.seo-model>div>img{display:block;width:100%;height:440px;object-fit:contain}
.seo-model>div>p{margin:14px 0 0;font-size:12px;text-align:center;color:var(--muted)}
.seo-model>section{min-width:0}
.seo-model h1{margin:4px 0 12px}
.seo-model .product-subtitle{color:var(--muted);font-size:14px}
.seo-model p{margin-bottom:16px}
.seo-model .btn{margin-top:8px;text-align:center}
/* Preserve menu order, icons, links and mobile interactions. */
header{gap:20px;padding:18px max(24px,calc((100vw - 1280px)/2))}
header nav{gap:16px;font-size:13px;min-width:0}
header nav a{font-size:13px;line-height:1.4;white-space:nowrap;min-height:44px}
header .header-actions{gap:14px}
header .profile-link,header .bag{font-size:13px}
.btn{font-size:14px;line-height:1.5;min-height:44px;padding:12px 20px;text-align:center}
.popular-section{padding-top:36px;padding-bottom:40px}
.popular-section>h2{font-size:var(--store-section-title)}
.popular-strip{gap:20px}
@media(min-width:801px) and (max-width:1350px){header .header-actions .action-text{display:none}header .header-actions{gap:12px}}
@media(min-width:801px) and (max-width:1250px){header nav{gap:24px}}
@media(max-width:1023px){
 .products,.home-selected .products,.seo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .section-heading{gap:24px}
 .seo-model{gap:28px}
 .seo-model>div>img{height:360px}
}
@media(max-width:800px){
 :root{--store-gutter:22px;--store-card-gap:20px;--store-card-title:19px}
 .section,.seo-page{padding-top:28px;padding-bottom:36px}
 .home-page>.section{padding-top:30px;padding-bottom:30px}
 .catalog-section .section-heading{grid-template-columns:1fr;gap:16px}
 .section-heading p{max-width:70ch}
 header{padding:12px 16px;gap:8px}
 header .header-actions{gap:2px}
 header nav a{font-size:16px;white-space:normal;min-height:52px}
 header .profile-link,header .bag{font-size:14px}
 #app .home-hero h1{font-size:36px}
 .seo-nav{gap:4px 18px;margin-bottom:24px;padding-bottom:14px}
 .seo-nav .seo-brand{margin-right:0}
 .gallery{padding-right:22px}
 .product-layout{padding-bottom:28px}
 .gallery-track .main-image{height:320px}
 .popular-section{padding-top:30px;padding-bottom:32px}
 .popular-strip{grid-template-columns:repeat(4,220px);overflow-x:auto;scroll-snap-type:x mandatory}
 .popular-strip .product-card{scroll-snap-align:start}
}
@media(max-width:640px){
 .product-layout,.seo-model{grid-template-columns:1fr}
 .gallery{padding-right:0}
 .seo-model{gap:24px}
 .seo-model>div{padding:20px}
 .seo-model>div>img{height:300px}
 .seo-model .btn{width:100%}
 .section-heading{display:block}
 .section-heading>a{margin-top:12px}
 .product-heading .product-subtitle{font-size:14px}
 .product-card .card-meta{padding:14px 16px}
 .product-card .visual{padding:16px}
 .sort-control{min-width:0}
 .sort-control select{max-width:100%;min-width:0}
 .catalog-toolbar{gap:12px}
 .gallery-track .main-image{height:290px}
}
@media(max-width:539px){
 :root{--store-gutter:18px;--store-card-gap:20px}
 .products,.home-selected .products,.seo-grid{grid-template-columns:minmax(0,1fr)}
 .product-card .visual{aspect-ratio:4/3}
 .product-card .card-meta h2,.product-card .card-meta h3{min-height:0}
 .seo-intro .btn{width:100%}
 .seo-intro{margin-bottom:24px}
 .seo-support a{overflow-wrap:anywhere;word-break:break-word}
 .seo-model>div>img{height:280px}
 .btn{max-width:100%;white-space:normal}
}
@media(prefers-reduced-motion:reduce){.product-card,.product-card .visual img{transition:none}.product-card:hover .visual img{transform:scale(var(--product-image-scale,1))}}

@media(max-width:640px){.footer-columns>.footer-brand{grid-column:1/-1}}
@media(max-width:359px){header{padding-inline:12px;gap:6px}header .brand:has(.brand-logo){width:80px;height:29px}header .header-actions{gap:0}header .header-actions>a,header .menu-toggle{width:36px}header .language-switch select{width:44px}}
.seo-card-action svg{width:15px;height:15px;flex-shrink:0}

/* Align the photographed furniture, compensating only for the source's white margins. */
.product-card .visual img[src*="assets/new-models/arco/"]{--product-image-scale:1.20}
.product-card .visual img[src*="assets/new-models/bellora/"]{--product-image-scale:1.13}
.product-card .visual img[src*="assets/new-models/canto/"]{--product-image-scale:1.28}
.product-card>.compare-button{width:calc(100% - 36px);max-width:calc(100% - 36px)}
/* Keep desktop navigation beside the logo; use a compact second row only when needed. */
@media(min-width:1100px){
 body>header{display:grid;grid-template-columns:140px minmax(0,1fr) max-content;align-items:center;gap:20px;padding:12px max(24px,calc((100vw - 1440px)/2));flex-wrap:nowrap}
 body>header .brand:has(.brand-logo){width:140px;height:46px}
 body>header nav{display:flex;position:static;order:initial;width:auto;min-width:0;flex-wrap:nowrap;justify-content:center;align-items:center;gap:14px;padding:0}
 body>header nav a{font-size:13px;min-height:44px;padding:0;white-space:nowrap}
 body>header .header-actions{margin-left:0;gap:10px}
}
@media(min-width:1100px) and (max-width:1499px){body>header .header-actions .action-text{display:none}}
@media(min-width:1500px){
 body>header{grid-template-columns:160px minmax(0,1fr) max-content;gap:24px}
 body>header .brand:has(.brand-logo){width:160px;height:52px}
 body>header nav{gap:20px}
 body>header nav a{font-size:14px}
}
@media(min-width:801px) and (max-width:1099px){
 body>header{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:4px 20px;padding:10px 22px}
 body>header .brand:has(.brand-logo){width:130px;height:42px}
 body>header .header-actions{margin-left:0;gap:10px}
 body>header nav{grid-column:1/-1;grid-row:2;position:static;order:initial;width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:0 20px;padding:0}
 body>header nav a{min-height:40px;padding:0;font-size:13px}
}
/* Shared, restrained base-offer summary on static product pages. */
.seo-model .seo-offer{margin:24px 0;padding:18px 0;border-block:1px solid var(--store-card-line);max-width:560px}
.seo-model .seo-offer p{margin:0 0 8px}
.seo-model .seo-offer-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;color:var(--muted);font-size:13px}
.seo-offer-heading strong{font-size:25px;line-height:1.25;font-weight:500;color:var(--ink,#292b27);font-variant-numeric:tabular-nums}
.seo-model .seo-offer-production{font-size:13px;font-weight:500;color:var(--ink,#292b27)}
.seo-model .seo-offer-configuration,.seo-model .seo-offer-note{font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.seo-model .seo-offer p:last-child{margin-bottom:0}
@media(max-width:600px){.seo-model .seo-offer{margin:20px 0;padding:16px 0}.seo-offer-heading strong{font-size:23px}}
