/* =========================================================
   Armstrong – PRODUCT pages (/product/{url}), following the "502HD Bottom Sewing Machine" mockup.
   Same tokens as the category pages; site font kept. Prefixed .pd so nothing leaks.
   ========================================================= */
.pd {
    --pd-red: #d7191f; --pd-red-d: #a81217; --pd-ink: #1b1d21; --pd-txt: #555a62; --pd-mute: #6e737b;
    --pd-line: #e6e8eb; --pd-band: #f6f6f7; --pd-pink: #fdecec;
    font-family: 'Quattrocento Sans', sans-serif; color: var(--pd-ink); background: #fff; overflow-x: clip;
}
.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd img { display: block; max-width: 100%; }
.pd a { text-decoration: none; }
.pd h1, .pd h2, .pd h3, .pd p, .pd ul, .pd ol, .pd dl, .pd dd { margin: 0; padding: 0; }
.pd ul, .pd ol { list-style: none; }
.pd-wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 1599px) { .pd-wrap { max-width: 1332px; } }
@media (max-width: 1399px) { .pd-wrap { max-width: 1220px; } }
.pd-sec { padding: clamp(48px, 5vw, 80px) 0; scroll-margin-top: 120px; }
.pd-band { background: var(--pd-band); }

.pd-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--pd-red); }
.pd .pd-h1 { font-size: clamp(32px, 3.2vw, 54px); font-weight: 700; line-height: 1.05; color: var(--pd-ink); }
.pd .pd-h2 { margin-top: 10px; font-size: clamp(28px, 2.5vw, 44px); font-weight: 700; line-height: 1.08; color: var(--pd-ink); }
.pd .pd-h3 { margin: 36px 0 16px; font-size: clamp(19px, 1.4vw, 24px); font-weight: 700; color: var(--pd-ink); }
.pd-h1 span, .pd-h2 span { color: var(--pd-red); }
.pd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.pd-head + * { margin-top: 30px; }
.pd-head__text { flex: 0 1 520px; }
.pd-head__text, .pd-head__text p { font-size: 15.5px; line-height: 1.7; color: var(--pd-txt); }
.pd-head__text strong, .pd-head__text b { color: var(--pd-ink); }
.pd-rich p, .pd-rich li { font-size: 16px; line-height: 1.75; color: var(--pd-txt); }
.pd-rich > * + * { margin-top: 14px !important; }
.pd-rich ul, .pd-rich ol { padding-left: 20px !important; list-style: disc; }
.pd-rich h3, .pd-rich h4 { font-size: 20px; font-weight: 700; color: var(--pd-ink); }
.pd-rich strong, .pd-rich b, .pd-lead strong, .pd-lead b { color: var(--pd-ink); }
.pd-rich a, .pd-lead a { color: var(--pd-red); }

/* buttons */
.pd-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; background: none; font-family: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.pd-btn svg { width: 17px; height: 17px; transition: transform .2s; }
.pd-btn--red { background: var(--pd-red); color: #fff; }
.pd-btn--red:hover { background: var(--pd-red-d); color: #fff; }
.pd-btn--red:hover svg { transform: translate(2px, -2px); }
.pd-btn--line { border-color: var(--pd-ink); color: var(--pd-ink); }
.pd-btn--line:hover { background: var(--pd-ink); color: #fff; }
.pd-btn--white { background: #fff; color: var(--pd-ink); }
.pd-btn--white svg { color: var(--pd-red); }
.pd-btn--white:hover { background: #fff4f4; color: var(--pd-ink); }
.pd-btn--sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }

/* hero */
.pd-hero { padding: clamp(24px, 3vw, 40px) 0 clamp(44px, 4.5vw, 72px); background: var(--pd-band); }
.pd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--pd-mute); }
.pd-crumb a { color: var(--pd-mute); }
.pd-crumb a:hover { color: var(--pd-red); }
.pd-crumb li + li::before { content: "/"; margin-right: 10px; }
.pd-crumb [aria-current] { font-weight: 700; color: var(--pd-red); }
.pd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px clamp(36px, 4.5vw, 80px); margin-top: 22px; }
.pd-media { position: relative; min-width: 0; }
.pd-media__main { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 1px solid var(--pd-line); border-radius: 22px; box-shadow: 0 20px 44px rgba(17, 19, 23, .08); }
.pd .pd-media__main img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 46px 26px 22px; object-fit: contain; opacity: 0; transition: opacity .35s; }
.pd .pd-media__main img.is-on, .pd .pd-media__video img { opacity: 1; }
.pd .pd-media__video img { padding: 0; object-fit: cover; }
.pd-media__tag { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 6px 13px; border-radius: 999px; background: var(--pd-red); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs button { flex: none; width: 76px; height: 60px; padding: 4px; background: #fff; border: 1.5px solid var(--pd-line); border-radius: 10px; cursor: pointer; }
.pd-thumbs button.is-on { border-color: var(--pd-red); }
.pd .pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.pd-model { display: inline-flex; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--pd-line); font-size: 14px; color: var(--pd-ink); }
.pd-model b { color: var(--pd-red); }
.pd-model + .pd-model { margin-top: -10px; }
.pd-lead, .pd-lead p { font-size: 16px; line-height: 1.75; color: var(--pd-txt); }
.pd-lead p + p { margin-top: 12px !important; }
.pd-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.pd-chips > div { padding: 14px 18px; background: #fff; border: 1px solid var(--pd-line); border-radius: 14px; }
.pd-chips dt, .pd-specs dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pd-mute); }
.pd-chips dd { margin-top: 4px; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--pd-ink); }

/* play buttons */
.pd-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--pd-red); color: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(215, 25, 31, .25); transition: transform .25s; }
.pd-play svg { width: 28px; height: 28px; margin-left: 3px; }
a:hover > .pd-play { transform: translate(-50%, -50%) scale(1.08); }

/* section tabs */
.pd-tabs { position: sticky; top: 52px; z-index: 20; background: #fff; border-bottom: 1px solid var(--pd-line); }
@media (min-width: 1501px) { .pd-tabs { top: 58px; } }
@media (max-width: 991px) { .pd-tabs { top: 0; } }
.pd-tabs .pd-wrap { display: flex; gap: 6px 30px; overflow-x: auto; scrollbar-width: none; }
.pd-tabs a { position: relative; flex: none; padding: 18px 0; font-size: 15px; font-weight: 700; color: var(--pd-mute); white-space: nowrap; transition: color .2s; }
.pd-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--pd-red); transform: scaleX(0); transition: transform .25s; }
.pd-tabs a:hover, .pd-tabs a.is-on { color: var(--pd-ink); }
.pd-tabs a.is-on::after { transform: none; }

/* overview */
.pd-ov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px clamp(36px, 4vw, 72px); }
.pd-ov--solo { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.pd-ov .pd-rich { margin-top: 20px; }
.pd-video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #2a2a2e; box-shadow: 0 20px 44px rgba(17, 19, 23, .1); }
.pd .pd-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pd-video:hover img { transform: scale(1.03); }
.pd-video__label { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 700; color: var(--pd-ink); }
.pd-video__label i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pd-red); color: #fff; }
.pd-video__label svg { width: 14px; height: 14px; margin-left: 2px; }
.pd-hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.pd-hl li { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--pd-band); border-radius: 14px; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--pd-ink); }
.pd-hl i, .pd-feat__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--pd-pink); color: var(--pd-red); }
.pd-hl svg, .pd-feat__ic svg { width: 19px; height: 19px; }

/* installation videos */
.pd-reels { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.pd-reel { flex: 0 0 auto; width: 220px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #000; scroll-snap-align: start; }
.pd-reel video { width: 100%; height: 100%; object-fit: cover; }

/* specifications */
.pd-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pd-specs > div { padding: 20px 22px 22px; background: #fff; border: 1px solid var(--pd-line); border-top: 3px solid var(--pd-red); border-radius: 14px; }
.pd-specs dd { margin-top: 8px; font-size: clamp(18px, 1.3vw, 22px); font-weight: 700; line-height: 1.3; color: var(--pd-ink); overflow-wrap: anywhere; }
.pd-table { margin-top: 20px; overflow-x: auto; background: #fff; border: 1px solid var(--pd-line); border-radius: 14px; }
.pd-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pd-table th, .pd-table td { padding: 12px 16px; border-bottom: 1px solid var(--pd-line); text-align: left; vertical-align: top; color: var(--pd-txt); }
.pd-table th { background: #1c1c1e; color: #fff; font-weight: 700; white-space: nowrap; }
.pd-table tr:last-child td { border-bottom: 0; }
.pd-table td:first-child { font-weight: 700; color: var(--pd-ink); }

/* key features */
.pd-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pd-feat { position: relative; padding: 24px 24px 26px; background: #fff; border: 1px solid var(--pd-line); border-radius: 16px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.pd-feat:hover { transform: translateY(-4px); border-color: #f3c2c4; box-shadow: 0 16px 32px rgba(17, 19, 23, .08); }
.pd-feat__num { position: absolute; top: 22px; right: 24px; font-size: 22px; font-weight: 700; color: #e4e6e9; }
.pd .pd-feat h3 { margin-top: 18px; font-size: clamp(18px, 1.3vw, 21px); font-weight: 700; line-height: 1.3; }
.pd .pd-feat p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--pd-txt); }

/* applications */
.pd-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pd-app { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--pd-line); border-radius: 14px; color: var(--pd-ink); transition: transform .3s, box-shadow .3s, border-color .3s; }
.pd-app:hover { transform: translateY(-3px); border-color: #f3c2c4; box-shadow: 0 14px 28px rgba(17, 19, 23, .08); color: var(--pd-red); }
.pd .pd-app img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pd-app span { padding: 12px 14px 14px; font-size: 15px; font-weight: 700; line-height: 1.3; }

/* FAQs */
.pd-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px 20px; }
.pd-faq > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pd-faq details { background: #fff; border: 1.5px solid var(--pd-line); border-radius: 16px; transition: background-color .2s, border-color .2s; }
.pd-faq details[open] { background: #fdf3f3; border-color: #f3c2c4; }
.pd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 12px 18px 12px 20px; font-size: 17px; font-weight: 700; line-height: 1.3; list-style: none; cursor: pointer; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "+"; display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f4f5f6; font-size: 20px; line-height: 1; color: var(--pd-ink); }
.pd-faq details[open] summary::after { content: "\2212"; background: var(--pd-red); color: #fff; }
.pd-faq__a { padding: 0 20px 18px; }
.pd-faq__a, .pd-faq__a p, .pd-faq__a li { font-size: 15px; line-height: 1.65; color: var(--pd-txt); }
.pd-faq__a ul { padding-left: 18px !important; list-style: disc; }

/* related */
.pd-rel-nav { display: flex; align-items: center; gap: 10px; }
.pd-rel-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid #d5d8dd; border-radius: 50%; background: #fff; color: var(--pd-ink); cursor: pointer; }
.pd-rel-nav .pd-rel-next { border-color: var(--pd-red); background: var(--pd-red); color: #fff; }
.pd-rel-nav svg { width: 18px; height: 18px; }
.pd-rel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-rel::-webkit-scrollbar { display: none; }
.pd-rel__card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1.5px solid var(--pd-line); border-radius: 18px; color: var(--pd-ink); scroll-snap-align: start; transition: border-color .2s, box-shadow .2s; }
.pd-rel__card:hover { border-color: #f3c2c4; box-shadow: 0 16px 32px rgba(17, 19, 23, .08); color: var(--pd-ink); }
.pd-rel__img { display: block; aspect-ratio: 4 / 3; padding: 16px; border-bottom: 1px solid #f0f1f3; }
.pd .pd-rel__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.pd-rel__card:hover .pd-rel__img img { transform: scale(1.04); }
.pd-rel__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.pd-rel__body i { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border: 1.5px solid #e1e3e6; border-radius: 50%; color: var(--pd-red); transition: background-color .2s, color .2s, border-color .2s; }
.pd-rel__body svg { width: 15px; height: 15px; }
.pd-rel__card:hover .pd-rel__body i { background: var(--pd-red); border-color: var(--pd-red); color: #fff; }

/* CTA */
.pd-cta-wrap { padding: clamp(8px, 1vw, 16px) 0 clamp(56px, 5vw, 88px); }
.pd-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 52px; border-radius: 26px; background: var(--pd-red); color: #fff; }
.pd-cta > div { flex: 1 1 480px; min-width: 0; }
.pd .pd-cta h2 { font-size: clamp(26px, 2.3vw, 40px); font-weight: 700; line-height: 1.1; color: #fff; }
.pd .pd-cta p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: #ffe1e2; }

/* responsive */
@media (max-width: 1199px) {
    .pd-feats, .pd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-rel { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 991px) {
    .pd-hero__grid, .pd-ov, .pd-faq { grid-template-columns: minmax(0, 1fr); }
    .pd-head__text { flex: 1 1 100%; }
    .pd-cta { padding: 34px 26px; border-radius: 20px; }
}
@media (max-width: 575px) {
    .pd-feats, .pd-specs, .pd-chips { grid-template-columns: minmax(0, 1fr); }
    .pd-rel { grid-auto-columns: 84%; }
    .pd .pd-media__main img { padding: 40px 14px 14px; }
    .pd-btns .pd-btn { flex: 1 1 auto; }
    .pd-reel { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
    .pd-feat, .pd-rel__card, .pd .pd-media__main img, .pd .pd-video img { transition: none; }
}
/* fixed 4:3 frames: the image is positioned inside, so tall photos cannot stretch the card */
.pd-rel__img { position: relative; }
.pd .pd-rel__img img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
.pd-rel { align-items: start; }
/* the site's global headings are text-transform: capitalize – keep the text as written */
.pd h1, .pd h2, .pd h3, .pd summary { text-transform: none; }
