/* Tootelehe disain (toode.html). Laetakse style.css JÄREL — kasutab samu
   muutujaid (--accent, --dark, --line, --wrap) ja kirjutab vanad
   .prod / .gallery / .spec-table reeglid üle. */

:root {
    --p-panel: #f5f6f8;
    --p-ink-dim: #8b91a0;
    --p-ring: rgba(225, 29, 42, .35);
}

/* ---------- Alamnavigatsioon (kleepub headeri alla) ---------- */
.subnav {
    position: sticky; top: 68px; z-index: 40;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; align-items: center; gap: 4px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
    font-size: 14px; font-weight: 600; color: var(--ink-soft);
    padding: 8px 14px; border-radius: 8px; white-space: nowrap; transition: .15s;
}
.subnav a:hover { background: var(--p-panel); color: var(--ink); }
.subnav a.on { color: var(--accent); background: #fdeaec; }
.subnav .sn-name { font-weight: 800; margin-right: auto; padding-left: 0; color: var(--ink); }

/* ---------- Hero ---------- */
.phero {
    background: linear-gradient(125deg, var(--dark) 0%, var(--dark-2) 55%, #24272f 100%);
    color: #fff; padding: 0;
}
.phero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; padding: 34px 20px 52px; align-items: start; }
.phero .crumb { color: #7f8593; font-size: 13px; padding: 0 0 20px; grid-column: 1 / -1; }
.phero .crumb a { color: #aeb4c0; }
.phero .crumb a:hover { color: #fff; }

.pseries {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent); background: rgba(225, 29, 42, .12);
    border: 1px solid rgba(225, 29, 42, .3); border-radius: 999px; padding: 5px 13px;
}
.phero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; font-weight: 800; margin: 16px 0 14px; }
.phero .lead { color: #c3c8d4; font-size: 16.5px; line-height: 1.62; margin: 0 0 26px; }

.pbadges { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 24px; }
.pbadge {
    font-size: 12.5px; font-weight: 600; color: #dfe3ea;
    background: rgba(255, 255, 255, .07); border-radius: 6px; padding: 5px 10px;
}

.prider { font-size: 13.5px; color: var(--p-ink-dim); margin: 0 0 20px; display: flex; gap: 7px; align-items: center; }

/* Ostukast heros */
.pbuy { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; }
.pbuy .pnote { font-size: 13.5px; color: var(--p-ink-dim); margin: 0 0 13px; }

/* Hind */
.pprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 0 0 6px; }
.pprice .now { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.1; }
.pprice .now.sale { color: var(--accent); }
.pprice .was { font-size: 18px; color: var(--p-ink-dim); text-decoration: line-through; }
.pprice .off {
    font-size: 13px; font-weight: 800; color: #fff; background: var(--accent);
    border-radius: 6px; padding: 3px 8px; letter-spacing: .02em;
}
.pricenote { font-size: 12.5px; color: var(--p-ink-dim); margin: 0 0 18px; line-height: 1.5; }
.pbuy .buybtns { display: grid; gap: 9px; }
.pbuy .buybtn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.pbuy .buybtn:hover { border-color: var(--accent); background: rgba(225, 29, 42, .12); color: #fff; }
.pbuy .buybtn.primary { background: var(--accent); border-color: var(--accent); }
.pbuy .buybtn.primary:hover { background: var(--accent-dark); }

/* ---------- Galerii ---------- */
.pgal .stage {
    background: #fff; border-radius: 14px; overflow: hidden; position: relative;
    aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
}
.pgal .stage img { width: 100%; height: 100%; object-fit: contain; }
.pgal .stage .zoom {
    position: absolute; right: 12px; bottom: 12px;
    background: rgba(17, 19, 24, .72); color: #fff; border: 0; cursor: pointer;
    font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px;
    display: flex; align-items: center; gap: 6px;
}
.pgal .stage .zoom:hover { background: var(--accent); }
.pgal .counter {
    position: absolute; left: 12px; bottom: 12px;
    background: rgba(17, 19, 24, .6); color: #fff;
    font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 6px;
}

/* Värvivalik */
.pcolors { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; flex-wrap: wrap; }
.pcolors .cl { font-size: 12.5px; color: var(--p-ink-dim); font-weight: 600; margin-right: 2px; }
.swatch {
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
    border: 2px solid rgba(255, 255, 255, .25); transition: .16s; position: relative;
}
.swatch:hover { transform: scale(1.08); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 3px var(--p-ring); }
.pcolors .cname { font-size: 13.5px; font-weight: 700; color: #fff; }

/* Pisipildid */
.pthumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.pthumbs button {
    background: #fff; border: 2px solid transparent; border-radius: 8px; padding: 0;
    cursor: pointer; overflow: hidden; aspect-ratio: 1 / 1; transition: .14s;
}
.pthumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pthumbs button:hover { border-color: rgba(255, 255, 255, .5); }
.pthumbs button.on { border-color: var(--accent); }

/* ---------- Statistikariba ---------- */
.pstats { background: var(--dark-2); border-top: 1px solid rgba(255, 255, 255, .08); padding: 0; }
.pstats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0 20px; }
.pstat { padding: 26px 10px; text-align: center; position: relative; }
.pstat + .pstat::before {
    content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px;
    background: rgba(255, 255, 255, .1);
}
.pstat .n { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff; line-height: 1; }
.pstat .n span { font-size: 16px; color: var(--accent); margin-left: 2px; }
.pstat .l { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--p-ink-dim); font-weight: 700; margin-top: 8px; }

/* ---------- Sisusektsioonid ---------- */
.psec { padding: 66px 0; border-bottom: 1px solid var(--line); }
.psec.alt { background: #f8f9fb; }
.psec-head { max-width: 680px; margin: 0 0 34px; }
.psec-head .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; font-size: 12.5px; }
.psec-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin: 9px 0 0; }
.psec-head p { color: var(--ink-soft); font-size: 17px; margin: 14px 0 0; line-height: 1.62; }

.pblocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pblocks.two { grid-template-columns: repeat(2, 1fr); }
.pblock {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 24px 26px;
}
.psec.alt .pblock { box-shadow: 0 1px 2px rgba(16, 18, 24, .03); }
.pblock h3 {
    font-size: 17px; margin: 0 0 10px; font-weight: 700;
    display: flex; align-items: center; gap: 9px;
}
.pblock h3::before {
    content: ""; width: 3px; height: 17px; border-radius: 2px; background: var(--accent); flex: none;
}
.pblock p { margin: 0; color: var(--ink-soft); font-size: 14.8px; line-height: 1.68; }

/* Sektsioon suure pildiga */
.psec-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.psec-split .shot {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    aspect-ratio: 3 / 2; overflow: hidden;
}
.psec-split .shot img { width: 100%; height: 100%; object-fit: contain; }
.psec-split .pblocks { grid-template-columns: 1fr; gap: 18px; }
.psec-split .pblock { border: 0; padding: 0; background: none; }

/* ---------- Pildigalerii ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pgrid button {
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0;
    cursor: pointer; overflow: hidden; aspect-ratio: 3 / 2; transition: .16s;
}
.pgrid button img { width: 100%; height: 100%; object-fit: contain; }
.pgrid button:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Tehnilised andmed ---------- */
.pspecs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 44px; }
.pspec-group h3 {
    font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--accent);
    font-weight: 800; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.pspec-group table { width: 100%; border-collapse: collapse; font-size: 14.8px; }
.pspec-group tr { border-bottom: 1px solid var(--line); }
.pspec-group tr:last-child { border-bottom: 0; }
.pspec-group th { text-align: left; padding: 12px 12px 12px 0; color: var(--ink-soft); font-weight: 500; width: 46%; vertical-align: top; }
.pspec-group td { padding: 12px 0; font-weight: 600; text-align: right; }

/* ---------- Varustus ---------- */
.pequip { columns: 3; column-gap: 34px; list-style: none; padding: 0; margin: 0; }
.pequip li {
    break-inside: avoid; display: flex; gap: 10px; align-items: flex-start;
    font-size: 14.8px; padding: 7px 0; color: var(--ink);
}
.pequip li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }

/* ---------- Pakkumisvorm ---------- */
.buybtn.quote {
    width: 100%; cursor: pointer; font-family: inherit; text-align: left;
    background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff;
}
.buybtn.quote:hover { border-color: var(--accent); background: rgba(225, 29, 42, .12); }

.qmodal {
    position: fixed; inset: 0; z-index: 210; background: rgba(11, 12, 16, .72);
    display: none; align-items: center; justify-content: center; padding: 24px;
    backdrop-filter: blur(3px);
}
.qmodal.open { display: flex; }
.qbox {
    background: #fff; border-radius: 14px; padding: 30px; width: 100%; max-width: 460px;
    position: relative; box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
    max-height: 90vh; overflow-y: auto;
}
.qbox h2 { margin: 0 0 6px; font-size: 24px; }
.qbox .qlead { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }
.qclose {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0;
    background: #f1f3f6; color: var(--ink-soft); border-radius: 50%; cursor: pointer;
    font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.qclose:hover { background: #e6e8ec; color: var(--ink); }

.qbox label { display: block; margin-bottom: 15px; }
.qbox label span {
    display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink);
}
/* Kõik tekstiväljad ühe reegli alla — tüübi kaupa loetlemine on see, kus
   e-posti väli varem stiilist välja jäi. */
.qbox input[type="text"],
.qbox input[type="tel"],
.qbox input[type="email"],
.qbox input[type="url"],
.qbox input[type="number"],
.qbox textarea {
    display: block; width: 100%; box-sizing: border-box;
    font: inherit; font-size: 15px; line-height: 1.4; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
    -webkit-appearance: none; appearance: none;
}
.qbox input:focus, .qbox textarea:focus {
    outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 29, 42, .12);
}
.qbox input::placeholder, .qbox textarea::placeholder { color: #a8aeb9; }
.qbox textarea { resize: vertical; min-height: 88px; }

/* Peibutusväli: peidetud nii, et ekraanilugeja ja inimene seda ei täida */
.qhoney { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }

.qerror {
    background: #fdeaec; color: #a3121c; border-radius: 8px; padding: 10px 13px;
    font-size: 14px; margin: 0 0 14px;
}
.qbox .btn { width: 100%; justify-content: center; }
.qbox .btn:disabled { opacity: .6; cursor: default; }
.qsmall { font-size: 12.5px; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.55; }
.qsmall a { color: var(--accent); font-weight: 600; }

.qdone { text-align: center; padding: 12px 0 4px; }
.qdone .qtick {
    width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
    background: #e8f6ec; color: #1f8b3d; font-size: 27px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.qdone h3 { margin: 0 0 8px; font-size: 20px; }
.qdone p { margin: 0 0 22px; color: var(--ink-soft); }

@media (max-width: 640px) {
    .qmodal { padding: 0; align-items: stretch; }
    .qbox { max-width: none; border-radius: 0; max-height: 100vh; padding: 26px 20px 32px; }
}

/* ---------- Lightbox ---------- */
.lbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(11, 12, 16, .94);
    display: none; align-items: center; justify-content: center; padding: 40px 20px;
}
.lbox.open { display: flex; }
.lbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lbox .x, .lbox .nav-btn {
    position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0;
    cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 22px;
    display: flex; align-items: center; justify-content: center; transition: .15s;
}
.lbox .x { top: 20px; right: 20px; }
.lbox .prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lbox .next { right: 20px; top: 50%; transform: translateY(-50%); }
.lbox .x:hover, .lbox .nav-btn:hover { background: var(--accent); }
.lbox .cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #9aa0ad; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .phero .wrap { grid-template-columns: 1fr; gap: 34px; }
    .pblocks, .pblocks.two { grid-template-columns: 1fr 1fr; }
    .psec-split { grid-template-columns: 1fr; gap: 28px; }
    .pgrid { grid-template-columns: repeat(3, 1fr); }
    .pspecs { grid-template-columns: 1fr; }
    .pequip { columns: 2; }
}
@media (max-width: 640px) {
    .subnav { top: 0; }
    .subnav .sn-name { display: none; }
    .phero .wrap { padding: 22px 20px 40px; }
    .pthumbs { grid-template-columns: repeat(4, 1fr); }
    .pstats .wrap { grid-template-columns: 1fr 1fr; }
    .pstat + .pstat::before { display: none; }
    .pstat { border-top: 1px solid rgba(255, 255, 255, .1); }
    .pblocks, .pblocks.two { grid-template-columns: 1fr; }
    .pgrid { grid-template-columns: repeat(2, 1fr); }
    .pequip { columns: 1; }
    .psec { padding: 46px 0; }
    .lbox .prev { left: 8px; } .lbox .next { right: 8px; }
}
