/* Owner-approved cards. Scoped to Home shelves and Catalog results. */
.pc-top{display:flex;align-items:center;min-height:44px;gap:0;grid-column:1/-1}.pc-brand{font-size:13px;font-weight:700;color:#536078}.pc-normal small{display:block;font-size:12px;color:#536078}.pc-normal strong,.pc-promo strong{font-size:27px;color:#e60032}.pc-normal,.pc-promo{font-size:13px}.pc-promo{background:#fff0f3;padding:8px 10px;border-radius:8px;color:#c90030}.pc-promo b{display:block;font-size:13px}.pc-promo small{font-size:12px}.pc-next,.pc-terms{font-size:12px;line-height:1.55;color:#536078;margin:7px 0}.pc-periods summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:#bb002b;font-size:13px;border-top:1px solid #e6e9ef;list-style:none}.pc-periods summary:after{content:'⌄'}.pc-periods[open] summary:after{content:'⌃'}.pc-periods summary::-webkit-details-marker{display:none}.pc-periods table{width:100%;font-size:13px;border-collapse:collapse}.pc-periods th,.pc-periods td{padding:6px 8px;border-bottom:1px solid #e7eaf0;text-align:left}.pc-periods td:last-child,.pc-periods th:last-child{text-align:right}.pc-periods summary:focus-visible{outline:3px solid #2465bd}.pc-terms{min-height:38px}
.home-market-card .pc-top{justify-content:flex-end}.home-market-card .home-market-favorite,.home-market-card .pc-share{position:static!important;width:44px;height:44px;border:0;background:transparent;color:#22314c;display:grid;place-items:center;border-radius:8px;padding:0}.home-market-card{display:flex!important;flex-direction:column;padding:10px!important;height:auto!important;min-height:0!important}.home-market-card .home-market-image{height:105px!important;margin:5px 0!important}.home-market-card .home-market-image img{height:100%;width:100%;object-fit:contain}.home-market-card h3{font-size:15px!important;line-height:1.45!important;min-height:44px;margin:3px 0!important;overflow:visible!important;white-space:normal!important}.pc-home-info>small{font-size:11px;color:#637089;overflow-wrap:anywhere}.pc-home-bottom{margin-top:auto}.home-market-card .home-market-cta{min-height:44px!important;height:auto!important;display:flex!important;justify-content:center;align-items:center;font-size:12px!important;margin-top:8px!important}.home-shelf{align-items:start}
#grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start}
#grid .sdd-card{display:grid!important;grid-template-columns:minmax(100px,.9fr) minmax(0,1.25fr)!important;gap:6px 10px!important;padding:12px!important;min-height:0!important;height:auto!important;overflow:hidden}.sdd-card .pc-top{grid-row:1}.sdd-card .sdd-campaign-badges{position:static!important;padding:0!important;margin:0!important;display:flex}.sdd-card .sdd-card__tools{margin-left:auto;display:flex!important;position:static!important;gap:0!important;min-height:44px}.sdd-card .sdd-round-action{width:44px!important;height:44px!important;border:0!important;background:transparent}.sdd-card .sdd-card__media{grid-column:1;grid-row:2;padding:0!important;display:block!important;min-width:0}.sdd-card .sdd-hero{height:150px!important;min-height:0!important;display:flex!important;align-items:center;justify-content:center}.sdd-card .sdd-hero img{width:100%!important;height:100%!important;object-fit:contain!important}.sdd-card .sdd-card__info{grid-column:2;grid-row:2;padding:0!important;display:block!important;min-width:0}.sdd-card .sdd-category{font-size:16px!important;line-height:1.4!important;white-space:normal!important}.sdd-card .sdd-model{font-size:12px!important;margin:3px 0!important;overflow-wrap:anywhere}.sdd-card .sdd-headline{font-size:12px!important;line-height:1.45!important;margin:4px 0!important}.sdd-card .sdd-card__specs{font-size:12px!important;line-height:1.5!important;margin:5px 0!important;padding:0!important;gap:4px!important}.sdd-card .sdd-spec-check{width:17px!important;height:17px!important;flex:0 0 17px!important}.pc-gallery-controls{grid-column:1/-1;grid-row:3;display:flex;align-items:center;gap:6px;padding:5px 0;border-bottom:1px solid #e6e9ef;min-width:0}.pc-gallery-controls .sdd-gallery{flex:1;display:flex!important;justify-content:center;gap:4px;min-width:0}.pc-gallery-controls .sdd-thumb{width:44px!important;height:44px!important;min-width:0!important;flex-shrink:1}.pc-gallery-controls .sdd-gallery-step{position:static!important;transform:none!important;display:grid!important;place-items:center;width:44px!important;height:44px!important;flex:0 0 44px;opacity:1!important;visibility:visible!important;border:1px solid #e0e4eb!important;background:white!important;border-radius:8px}.sdd-gallery-step--prev{order:-1}.sdd-gallery-step--prev:before{content:'‹';font-size:24px}.sdd-gallery-step--next:before{content:'›';font-size:24px}.pc-catalog-price{grid-column:1/-1;grid-row:4}.pc-catalog-price .sdd-contract{display:none}.pc-catalog-price .sdd-package-cta{min-height:44px!important;margin-top:6px!important}.pc-secondary{display:flex;justify-content:space-between;gap:8px;margin-top:6px}.pc-secondary .sdd-secondary-action{min-height:44px!important;border:0!important;font-size:12px!important;width:auto!important}.pc-secondary .sdd-icon{width:16px;height:16px}
#pc-viewer{max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;padding:16px;border:0;border-radius:0;background:white}#pc-viewer[open]{display:flex;flex-direction:column}#pc-viewer .pc-viewer-head{display:flex;justify-content:space-between;align-items:center}#pc-viewer img{flex:1;min-height:0;width:100%;object-fit:contain}#pc-viewer button{min-width:44px;min-height:44px;border:1px solid #dde1e7;border-radius:8px;background:white}#pc-viewer .pc-viewer-nav{display:flex;justify-content:center;gap:24px;align-items:center}
@media(min-width:651px) and (max-width:899px){#grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){#grid{grid-template-columns:1fr!important}.home-market-card{display:grid!important;grid-template-columns:90px minmax(0,1fr);gap:0 10px!important}.home-market-card .pc-top{grid-row:1}.home-market-card .home-market-image{grid-column:1;grid-row:2/4;height:110px!important}.home-market-card .pc-home-info{grid-column:2;grid-row:2}.home-market-card .pc-home-bottom{grid-column:2;grid-row:3}.home-market-card h3{min-height:0!important}.home-shelf{grid-template-columns:1fr!important}}
.pc-gallery-controls .sdd-gallery-step{pointer-events:auto!important;z-index:1}
.pc-gallery-controls .sdd-gallery-step{clip:auto!important;overflow:visible!important}
/* Brand/model share one identity row; specifications appear only once. */
.pc-identity{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}.pc-identity>.pc-brand,.pc-identity>.home-market-brand{flex:0 1 auto;margin:0;font-size:12px}.pc-identity>.sdd-model-link,.pc-identity>.pc-model{flex:1;min-width:0;text-align:right;font-size:12px;overflow-wrap:anywhere;color:#5a6780}.pc-identity .sdd-model{font-size:12px!important;font-weight:500!important;margin:0!important}.sdd-card .sdd-category{margin:5px 0!important;font-size:15px!important}.home-market-card h3{min-height:0;margin:5px 0!important;font-size:15px!important}.pc-home-specs{list-style:none;padding:0;margin:5px 0 9px;font-size:12px;line-height:1.5;min-height:54px;color:#536078}.pc-home-specs li{display:flex;align-items:flex-start;gap:5px;margin:3px 0}.pc-home-specs li>span{display:grid;place-items:center;background:#00bd70;color:white;flex:0 0 16px;height:16px;border-radius:50%;font-size:11px;margin-top:1px}.sdd-card .sdd-card__specs{min-height:54px}.home-market-card .pc-home-info{min-width:0}
/* Catalog-only compact billing layout; Home remains unchanged. */
.pc-catalog-price .pc-price-inline{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:6px 10px}.pc-catalog-price .pc-price-inline>div{white-space:nowrap}.pc-catalog-price .pc-price-inline small{white-space:nowrap}.pc-catalog-price .pc-periods summary{font-size:12px;gap:6px;line-height:1.5;min-height:44px}.pc-catalog-price .pc-terms{min-height:0;margin:5px 0;line-height:1.6}.pc-catalog-price .pc-secondary{gap:6px}.pc-catalog-price .pc-secondary .sdd-secondary-action{display:flex;align-items:center;gap:4px;padding:4px 0!important;font-size:12px!important}.pc-secondary .sdd-secondary-action>svg:last-child{display:none}
/* Color statuses, joined brand/model, and compact Catalog pattern on mobile Home. */
#grid .sdd-campaign-badge--promo{background:#ffedf1!important;color:#bb002c!important;border:1px solid #ffc7d4}
#grid .sdd-campaign-badge--new{background:#e7f7ef!important;color:#086a43!important;border:1px solid #b9e9d2}
#grid .sdd-campaign-badge--popular{background:#fff0df!important;color:#985000!important;border:1px solid #f5d1a6}
#grid .sdd-campaign-badge--recommended{background:#edf0ff!important;color:#4744a6!important;border:1px solid #d1d6fa}
#grid .pc-identity{justify-content:flex-start;gap:8px;flex-wrap:wrap}#grid .pc-identity>.sdd-model-link{flex:0 1 auto;text-align:left}
.pc-catalog-price .pc-price-caption{flex:0 0 100%;font-size:12px;line-height:1.4}.pc-home-price-mobile{display:none}
@media(max-width:650px){.pc-home-price-wide{display:none}.pc-home-price-mobile{display:block}.home-market-card{grid-template-columns:minmax(105px,.9fr) minmax(0,1.25fr)}.home-market-card .home-market-image{grid-row:2;grid-column:1;height:135px!important}.home-market-card .pc-home-info{grid-row:2;grid-column:2}.home-market-card .pc-home-bottom{grid-row:3;grid-column:1/-1;margin-top:8px}.home-market-card .pc-identity{justify-content:flex-start;gap:8px;flex-wrap:wrap}.home-market-card .pc-model{flex:0 1 auto;text-align:left}.home-market-card .pc-home-specs{min-height:0}.home-market-card .home-market-cta{font-size:13px!important}.home-market-card .pc-home-price-mobile .pc-terms{min-height:0}}
/* Match the current Catalog CTA palette on both card surfaces. */
.home-market-card .home-market-cta,#grid .sdd-package-cta{background:var(--sdd-button-primary)!important;background-image:none!important;color:#fff!important}
@media(hover:hover){.home-market-card .home-market-cta:hover,#grid .sdd-package-cta:not(:disabled):hover{background:var(--sdd-button-primary-hover)!important}}
/* Taller desktop collections: retain the complete artwork instead of stretching it. */
@media(min-width:1101px){
 .home-fidelity .home-collection-row>.home-fresh-banner{align-self:stretch;height:100%;min-height:0;aspect-ratio:auto;background:#eeeae4}
 .home-fidelity .home-fresh-banner .home-fresh-image{inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center center}
 .home-fidelity .home-fresh-headline{position:relative;align-items:flex-start;min-height:0;width:100%;padding:32px 28px;background:none;font-size:clamp(24px,2vw,30px);line-height:1.45}
}

/* Purpose-composed desktop artwork; smaller devices retain the approved imagery/copy. */
.home-banner-desktop-copy{display:none}
@media(min-width:1101px){
 .home-banner-original-copy{display:none}.home-banner-desktop-copy{display:block}
 .home-fidelity .home-fresh-headline{z-index:1;font-size:clamp(22px,1.9vw,28px);padding:28px;line-height:1.5;color:#101a3b}
}

/* OWNER LOCK: button palette changes require an explicit owner instruction. */
:root{--sdd-button-primary:#d71932;--sdd-button-primary-hover:#b51228;--sdd-button-on-primary:#fff}
.home-fidelity .home-search-submit,.home-fidelity .home-filter-apply,
.home-fidelity .home-contact-actions>a,.home-fidelity .home-contact-actions>button,
.home-fidelity .home-footer-contacts>a,.home-fidelity .home-footer-contacts>button,
.home-fidelity .home-footer-contacts #homeLine{
 background:var(--sdd-button-primary)!important;color:var(--sdd-button-on-primary)!important;border-color:var(--sdd-button-primary)!important;
}
@media(hover:hover){
 .home-fidelity .home-search-submit:hover,.home-fidelity .home-filter-apply:hover,
 .home-fidelity .home-contact-actions>a:hover,.home-fidelity .home-contact-actions>button:hover,
 .home-fidelity .home-footer-contacts>a:hover,.home-fidelity .home-footer-contacts>button:hover{
 background:var(--sdd-button-primary-hover)!important;border-color:var(--sdd-button-primary-hover)!important}
}
#homeCategoryState #homeProductGrid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;overflow:visible!important}
@media(max-width:1100px){#homeCategoryState #homeProductGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){#homeCategoryState #homeProductGrid{grid-template-columns:1fr!important}}

body.home-fidelity .home-search .home-search-submit,
body.home-fidelity .home-consult .home-contact-actions>a,
body.home-fidelity .home-consult .home-contact-actions>button{background:var(--sdd-button-primary)!important;color:white!important;border-color:var(--sdd-button-primary)!important}
@media(hover:hover){body.home-fidelity .home-search .home-search-submit:hover,body.home-fidelity .home-consult .home-contact-actions>a:hover,body.home-fidelity .home-consult .home-contact-actions>button:hover{background:var(--sdd-button-primary-hover)!important}}

body.home-fidelity .home-contact-actions #homeLineContact{background:var(--sdd-button-primary)!important;border-color:var(--sdd-button-primary)!important}
@media(hover:hover){body.home-fidelity .home-contact-actions #homeLineContact:hover{background:var(--sdd-button-primary-hover)!important}}

/* Same check mark as Home; consultation icons remain legible on locked red. */
#grid .sdd-card .sdd-spec-check{display:grid!important;place-items:center!important;background:#00bd70!important;color:#fff!important;width:16px!important;height:16px!important;flex:0 0 16px!important;border-radius:50%!important;font-size:11px!important;line-height:16px!important;border:0!important;margin-top:1px}
body.home-fidelity .home-consult .home-contact-actions .home-contact-icon{color:#fff!important;stroke:currentColor!important}
.home-category-banner{position:relative;overflow:hidden;border-radius:9px;background:#eeeae4;min-height:280px;grid-column:2;grid-row:1;align-self:stretch;width:100%;min-width:0;max-width:100%;justify-self:stretch;box-sizing:border-box}
.home-category-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.home-category-banner strong{position:relative;z-index:1;display:block;padding:28px;font-size:clamp(22px,1.9vw,28px);line-height:1.5;color:#101a3b}
#homeCategoryState #homeProductGrid{gap:10px!important;align-items:stretch!important;min-width:0}
@media(min-width:651px) and (max-width:1100px){#homeCategoryState #homeProductGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}}
@media(max-width:1100px){.home-category-banner{grid-column:1;grid-row:1;min-height:0;aspect-ratio:2.74}.home-category-banner img{left:auto;width:48%;object-fit:cover;object-position:center 60%}.home-category-banner strong{padding:28px;width:56%;font-size:clamp(22px,3.3vw,32px)}}
@media(max-width:650px){.home-category-banner{aspect-ratio:1.88}.home-category-banner strong{padding:16px;font-size:clamp(17px,4.8vw,24px)}#homeCategoryState #homeProductGrid{gap:10px!important}}

/* Explicit inline sizing avoids intrinsic-ratio grid shrinkage on mobile Safari.
   Keep the picture and live headline in the same auto-sized row so enlarged
   text can grow the banner instead of being clipped by a fixed aspect ratio. */
@media(max-width:1100px){
 .home-category-banner{display:grid;grid-template-columns:minmax(0,1fr);aspect-ratio:auto;min-height:0!important;height:auto!important;align-self:start}
 .home-category-banner picture{grid-area:1/1;position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:1440/506;align-self:center;min-width:0}
 .home-category-banner picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}
 .home-category-banner strong{grid-area:1/1;align-self:start;position:relative;width:53%;min-width:0;box-sizing:border-box;padding:28px;font-size:clamp(20px,2.8vw,28px);line-height:1.5;overflow-wrap:break-word}
}
@media(max-width:650px){
 .home-category-banner picture{aspect-ratio:800/425}
 .home-category-banner strong{width:51%;padding:18px 10px 18px 16px;font-size:clamp(16px,4.4vw,20px);line-height:1.5}
}

/* Match existing card columns while data is loading; no fabricated price or stock. */
#homeProductGrid .home-recommendation-loading{grid-column:1/-1;color:#64748b;font-size:14px;padding:8px 0}
.home-card-skeleton{min-width:0;min-height:300px;border:1px solid #e7e9ef;border-radius:12px;background:white;padding:14px;display:flex;flex-direction:column;gap:12px}
.home-card-skeleton>div{height:16px;background:#edf0f4;border-radius:6px;animation:home-skeleton-pulse 1.4s ease-in-out infinite}
.home-card-skeleton .skeleton-image{height:120px}.home-card-skeleton .skeleton-price{height:40px}.home-card-skeleton .skeleton-button{height:36px;margin-top:auto}
@keyframes home-skeleton-pulse{50%{opacity:.5}}
@media(prefers-reduced-motion:reduce){.home-card-skeleton>div{animation:none}}
#homeProductGrid>.home-recommendation-loading{min-height:0!important;border:0!important;border-radius:0!important;background:transparent!important;display:block!important;padding:4px 0!important;text-align:left!important}
@media(max-width:650px){.home-card-skeleton{display:grid;grid-template-columns:.9fr 1.25fr;grid-template-rows:28px 80px 60px 40px;min-height:270px;align-content:start}.home-card-skeleton .skeleton-image{grid-row:1/3;grid-column:1;height:120px}.home-card-skeleton>div:nth-child(2){grid-column:2}.home-card-skeleton>div:nth-child(3){grid-column:2;height:60px}.home-card-skeleton .skeleton-price,.home-card-skeleton .skeleton-button{grid-column:1/-1;height:100%;margin:0}}

.home-shelf>.home-shelf-status,#grid>.catalog-status{grid-column:1/-1}


/* #300: reuse #299's closed gallery and readable secondary controls. */
#grid .pc-gallery-disclosure{grid-column:1/-1;grid-row:3;min-width:0;border-top:1px solid #e7e9ef}
#grid .pc-gallery-disclosure>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:13px;cursor:pointer;color:#536078;list-style:none}
#grid .pc-gallery-disclosure>summary::after{content:'+';font-size:20px}
#grid .pc-gallery-disclosure[open]>summary::after{content:'−'}
#grid .pc-gallery-disclosure .pc-gallery-controls{margin:4px 0 8px}
#grid .pc-gallery-disclosure:not([open]) .pc-gallery-controls{display:none!important}
#grid .pc-gallery-disclosure>summary:focus-visible{outline:3px solid #2871cf;outline-offset:2px}
#grid .sdd-card__specs{font-size:13px!important;line-height:1.5!important}
#grid .sdd-offer-validity{font-size:12px;line-height:1.5;color:#536078;margin:2px 0 8px}
@media(max-width:650px){#grid .sdd-card{align-content:start}.pc-secondary{flex-wrap:wrap}.pc-secondary .sdd-secondary-action{flex:1;justify-content:center}}
