/* Purpose: Single Product (PDP) page. Ported from axl-server-zr525a.html. Loaded only on single product. */

/* Match the mockup's section rhythm (theme default is a flat 80px). Loaded only here. */
.section-pad { padding: clamp(70px, 9vw, 120px) 0; }
.section-pad.is-flush-top { padding-top: 0; }

/* ---- Breadcrumb ---- */
.pdp-hero .crumb { font-size: 13px; color: var(--slate); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pdp-hero .crumb a:hover { color: var(--accent); }
.pdp-hero .crumb span { opacity: .5; }
.pdp-hero .crumb .current { opacity: 1; color: var(--ink); }

/* ---- Hero ---- */
/* The theme's body.axl-plain-top already offsets the fixed header (108px); the mockup baked
   that offset into the hero. So here the hero only needs the design breathing space below it. */
.pdp-hero { padding: 56px 0 64px; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.gallery .main { border: 1px solid var(--hair); border-radius: var(--r); background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 88px; height: 74px; border: 1px solid var(--hair); border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; padding: 7px; transition: .3s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--accent); }
.thumb.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 0, 75, .12); }
.pinfo .cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pinfo h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 11px 0 6px; }
.pinfo .model { font-size: 13.5px; color: var(--slate); letter-spacing: .04em; }
.pinfo .sub { color: var(--slate); font-size: 16.5px; margin: 18px 0 22px; line-height: 1.6; }
.khl { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.khl li { font-size: 15px; color: var(--ink); padding-left: 24px; position: relative; }
.khl li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; border-top: 2px solid var(--accent); border-right: 6px solid transparent; }
.price-row { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--hair); padding-top: 22px; flex-wrap: wrap; }
.price { font-size: 26px; font-weight: 800; color: var(--ink); }
.price-row .req { color: var(--slate); font-size: 14px; }
.buy-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 24px; }
.badges { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 20px; }
.bdg { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--ink); }
.bdg .d { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); flex: none; }
@media (max-width: 880px) { .pdp-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---- Highlight strip ---- */
.hlstrip { background: var(--mist); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 42px 0; }
.hlc { display: flex; gap: 14px; align-items: flex-start; }
.hlc .ic { width: 44px; height: 44px; border-radius: 11px; background: #fff; border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; flex: none; }
.hlc .ic svg { width: 22px; height: 22px; fill: var(--accent); }
.hlc b { display: block; font-size: 15px; }
.hlc span { font-size: 13px; color: var(--slate); }
@media (max-width: 820px) { .hl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hl-grid { grid-template-columns: 1fr; } }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hair); margin-bottom: 32px; flex-wrap: wrap; }
.tab { padding: 14px 0; margin-right: 32px; font-weight: 600; color: var(--slate); border: 0; border-bottom: 2px solid transparent; cursor: pointer; background: none; font-family: var(--font); font-size: 16px; transition: .25s; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.panel { display: none; max-width: 880px; }
.panel.on { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel p { color: var(--slate); margin-bottom: 15px; }
.panel h3 { font-size: 20px; margin: 6px 0 14px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--hair); }
.spec-table th { text-align: left; padding: 15px 0; width: 34%; font-weight: 600; color: var(--ink); font-size: 14.5px; vertical-align: top; }
.spec-table td { padding: 15px 0; color: var(--slate); font-size: 14.5px; }
.spec-table .muted { color: var(--slate); font-style: normal; opacity: .85; }
.spec-contact { color: var(--accent); font-weight: 600; }

/* ---- Feature band (dark case card) ---- */
.casecard { background: var(--ink); color: #fff; border-radius: 26px; padding: clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.casecard .super { position: absolute; right: -3%; top: 50%; transform: translateY(-50%); height: 150%; opacity: .12; }
.casecard .eyebrow { color: #ff6a90; }
.casecard .eyebrow::before { border-top-color: #ff6a90; }
.casecard h2 { color: #fff; font-size: clamp(24px, 3vw, 38px); margin: 14px 0 14px; max-width: 22ch; }
.casecard p { color: rgba(255, 255, 255, .76); max-width: 60ch; }
.casemetrics { display: flex; gap: 46px; margin-top: 30px; flex-wrap: wrap; }
.casemetrics .v { font-size: 42px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.casemetrics .l { font-size: 13px; color: rgba(255, 255, 255, .7); max-width: 20ch; }

/* ---- Related products grid (mirrors category .pgrid/.pc) ---- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pc { position: relative; border: 1px solid var(--hair); border-radius: var(--r); background: #fff; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.pc::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--grad); transition: width .5s var(--ease); z-index: 3; }
.pc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pc:hover::before { width: 100%; }
.pc-ph { height: 230px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--hair); overflow: hidden; }
.pc-ph img { height: 100%; width: 100%; object-fit: contain; padding: 18px; transition: transform .6s var(--ease); }
.pc:hover .pc-ph img { transform: scale(1.06); }
.pc-b { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pc-b h3 { font-size: 21px; margin: 9px 0 14px; }
.pc-spec { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.pc-spec li { font-size: 13.5px; color: var(--slate); padding-left: 18px; position: relative; }
.pc-spec li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; border-top: 2px solid var(--accent); border-right: 5px solid transparent; }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair); }
.pc-price { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pc-link { font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; gap: 7px; transition: gap .3s, color .3s; }
.pc:hover .pc-link { color: var(--accent); gap: 12px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pgrid { grid-template-columns: 1fr; } }

/* Free-HTML specifications fallback (legacy field) */
.spec-html { color: var(--slate); font-size: 14.5px; line-height: 1.7; }
.spec-html table { width: 100%; border-collapse: collapse; }
.spec-html td, .spec-html th { padding: 12px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.spec-html ul { margin: 0; padding-left: 18px; }
.spec-html p { margin-bottom: 12px; }
.spec-html strong { color: var(--ink); }
