:root{--theme-start:#FF1919;--theme-end:#78001F;--catalog-columns:4;--red:var(--theme-end);--red-dark:var(--theme-end)}
.hub-welcome,.store-hero,.subcalc-hero,.art-head,.hub-header,.hub-global-header,.store-header,.subcalc-header,.category-chip.selected{background:linear-gradient(112deg,var(--theme-start),var(--theme-end))}
.catalog-first-month,.product-offer{color:var(--theme-end);border-color:var(--theme-end)}
.hub-primary-action,.art-title span,.art-caption span{color:var(--theme-end)}
.product-grid{grid-template-columns:repeat(var(--catalog-columns),minmax(0,1fr))}

.product-price-list>div b,.product-card-bottom button,.pm-price-title{color:var(--theme-end)}
.pm-tabs button.on,.primary-button{background:var(--theme-end)}

/* Compact portrait catalog; use the same saved column count on every device. */
@media(max-width:767px){
 .product-grid{gap:5px}
 .product-grid .product-card{min-width:0;border-radius:9px;overflow-wrap:anywhere}
 .product-grid .product-visual{height:130px;margin:3px 3px 0;border-radius:7px}
 .product-grid .product-category{left:2px;right:2px;top:3px;padding:2px;font-size:8px;line-height:1.15;text-align:center;white-space:normal}
 .product-grid .product-code{bottom:3px;left:2px;right:2px;font-size:7px;letter-spacing:0;text-align:center;line-height:1.1}
 .product-grid .product-info{padding:5px 4px}
 .product-grid .product-model{font-size:9px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
 .product-grid .product-info h3{font-size:9px;min-height:0;margin:4px 0 7px}
 .product-grid .catalog-first-month,.product-grid .catalog-monthly-price{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:5px 3px;margin:5px 0}
 .product-grid .catalog-first-month strong,.product-grid .catalog-monthly-price strong{font-size:clamp(12px,3.4vw,19px);overflow-wrap:anywhere}
 .product-grid .catalog-first-month small{margin-left:0}
 .product-grid .catalog-first-month span,.product-grid .catalog-first-month small,.product-grid .catalog-monthly-price span{font-size:8px}
 .product-grid .product-card-bottom{gap:3px;padding-top:5px}
 .product-grid .product-card-bottom button{font-size:9px;padding:5px 2px;min-height:36px;white-space:normal}
 .product-grid .product-availability{font-size:8px}
 .product-grid .product-price-list{padding:4px}
 .product-grid .product-price-list>div{grid-template-columns:minmax(0,1fr)}
}

/* Blend product thumbnails into the existing white outer card. */
.product-grid .product-visual{background:#fff;border-color:transparent}
.product-grid .product-visual-glow{display:none}

.sale-back-nav{display:flex;align-items:center;padding:16px 16px 4px}.sale-back-home,.sale-back-home:visited{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;min-height:44px;box-sizing:border-box;border:1px solid #e9cbd2;border-radius:999px;background:#fff;color:var(--theme-end,#78001f);font-size:14px;font-weight:600;text-decoration:none;box-shadow:0 2px 6px #78001f08}.sale-back-home:hover{background:#fff4f5}.sale-back-home:focus-visible{outline:2px solid var(--theme-end,#78001f);outline-offset:3px}.sale-back-home span{font-size:18px;line-height:1}

/* Equal catalog card sections; expanded details remain naturally sized. */
.storefront .product-grid{align-items:stretch;grid-auto-rows:1fr}
.storefront .product-grid .product-card{display:flex;flex-direction:column;min-width:0}
.storefront .product-grid .product-visual{flex-shrink:0}
.storefront .product-grid .product-info{display:flex;flex-direction:column;flex:1;min-width:0}
.storefront .product-grid .product-model{line-height:1.25;min-height:2.5em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.storefront .product-grid .product-info h3{line-height:1.5;height:3em;min-height:3em;max-height:3em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.storefront .product-grid .catalog-promo-slot{min-height:88px;display:flex;flex-direction:column;justify-content:center}
.storefront .product-grid .catalog-first-month{flex:1;justify-content:center}
.storefront .product-grid .catalog-monthly-price,.storefront .product-grid .catalog-monthly-missing{min-height:72px;box-sizing:border-box}
.storefront .product-grid .product-card-bottom{margin-top:auto}
.storefront .product-grid:has(.product-price-list){grid-auto-rows:auto}
@media(max-width:600px){.storefront .product-grid .catalog-promo-slot{min-height:68px}.storefront .product-grid .catalog-monthly-price,.storefront .product-grid .catalog-monthly-missing{min-height:62px}}

.hub-global-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.hub-global-header .hub-global-brand{min-width:0}.hub-global-header .hub-login-placeholder{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:40px;padding:8px 15px;border:1px solid #ffffff99;border-radius:999px;background:#ffffff1a;color:#fff;font-size:13px;font-weight:600;opacity:1;cursor:default;white-space:nowrap}.hub-global-header .hub-login-placeholder:disabled{color:#fff;opacity:1}@media(max-width:480px){.hub-global-header .hub-login-placeholder{padding:7px 10px;font-size:12px;gap:4px}.hub-global-header .hub-global-copy{min-width:0}.hub-global-header .hub-global-copy strong{white-space:normal}}

/* Catalog service colors, matching calculator palette. */
.storefront .product-price-list .catalog-service-row{padding:10px 8px;margin:6px 0;border:1px solid var(--service-border);border-radius:9px;background:var(--service-bg);color:var(--service-ink)}
.storefront .product-price-list .catalog-service-self{--service-bg:linear-gradient(125deg,#ffdf64,#ff9d26);--service-ink:#402300;--service-border:#e7a12a}
.storefront .product-price-list .catalog-service-visit{--service-bg:#fff1f4;--service-ink:#a50932;--service-border:#e9b6c4}
.storefront .product-price-list .catalog-service-none{--service-bg:#f1f5f9;--service-ink:#334155;--service-border:#cbd5e1}
.storefront .product-price-list .catalog-service-row :is(span,b,small){color:var(--service-ink)}

.hub-welcome .hub-sales-ring{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:clamp(140px,19vw,210px);max-width:100%;flex-shrink:0;color:white;text-decoration:none;text-align:center;position:relative;z-index:1}.hub-sales-ring svg{width:100%;max-width:170px;height:auto;display:block}.hub-sales-ring small{font-size:10px;letter-spacing:1px;color:#fff}.hub-sales-ring strong{font-size:16px;color:#fff}.hub-sales-arc{transition:stroke-dasharray .8s ease,stroke .3s ease}.hub-sales-ring:focus-visible{outline:2px solid white;outline-offset:4px;border-radius:12px}@media(max-width:600px){.hub-welcome .hub-welcome-layout{flex-wrap:wrap}.hub-welcome .hub-sales-ring{margin:12px auto 0;width:160px}}@media(prefers-reduced-motion:reduce){.hub-sales-arc{transition:none}}

/* Compact mobile home: horizontal sales summary, accessible shortcuts. */
@media(max-width:767px){
 .hub-home .hub-welcome{padding:14px 14px 10px;margin-top:8px}
 .hub-home .hub-welcome-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .hub-home .hub-welcome h1{font-size:clamp(21px,5.5vw,28px);line-height:1.2;margin:6px 0}
 .hub-home .hub-welcome p{font-size:12px;line-height:1.5;margin:0}
 .hub-home .hub-welcome-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
 .hub-home .hub-welcome-actions a{min-width:0;min-height:44px;height:auto;padding:6px 8px;font-size:12px;line-height:1.25;box-sizing:border-box;text-align:center;display:flex;align-items:center;justify-content:center;gap:4px}
 .hub-home .hub-welcome-actions a:last-child{grid-column:1/-1}
 .hub-home .hub-welcome .hub-sales-ring{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;row-gap:3px;width:100%;margin:0;padding:8px 10px;box-sizing:border-box;border:1px solid #ffffff40;border-radius:12px;background:#ffffff0d;text-align:left;justify-items:start;align-content:center}
 .hub-home .hub-sales-ring svg{grid-column:1;grid-row:1/4;width:100px;max-width:100%;align-self:center}
 .hub-home .hub-sales-ring small:first-child{grid-column:2;grid-row:1;font-size:10px;align-self:end}
 .hub-home .hub-sales-ring strong{grid-column:2;grid-row:2;font-size:clamp(15px,4vw,20px);line-height:1.3}
 .hub-home .hub-sales-ring small:last-child{grid-column:2;grid-row:3;font-size:10px;align-self:start}
 .hub-home .hub-welcome-bottom{margin-top:9px;padding-top:7px}
 .hub-home .hub-tools{margin-top:12px}
}

/* Use the full available mobile browser viewport; retain browser-managed safe area. */
@media(max-width:767px){
 .hub-home .hub-global-header{width:100%;max-width:none;margin-inline:0;border-radius:0;padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
 .hub-home .hub-welcome{width:calc(100% - 8px);max-width:none;margin-inline:auto;padding-left:12px;padding-right:12px}
 .hub-home .hub-tools{width:calc(100% - 8px);max-width:none;margin-inline:auto}
}
