/* product-5 redesign above the description: editorial hero, framed gallery, price card, refined specs. */
.product--5{--p5-fade:linear-gradient(90deg,transparent,var(--ui-line) 16%,var(--ui-line) 84%,transparent);--p5-fade-y:linear-gradient(180deg,transparent,var(--ui-line) 20%,var(--ui-line) 80%,transparent);--p5-radius:24px}

/* Top bar */
.product--5 .p5-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-block:6px 26px}
.product--5 .product-back-row{margin:0;gap:10px;flex-direction:row-reverse}
.product--5 .product-back-row .button{min-height:34px;padding:6px 12px 6px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--ui-line);color:var(--text-main);font-size:11px;gap:6px}
.product--5 .product-back-row .button:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--ui-line));color:var(--accent-strong)}
.product--5 .product-back-row .button .icon{width:16px;height:16px}
.product--5 .product-demo{border-radius:999px;padding:4px 10px;border:1px dashed var(--ui-line);background:none}
.product--5 .product-breadcrumb{gap:8px;font-size:11px}
.product--5 .product-breadcrumb>span:last-child{color:var(--text-main)}

/* Hero */
.product--5 .p5-hero{margin:0 0 20px;padding-bottom:20px;background:var(--p5-fade) bottom/100% 1px no-repeat}
.product--5 .p5-hero-eyebrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.product--5 .p5-hero .product-special{margin:0;padding:4px 10px 4px 12px;border-radius:999px;font-size:11px;background:linear-gradient(135deg,var(--accent-pale),var(--accent-soft));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 18%,transparent)}
.product--5 .p5-hero .product-special .icon{width:16px;height:16px}
.product--5 .p5-hero-category{font-size:12px;color:var(--text-muted)}
.product--5 .p5-hero .product-code{margin-inline-start:auto;padding:5px 10px;border-radius:999px;font-size:11px;background:var(--surface);border:1px solid var(--ui-line)}
.product--5 .p5-hero .product-code:hover{color:var(--accent-strong);border-color:color-mix(in srgb,var(--accent) 40%,var(--ui-line))}
.product--5 .p5-hero h1{font-size:26px;line-height:1.5;font-weight:800;letter-spacing:-.6px;color:var(--text-main);margin:0}
.product--5 .p5-hero .product-subtitle{margin-top:4px;font-size:14px}
.product--5 .p5-hero .product-meta{margin:14px 0 0;gap:6px 0;font-size:12px}
.product--5 .p5-hero .product-meta>span+span::before{content:'';width:4px;height:4px;margin-inline:14px;border-radius:50%;background:color-mix(in srgb,var(--text-muted) 45%,transparent)}
.product--5 .p5-hero .product-meta .icon{width:17px;height:17px}

/* Layout */
.product--5 .product-layout{grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr);gap:28px;align-items:start}

/* Gallery */
.product--5 .product-gallery{padding:0;background:none;border:0;box-shadow:none;border-radius:0}
.product--5 .product-photo{flex:none;min-height:0;aspect-ratio:16/11;border-radius:var(--p5-radius);box-shadow:0 18px 40px -22px #0e223c55}
.product--5 .product-photo:not(.is-video)::after{content:'';position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(0deg,#0b1a2e66,transparent);pointer-events:none}
.product--5 .product-photo-count,.product--5 .product-photo-actions,.product--5 .product-gallery-arrow,.product--5 .gallery-video-chip{z-index:1}
.product--5 .product-photo-count{left:18px;bottom:18px;min-height:38px;border-radius:999px;padding:7px 14px;background:#0f1f33b3;border-color:#ffffff38;backdrop-filter:blur(10px)}
.product--5 .product-photo-actions{right:18px;top:18px}
.product--5 .product-photo-actions>button{width:44px;height:44px;border:0;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(8px);box-shadow:0 6px 18px -8px #0006}
.product--5 .product-gallery-arrow{width:42px;height:42px;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(8px);opacity:.92}
.product--5 .product-gallery-arrow:hover{opacity:1}
.product--5 .product-thumbnails{gap:10px;margin-top:12px}
.product--5 .product-thumbnails button{padding:0;border:0;border-radius:14px;aspect-ratio:1.3;background:var(--surface-soft);opacity:.62;box-shadow:none;outline-offset:2px}
.product--5 .product-thumbnails button:hover{opacity:.9}
.product--5 .product-thumbnails button[aria-pressed=true]{opacity:1;box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--accent)}
.product--5 .product-thumbnails img,.product--5 .video-thumbnail span{border-radius:14px}
.product--5 .video-thumbnail span{inset:0}

/* Price card */
.product--5 .product-summary{position:sticky;top:20px;display:flex;flex-direction:column;justify-content:flex-start;padding:26px;border-radius:var(--p5-radius);box-shadow:0 24px 48px -30px #0e223c40,var(--ui-shadow)}
.product--5 .p5-price{display:grid;gap:2px;padding-bottom:20px;background:var(--p5-fade) bottom/100% 1px no-repeat}
.product--5 .p5-price-label{font-size:12px;color:var(--text-muted)}
.product--5 .p5-price .product-price{font-size:30px;font-weight:800;line-height:1.5;letter-spacing:-.5px;color:var(--text-main)}
.product--5 .p5-price .product-price small{font-size:13px;font-weight:500;color:var(--text-muted);margin-inline-start:2px}

.product--5 .product-stats{gap:0;margin:0;padding-block:18px;background:var(--p5-fade) bottom/100% 1px no-repeat}
.product--5 .product-stat{padding:4px 6px;gap:4px;background:none;border-radius:0}
.product--5 .product-stat+.product-stat{background:var(--p5-fade-y) right/1px 100% no-repeat}
.product--5 .product-stat .icon{width:22px;height:22px;margin-bottom:2px}
.product--5 .product-stat strong{font-size:15px;font-weight:700}
.product--5 .product-stat span{font-size:10px}

.product--5 .contact-actions{margin:20px 0 0;gap:10px}
.product--5 .contact-actions>button{min-height:52px;border-radius:15px;font-size:14px}
.product--5 .contact-actions .button-primary{flex:1.6;box-shadow:0 12px 24px -12px color-mix(in srgb,var(--accent) 70%,transparent)}
.product--5 .contact-actions .button-light{background:var(--surface);border:1px solid var(--ui-line)}
.product--5 .contact-actions .button-light:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--ui-line))}
.product--5 .contact-actions .icon{width:22px;height:22px}

.product--5 .product-seller{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px 12px;margin:20px 0 0;padding:16px;border:1px solid var(--ui-line);border-radius:18px;background:var(--surface-soft);box-shadow:none}
.product--5 .product-seller>img{width:48px;height:48px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--ui-line)}
.product--5 .seller-info small{display:flex;align-items:center;gap:4px;color:var(--accent-strong);font-weight:500}
.product--5 .seller-info small .icon{width:15px;height:15px}
.product--5 .seller-info strong{font-size:15px;line-height:1.7}
.product--5 .seller-link{width:36px;height:36px;min-height:0;padding:0;border-radius:50%;justify-content:center;background:var(--surface);border:1px solid var(--ui-line)}
.product--5 .seller-all-ads{grid-column:1/-1;justify-content:center;margin-top:10px;padding-top:12px;font-size:12px;background:var(--p5-fade) top/100% 1px no-repeat}

.product--5 .p5-trust{display:flex;align-items:center;gap:8px;margin:16px 0 0;font-size:11px;line-height:1.8;color:var(--text-muted)}
.product--5 .p5-trust .icon{width:18px;height:18px;flex-shrink:0;color:var(--accent-strong)}

/* Section heads */
.product--5 .p5-head{margin-bottom:6px;padding-bottom:16px;background:var(--p5-fade) bottom/100% 1px no-repeat}
.product--5 .p5-head h2{display:flex;align-items:center;gap:10px;margin:0;font-size:19px;line-height:1.6}
.product--5 .p5-head h2::before{content:'';width:4px;height:18px;border-radius:4px;flex-shrink:0;background:linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 30%,transparent))}
.product--5 .p5-head p{margin:2px 0 0;padding-inline-start:14px;font-size:12px;line-height:1.9;color:var(--text-muted)}
.product--5 .product-specs,.product--5 .product-description{padding:26px 28px;border-radius:var(--p5-radius)}

/* Specs: three-column key/value rows */
.product--5 .product-specs dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 34px}
.product--5 .product-specs dl>div{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:15px 2px;border-radius:0;background:var(--p5-fade) bottom/100% 1px no-repeat}
.product--5 .product-specs dl>div:nth-last-child(-n+3){background:none}
.product--5 .product-specs dl .icon{grid-row:auto;box-sizing:border-box;width:38px;height:38px;padding:8px;border-radius:12px;background:var(--accent-pale)}
.product--5 .product-specs dt{font-size:12px;color:var(--text-muted)}
.product--5 .product-specs dd{font-size:13px;font-weight:700;color:var(--text-main);text-align:end}

/* Description */
.product--5 .product-description>p{margin-top:16px;font-size:14px;line-height:2.25;color:color-mix(in srgb,var(--text-main) 82%,var(--text-muted))}
.product--5 .description-toggle{margin:18px auto 0;min-height:40px;padding:8px 18px;gap:6px;border:1px solid var(--ui-line);border-radius:999px;font-size:12px;color:var(--text-main)}
.product--5 .description-toggle:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--ui-line));color:var(--accent-strong)}

/* Below the description (light touch) */
.product--5 .product-notes-head{padding-bottom:16px;margin-bottom:18px;background:var(--p5-fade) bottom/100% 1px no-repeat}
.product--5 .product-related .p5-related-copy{display:grid;gap:2px}
.product--5 .product-related .section-title{margin:0}
.product--5 .product-related .p5-related-copy p{margin:0;padding-inline-start:40px;font-size:11px;color:var(--text-muted)}

@media(prefers-reduced-motion:no-preference){
 .product--5 .product-thumbnails button{transition:opacity .2s,box-shadow .2s}
 .product--5 .product-back-row .button,.product--5 .p5-hero .product-code,.product--5 .contact-actions>button,.product--5 .description-toggle{transition:border-color .2s,color .2s}
}
@media(max-width:1050px) and (min-width:701px){
 .product--5 .product-layout{grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:20px}
 .product--5 .p5-hero h1{font-size:22px}
 .product--5 .product-summary{padding:20px}
 .product--5 .p5-price .product-price{font-size:25px}
 .product--5 .product-thumbnails{gap:6px}
 .product--5 .product-specs dl{grid-template-columns:repeat(2,minmax(0,1fr))}
 .product--5 .product-specs dl>div:nth-last-child(-n+3){background:var(--p5-fade) bottom/100% 1px no-repeat}
 .product--5 .product-specs dl>div:last-child{background:none}
}
@media(max-width:700px){
 .product--5 .p5-topbar{justify-content:flex-start;margin-block:0 14px}
 .product--5 .product-breadcrumb{display:none}
 .product--5 .product-photo{aspect-ratio:4/3;border-radius:20px}
 .product--5 .product-photo-count{bottom:44px;left:14px;min-height:34px}
 .product--5 .product-photo-actions{right:14px;top:14px}
 .product--5 .product-thumbnails{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:68px;gap:8px;margin-top:10px;padding:4px;overflow-x:auto;scrollbar-width:none}
 .product--5 .product-thumbnails::-webkit-scrollbar{display:none}
 .product--5 .product-thumbnails button{aspect-ratio:1.15;border-radius:12px}
 .product--5 .product-thumbnails img,.product--5 .video-thumbnail span{border-radius:12px}
 .product--5 .p5-hero h1{font-size:23px}
 .product--5 .p5-hero .product-subtitle{font-size:13px}
 .product--5 .p5-hero .product-meta{font-size:11px}
 .product--5 .p5-hero .product-meta>span+span::before{margin-inline:9px}
 .product--5 .product-summary{position:relative;top:auto;z-index:1;margin-top:-28px;padding:20px 16px;border-radius:24px;box-shadow:0 -10px 28px -6px #132a4518,var(--ui-shadow)}
 .product--5 .p5-price .product-price{font-size:25px}
 .product--5 .product-stats{padding-block:14px}
 .product--5 .product-stat .icon{width:20px;height:20px}
 .product--5 .product-stat strong{font-size:13px}
 .product--5 .contact-actions>button{min-height:48px}
 .product--5 .product-specs,.product--5 .product-description{padding:18px 16px;border-radius:20px}
 .product--5 .p5-head{padding-bottom:13px}
 .product--5 .p5-head h2{font-size:16px}
 .product--5 .p5-head p{font-size:11px}
 .product--5 .product-specs dl{grid-template-columns:1fr;gap:0}
 .product--5 .product-specs dl>div{display:grid;flex-direction:initial;text-align:start;gap:0 12px;padding:12px 0}
 .product--5 .product-specs dl>div:nth-last-child(-n+3){background:var(--p5-fade) bottom/100% 1px no-repeat}
 .product--5 .product-specs dl>div:last-child{background:none}
 .product--5 .product-specs dl .icon{width:34px;height:34px;padding:7px}
 .product--5 .product-specs dt{font-size:12px}
 .product--5 .product-specs dd{font-size:13px}
 .product--5 .product-description>p{font-size:13px;line-height:2.15}
 .product--5 .product-related .p5-related-copy p{padding-inline-start:0;font-size:10px}
}
