.pd-wrap { max-width: 1100px; margin: 2rem auto; padding: 80px 1rem 0;}

/* Gallery */
.pd-gallery { position: relative; }
.pd-main-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f5f5;
}
.pd-main-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .15s;
}
.pd-carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.88); border: none; border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 2;
    font-size: .85rem; color: #333;
}
.pd-carousel-btn.prev { left: 10px; }
.pd-carousel-btn.next { right: 10px; }
.pd-thumbstrip {
    display: flex; gap: .5rem; flex-wrap: nowrap; overflow-x: auto;
    margin-top: .75rem; padding-bottom: .25rem;
}
.pd-thumb {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 8px; border: 2px solid transparent;
    cursor: pointer; flex-shrink: 0; transition: border-color .15s;
}
.pd-thumb.active { border-color: #1e8449; }

/* Info panel */
.pd-info { padding: 0; }
.pd-brand { font-size: .78rem; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.pd-name { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; line-height: 1.25; margin-bottom: .6rem; }
.pd-price { font-size: 1.4rem; font-weight: 700; color: #1e8449; margin-bottom: 1rem; }
.pd-price .price-max { font-size: 1rem; font-weight: 500; color: #888; margin-left: .4rem; }
.pd-divider { border: none; border-top: 1px solid #eee; margin: 1rem 0; }

/* SKU & variants */
.pd-label { font-size: .8rem; font-weight: 600; color: #444; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .45rem; }
.pd-label span { font-weight: 400; color: #1e8449; text-transform: none; letter-spacing: 0; margin-left: .3rem; }
.pd-sku-btn {
    display: inline-block; padding: .35rem .85rem;
    border: 1.5px solid #ccc; border-radius: 8px;
    font-size: .82rem; font-family: monospace;
    cursor: pointer; background: #fff; margin: .2rem;
    transition: border-color .15s, background .15s;
}
.pd-sku-btn.active { border-color: #1e8449; background: #eafaf1; color: #1e8449; font-weight: 600; }
.pd-sku-btn:hover:not(.active):not(:disabled) { border-color: #aaa; }
.pd-sku-btn:disabled {
    border-color: #e0e0e0; color: #bbb; background: #fafafa;
    cursor: not-allowed; text-decoration: line-through;
}

.pd-color-group, .pd-size-group { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.pd-color-swatch {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2.5px solid transparent; cursor: pointer;
    box-shadow: 0 0 0 1px #ddd; transition: box-shadow .15s;
}
.pd-color-swatch.active { box-shadow: 0 0 0 2.5px #1e8449; border-color: #fff; }
.pd-color-text, .pd-size-btn {
    padding: .3rem .75rem; border-radius: 8px;
    border: 1.5px solid #ddd; background: #fff; font-size: .82rem;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.pd-color-text.active, .pd-size-btn.active { border-color: #1e8449; background: #eafaf1; color: #1e8449; font-weight: 600; }
.pd-clear-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .9rem; margin-bottom: .9rem;
    border: 1.5px solid #e4e4e4; border-radius: 20px;
    background: #fafafa; color: #777;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .01em; cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.pd-clear-btn i { font-size: .72rem; transition: transform .3s ease; }
.pd-clear-btn:hover {
    border-color: #1e8449; background: #eafaf1; color: #1e8449;
    box-shadow: 0 2px 6px rgba(30,132,73,.12);
}
.pd-clear-btn:hover i { transform: rotate(-90deg); }
.pd-clear-btn:active { transform: translateY(1px); }

/* Stock */
.pd-stock-wrap { display: flex; align-items: center; gap: .5rem; margin: .75rem 0; }
.pd-stock-badge {
    display: inline-block; padding: .2rem .65rem;
    border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.pd-stock-badge.in-stock { background: #e8f5e9; color: #2e7d32; }
.pd-stock-badge.low-stock { background: #fff8e1; color: #f57f17; }
.pd-stock-badge.out-of-stock { background: #ffebee; color: #c62828; }

/* Description */
.pd-desc-body { font-size: .9rem; color: #555; line-height: 1.75; max-height: 120px; overflow: hidden; transition: max-height .3s; }
.pd-desc-body.expanded { max-height: 1000px; }
.pd-see-more { background: none; border: none; color: #1e8449; font-size: .82rem; cursor: pointer; padding: .3rem 0; }

/* Action buttons */
.pd-actions { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pd-btn-cart {
    flex: 1; min-width: 140px; padding: .75rem 1rem;
    border: 2px solid #1e8449; border-radius: 10px;
    background: #fff; color: #1e8449; font-weight: 600; font-size: .92rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .45rem;
    transition: background .15s, color .15s;
}
.pd-btn-cart:hover:not(:disabled) { background: #eafaf1; }
.pd-btn-cart:disabled { border-color: #ddd; color: #bbb; cursor: not-allowed; }
.pd-btn-checkout {
    flex: 1; min-width: 140px; padding: .75rem 1rem;
    border: none; border-radius: 10px;
    background: #1e8449; color: #fff; font-weight: 600; font-size: .92rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .45rem;
    transition: background .15s;
}
.pd-btn-checkout:hover:not(:disabled) { background: #b02a37; }
.pd-btn-checkout:disabled { background: #e0e0e0; color: #aaa; cursor: not-allowed; }

/* Toast */
.pd-toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #1a1a1a; color: #fff; padding: .6rem 1.25rem;
    border-radius: 24px; font-size: .85rem; z-index: 9999;
    opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
    display: flex; align-items: center; gap: .5rem;
}
.pd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* WA float */
#waFloat {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
    background: #25d366; color: #fff; border-radius: 50%;
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,.2); text-decoration: none;
    transition: background .2s;
}
#waFloat:hover { background: #1ebe5d; }

@media (max-width: 767px) {
    .pd-name { font-size: 1.2rem; }
    .pd-price { font-size: 1.15rem; }
}
