.pd-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem clamp(1rem, 3vw, 2rem);
    overflow: hidden;
}

.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.pd-media { min-width: 0; width: 100%; justify-self: center; }

.pd-carousel {
    position: relative;
    width: 100%;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    background: var(--bg2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    user-select: none;
}
.pd-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.pd-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
}
.pd-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pd-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.15s;
    color: var(--text);
}
.pd-carousel-btn:hover { background: var(--kans-red); color: #fff; }
.pd-carousel-btn.prev  { left: 0.75rem; }
.pd-carousel-btn.next  { right: 0.75rem; }
.pd-carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}
.pd-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
    background: rgba(0,0,0,0.22);
}
.pd-dot.active { background: #bf0018; transform: scale(1.3); }

.pd-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    max-width: 100%;
}
.pd-thumb {
    width: 58px; height: 58px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    padding: 0;
    background: none;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.pd-thumb.active { border-color: #bf0018; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-info { min-width: 0; }

.pd-cat {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--kans-red);
    margin-bottom: 0.5rem;
}

.pd-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 1.25rem;
    overflow-wrap: anywhere;
}

.pd-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.pd-price   { font-size: clamp(1.55rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--kans-red); line-height: 1; }
.pd-compare { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.pd-discount{ background: var(--kans-red); color: #fff; font-size: 0.7rem; font-weight: 700;
              padding: 0.2rem 0.5rem; border-radius: 4px; }

.pd-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.pd-variants { margin-bottom: 1.5rem; }
.pd-variant-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pd-variant-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: 2rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    min-height: 38px;
    max-width: 100%;
    text-align: left;
}
.pd-variant-btn:hover { border-color: var(--kans-red); }
.pd-variant-btn.active { border-color: var(--kans-red); background: var(--kans-red); color: #fff; }
.pd-variant-btn.active img { opacity: 0.9; }

.pd-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.pd-popup-overlay.open { display: flex; }
.pd-popup-box {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    animation: pdPopupIn 0.2s ease;
}
@keyframes pdPopupIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.pd-popup-header {
    background: var(--kans-red);
    color: #fff;
    padding: 1rem 1.25rem 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pd-popup-body {
    padding: 1.1rem 1.25rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.6;
}
.pd-popup-close {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem;
    background: var(--kans-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: opacity 0.15s;
}
.pd-popup-close:hover { opacity: 0.88; }

.pd-qty-row { margin-bottom: 1rem; }
.pd-qty-buy-row { display: block; }
.pd-qty-ctrl {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.pd-qty-btn {
    width: 44px; height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.pd-qty-btn:hover { background: var(--bg2); }
.pd-qty-input {
    width: 52px; height: 48px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    -moz-appearance: textfield;
    color: var(--text);
}
.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pd-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--kans-red);
    color: #fff;
    border: 2px solid var(--kans-red);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.18s;
    margin-bottom: 0.6rem;
}
.pd-add-cart:hover { background: var(--kans-red-dk); border-color: var(--kans-red-dk); }
.pd-add-cart.added { background: #10b981; border-color: #10b981; }
.pd-add-cart:disabled { opacity: 0.6; cursor: not-allowed; }

.pd-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    background: var(--kans-red);
    color: #fff;
    border: 2px solid var(--kans-red);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 0.75rem;
    text-align: center;
    white-space: normal;
}
.pd-buy:hover { background: var(--kans-red-dk); border-color: var(--kans-red-dk); }

.pd-payment-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.pd-specs { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.pd-specs-heading {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.6rem;
}
.pd-spec-row {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0eeec;
    font-size: 0.83rem;
    gap: 0.75rem;
    min-width: 0;
}
.pd-spec-key {
    flex: 0 0 38%;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 400;
}
.pd-spec-val {
    flex: 1;
    color: var(--text);
    line-height: 1.5;
    font-weight: 500;
    word-break: break-word;
}

.pd-desc-section {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.pd-desc-heading {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1.25rem;
}
.pd-desc-body {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--text);
    max-width: 800px;
    overflow-wrap: anywhere;
}
.pd-desc-body a     { color: inherit; text-decoration: none; }
.pd-desc-body b,
.pd-desc-body strong{ font-weight: 600; }

.pd-related { padding: 2.5rem 2rem 4rem; background: var(--bg2); border-top: 1px solid var(--border); }
.pd-related-inner { max-width: 1100px; margin: 0 auto; }
.pd-related-title { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 600;
                    margin-bottom: 1.5rem; color: var(--text); }

@media (max-width: 980px) {
    .pd-grid  { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr); gap: 2rem; }
    .pd-title { font-size: 1.4rem; }
    .pd-price { font-size: 1.6rem; }
}

@media (max-width: 820px) {
    .pd-wrap  { padding-top: 1.5rem; }
    .pd-grid  { grid-template-columns: 1fr; gap: 1.5rem; }
    .pd-media { max-width: 560px; width: 100%; margin: 0 auto; }
    .pd-info  { max-width: 620px; width: 100%; margin: 0 auto; }
    .pd-desc-body { max-width: 620px; }
}

@media (max-width: 640px) {
    .pd-wrap  { padding: 0 0 2rem; overflow: visible; }
    .pd-grid  { grid-template-columns: 1fr; gap: 0; }
    .pd-media { max-width: none; width: 100%; margin-inline: auto; overflow: hidden; }
    .pd-carousel {
        width: 100%;
        margin-inline: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        aspect-ratio: 4 / 5;
        max-height: min(78vh, 460px);
    }
    .pd-carousel-btn { width: 34px; height: 34px; font-size: 1rem; }
    .pd-carousel-btn.prev { left: 0.5rem; }
    .pd-carousel-btn.next { right: 0.5rem; }
    .pd-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 1rem 0.25rem;
        scrollbar-width: none;
    }
    .pd-thumbs::-webkit-scrollbar { display: none; }
    .pd-thumb { width: 52px; height: 52px; }
    .pd-info  { padding: 1.25rem 1rem 0; }
    .pd-title { font-size: 1.15rem; margin-bottom: 0.9rem; }
    .pd-price { font-size: 1.5rem; }
    .pd-qty-buy-row { display: block; }
    .pd-qty-row     { margin-bottom: 0.75rem; }
    .pd-buy         { min-height: 48px; font-size: 0.88rem; flex: 1; margin-bottom: 0; }
    .pd-add-cart    { min-height: 52px; font-size: 0.88rem; }
    .pd-qty-btn   { width: 46px; height: 52px; }
    .pd-qty-input { width: 48px; height: 52px; }
    .pd-spec-key { flex: 0 0 44%; }
    .pd-desc-section { margin-top: 2rem; padding: 1.25rem 1rem 0; border-top: 1px solid var(--border); }
    .pd-desc-body { max-width: 100%; }
    .pd-related { padding: 1.5rem 1rem 3rem; }
}

@media (max-width: 380px) {
    .pd-qty-buy-row { grid-template-columns: 1fr; }
    .pd-qty-ctrl { width: 100%; }
    .pd-qty-btn { flex: 1; }
    .pd-qty-input { flex: 0 0 58px; }
    .pd-buy { width: 100%; }
    .pd-spec-row { display: block; }
    .pd-spec-key { display: block; margin-bottom: 0.15rem; }
}

/* ── Rich SEO content sections ─────────────────────────────────────────── */
.pd-rich-sections {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}
.pd-rich-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.pd-rich-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.85rem;
    letter-spacing: 0.02em;
}
.pd-rich-body {
    color: var(--text-muted, #555);
    font-size: 0.88rem;
    line-height: 1.8;
}
@media (max-width: 640px) {
    .pd-rich-sections { padding: 0 1rem 2rem; }
    .pd-rich-block { margin-top: 1.75rem; padding-top: 1.5rem; }
}
