/* ==========================================================================
   Product Description Redesign v3 - refined visual polish
   ========================================================================== */

:root {
    --pd-cream: #FBF9F5;
    --pd-ink: #26251F;
    --pd-forest: #1F3D2B;
    --pd-forest-dark: #14261A;
    --pd-line: #E8E3D8;
    --pd-line-soft: #F0ECE2;
    --pd-muted: #8C8676;
    --pd-star: #E6AC3C;
    --pd-accent-bg: #F3EFE4;
    --pd-shadow: 0 4px 24px rgba(43, 43, 38, .06);
    --pd-shadow-hover: 0 8px 28px rgba(43, 43, 38, .10);
    --pd-radius: 16px;
    --pd-radius-sm: 10px;
}

.pd-wrap {
    background: var(--pd-cream);
    padding: 40px 0 90px 0;
}

/* Breadcrumb */
.pd-crumb {
    font-family: var(--secondary-font);
    font-size: 13px;
    color: var(--pd-muted);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
}

.pd-crumb a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.pd-crumb a:hover {
    color: var(--pd-forest);
}

.pd-crumb span {
    margin: 0 8px;
    color: #C9C3B3;
}

.pd-crumb .pd-current {
    color: var(--pd-ink);
    font-weight: 500;
}

/* Gallery */
.pd-gallery {
    display: flex;
    gap: 18px;
}

.pd-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 88px;
    flex-shrink: 0;
}

.pd-thumbs img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--pd-radius-sm);
    border: 1px solid var(--pd-line);
    cursor: pointer;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
    opacity: .65;
}

.pd-thumbs img.active {
    border-color: var(--pd-forest);
    opacity: 1;
    box-shadow: 0 0 0 1px var(--pd-forest);
}

.pd-thumbs img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.pd-main-img {
    position: relative;
    flex-grow: 1;
    margin-right: 30px;
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pd-line);
    box-shadow: var(--pd-shadow);
}

.pd-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1/1.05;
    transition: transform .5s ease;
}

.pd-main-img:hover img {
    transform: scale(1.03);
}

.pd-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--pd-forest);
    color: #fff;
    font-family: var(--secondary-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pd-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
    color: var(--pd-ink);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.pd-zoom:hover {
    transform: scale(1.08);
    background: #fff;
}

/* Info column */
.pd-info {
    padding-left: 20px;
}

.pd-eyebrow {
    font-family: var(--secondary-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pd-forest);
    margin-bottom: 10px;
    display: block;
}

.pd-title {
    font-family: var(--primary-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--pd-ink);
    margin-bottom: 10px;
    line-height: 1.2;
}

.pd-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--secondary-font);
    font-size: 14px;
    color: var(--pd-muted);
}

.pd-rating i {
    color: var(--pd-star);
    font-size: 14px;
}

.pd-rating .pd-rating-divider {
    width: 1px;
    height: 14px;
    background: var(--pd-line);
}

.pd-rating .pd-rating-link {
    color: var(--pd-forest);
    text-decoration: underline;
    cursor: pointer;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.pd-price {
    font-family: var(--primary-font);
    font-size: 30px;
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-price-was {
    font-family: var(--secondary-font);
    font-size: 16px;
    color: var(--pd-muted);
    text-decoration: line-through;
}

.pd-price-off {
    font-family: var(--secondary-font);
    font-size: 13px;
    font-weight: 600;
    color: #C0603A;
    background: #FBEBE2;
    padding: 3px 9px;
    border-radius: 20px;
}

.pd-price-note {
    font-family: var(--secondary-font);
    font-size: 13px;
    color: var(--pd-muted);
    margin-bottom: 22px;
}

.pd-desc {
    font-family: var(--secondary-font);
    font-size: 14.5px;
    line-height: 1.75;
    color: #524F44;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--pd-line-soft);
}

.pd-section-label {
    font-family: var(--secondary-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--pd-ink);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-section-label .pd-selected-value {
    font-weight: 400;
    color: var(--pd-muted);
}

/* Color swatches */
.pd-colors {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.pd-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .09);
    transition: transform .15s ease;
}

.pd-swatch:hover {
    transform: translateY(-2px);
}

.pd-swatch.active {
    border-color: var(--pd-ink);
}

.pd-swatch.active::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Quantity */
.pd-qty-row {
    margin-bottom: 28px;
}

.pd-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pd-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.pd-qty button {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    font-size: 17px;
    color: var(--pd-ink);
    cursor: pointer;
    transition: background .15s ease;
}

.pd-qty button:hover {
    background: var(--pd-accent-bg);
}

.pd-qty button:active {
    background: var(--pd-line);
}

.pd-qty input {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--pd-line);
    border-right: 1px solid var(--pd-line);
    text-align: center;
    font-family: var(--secondary-font);
    font-weight: 600;
    font-size: 15px;
    color: var(--pd-ink);
}

.pd-qty input:focus {
    outline: none;
}

/* Personalization */
.pd-personalize {
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    padding: 22px;
    margin-bottom: 24px;
}

.pd-personalize-title {
    font-family: var(--primary-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--pd-ink);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-personalize-title i {
    color: var(--pd-forest);
    font-size: 15px;
}

.pd-personalize-sub {
    font-family: var(--secondary-font);
    font-size: 12.5px;
    color: var(--pd-muted);
    margin-bottom: 18px;
}

.pd-field {
    margin-bottom: 18px;
}

.pd-field:last-child {
    margin-bottom: 0;
}

.pd-field-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--secondary-font);
    font-size: 13px;
    color: var(--pd-ink);
    margin-bottom: 8px;
}

.pd-field-label .pd-optional {
    color: var(--pd-muted);
    font-weight: 400;
}

.pd-field-label .pd-count {
    color: var(--pd-muted);
    font-size: 12px;
}

.pd-input {
    width: 100%;
    border: 1px solid var(--pd-line);
    border-radius: 9px;
    padding: 12px 14px;
    font-family: var(--secondary-font);
    font-size: 14px;
    color: var(--pd-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pd-input:focus {
    outline: none;
    border-color: var(--pd-forest);
    box-shadow: 0 0 0 3px rgba(31, 61, 43, .08);
}

.pd-input::placeholder {
    color: #B4AFA2;
}

.pd-upload {
    border: 1.5px dashed var(--pd-line);
    border-radius: var(--pd-radius-sm);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    background: var(--pd-accent-bg);
    display: block;
    transition: border-color .2s ease, background .2s ease;
}

.pd-upload:hover {
    border-color: var(--pd-forest);
    background: #EFE9DA;
}

.pd-upload i {
    font-size: 20px;
    color: var(--pd-forest);
    display: block;
    margin-bottom: 8px;
}

.pd-upload span {
    font-family: var(--secondary-font);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--pd-ink);
}

.pd-upload-hint {
    font-family: var(--secondary-font);
    font-size: 12px;
    color: var(--pd-muted);
    margin-top: 8px;
}

.pd-upload input[type="file"] {
    width: .1px;
    height: .1px;
    opacity: 0;
    position: absolute;
    overflow: hidden;
    z-index: -1;
}

.pd-upload-filename {
    font-family: var(--secondary-font);
    font-size: 12.5px;
    color: var(--pd-forest);
    font-weight: 600;
    margin-top: 8px;
    display: none;
}

/* CTA buttons */
.pd-cta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.pd-cta {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    border-radius: 10px;
    font-family: var(--secondary-font);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .03em;
    border: 1.5px solid var(--pd-forest);
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.pd-cta:active {
    transform: translateY(1px);
}

.pd-cta-outline {
    background: #fff;
    color: var(--pd-forest);
}

.pd-cta-outline:hover {
    background: var(--pd-accent-bg);
    color: var(--pd-forest);
}

.pd-cta-solid {
    background: var(--pd-forest);
    color: #fff !important;
    border: none;
    box-shadow: 0 6px 18px rgba(31, 61, 43, .22);
}

.pd-cta-solid:hover {
    background: var(--pd-forest-dark);
    color: #fff;
    box-shadow: 0 8px 22px rgba(31, 61, 43, .28);
}

.pd-wishlist {
    width: 52px;
    flex: none;
    border-radius: 10px;
    border: 1.5px solid var(--pd-line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pd-ink);
    transition: border-color .2s ease, color .2s ease;
}

.pd-wishlist:hover {
    border-color: #C0603A;
    color: #C0603A;
}

.pd-wishlist.active {
    border-color: #C0603A;
    color: #C0603A;
}

.pd-wishlist.active i {
    font-weight: 900;
}

/* Trust bar */
.pd-trust {
    margin-top: 32px;
    border-top: 1px solid var(--pd-line);
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--secondary-font);
    font-size: 13px;
    color: var(--pd-ink);
}

.pd-trust-item i {
    color: var(--pd-forest);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Accordion */
.pd-accordion {
    margin-top: 60px;
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    padding: 6px 24px;
    box-shadow: var(--pd-shadow);
}

.pd-acc-item {
    border-bottom: 1px solid var(--pd-line-soft);
}

.pd-acc-item:last-child {
    border-bottom: none;
}

.pd-acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 4px;
    cursor: pointer;
    font-family: var(--primary-font);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--pd-ink);
    transition: color .2s ease;
}

.pd-acc-header:hover {
    color: var(--pd-forest);
}

.pd-acc-header .pd-stars {
    color: var(--pd-star);
    font-size: 14px;
    margin-right: 8px;
}

.pd-acc-header .pd-chevron-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pd-accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pd-acc-header .pd-chevron {
    transition: transform .25s ease;
    color: var(--pd-ink);
    font-size: 12px;
}

.pd-acc-item.open .pd-acc-header {
    color: var(--pd-forest);
}

.pd-acc-item.open .pd-chevron-wrap {
    background: var(--pd-forest);
}

.pd-acc-item.open .pd-chevron {
    transform: rotate(180deg);
    color: #fff;
}

.pd-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.pd-acc-item.open .pd-acc-body {
    max-height: 700px;
}

.pd-acc-body-inner {
    padding: 0 4px 26px 4px;
    font-family: var(--secondary-font);
    font-size: 14px;
    line-height: 1.85;
    color: #524F44;
}

.pd-acc-body-inner ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.pd-acc-body-inner li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.pd-acc-body-inner li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: var(--pd-forest);
    position: absolute;
    left: 0;
    top: 4px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:991px) {
    .pd-main-img img {
        aspect-ratio: 1/1;
    }

    .pd-info {
        padding-left: 0;
        margin-top: 32px;
    }
}

@media (max-width:767px) {
    .pd-gallery {
        flex-direction: column-reverse;
    }

    .pd-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .pd-thumbs img {
        width: 64px;
        flex-shrink: 0;
    }

    .pd-title {
        font-size: 24px;
    }

    .pd-trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-accordion {
        padding: 4px 16px;
    }
}

@media (max-width:480px) {
    .pd-trust {
        grid-template-columns: 1fr;
    }

    .pd-qty-row .pd-qty {
        width: 100%;
        justify-content: space-between;
    }

    .pd-cta-row {
        flex-wrap: wrap;
    }

    .pd-personalize {
        padding: 18px;
    }
}