/* Shared responsive layouts for the home page, stores and services. */
#home,.storefront,.service-view{display:grid;gap:clamp(15px,2.4vw,27px)}
.live-hero{position:relative;display:grid;grid-template-columns:1.04fr 1fr;min-height:320px;isolation:isolate;overflow:hidden;border:1px solid #fff;border-radius:28px;background:linear-gradient(134deg,#1b314f,#0c192c 80%);box-shadow:0 12px 30px #152b4935;color:#fff}
.live-hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;padding:clamp(20px,4vw,50px);z-index:1}
.live-hero h1{font-size:clamp(26px,4vw,50px);line-height:1.4;margin:0;text-wrap:balance}
.live-hero p{margin:0;color:#dce7f7;font-size:clamp(13px,1.8vw,18px)}
#hero-highlight{color:#ffd453;font-weight:800;font-size:clamp(19px,3vw,34px);line-height:1.3}
.live-hero-copy a,.live-hero-copy button{margin-top:5px}
.live-hero-media{display:block;position:relative;min-width:0;min-height:215px;overflow:hidden;background:#16263b}
.live-hero-media img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;transition:transform .4s ease}
.live-hero-media:hover img{transform:scale(1.045)}
.live-hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 65%,#102139dd);pointer-events:none}
.slide-controls{position:absolute;z-index:2;bottom:15px;left:15px;display:flex;gap:5px;padding:4px 8px;border-radius:99px;background:#102139ca}
.slide-controls button{display:grid;place-items:center;width:22px;height:24px;padding:0;border:0;background:transparent}
.slide-controls button::before{content:"";width:8px;height:8px;border-radius:99px;background:#b3bed0;transition:width .2s,background .2s}
.slide-controls button[aria-pressed=true]::before{width:17px;background:#ffd04b}
.live-promo{display:flex;align-items:center;gap:16px;padding:13px 20px;border-radius:20px;border:1px solid #fff;background:linear-gradient(95deg,#f9f4e3,#fff9e3 48%,#fff);box-shadow:0 5px 16px #455c7b14}
.live-promo>img{width:clamp(57px,10vw,94px);height:auto;mix-blend-mode:multiply}
.live-promo h2{margin:0;font-size:clamp(16px,2.1vw,22px)}
.live-promo a{font-size:13px;color:#425675}
.live-counter{display:flex;gap:7px;margin-inline-start:auto}
.live-counter div{min-width:39px;display:grid;justify-items:center;border-radius:10px;padding:3px 6px;background:#fff;box-shadow:0 2px 6px #151c2d12}
.live-counter span{font-weight:900;color:#142541;font-variant-numeric:tabular-nums}
.live-counter small{font-size:10px;color:#465873}
.home-shortcuts h2{margin:0 0 11px;font-size:clamp(19px,2.9vw,29px)}
.quick-grid,.shop-grid,.live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,1.7vw,17px)}
.quick-card,.live-card,.shop-card{border:1px solid #fff;border-radius:18px;background:linear-gradient(155deg,#fff,#edf3fb);box-shadow:0 5px 16px #3a547016;min-width:0;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.quick-card{display:flex;align-items:center;gap:10px;min-height:108px;padding:12px;text-align:right}
.quick-card img{width:clamp(38px,8vw,92px);height:auto;flex:none;border-radius:11px;mix-blend-mode:multiply}
.quick-card strong{min-width:0;font-size:clamp(12px,1.55vw,16px);line-height:1.55}
.quick-card>span{margin-inline-start:auto;color:#8b6213}
.quick-card:hover,.live-card:hover,.shop-card:hover{transform:translateY(-3px);border-color:#e9c265;box-shadow:0 10px 24px #3a547027}
.live-featured{display:grid;grid-template-columns:minmax(0,1fr) 1.2fr;overflow:hidden;background:#fff;border:1px solid #fff;border-radius:23px;box-shadow:0 7px 22px #3a547023}
.live-featured>img{width:100%;height:100%;min-height:135px;object-fit:cover}
.live-featured>div{padding:clamp(13px,3vw,24px)}
.live-featured h2,.service-card h2{margin:6px 0;font-size:clamp(16px,2vw,24px)}
.live-featured p,.card-content p{margin:0 0 10px;color:#4a5b74}
.section-hero{min-height:225px}
.section-hero h1{font-size:clamp(25px,3.8vw,42px)}
.store-toolbar,.store-categories,.live-actions,.card-actions,.live-tags{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.store-toolbar{padding:12px;background:#ffffffa8;border:1px solid #fff;border-radius:17px}
.store-toolbar .secondary,.live-actions .secondary,.store-categories button{min-height:42px}
.live-search{display:flex;align-items:center;gap:8px;flex:1 1 270px;min-width:0;min-height:44px;background:white;border:1px solid #d3deec;border-radius:12px;padding-inline:12px}
.live-search>span{color:#496385}
.live-search input{border:0;background:none;color:#142541;width:100%;min-width:0;font:inherit;padding-block:8px}
.store-categories{margin-bottom:13px}
.store-categories button[aria-pressed=true]{background:#ffd34c;color:#241900;border-color:#ffc543}
.shop-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;overflow:hidden}
.shop-product-info{grid-column:1/-1;text-align:right;min-width:0;display:grid;gap:4px;padding:0 0 10px;border:0;background:none;color:inherit;font:inherit}
.shop-product-info img,.shop-image-empty{display:block;width:100%;aspect-ratio:1.55;object-fit:contain;background:#edf3fa}
.shop-image-empty{display:grid;place-items:center;color:#55718f}
.shop-product-info strong,.shop-product-info small{margin-inline:12px;overflow-wrap:anywhere}
.shop-product-info small{color:#4a5b74;min-height:1.5em}
.shop-price{padding:10px;font-weight:800}
.shop-heart,.shop-add{border:0;border-radius:12px;width:40px;height:40px;font-size:18px;display:grid;place-items:center}
.shop-heart{position:absolute;top:8px;left:8px;background:#f6f9ff;color:#253e63}
.shop-add{margin:5px 8px;background:#ffcf39}
.is-favorite{color:#b31747!important;background:#ffedf3!important}
.is-favorite svg{fill:currentColor}
.is-added{background:#ffdf77}
.shop-grid>.state{grid-column:1/-1}
.live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.service-card{overflow:hidden}
.service-card>img{display:block;width:100%;aspect-ratio:2.55;object-fit:cover;background:#e6edf7}
.card-content{padding:13px}
.live-tags{margin:9px 0 13px}
.live-tags span{font-size:12px;padding:2px 9px;border-radius:99px;background:#e0e9f6;color:#263d5e}
.card-actions button{min-height:40px}
.rescue-request{background:linear-gradient(#f0444d,#b71732);color:#fff}
.rescue-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.rescue-location button{width:100%;text-align:right}
.service-result{padding:10px;border-bottom:1px solid #dce5ef}
@media(max-width:640px){
 .live-hero{min-height:245px;border-radius:20px;grid-template-columns:1.14fr 1fr}
 .live-hero-copy{padding:15px;gap:8px}
 .live-hero h1{font-size:clamp(18px,5.4vw,30px)}
 .live-hero-media::after{background:linear-gradient(90deg,transparent 75%,#1021399c)}
 .quick-card{min-height:94px;flex-direction:column;justify-content:center;padding:8px 4px;gap:2px;text-align:center;border-radius:14px}
 .quick-card img{width:49px}.quick-card>span{display:none}
 .quick-card strong{font-size:11px}
 .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .store-toolbar{gap:6px;padding:8px}
 .store-toolbar button,.live-actions button,.card-actions button{font-size:12px;padding-inline:10px}
 .live-promo{flex-wrap:wrap;padding:9px;gap:9px}
 .live-counter div{min-width:31px}
 .rescue-types{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:370px){.live-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.quick-card,.live-card,.shop-card,.live-hero-media img,.slide-controls button::before{transition:none}}
@media(prefers-reduced-motion:no-preference){
 #home:not([hidden]),.storefront:not([hidden]),.service-view:not([hidden]){animation:page-enter .28s ease-out both}
 .quick-card:active,.card-actions button:active,.store-toolbar button:active,.shop-add:active{transform:scale(.97)}
 @keyframes page-enter{from{opacity:.72;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
}
