/* Offer eligibility and native popovers are shared across all photo overlays. */
.availability-primary{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.availability-primary>.ui-badge{min-width:0}
.shop-page .availability-primary .tyre-medals{display:inline-flex;flex-wrap:nowrap;flex-shrink:0;gap:3px;margin:0;align-items:center}
.shop-page .catalog-product-meta .availability-primary .tyre-medals{margin:0}
.shop-page .availability-primary button.tyre-medal{width:24px;height:26px;min-height:26px;border-radius:50%;transform:none}
.shop-page .availability-primary .tyre-medal::before{inset:1px 0;border:1px solid var(--tyre-medal-border,#ad8730);box-shadow:none}
.shop-page .availability-primary .tyre-medal::after{display:none}
.shop-page .availability-primary .tyre-medal lumen-icon{width:15px;height:15px}
.shop-page .availability-primary .tyre-medal:focus-visible{outline:2px solid hsl(var(--brand));outline-offset:3px}
.product-promotions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0 10px;min-height:24px}
.promotion-badge{display:inline-flex;flex:none}
.shop-page a.promotion-trigger{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:24px;padding:0;border:1px solid hsl(var(--brand)/.24);border-radius:50%;background:hsl(var(--brand)/.09);color:hsl(var(--brand));text-decoration:none}
.promotion-trigger lumen-icon{width:15px;height:15px;pointer-events:none}
.promotion-trigger img{display:block;width:32px;height:32px;pointer-events:none}
.shop-page a.promotion-trigger--image{width:32px;height:32px;min-height:32px;border:0;background:transparent}
.shop-page a.promotion-trigger--image:hover,.shop-page a.promotion-trigger--image[aria-expanded=true]{background:transparent;box-shadow:0 0 0 2px hsl(var(--brand)/.35)}
.promotion-picture{position:relative;min-width:0;isolation:isolate}
.promotion-picture>img{display:block}
.product-card-picture{margin:16px 0}
.product-card-picture>.product-picture{margin:0}
.catalog-picture-tools{display:contents}
.promotion-picture>.product-promotions--overlay,.catalog-picture-tools>.product-promotions--overlay{position:absolute;inset:6px auto 6px 6px;z-index:2;width:calc(100% - 12px);display:flex;flex-direction:column;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;gap:4px;min-height:0;margin:0;pointer-events:none}
.product-promotions--overlay .promotion-badge{pointer-events:auto}
.shop-page .product-promotions--overlay a.promotion-trigger{width:32px;height:32px;min-height:32px;background:hsl(var(--image-surface));color:hsl(var(--brand-solid));box-shadow:0 1px 3px hsl(var(--ink)/.14)}
.product-promotions--overlay .promotion-trigger lumen-icon{width:20px;height:20px}
.product-promotions--overlay .promotion-trigger--image{background:transparent}
.home-model-picture .product-promotions--overlay{top:auto;bottom:4px;left:4px;flex-direction:row;width:calc(100% - 8px)}
.shop-page .home-model-picture a.promotion-trigger,.shop-page .catalog-preview-picture a.promotion-trigger{width:24px;height:24px;min-height:24px}
.home-model-picture .promotion-trigger img,.catalog-preview-picture .promotion-trigger img{width:24px;height:24px}
.catalog-preview-picture{width:64px;height:64px;background:hsl(var(--image-surface));border-radius:3px}
.catalog-preview-picture>img{width:100%;height:100%;object-fit:contain}
.catalog-preview-picture .product-promotions--overlay{inset:0;width:100%}
html[data-catalog-view=list] .catalog-product-picture .product-promotions--overlay{inset:0 auto 0 0;width:100%}
html[data-catalog-view=list] .catalog-product-picture .promotion-trigger{width:24px;height:24px;min-height:24px}
html[data-catalog-view=list] .catalog-product-picture .promotion-trigger img{width:24px;height:24px}
html[data-catalog-view=list] .catalog-product-picture:has(.promotion-badge:nth-child(3)){min-height:80px}
html[data-catalog-view=list] .catalog-product-picture:has(.promotion-badge:nth-child(4)){min-height:108px}
html[data-catalog-view=list] .catalog-product-picture:has(.promotion-badge:nth-child(5)){min-height:136px}
.shop-page a.promotion-trigger:hover,.shop-page a.promotion-trigger[aria-expanded=true]{background:hsl(var(--brand)/.18);border-color:hsl(var(--brand)/.6)}
.promotion-trigger:focus-visible{outline:2px solid hsl(var(--brand));outline-offset:3px}
.promotion-popover{display:none}
.promotion-popover:popover-open{display:block}
.promotion-popover.ui-popover{position:fixed;inset:auto;margin:0;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:18px;border:1px solid hsl(var(--line));border-radius:6px;background:hsl(var(--surface));color:hsl(var(--ink));box-shadow:0 12px 36px hsl(var(--ink)/.2);font-size:13px;line-height:1.5;overflow:auto;overflow-wrap:anywhere;text-align:left}
.promotion-popover ul{margin:0;padding:0;list-style:none}
.promotion-popover li{padding:0 20px 0 0}
.promotion-popover li+li{border-top:1px solid hsl(var(--line));margin-top:14px;padding-top:14px}
.promotion-popover strong{display:block;font-size:14px;line-height:1.35;color:hsl(var(--ink))}
.promotion-popover p{margin:7px 0;color:hsl(var(--ink-muted))}
.promotion-popover p.promotion-partial{color:hsl(var(--brand));font-weight:700}
.promotion-popover a{color:hsl(var(--brand));text-underline-offset:3px}
.promotion-popover .promotion-period{font-size:11px}
.promotion-popover button.promotion-close{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:5px;border:0;border-radius:4px;background:transparent;color:hsl(var(--ink-muted))}
.promotion-close lumen-icon{width:16px;height:16px}
.promotion-size-link{display:block;margin-top:12px}
.product-promotion-details{margin:28px 0;border-block:1px solid hsl(var(--line));padding:18px 0}
.product-promotion-details>article{padding:14px 0}
.product-promotion-details h3{margin:0 0 8px}
.promotion-status{padding:12px;border:1px solid hsl(var(--line));background:hsl(var(--brand)/.08)}
.shop-page [data-promotion-badge][hidden],.shop-page [data-promotion-offer][hidden],.product-promotions[hidden],.product-promotion-details[hidden],[data-promotion-summary][hidden]{display:none!important}
html[data-catalog-view=list] .catalog-product .catalog-product-offer{align-items:flex-start;text-align:left}
@media(hover:none),(pointer:coarse){
 .shop-page a.promotion-trigger{width:40px;height:44px;min-height:44px;border:0;background:radial-gradient(circle at center,hsl(var(--brand)/.12) 12px,transparent 13px)}
 .product-promotions{gap:2px;margin-block:2px}
 .promotion-popover button.promotion-close{width:44px;height:44px;min-height:44px}
 .promotion-popover a{display:inline-flex;align-items:center;min-height:44px}
 .promotion-popover li{padding-right:24px}
 .shop-page .availability-primary button.tyre-medal{width:32px;height:44px;min-height:44px}
 .shop-page .availability-primary .tyre-medal::before{inset:10px 4px}
}
.product-promotion-summary{display:grid;gap:6px;margin:10px 0;min-width:0;text-align:left}
.promotion-summary-entry{font-size:11px;line-height:1.45;min-width:0}
.promotion-summary-mark{display:flex;align-items:flex-start;justify-content:center}
.promotion-summary-mark img,.promotion-summary-mark lumen-icon{width:24px;height:24px;flex:none}
.shop-page a.promotion-summary-trigger{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;min-height:36px;padding:4px 0;border-radius:3px;color:hsl(var(--ink));text-decoration:underline;text-decoration-color:hsl(var(--brand)/.45);text-underline-offset:3px;touch-action:manipulation}
.promotion-summary-trigger strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.shop-page a.promotion-summary-trigger:hover,.shop-page a.promotion-summary-trigger[aria-expanded=true]{color:hsl(var(--brand))}
.promotion-summary-trigger:focus-visible{outline:2px solid hsl(var(--brand));outline-offset:3px}
.promotion-summary-partial{color:hsl(var(--ink-muted))}
html.promotion-summary-open{overflow:hidden}
.promotion-summary-dialog{position:fixed;inset:0;transform:none;width:min(480px,calc(100vw - 24px));height:fit-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;margin:auto;padding:20px;border:1px solid hsl(var(--line));border-radius:6px;background:hsl(var(--surface));color:hsl(var(--ink));box-shadow:0 18px 60px rgb(0 0 0/.25);overflow:hidden;text-align:left;font-size:14px;line-height:1.6}
.promotion-summary-dialog:not([open]){display:none}
.promotion-summary-dialog[open]{display:flex;flex-direction:column;gap:12px}
.promotion-summary-dialog::backdrop{background:rgb(0 0 0/.55)}
.promotion-summary-dialog-heading{display:flex;align-items:flex-start;gap:12px;flex:none}
.promotion-summary-dialog-heading h2{flex:1;min-width:0;margin:0;font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.shop-page .promotion-summary-dialog .promotion-summary-close{position:static;display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;margin:-8px -8px 0 0;padding:12px;border:0;border-radius:3px;background:transparent;color:hsl(var(--ink-muted))}
.promotion-summary-close lumen-icon{width:20px;height:20px}
.shop-page .promotion-summary-dialog .promotion-summary-close:hover{background:hsl(var(--brand-soft));color:hsl(var(--ink))}
.promotion-summary-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain}
.promotion-summary-dialog-body:focus-visible{outline:2px solid hsl(var(--brand));outline-offset:-2px;border-radius:3px}
.promotion-summary-dialog-body p{margin:0;white-space:pre-line;overflow-wrap:anywhere}
.promotion-summary-dialog-body p+p{margin-top:12px}
.promotion-summary-dialog-body .promotion-summary-partial{color:hsl(var(--brand));font-weight:700}
.promotion-summary-dialog footer{flex:none;border-top:1px solid hsl(var(--line));padding-top:8px}
.shop-page a.promotion-summary-terms{display:inline-flex;align-items:center;min-height:44px;color:hsl(var(--brand));text-decoration:underline;text-underline-offset:3px}
@media(hover:none),(pointer:coarse){.shop-page a.promotion-summary-trigger{min-height:44px}}
@media(max-width:600px){.promotion-summary-dialog-heading h2{font-size:18px}}
.promotion-detail-heading{display:flex;align-items:center;gap:8px}
.promotion-detail-heading img,.promotion-detail-heading lumen-icon{width:24px;height:24px;flex:none}
.catalog-product-benefits{grid-area:benefits;margin:0 0 10px}
.pair-promotion-summary{grid-column:1/-1;margin:0}
.catalog-preview-heading>.product-promotion-summary{grid-column:1/-1;width:100%;max-height:150px;overflow:auto;margin:0}
html[data-catalog-view=list] .catalog-product:not(.catalog-pair):has(>.catalog-product-benefits){grid-template-areas:'picture title offer actions' 'picture meta offer actions' 'benefits benefits benefits benefits'}
@media(max-width:1100px){
 html[data-catalog-view=list] .catalog-product:not(.catalog-pair):has(>.catalog-product-benefits){grid-template-areas:'picture title offer' 'picture meta offer' 'picture actions actions' 'benefits benefits benefits'}
}
@media(max-width:600px){
 .catalog-page .catalog-grid:not([data-paired=true]){grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
 .catalog-page .catalog-product:not(.catalog-pair) .catalog-product-picture{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center;background:transparent;height:auto;min-height:0}
 .catalog-page .catalog-product:not(.catalog-pair) .product-picture{height:210px;background:hsl(var(--image-surface));border-radius:3px}
 .catalog-picture-tools{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0}
 .catalog-picture-tools>.product-promotions--overlay{position:static;inset:auto;width:44px;flex-wrap:nowrap;align-items:center;pointer-events:auto}
 .catalog-page .catalog-product .catalog-picture-tools .catalog-picture-hint{position:relative;order:2;width:40px;height:40px;min-height:40px;margin:0;padding:12px;border:0;background:transparent}
 .catalog-picture-tools .catalog-picture-hint::before{content:'';position:absolute;inset:4px;border:1px solid hsl(var(--on-brand));border-radius:50%;background:hsl(var(--brand-solid));pointer-events:none}
 .catalog-picture-tools .catalog-picture-hint lumen-icon{position:relative;z-index:1}
 .catalog-page .catalog-picture-tools a.promotion-trigger{width:40px;height:40px;min-height:40px;background:transparent;box-shadow:none}
 .catalog-page .catalog-product .catalog-picture-tools .promotion-trigger img{width:32px;height:32px}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair){grid-template-columns:148px minmax(0,1fr)}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair):has(>.catalog-product-benefits){grid-template-areas:'picture title' 'picture meta' 'benefits benefits' 'offer offer' 'actions actions'}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair) .catalog-product-picture{width:148px;grid-template-columns:96px 44px}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair) .product-picture{width:96px;height:96px;padding:6px}
 .product-card-picture:has(>.product-promotions--overlay),.product-detail-picture:has(>.product-promotions--overlay),.catalog-preview-picture:has(>.product-promotions--overlay){display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center;background:transparent;height:auto;min-height:0}
 :is(.product-card-picture,.product-detail-picture,.catalog-preview-picture)>.product-promotions--overlay{position:static;inset:auto;width:44px;flex-wrap:nowrap;align-items:center;pointer-events:auto}
 :is(.product-card-picture,.product-detail-picture,.catalog-preview-picture)>.product-promotions--overlay a.promotion-trigger{width:40px;height:40px;min-height:40px;box-shadow:none;background:transparent}
 :is(.product-card-picture,.product-detail-picture,.catalog-preview-picture)>.product-promotions--overlay .promotion-trigger img{width:32px;height:32px}
 .product-detail-picture .detail-picture{min-width:0;width:100%;background:hsl(var(--image-surface))}
 .catalog-page .catalog-preview-heading{grid-template-columns:148px minmax(0,1fr)}
 .catalog-preview-heading .catalog-preview-picture{width:148px}
 .catalog-preview-picture>img{width:96px;height:96px;object-fit:contain;background:hsl(var(--image-surface));border-radius:3px}
 .catalog-product-benefits{margin-bottom:4px}
 .catalog-page .catalog-product-meta .availability-primary{flex-wrap:wrap;row-gap:6px}
 .home-model-picture:has(>.product-promotions--overlay){display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:6px;background:transparent}
 .home-model-picture:has(>.product-promotions--overlay)>a:first-child{background:hsl(var(--image-surface));min-width:0}
 .home-model-picture>.product-promotions--overlay{position:static;inset:auto;width:40px;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;pointer-events:auto}
 .shop-page .home-model-picture>.product-promotions--overlay a.promotion-trigger{width:36px;height:36px;min-height:36px;box-shadow:none}
 .home-model-picture:has(>.product-promotions--overlay) .home-model-favorite{right:50px}
 .promotion-summary-entry a{padding-block:4px}
}

/* Medals align with the season; compact photo controls align with the stock badge. */
html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair) .product-title{font-size:18px;line-height:1.35;min-height:0;margin-bottom:14px}
html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair) .catalog-product-picture{display:block;background:hsl(var(--image-surface))}
html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair) .catalog-picture-tools{display:none}
.catalog-page .catalog-product:not(.catalog-pair) .catalog-product-meta{--catalog-stock-height:26px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;min-width:0}
.catalog-page .catalog-product-meta>.catalog-season-row{grid-column:1/-1;grid-row:1;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;margin-top:10px}
.catalog-page .catalog-product-meta>.catalog-season-row>.product-tags{flex:1;min-width:0;margin:0}
.catalog-page .catalog-product-meta>.catalog-season-row>.tyre-medals{margin:0;justify-content:flex-end;gap:3px}
.catalog-page .catalog-product-meta>.catalog-availability{grid-column:1;grid-row:2;min-width:0}
.catalog-page .catalog-product-meta .availability-primary>[data-stock-kind]{min-height:var(--catalog-stock-height);white-space:nowrap}
.catalog-photo-actions{grid-column:2;grid-row:2;align-self:start;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
.catalog-page .catalog-product .catalog-photo-actions>.ui-button{position:relative;inset:auto;flex:none;width:var(--catalog-stock-height);height:var(--catalog-stock-height);min-height:var(--catalog-stock-height);margin:0;padding:4px;border:1px solid hsl(var(--line)/.6);border-radius:3px;background:hsl(var(--surface));color:hsl(var(--brand))}
.catalog-page .catalog-product .catalog-photo-actions>.ui-button lumen-icon{width:16px;height:16px}
@media(pointer:coarse){.catalog-photo-actions>.ui-button::after,.tyre-medals--compact .tyre-medal::after{content:'';display:block;position:absolute;inset:-9px -3px;background:transparent;clip-path:none;z-index:0}}
.catalog-photo-actions>[data-favorite] span{display:none}
.catalog-page .catalog-product .catalog-photo-actions>.ui-button:hover{background:hsl(var(--brand-soft));border-color:hsl(var(--brand))}
.catalog-page .catalog-product .catalog-photo-actions>.ui-button:focus-visible{outline:2px solid hsl(var(--brand));outline-offset:3px}
@media(max-width:600px){
 html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair) .product-title{font-size:20px}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair){grid-template-columns:96px minmax(0,1fr);grid-template-areas:'picture title' 'meta meta' 'offer offer' 'actions actions'}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair):has(>.catalog-product-benefits){grid-template-areas:'picture title' 'meta meta' 'benefits benefits' 'offer offer' 'actions actions'}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair) .product-title{display:flex;align-items:center;min-height:96px}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair) .catalog-product-picture{display:block;align-self:start;width:96px;height:96px;min-height:0;margin:0}
 html[data-catalog-view=list] .catalog-page .catalog-product:not(.catalog-pair) .catalog-picture-tools{display:none}
}

/* Share title tracks within each card row so photos stay level without clipping names. */
@supports(grid-template-rows:subgrid){
 html:not([data-catalog-view=list]) .catalog-page .catalog-grid:not([data-paired=true])>.catalog-product:not(.catalog-pair){display:grid;grid-row:span 6;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;row-gap:0}
 html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair)>*{grid-column:1}
 html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair)>.product-title{grid-row:1}
 html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair)>.catalog-product-picture{grid-row:2}
 html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair)>.catalog-product-meta{grid-row:3}
 html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair)>.catalog-product-benefits{grid-row:4}
 html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair)>.catalog-product-offer{grid-row:5}
 html:not([data-catalog-view=list]) .catalog-page .catalog-product:not(.catalog-pair)>.catalog-product-actions{grid-row:6}
}
