/* Shared commerce extension. Brand palette: #18191c, #242528, #d5001c, #c2a164, #fff. */

html[data-theme="light"] .catalog-page{
  --line:#bcb5a9;
  --catalog-control-line:#a39b8f;
  --catalog-icon:#62491f;
}
html[data-theme="light"] .catalog-page :is(.vehicle-panel input,.vehicle-panel select,.subcategory-grid button,.category-card){
  --line:var(--catalog-control-line);
}
html[data-theme="light"] .catalog-page .vehicle-context{
  color:var(--catalog-icon);
  border-color:var(--catalog-control-line);
}
html[data-theme="light"] .catalog-page :is(.breadcrumbs,.category-sidebar,.catalog-main-heading,.catalog-title,.category-card,.subcategory-grid,.catalog-help) svg:not(.button svg){
  color:var(--catalog-icon);
  opacity:1;
  stroke-width:1.75;
}
html[data-theme="light"] .catalog-page .porscha-progress{filter:none}
html[data-theme="light"] .catalog-page .porscha-progress button:not([aria-current="true"]):not(:hover,:focus-visible,.is-near-pointer){color:var(--ink)}
html[data-theme="light"] .catalog-page .porscha-progress button:not(.porscha-progress-top)::before{opacity:1}
html[data-theme="light"] .catalog-page .porscha-progress-minor::before{background:#7d7870;opacity:1}
.commerce-page{background:var(--page-bg);color:var(--ink)}
.commerce-page button{cursor:pointer}
.commerce-page .site-header{position:relative;left:auto;right:auto;gap:40px;height:104px}
.commerce-page .nav{gap:30px}
.commerce-page .brand{flex-shrink:0}
.commerce-page .header-contact{gap:22px}
.commerce-page h1{font:var(--heading-weight) 60px/1.06 var(--heading-font);letter-spacing:-.025em;margin:19px 0 23px}
.commerce-page .section{padding:96px 0;background:var(--page-bg)}
.commerce-page .section:nth-of-type(even){background:var(--alternate-bg)}
.commerce-page .section h2{font-size:45px;line-height:1.16}
.commerce-page .section-top{margin-bottom:48px}
.commerce-page .large-copy{color:var(--copy)}
.commerce-page .section-lead{max-width:420px;color:var(--copy)}
.commerce-page .button{border-width:1px;cursor:pointer}
.commerce-page .text-link{color:var(--gold);background:none;border:0;cursor:pointer}
.commerce-page .glass,.commerce-page .contact-address{background:linear-gradient(135deg,var(--panel-bg),var(--field-bg));border:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 12px 32px #00000008;backdrop-filter:blur(12px)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
.commerce-page :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.store-stage{height:calc(100vh / var(--porscha-scale,1));display:grid;position:relative;isolation:isolate;background:var(--page-bg)}
.store-stage::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(0deg,#101214 0%,rgba(16,18,20,.12) 25%,transparent 50%),url('assets/store/hero-dark-wide.png');background-size:cover;background-position:center -100px;background-repeat:no-repeat}
html[data-theme="light"] .store-stage::before{background-image:linear-gradient(0deg,#fff 0%,rgba(255,255,255,.10) 25%,transparent 50%),url('assets/store/hero-light-wide.png')}
.shopbar{height:54px;display:flex;align-items:stretch;gap:14px;position:relative;z-index:2}
.catalog-button{display:flex;align-items:center;justify-content:center;gap:12px;background:var(--red);font-size:17px;font-weight:600;min-width:227px;border-radius:3px;color:#fff}
.catalog-button svg{width:22px;height:22px}
.part-search{display:flex;align-items:center;flex:1;border:1px solid var(--line);border-radius:3px;background:var(--panel-bg);backdrop-filter:blur(14px);padding-left:17px;gap:13px}
.part-search>svg{width:20px;flex-shrink:0;color:var(--copy)}
.part-search input{width:100%;min-width:0;color:var(--ink);border:0;background:transparent;font-size:15px;height:100%;outline:none}
.part-search:focus-within{border-color:var(--gold)}
.commerce-page .part-search input:focus-visible{outline:none}
.commerce-page .part-search button:focus-visible{outline:1px solid currentColor;outline-offset:-4px}
@media(forced-colors:active){.part-search:focus-within{outline:1px solid Highlight;outline-offset:2px}}
.part-search input::placeholder{color:var(--copy)}
.part-search button{height:52px;width:58px;flex-shrink:0;background:var(--red);border:0;color:#fff;border-radius:0 2px 2px 0}
.part-search button svg{width:23px;height:23px}
@media /*fhd*/ (max-width:1100px) and (max-width: 1279px), (max-width:1100px) and (hover: none), (max-width:1100px) and (pointer: coarse) {
  .commerce-page .part-search{padding-left:10px;gap:7px}
}
@media(max-width:760px){
  .commerce-page .part-search input{font-size:clamp(13px,calc(3.4vw / var(--porscha-scale,1)),15px)}
}
@media(max-width:380px){
  .commerce-page .part-search{padding-left:4px;gap:0}
  .commerce-page .part-search>svg{display:none}
  .commerce-page .part-search input{padding-inline:0}
}
@media(max-width:350px){
  .commerce-page .part-search input{font-size:clamp(12px,calc(3.75vw / var(--porscha-scale,1)),13px)}
}
@media(min-width:761px) and (max-width:820px){
  .commerce-page .part-search>svg{display:none}
  .commerce-page .part-search input{font-size:clamp(14px,calc(1.85vw / var(--porscha-scale,1)),15px)}
}
@media /*fhd*/ (min-width:761px) and (max-width:1100px) and (max-width: 1279px), (min-width:761px) and (max-width:1100px) and (hover: none), (min-width:761px) and (max-width:1100px) and (pointer: coarse) {
  .commerce-page .shopbar .catalog-button{min-width:190px;font-size:15px;gap:8px}
  .commerce-page .shopbar .garage-button{padding-inline:10px;gap:6px}
  .commerce-page .shopbar .garage-button svg:last-child{display:none}
  .commerce-page:has(.site-header .header-cart) .shopbar>.cart-button{display:none}
}
.garage-button{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:3px;background:var(--panel-bg);backdrop-filter:blur(12px);color:var(--ink);padding:0 18px;font-size:14px}
.garage-button svg{width:21px;height:21px;color:var(--gold)}
.garage-button svg:last-child{width:15px}
/* Follow-up 1 (2026-11-10): with a saved car the head script puts the model into --garage-label before the first paint, so the
   bar keeps its final widths; commerce.js then writes the same text into the label and drops data-vehicle-label. Phones keep
   their own label size and a fixed grid cell, so the swap there never moves the neighbours. */
@media(min-width:761px){
  html[data-vehicle-label] .garage-button [data-garage-label]{display:none}
  html[data-vehicle-label] .garage-button svg:last-child{order:2}
  html[data-vehicle-label] .garage-button::after{content:var(--garage-label) / "";order:1;white-space:nowrap}
}
.store-masthead{display:flex;align-items:center;position:relative}
.store-copy{max-width:680px;padding:24px 0}
.store-copy .hero-awards{margin:0 0 29px;gap:30px;transform:none;justify-content:flex-start}
.store-copy .eyebrow{font-size:15px}
.store-copy h1{font-size:60px;text-wrap:balance}
@media /*fhd*/ (min-width:1101px) and (min-height:851px), (hover: hover) and (pointer: fine) and (min-width: 1280px) and (max-width: 1919px) {.store-page .store-copy h1{font-size:clamp(44px,calc(5.8vh / var(--porscha-scale,1)),54px)}}
.store-intro{font-size:21px;line-height:1.55;margin:0;max-width:590px;color:var(--copy)}
.store-copy .actions{margin-top:29px}

.quick-finder{display:flex;align-items:center;gap:34px;padding:20px 25px;height:100px;position:relative;z-index:1}
.finder-intro{min-width:345px}
.finder-intro strong{font-size:18px;font-weight:500}
.finder-tabs{display:flex;gap:23px;margin-top:13px}
.finder-tabs button{padding:0 0 5px;border:0;background:none;color:var(--copy);font-size:13px;border-bottom:1px solid transparent}
.finder-tabs button.selected{color:var(--gold);font-weight:600}
.finder-content{display:flex;flex:1;gap:16px;align-items:flex-end}.finder-form{display:contents} /* TASK-0406: the tab panel is a div, the form inside keeps its fields */
.commerce-page label{font-size:12px;color:var(--copy);display:block}
.commerce-page :is(label input,label select,label textarea){display:block;width:100%;margin-top:6px;border:1px solid var(--line);border-radius:2px;background:var(--field-bg);color:var(--ink);height:44px;padding:0 13px;outline:none;font-size:14px}
.commerce-page option{background:var(--page-bg);color:var(--ink)}
.finder-content label{flex:1}
.finder-content .button{height:44px;min-width:240px}
.finder-content .vin-field{flex:1.8}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.category-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid var(--line);border-radius:3px;background:linear-gradient(140deg,rgba(36,37,40,.65),rgba(24,25,28,.46));backdrop-filter:blur(10px);padding:10px 18px 15px;min-height:158px}
.category-card img{width:100%;height:100px;object-fit:contain;display:block;filter:drop-shadow(0 8px 6px rgba(0,0,0,.12))}
.category-card>span{display:block;font-size:14px;line-height:1.35;min-height:38px;max-width:210px}
:is(.store-page,.catalog-page) .category-card>span{width:100%;min-width:0;max-width:min(100%,210px)}
.category-card>svg{position:absolute;right:11px;top:11px;width:13px;height:13px;color:var(--gold);opacity:.65}
.category-card:hover{border-color:var(--gold);background:var(--panel-bg)}
html[data-theme="light"] .category-card{background:linear-gradient(135deg,rgba(255,255,255,.80),rgba(241,242,243,.80))}
.commerce-page .metrics{background:var(--alternate-bg);padding:0}
.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.trust-grid article{border-top:1px solid rgba(194,161,100,.5);padding:28px 22px 4px 0}
.trust-grid svg{width:34px;height:34px;stroke-width:1.4;color:var(--gold);display:block;margin-bottom:26px}
.trust-grid span{font-size:11px;letter-spacing:.12em;color:var(--gold)}
.commerce-page h3{font-size:21px;line-height:1.3;margin:13px 0}
.trust-grid p,.order-grid p,.delivery-cards p{font-size:16px;line-height:1.6;color:var(--copy);margin:0;max-width:390px}
.editorial-split{display:grid;grid-template-columns:1.03fr .97fr;gap:90px;align-items:center}
.store-selection .editorial-copy h2{text-wrap:balance}
.editorial-photo{position:relative;min-width:0}
.editorial-photo img{display:block;width:100%;height:430px;object-fit:cover}
.editorial-photo::after{content:"";position:absolute;inset:75% 0 0;background:linear-gradient(transparent,#0009)}
.editorial-copy .eyebrow{margin-bottom:18px}
.editorial-copy h2{margin:0 0 25px}
.editorial-copy .checks{font-size:17px;gap:18px;margin:28px 0 35px;color:var(--ink)}
.order-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:35px}
.order-grid article{border-top:1px solid var(--line);padding-top:27px}
.order-grid b{font:400 45px Russo,"Russo Fallback",sans-serif;color:var(--gold);opacity:.75}
.order-grid h3{margin:22px 0 11px}
.delivery-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:100px;align-items:center}
.delivery-layout h2{margin:20px 0 26px}
.delivery-layout .text-link{margin-top:20px}
.delivery-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.delivery-cards article{padding:29px}
.delivery-cards article:last-child{grid-column:span 2;display:grid;grid-template-columns:42px 1fr;align-items:start;column-gap:18px}
.delivery-cards article:last-child svg{grid-row:span 2}
.delivery-cards h3{margin-top:17px}
.delivery-cards article:last-child h3{margin:0 0 8px}
.delivery-cards svg{width:33px;height:33px;color:var(--gold);stroke-width:1.5}
.store-service-banner{
  --service-banner-photo:url('assets/optimized/hero-service-cayenne-turbo-electric-lift-verified-dark.webp');
  --service-banner-surface:#0b0d0f;
  min-height:510px;display:flex;align-items:center;background-color:var(--service-banner-surface);
  background-image:linear-gradient(90deg,var(--service-banner-surface) max(0px,calc(100% - 1020px)),color-mix(in srgb,var(--service-banner-surface) 80%,transparent) max(0px,calc(100% - 800px)),transparent max(46%,calc(100% - 520px))),var(--service-banner-photo);
  background-size:100% 100%,min(100%,1020px) auto;background-position:right center;background-repeat:no-repeat;
}
.banner-copy{max-width:630px;padding:68px 0}
.banner-copy h2{font-size:45px;line-height:1.16;margin:18px 0 23px}
.banner-copy>p:not(.eyebrow){font-size:18px;line-height:1.6;color:#b7b9be;margin:0 0 28px;max-width:520px}
html[data-theme="light"] .store-service-banner{
  --service-banner-photo:url('assets/optimized/hero-service-cayenne-turbo-electric-lift-verified-light.webp');
  --service-banner-surface:#fff;
}
@media /*fhd*/ (max-width:1100px) and (orientation:portrait) and (max-width: 1279px), (max-width:1100px) and (orientation:portrait) and (hover: none), (max-width:1100px) and (orientation:portrait) and (pointer: coarse) {
  .store-service-banner{min-height:0;background-image:none;align-items:stretch;flex-direction:column}
  .store-service-banner::before{content:"";display:block;aspect-ratio:2;background:var(--service-banner-photo) center / contain no-repeat}
  .store-service-banner .banner-copy{padding-block:30px 44px}
}
html[data-theme="light"] .banner-copy>p:not(.eyebrow){color:#56585d}
.commerce-page .reviews{background:var(--page-bg);padding:75px 0}
.commerce-page .faq{background:var(--alternate-bg)}
.commerce-page .contact{background:var(--page-bg)}
.footer-navigation{display:none}
.commerce-page .map-section,.commerce-page .footer{background:var(--alternate-bg)}
.commerce-page .footer .brand-subtitle{display:none}
.commerce-page .contact-actions .button{min-width:0}
.request-dialog{width:650px;max-width:calc(calc(100vw / var(--porscha-scale,1)) - 40px);padding:43px;border:1px solid rgba(194,161,100,.38);border-radius:4px;background:var(--page-bg);color:var(--ink);box-shadow:0 30px 100px #0007}
.request-dialog::backdrop{background:rgba(4,6,8,.70);backdrop-filter:blur(7px)}
.dialog-close{position:absolute;right:17px;top:17px;border:0;background:transparent;color:var(--copy);width:30px;height:30px}
.dialog-close svg{width:22px;height:22px}
.request-dialog h2{font:var(--heading-weight) 31px/1.17 var(--heading-font);margin:16px 0}
.dialog-intro,.request-dialog #request-result>p{color:var(--copy);font-size:15px;line-height:1.6}
.request-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.request-dialog label{margin:17px 0}
.request-dialog label span{font-size:11px;font-weight:400;margin-left:5px}
.request-dialog textarea{height:86px!important;padding:12px!important;resize:vertical;line-height:1.5}
.form-note{font-size:12px;color:var(--copy);line-height:1.5;margin:18px 0}
.request-dialog form>.button{width:100%}
.request-dialog pre{font:400 14px/1.6 Golos,"Golos Fallback",Arial,sans-serif;white-space:pre-wrap;background:var(--panel-bg);border:1px solid var(--line);padding:18px;max-height:240px;overflow:auto}
.dialog-actions{display:flex;gap:12px;flex-wrap:wrap}
.dialog-actions .button{font-size:13px;height:48px;padding:0 15px;min-width:0;flex:1}
.plain-button{border:0;padding:0;background:none;color:var(--gold);font-size:13px;text-decoration:underline;text-underline-offset:5px}
#edit-request{margin-top:20px}
.catalog-overview{padding-bottom:55px;background:var(--page-bg)}
.catalog-page .shopbar{margin-bottom:12px}
.breadcrumbs{display:flex;gap:11px;align-items:center;font-size:12px;color:var(--copy);padding:15px 0}
.breadcrumbs svg{width:12px;height:12px;color:var(--gold)}
.catalog-title{display:flex;justify-content:space-between;align-items:center;margin:12px 0 22px}
.catalog-title h1{font-size:43px;margin:11px 0 0;text-wrap:balance}
.catalog-title .eyebrow{font-size:12px}
.vehicle-panel{padding:19px 23px;position:relative}
.vehicle-top{display:flex;align-items:center;gap:20px;margin-bottom:13px}
.vehicle-top strong{font-size:17px;font-weight:500}
.vehicle-top span{font-size:12px;color:var(--copy)}
.vehicle-top .plain-button{margin-left:auto}
.vehicle-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-left:auto}
.vehicle-top .vehicle-actions .plain-button{margin:0}
@media /*fhd*/ (max-width:1100px) and (max-width: 1279px), (max-width:1100px) and (hover: none), (max-width:1100px) and (pointer: coarse) {
  .commerce-page .vehicle-top{flex-wrap:wrap;gap:10px 20px}
  .commerce-page .vehicle-top>strong{flex:0 0 auto}
  .commerce-page .vehicle-top>span{flex:1 1 280px}
  .commerce-page .vehicle-top>.vehicle-actions:has(>button:not([hidden])){flex:1 1 280px;margin-left:0}
}
.vehicle-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.commerce-page .vehicle-fields>label{display:flex;flex-direction:column;gap:6px}
.commerce-page .vehicle-fields>label>:is(input,select){margin-top:auto}
@media(max-width:570px){.commerce-page .vehicle-panel .vehicle-fields{grid-template-columns:minmax(0,1fr)}}
.vehicle-bottom{display:flex;align-items:flex-end;gap:20px;margin-top:13px}
.vehicle-bottom label{display:flex;align-items:center;gap:14px;flex:1;font-size:13px}
.vehicle-bottom input{margin:0!important}
.vehicle-bottom>span{color:var(--copy);font-size:12px;flex:1}
.vehicle-bottom .button{height:44px;font-size:13px;min-width:237px}
.vehicle-bottom .button.is-saved{background:var(--panel-bg);border-color:var(--line);color:var(--ink);cursor:default;transform:none;box-shadow:none;filter:none}
html[data-theme="light"] .vehicle-bottom .button.is-saved{color:var(--ink)}
.vehicle-bottom .button.is-saved svg{color:var(--gold)}
.inline-status[data-status="saved"]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.inline-status{margin:0;color:var(--gold);font-size:12px;line-height:1.5}
.inline-status:not(:empty){margin:9px 0 0}
.catalog-workspace{display:grid;grid-template-columns:275px 1fr;gap:32px;margin-top:29px;align-items:start}
.category-sidebar h2{font-size:17px;font-weight:600;margin:0 0 15px}
.category-sidebar>a{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:10px 6px;font-size:12px;line-height:1.4;color:var(--copy)}
.category-sidebar>a svg{width:14px;height:14px;flex-shrink:0;color:var(--gold)}
.category-sidebar .all-category-link{font-weight:600;color:var(--ink);padding-top:0;padding-bottom:14px}
.category-sidebar a.selected{color:var(--gold);border-left:2px solid var(--red);padding-left:12px}
html:not([data-theme="light"]) .catalog-page :is(.category-sidebar>a,.vehicle-panel label,.vehicle-panel input,.vehicle-panel select,.vehicle-top span,.vehicle-bottom>span){color:var(--ink)}
html:not([data-theme="light"]) .catalog-page .vehicle-panel input::placeholder{color:var(--ink);opacity:1}
.catalog-main-heading{display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:10px 22px;margin-bottom:17px;min-height:43px}
/* TASK-0202/0301: on narrow screens the title, vehicle context and link wrap instead of widening the page. */
.catalog-main-heading>div{min-width:0}
.catalog-main-heading h2{font-size:21px;margin:0 0 7px;font-weight:600}
.catalog-main-heading p{margin:0;color:var(--copy);font-size:12px}
.vehicle-context{border:1px solid rgba(194,161,100,.35);color:var(--gold);font-size:11px;padding:7px 10px;border-radius:2px;min-width:0}
.full-category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}
.full-category-grid .category-card{min-height:166px;padding:8px 10px 12px}
.full-category-grid .category-card img{height:105px}
.full-category-grid .category-card>span{font-size:12px;min-height:34px}
@media /*fhd*/ (max-width:1100px) and (max-width: 1279px), (max-width:1100px) and (hover: none), (max-width:1100px) and (pointer: coarse) {
  .store-page .store-catalog-section .category-card>span{font-size:clamp(12px,calc(3vw / var(--porscha-scale,1)),15px)}
}
@media /*fhd*/ (max-width:1440px) and (max-width: 1279px), (max-width:1440px) and (hover: none), (max-width:1440px) and (pointer: coarse) {
  body.catalog-index .full-category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,156px),1fr))}
}
@media /*fhd*/ (min-width:1101px) and (max-width:1440px) and (max-width: 1279px), (min-width:1101px) and (max-width:1440px) and (hover: none), (min-width:1101px) and (max-width:1440px) and (pointer: coarse) {
  .store-page .store-catalog-section .category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
}
@media(max-width:480px){
  .store-page .store-catalog-section .category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}
}
.category-detail-top{display:grid;grid-template-columns:230px 1fr;gap:20px;padding:22px;align-items:center}
.category-detail-top img{width:230px;height:170px;object-fit:contain}
.category-detail-top h3{font:var(--heading-weight) 25px/1.2 var(--heading-font);margin:11px 0}
.category-detail-top p:not(.eyebrow){color:var(--copy);font-size:13px;line-height:1.5;margin-bottom:18px}
.category-detail-top .eyebrow{font-size:10px}
.category-detail-top .button{min-width:0}
/* Keep the category action visible in a short laptop window without hiding the vehicle form. */
@media /*fhd*/ (min-width:1101px) and (max-height:800px) and (max-width: 1279px), (min-width:1101px) and (max-height:800px) and (min-width: 1920px), (min-width:1101px) and (max-height:800px) and (hover: none), (min-width:1101px) and (max-height:800px) and (pointer: coarse) {
  .catalog-page[data-category] .breadcrumbs{padding-block:6px}
  .catalog-page[data-category] .catalog-title{margin:3px 0 12px}
  .catalog-page[data-category] .catalog-title h1{font-size:clamp(35px,calc(2.6vw / var(--porscha-scale,1)),40px);margin-top:7px}
  .catalog-page[data-category] .vehicle-panel{padding-block:10px}
  .catalog-page[data-category] .vehicle-top{margin-bottom:6px}
  .catalog-page[data-category] .vehicle-bottom{margin-top:6px}
  .catalog-page[data-category] .catalog-workspace{margin-top:16px}
  .catalog-page[data-category] .catalog-main-heading{margin-bottom:8px}
  .catalog-page[data-category] .category-detail-top{padding-block:14px}
  .catalog-page[data-category] .category-detail-top img{height:150px}
}
.subcategory-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px}
.subcategory-grid button{display:flex;align-items:center;justify-content:space-between;padding:16px;border:1px solid var(--line);border-radius:2px;color:var(--ink);background:var(--panel-bg);font-size:13px;text-align:left}
.subcategory-grid svg{width:16px;height:16px;color:var(--gold);flex-shrink:0}
.search-state{padding:35px}
.search-state h3{font:var(--heading-weight) 28px/1.2 var(--heading-font)}
.search-state p{color:var(--copy);max-width:600px;line-height:1.6}
.search-state .text-link{display:block;margin-top:22px;width:max-content}
.catalog-help{background:var(--alternate-bg);padding:35px 0}
.catalog-help>.wrap{display:flex;align-items:center;justify-content:space-between;gap:30px}
.catalog-help>.wrap>div{display:flex;align-items:center;gap:20px}
.catalog-help svg{width:36px;height:36px;color:var(--gold)}
.catalog-help h2{font-size:19px;margin:0 0 8px}
.catalog-help p{color:var(--copy);font-size:14px;margin:0}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.home-stage{height:calc(100vh / var(--porscha-scale,1));position:relative;isolation:isolate;background:var(--page-bg)}
.home-stage::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(10,12,14,.87) 0%,rgba(10,12,14,.77) 26%,rgba(10,12,14,.13) 53%,transparent 73%),url('assets/store/home-dark.png') center/cover no-repeat}
html[data-theme="light"] .home-stage::before{background-image:linear-gradient(90deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.83) 26%,rgba(255,255,255,.08) 53%,transparent 73%),url('assets/store/home-light.png')}
.home-hero{height:calc(100% - 104px);display:flex;align-items:center;padding-bottom:40px}
.home-copy{max-width:760px}
.home-copy .hero-awards{margin:0 0 42px;justify-content:flex-start;gap:30px;transform:none}
.home-copy h1{font-size:68px;margin:24px 0 35px}
.home-intro{font-size:24px;line-height:1.55;color:var(--copy);margin-bottom:38px}
.home-copy .checks{gap:19px;color:var(--ink)}
.home-copy .actions{margin-top:47px}

.home-scroll{position:absolute;left:calc((100% - min(1600px,100% - 300px))/2 + 20px);bottom:30px;color:var(--copy);display:flex;align-items:center;gap:15px;font-size:12px}
.home-scroll svg{width:17px;height:17px;color:var(--gold)}
@media /*fhd*/ (min-width:1101px), (hover: hover) and (pointer: fine) and (min-width: 1280px) and (max-width: 1919px) {
  .home-page #directions{
    display:grid;align-items:center;min-height:calc(100dvh / var(--porscha-scale,1));
    padding-block:clamp(24px,calc(4dvh / var(--porscha-scale,1)),52px);scroll-margin-top:calc(-90px / var(--porscha-scale,1));
  }
}
#directions .direction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#directions .direction-card{
  --direction-tint:17,19,21;
  --direction-accent:var(--gold);
  display:grid;min-width:0;container-type:inline-size;
  overflow:hidden;background:var(--alternate-bg);color:var(--ink);
  border:1px solid rgba(194,161,100,.25);
}
html[data-theme="light"] #directions .direction-card{--direction-tint:241,242,243;--direction-accent:#765522}
#directions .direction-visual{
  position:relative;isolation:isolate;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(155px,34%);align-content:end;align-items:end;gap:16px;
  min-height:clamp(390px,calc(62dvh / var(--porscha-scale,1)),570px);
  padding:clamp(20px,4.4cqi,36px);background:rgb(var(--direction-tint));
}
#directions .direction-visual img{position:absolute;inset:0 0 auto;width:100%;height:76%;object-fit:cover;object-position:85% center}
#directions .direction-visual::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(0deg,rgb(var(--direction-tint)) 0% 25%,rgba(var(--direction-tint),.90) 33%,rgba(var(--direction-tint),.35) 43%,transparent 58%);
}
#directions .direction-copy{position:relative;z-index:1;width:min(100%,440px);margin:0}
#directions .direction-eyebrow{
  margin:0 0 11px;color:var(--direction-accent);
  font-size:clamp(11px,2.15cqi,14px);line-height:1.35;font-weight:600;letter-spacing:.11em;text-transform:uppercase;
}
#directions .direction-copy h3{font:var(--heading-weight) clamp(25px,5.5cqi,44px)/1.12 var(--heading-font);margin:0 0 14px}
#directions .direction-description{max-width:35ch;margin:0 0 15px;color:var(--ink);font-size:clamp(14px,2.55cqi,18px);line-height:1.4}
#directions .direction-points{
  display:grid;gap:7px;list-style:none;margin:0;padding:0;
  color:var(--copy);font-size:clamp(13px,2.4cqi,16px);line-height:1.35;
}
#directions .direction-points li{display:flex;align-items:flex-start;gap:8px}
#directions .direction-points svg{width:15px;height:15px;margin-top:2px;flex:none;color:var(--red);stroke-width:3.4}
#directions .direction-link{
  position:relative;z-index:1;align-self:end;justify-self:end;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:min(100%,var(--action-width));height:var(--action-height);padding:0 18px;border-radius:4px;
  color:#fff;background:var(--red);font-size:var(--action-font-size);font-weight:600;line-height:1.25;
}
#directions .direction-link svg{width:20px;height:20px;flex:none}
#directions .direction-card:hover{border-color:var(--gold)}
#directions .direction-card:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
/* TASK-0100: the action keeps the shared --action-width. The copy spans the card; only the points list stays clear of the action.
   On a really narrow two-column card the action moves to its own row under the copy. Phones keep their own rules below. */
@media(min-width:601px){
  #directions .direction-visual{grid-template-columns:minmax(0,1fr) min(100%,var(--action-width))}
  #directions .direction-copy{grid-column:1 / -1;grid-row:1}
  #directions .direction-link{grid-column:2;grid-row:1}
  #directions .direction-points{max-width:calc(100cqi - 2 * clamp(20px,4.4cqi,36px) - var(--action-width) - 16px)}
  @container (max-width:480px){
    #directions .direction-visual{grid-template-columns:minmax(0,1fr)}
    #directions .direction-copy{grid-column:1}
    #directions .direction-link{grid-column:1;grid-row:2}
    #directions .direction-points{max-width:none}
  }
}
@media(max-width:900px){
  #directions .direction-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
  #directions .direction-visual{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    padding-top:clamp(165px,55cqi,235px);
  }
  #directions .direction-visual img{
    height:clamp(204px,67cqi,278px);
    object-position:94% center;
    mask-image:linear-gradient(#000 0 67%,transparent 100%);
  }
  #directions .direction-visual::after{content:none}
  #directions .direction-copy{width:min(100%,330px);margin:0}
  #directions .direction-copy h3{max-width:none;margin-bottom:10px;font-size:clamp(25px,6.5cqi,34px)}
  #directions .direction-points{gap:5px}

}
#home-parts{padding-block:clamp(40px,calc(5vw / var(--porscha-scale,1)),72px)}
#home-parts .home-store-layout{
  display:grid;grid-template-columns:minmax(0,var(--action-pair-width)) minmax(0,1fr);
  gap:clamp(24px,calc(3vw / var(--porscha-scale,1)),56px);align-items:center;
}
#home-parts h2{margin:18px 0}
#home-parts .actions{margin-top:24px}
#home-parts .home-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#home-parts .category-card{min-height:106px;padding:7px 8px 8px;gap:3px}
#home-parts .category-card img{height:clamp(53px,calc(4.5vw / var(--porscha-scale,1)),76px)}
#home-parts .category-card>span{
  display:grid;align-items:center;min-height:2.6em;max-width:100%;
  font-size:clamp(12px,calc(.9vw / var(--porscha-scale,1)),14px);line-height:1.3;overflow-wrap:anywhere;
}
#home-parts .category-card {
  border-color: rgba(216,221,228,.21);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 13%),
    linear-gradient(150deg, #282b2e, #222426);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.12);
}
html[data-theme="light"] #home-parts .category-card {
  border-color: rgba(90,99,110,.29);
  background:
    linear-gradient(180deg, rgba(255,255,255,.46), transparent 13%),
    linear-gradient(150deg, #fafbfc, #eef0f2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 4px 12px rgba(66,53,36,.07);
}
#home-parts .category-card:hover { border-color: var(--gold); }
#home-parts .category-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media /*fhd*/ (max-width:1100px) and (max-width: 1279px), (max-width:1100px) and (hover: none), (max-width:1100px) and (pointer: coarse) {
  #home-parts .home-store-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
  #home-parts .home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:520px){
  #home-parts .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.search-category-matches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin-top:25px}
.search-category-matches a{min-width:0;padding:15px;border:1px solid var(--line);font-size:14px;color:var(--gold);overflow-wrap:anywhere}
.search-category-matches+[data-open-request]{margin-top:20px}
.search-state [data-open-request]{width:min(100%,var(--action-width));padding-inline:12px;gap:8px;white-space:normal;line-height:1.2;text-align:center;font-size:clamp(14px,calc(14px + (calc(100vw / var(--porscha-scale,1)) - 1100px)*.007),16px)}
html[data-theme="light"] .commerce-page .hero-awards .rating-sub{color:#56585d}

.home-copy .checks{font-size:21px}

/* Compact vehicle finder: fields wrap without clipping at intermediate widths. */
.store-catalog-section .quick-finder{height:auto;min-height:100px;flex-wrap:wrap;gap:18px 28px}
.store-catalog-section .finder-intro{min-width:225px}
.store-catalog-section .finder-content{flex:1 1 680px;flex-wrap:wrap}
.store-catalog-section .finder-content label{flex:1 1 120px;min-width:0}
.store-catalog-section .finder-content .vin-field{flex:1 1 260px}
.store-catalog-section .finder-content .button{min-width:180px;flex:0 1 auto}
@media(max-width:760px){
 .store-catalog-section .finder-content:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:0 0 auto;gap:12px}
 .store-catalog-section .finder-content label{width:100%;min-width:0}
 .store-catalog-section .finder-content .button,.store-catalog-section .finder-content .vin-field{grid-column:1/-1;width:100%;min-width:0}
}
@media(max-width:340px){.store-catalog-section .finder-content:not([hidden]){grid-template-columns:minmax(0,1fr)}}

/* TASK-0824 compact model finder: let fields wrap before their values are clipped. */
.store-catalog-section #quick-model:not([hidden]){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px 16px;align-items:end}
.store-catalog-section #quick-model label{min-width:0;width:100%}
.store-catalog-section #quick-model .button{width:min(100%,var(--action-width));min-width:0;height:var(--action-height);min-height:var(--action-height);justify-self:end}
@media(max-width:760px){
 .store-catalog-section .quick-finder{padding-inline:clamp(12px,calc(4vw / var(--porscha-scale,1)),25px)}
 .store-catalog-section #quick-model select{font-size:clamp(13px,calc(4.0625vw / var(--porscha-scale,1)),14px)}
 .store-catalog-section #quick-model .button{width:100%}
}


.illustrated-detail{container-type:inline-size}
.illustrated-detail .subcategory-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));grid-auto-rows:1fr}
@container (min-width:639px){
  .illustrated-detail .subcategory-grid:has(>button:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
}
.illustrated-detail .subcategory-grid button{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;min-width:0;padding:12px}
.subcategory-photo{display:grid;place-items:center;aspect-ratio:4/3;overflow:hidden}
.illustrated-detail .subcategory-photo img{display:block;width:90%;height:90%;min-width:0;min-height:0;object-fit:contain}
html[data-theme="dark"] .subcategory-photo img[src$="/fuel-5.png"]{filter:brightness(2)}
.illustrated-detail .subcategory-grid button span{padding-right:17px;line-height:1.35;overflow-wrap:normal}
.illustrated-detail .subcategory-grid button svg{position:absolute;right:10px;bottom:12px}
.illustrated-detail .subcategory-grid button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:450px){
  .illustrated-detail .subcategory-grid button{display:grid;grid-template-columns:minmax(56px,min(120px,calc(100% - 190px))) minmax(0,1fr);align-items:center}
}
/* Saved vehicles share the parts dialog controls and color tokens. */
dialog.request-dialog.vehicle-garage-dialog[open] { width: min(520px, calc(calc(100vw / var(--porscha-scale,1)) - 24px)); padding: 24px !important; }
.vehicle-garage-dialog .garage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vehicle-garage-dialog .garage-head h2 { margin: 0; font-size: clamp(22px, calc(3vw / var(--porscha-scale,1)), 29px); }
.garage-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: var(--ink); font-size: 26px; }
.garage-empty { color: var(--copy); margin: 16px 0 0; }
.garage-list { display: grid; gap: 8px; min-height: 0; margin: 14px 0; overflow-y: auto; }
.garage-option {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%;
  min-height: 54px; padding: 9px 14px; text-align: left; background: var(--panel-bg);
  color: var(--ink); border: 1px solid var(--line); border-radius: 3px;
}
.garage-option strong { grid-column: 1; }
.garage-option span { grid-column: 1; color: var(--copy); font-size: 12px; }
.garage-option[aria-pressed="true"] { border-color: var(--gold); }
.garage-option[aria-pressed="true"]::after { content: '✓'; grid-area: 1 / 2 / 3; align-self: center; color: var(--gold); }
.garage-add { min-width: 0; width: 100%; flex-shrink: 0; }
.garage-status { color: var(--gold); margin: 0 0 12px; }
.garage-status:empty { display: none; }


.home-about .trust-grid article { border: 0; padding: 0 0 4px; min-width: 0; }
.home-about .trust-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 22px;
}
html[data-theme="light"] .home-about .trust-grid span { color: #765522; }
@media (max-width: 760px) {
  .home-about .trust-photo { margin-bottom: 15px; }
}

/* Keep complete photos on the shared direction cards. */
:is(.home-page,.editorial-page) #directions .direction-visual img{
  height:auto;object-position:center;
  mask-image:linear-gradient(#000 0 82%,transparent 100%);
}
html[data-theme="light"] .home-page #directions .direction-visual::after{
  background:linear-gradient(to top,rgb(var(--direction-tint)) 0 30%,rgba(var(--direction-tint),.93) 37%,rgba(var(--direction-tint),.42) 48%,transparent 59%);
}
html[data-theme="light"] .home-page #directions .parts-direction .direction-visual::after{
  background:
    linear-gradient(to top,rgb(var(--direction-tint)) 0 30%,rgba(var(--direction-tint),.88) 36%,rgba(var(--direction-tint),.21) 45%,transparent 55%),
    linear-gradient(to bottom,rgba(var(--direction-tint),.10),transparent 34%);
}

/* 12.11 Claude — TASK-0835/0841: subcategory card names break into balanced lines ("Аксессуары для / багажного отделения",
   "Steering rods / and tie rod ends", "Floor mats / and cabin protection") instead of leaving the last word alone.
   Text, size and card layout unchanged. */
html body .illustrated-detail .subcategory-grid button span { text-wrap: balance; }

/* 12.11 Claude — TASK-0833: on phones the store catalog heading uses the size of the other mobile section headings
   (fluid ~26–31 px instead of the desktop 40 px), so "Категории автозапчастей" fits one line from 360 px and is balanced below. */
@media (max-width:760px){ html body .store-catalog-section h2 { font-size: clamp(26px, calc(7.2vw / var(--porscha-scale,1)), 40px); text-wrap: balance; } }

/* 12.11.2026 R122 tablet fit: /store/ catalog block (finder + 12 category cards) fits the window height at mouse windows 1024-1279 px landscape; 6 columns, compact paddings and card images only. */
@media (min-width:1024px) and (max-width:1279px) and (orientation:landscape){
  html body.store-page .store-catalog-section{padding-block:clamp(20px,3.6svh,40px)}
  html body.store-page .store-catalog-section .section-top{margin-bottom:clamp(10px,2svh,18px)}
  html body.store-page .store-catalog-section .section-top h2{font-size:clamp(28px,4.4svh,36px);margin-top:clamp(6px,1.2svh,12px)}
  html body.store-page .store-catalog-section .quick-finder{margin-bottom:clamp(10px,2svh,18px);padding-block:clamp(10px,1.8svh,16px);min-height:0;gap:clamp(8px,1.4svh,14px) 24px}
  html body.store-page .store-catalog-section .finder-content:not([hidden]){gap:clamp(8px,1.4svh,12px)}
  html body.store-page .store-catalog-section .category-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(8px,1.6svh,14px)}
  html body.store-page .store-catalog-section .category-card{min-height:0;padding:clamp(6px,1.1svh,10px) 8px clamp(8px,1.4svh,12px)}
  html body.store-page .store-catalog-section .category-card img{height:clamp(58px,10.5svh,92px)}
  html body.store-page .store-catalog-section .category-card>span{font-size:12px;line-height:1.25}
}

/* 12.11.2026 R122 portrait tablets: home directions (two cards side by side), /store/ catalog (4 columns), store selection and service promo (photo beside text) fit the window height at portrait 761-1023 px; spacing and image heights only. */
@media (min-width:761px) and (max-width:1023px) and (orientation:portrait){
  html body #directions{padding-block:clamp(20px,3.2svh,40px)}
  html body #directions .direction-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,20px)}
  html body #directions .direction-visual{min-height:0;padding:clamp(14px,2.2cqi,20px);padding-top:calc(34cqi + 8px);grid-template-columns:minmax(0,1fr)}
  html body #directions .direction-copy{grid-column:1;width:100%}
  html body #directions .direction-link{grid-column:1;grid-row:2;width:100%}
  html body #directions .direction-points{max-width:none}
  html body #directions .direction-visual img{height:48cqi;width:100%;object-fit:cover;object-position:80% center}
  html body.store-page .store-catalog-section{padding-block:clamp(20px,3svh,40px)}
  html body.store-page .store-catalog-section .section-top{margin-bottom:clamp(10px,1.6svh,18px)}
  html body.store-page .store-catalog-section .quick-finder{margin-bottom:clamp(10px,1.6svh,18px);padding-block:clamp(10px,1.6svh,16px)}
  html body.store-page .store-catalog-section .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.4svh,14px)}
  html body.store-page .store-catalog-section .category-card{min-height:0;padding:8px 8px 10px}
  html body.store-page .store-catalog-section .category-card img{height:clamp(64px,8svh,96px)}
  html body.store-page .store-catalog-section .category-card>span{font-size:12px;line-height:1.25}
  html body .store-selection .editorial-split{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,3vw,28px);align-items:stretch}
  html body .store-selection,html body section.service-promo{padding-block:clamp(20px,3.2svh,40px)}
  html body .store-selection .editorial-photo{min-height:0;height:auto}
  html body .store-selection .editorial-photo img{height:100%;object-fit:cover}
  html body section.service-promo .service-promo-grid{grid-template-columns:minmax(0,1fr);gap:clamp(14px,2.2svh,24px)}
  html body section.service-promo .service-promo-photo{order:-1;min-height:0;height:clamp(140px,17svh,230px);aspect-ratio:auto}
  html body section.service-promo .service-promo-copy h2{font-size:clamp(26px,3.6svh,34px);margin:clamp(8px,1.2svh,14px) 0 clamp(8px,1.2svh,14px)}
  html body section.service-promo .service-promo-lead{font-size:16px;line-height:1.45;margin-bottom:clamp(12px,1.8svh,20px)}
  html body section.service-promo .service-promo-list{margin-bottom:clamp(12px,1.8svh,20px);gap:clamp(8px,1.2svh,12px)}
  html body section.service-promo .service-promo-list li{padding:clamp(8px,1.2svh,12px) 14px;font-size:14px;line-height:1.4}
}
