﻿:root {
    --bg-main: #FAF9F7;
    --bg-soft: #E6E1DA;
    --text-main: #2E2E2E;
    --accent: #C9A96A;
    --card: #ffffff;
    --line: rgba(46,46,46,.10);
    --shadow: 0 18px 40px rgba(0,0,0,.06);
    --r: 16px;
}

.pdp {
    background: var(--bg-main);
    padding: 26px 0 60px;
}

.pdp-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: start;
}

/* ===== GALLERY ===== */
.pdp-gallery {
    background: transparent;
}

.pdp-mainmedia {
    background: linear-gradient(180deg, rgba(230,225,218,.55), rgba(250,249,247,.85));
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .pdp-mainmedia img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        transition: opacity .18s ease;
    }

.pdp-thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.pdp-thumb {
    border: 1px solid rgba(46,46,46,.12);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    aspect-ratio: 1 / 1;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .pdp-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .pdp-thumb:hover {
        transform: translateY(-1px);
        border-color: rgba(201,169,106,.55);
    }

    .pdp-thumb.is-active {
        border-color: rgba(201,169,106,.8);
        box-shadow: 0 10px 22px rgba(0,0,0,.06);
    }

/* ===== INFO ===== */
.pdp-info {
    position: sticky;
    top: 110px;
}

.pdp-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: var(--shadow);
}

.pdp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: rgba(46,46,46,.78);
    font-size: .88rem;
}

.pdp-cat {
    background: rgba(201,169,106,.14);
    border: 1px solid rgba(201,169,106,.35);
    padding: 6px 10px;
    border-radius: 999px;
}

.pdp-title {
    margin: 10px 0 8px;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--text-main);
}

.pdp-short {
    margin: 0 0 12px;
    color: rgba(46,46,46,.78);
}

.pdp-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 10px 0 8px;
}

.pdp-now {
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: .2px;
}

.pdp-old {
    color: rgba(46,46,46,.55);
    text-decoration: line-through;
}

.pdp-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: .9rem;
}

    .pdp-stock .is-in {
        color: rgba(46,46,46,.85);
        font-weight: 600;
    }

    .pdp-stock .is-out {
        color: rgba(46,46,46,.65);
        font-weight: 600;
    }

.pdp-stockcount {
    color: rgba(46,46,46,.60);
}

/* specs */
.pdp-specs {
    border-top: 1px solid rgba(46,46,46,.08);
    margin-top: 12px;
    padding-top: 12px;
    display: grid;
    gap: 8px;
}

.pdp-spec {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(46,46,46,.08);
    border-radius: 14px;
    background: rgba(250,249,247,.6);
}

    .pdp-spec .k {
        color: rgba(46,46,46,.75);
        font-size: .9rem;
    }

    .pdp-spec .v {
        color: var(--text-main);
        font-weight: 520;
        font-size: .9rem;
        text-align: right;
    }

/* actions */
.pdp-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.qty {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
}

.qty-btn {
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(46,46,46,.12);
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}

.qty input {
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(46,46,46,.12);
    padding: 0 12px;
    background: #fff;
    color: var(--text-main);
}

.btn-addcart {
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(201,169,106,.65);
    background: rgba(201,169,106,.18);
    cursor: pointer;
    font-weight: 650;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

    .btn-addcart:hover:enabled {
        transform: translateY(-1px);
        background: rgba(201,169,106,.25);
        border-color: rgba(201,169,106,.85);
    }

    .btn-addcart:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.btn-wish {
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(46,46,46,.12);
    background: #fff;
    cursor: pointer;
}

.pdp-desc {
    margin-top: 14px;
    border-top: 1px solid rgba(46,46,46,.08);
    padding-top: 12px;
}

    .pdp-desc h2 {
        margin: 0 0 8px;
        font-size: 1.02rem;
    }

    .pdp-desc p {
        margin: 0;
        color: rgba(46,46,46,.78);
        line-height: 1.7;
    }

.pdp-note {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(201,169,106,.10);
    border: 1px solid rgba(201,169,106,.28);
    padding: 12px 14px;
    border-radius: var(--r);
}

    .pdp-note p {
        margin: 0;
        color: rgba(46,46,46,.78);
    }

/* Responsive */
@media (max-width: 980px) {
    .pdp-shell {
        grid-template-columns: 1fr;
    }

    .pdp-info {
        position: relative;
        top: 0;
    }

    .pdp-thumbs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .pdp-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
