/* =============================================================
   Product Detail page
   Inherits tokens from style.css
   ============================================================= */

.pd-page section { padding-block: clamp(40px, 5vw, 72px); }

.pd-hero { padding-block: clamp(24px, 3vw, 40px) clamp(32px, 5vw, 64px); }
.pd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
@media (min-width: 960px) {
    .pd-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

/* ---------- Gallery ---------- */
.pd-gallery { position: relative; }
.pd-gallery-main {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-gallery-main .badge {
    position: absolute;
    top: 16px; left: 16px;
    padding: 4px 12px;
    background: var(--brand);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    z-index: 2;
}
.pd-gallery-main img {
    width: 80%; height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.16));
}

.pd-thumbs {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}
.pd-thumb {
    aspect-ratio: 1/1;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
    transition: border-color var(--duration-1) var(--ease-out);
}
.pd-thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.pd-thumb:hover { border-color: var(--ink-3); }
.pd-thumb.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.pd-trust-strip {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: .8125rem;
    color: var(--ink-2);
}
.pd-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pd-trust-strip i { color: var(--brand); }

/* ---------- Info ---------- */
.pd-info { padding-top: 8px; }
.pd-info .eyebrow { margin-bottom: 12px; }
.pd-model {
    font-family: var(--font-mono);
    font-size: .9375rem;
    color: var(--ink-3);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.pd-name {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 8px;
}
.pd-subtitle {
    font-size: .9375rem;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 12px;
}
.pd-desc {
    color: var(--ink-2);
    margin-bottom: 28px;
    max-width: 56ch;
}

.pd-price {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 24px;
}
.pd-price-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pd-price-amt {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}
.pd-price-period {
    font-size: 1rem;
    color: var(--ink-3);
    font-weight: 500;
}
.pd-price-note {
    margin-top: 8px;
    font-size: .75rem;
    color: var(--ink-3);
}

.pd-feat-list {
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 16px;
}
@media (min-width: 600px) { .pd-feat-list { grid-template-columns: 1fr 1fr; } }
.pd-feat-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9375rem;
    color: var(--ink-2);
}
.pd-feat-list li i {
    color: var(--brand);
    margin-top: 5px;
    font-size: .75rem;
}

.pd-variants { margin-bottom: 24px; }
.pd-variants .cat-label {
    display: block;
    font-size: .75rem;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}
.pd-variants-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pd-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 480px) { .pd-cta { flex-direction: row; } .pd-cta .btn { flex: 1; } }

/* ---------- Spec table ---------- */
.pd-spec-table {
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}
.pd-spec-table table { width: 100%; border-collapse: collapse; }
.pd-spec-table th, .pd-spec-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: .9375rem;
    vertical-align: top;
}
.pd-spec-table th {
    width: 40%;
    background: var(--surface-2);
    color: var(--ink-2);
    font-weight: 600;
}
.pd-spec-table td { color: var(--ink); }
.pd-spec-table tr:last-child th,
.pd-spec-table tr:last-child td { border-bottom: 0; }

/* ---------- What's included ---------- */
.pd-included {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.pd-inc {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.pd-inc .ico {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-50);
    color: var(--brand);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}
.pd-inc h4 { font-size: 1rem; margin-bottom: 6px; }
.pd-inc p { font-size: .875rem; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.pd-final {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
}
.pd-final h2 { color: #fff; margin-bottom: 12px; }
.pd-final p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.pd-final-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
@media (min-width: 480px) { .pd-final-cta { flex-direction: row; } }
.pd-final-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); }
.pd-final-cta .btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }

/* ---------- Detail Plans accordion (existing partial) ---------- */
.detail-plans-wrapper {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.detail-plans-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: var(--surface);
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 600;
    transition: background var(--duration-1) var(--ease-out);
}
.detail-plans-toggle:hover { background: var(--surface-2); }
.detail-plans-toggle i { transition: transform var(--duration-2) var(--ease-out); }
.detail-plans-toggle.active i { transform: rotate(180deg); }
.detail-plans-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms var(--ease-out);
    background: var(--surface-2);
}
.detail-plans-panel.open { max-height: none; }
.detail-plans-inner {
    padding: 24px;
    overflow-x: auto;
}
.detail-plans-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.dp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--brand-50);
    color: var(--brand);
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.dp-group-label {
    font-size: .8125rem;
    color: var(--ink-3);
    margin-bottom: 12px;
}

.detail-plans-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: .875rem;
    min-width: 480px;
}
.detail-plans-table th,
.detail-plans-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.detail-plans-table th:last-child,
.detail-plans-table td:last-child { border-right: 0; }
.detail-plans-table tr:last-child td { border-bottom: 0; }

.dp-label-cell {
    text-align: left !important;
    background: var(--surface-2);
    font-weight: 600;
    color: var(--ink);
    width: 30%;
}
.dp-header-group .dp-col-header {
    background: var(--ink);
    color: #fff;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.dp-plan-cell {
    background: var(--surface-2);
    text-align: center;
}
.dp-plan-price {
    font-weight: 700;
    color: var(--brand);
    font-size: 1rem;
}
.dp-plan-sub {
    font-size: .75rem;
    color: var(--ink-3);
    margin-top: 2px;
}
.dp-value-cell { color: var(--ink); }
.dp-value-cell.dp-span {
    text-align: center;
    background: var(--brand-50);
    color: var(--brand);
    font-weight: 600;
}
.dp-note {
    display: block;
    font-size: .6875rem;
    color: var(--ink-3);
    margin-top: 4px;
    font-weight: 400;
}
