/* Product Detail Page — Jusson-inspired layout */
:root {
    --js-pdp-brown: #8b735b;
    --js-pdp-peach: #f5ddd0;
    --js-pdp-gold: #c9a962;
}

.js-pdp {
    padding: 2rem 0 3rem;
    background: var(--js-white, #fff);
}

.js-pdp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .js-pdp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
}

/* Gallery */
.js-pdp-main-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--js-border, #ddd);
    background: var(--js-bg-soft, #f7f5f2);
}

.js-pdp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.js-pdp-main-image .js-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.js-pdp-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.js-pdp-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.js-pdp-thumb.is-active {
    border-color: var(--js-black, #111);
}

.js-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info column */
.js-pdp-vendor {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: lowercase;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.js-pdp-title {
    font-family: var(--js-font-body, 'Inter', sans-serif);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--js-black, #111);
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.js-pdp-rating {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.85rem;
}

.js-pdp-rating .bi-star-fill {
    color: var(--js-pdp-gold);
    font-size: 14px;
}

.js-pdp-rating .bi-star {
    color: #ccc;
    font-size: 14px;
}

.js-pdp-rating-count {
    font-size: 13px;
    color: #666;
    margin-left: 0.35rem;
}

.js-pdp-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.js-pdp-price-row .js-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.js-pdp-price-row .js-price-sale {
    font-size: 18px;
    font-weight: 700;
    color: var(--js-black, #111);
}

.js-pdp-sale-tag {
    background: var(--js-tan-light, #c4b5a5);
    color: var(--js-black, #111);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    letter-spacing: 0.04em;
}

.js-pdp-tax-note {
    font-size: 12px;
    color: #888;
    margin-bottom: 1.25rem;
}

.js-pdp-sizes {
    margin-bottom: 1.25rem;
}

.js-pack-btn.is-unavailable {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.js-pdp-size-hint {
    margin: -0.75rem 0 1.25rem;
    font-size: 0.8125rem;
    color: #b45309;
}

.js-pdp-actions .js-btn-add-cart:disabled,
.js-pdp-actions .js-btn-buy-now:disabled,
.js-btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Action buttons */
.js-pdp-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.js-pdp-actions .js-btn-add-cart {
    max-width: none;
    width: 100%;
}

.js-btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--js-pdp-brown);
    color: var(--js-white, #fff);
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.js-btn-buy-now:hover:not(:disabled) {
    background: var(--js-brown-dark, #5A4A3A);
    color: var(--js-white, #fff);
}

.js-btn-buy-now:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Trust badges */
.js-pdp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--js-border, #ddd);
}

.js-pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: var(--js-text, #222);
}

.js-pdp-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8d5a8, var(--js-pdp-gold));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--js-white, #fff);
    font-size: 14px;
    flex-shrink: 0;
}

/* Key features */
.js-pdp-features {
    margin-bottom: 1.75rem;
}

.js-pdp-features-title {
    font-family: var(--js-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.js-pdp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.js-pdp-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    color: var(--js-text, #222);
}

.js-pdp-features-list .bi-star-fill {
    color: var(--js-pdp-gold);
    font-size: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Size chart */
.js-pdp-size-chart {
    margin-bottom: 1.75rem;
}

.js-pdp-section-label {
    font-family: var(--js-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.js-pdp-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.js-pdp-chart-table thead th {
    background: var(--js-pdp-peach);
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.03em;
    border: 1px solid #e8cfc0;
    text-align: center;
}

.js-pdp-chart-table tbody td {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--js-border, #ddd);
    text-align: center;
}

.js-pdp-chart-table tbody td:first-child {
    font-weight: 600;
}

/* Accordion */
.js-pdp-accordion {
    border-top: 1px solid var(--js-border, #ddd);
}

.js-pdp-acc-item {
    border-bottom: 1px solid var(--js-border, #ddd);
}

.js-pdp-acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--js-black, #111);
    cursor: pointer;
    text-align: left;
}

.js-pdp-acc-toggle i {
    font-size: 16px;
    color: #888;
}

.js-pdp-acc-body {
    padding: 0 0 1rem;
    font-size: 13px;
    line-height: 1.65;
    color: #555;
}

/* Reviews section */
.js-pdp-reviews {
    padding: 3rem 0;
    background: var(--js-bg-soft, #f7f5f2);
    border-top: 1px solid var(--js-border, #ddd);
}

.js-pdp-reviews-heading {
    font-family: var(--js-font-body, 'Inter', sans-serif);
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.js-pdp-reviews-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--js-white, #fff);
    border: 1px solid var(--js-border, #ddd);
}

@media (min-width: 768px) {
    .js-pdp-reviews-summary {
        grid-template-columns: auto 1fr auto;
        gap: 2rem;
    }
}

.js-pdp-reviews-score {
    text-align: center;
}

.js-pdp-reviews-avg {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.js-pdp-reviews-based {
    font-size: 12px;
    color: #888;
    margin: 0.35rem 0 0;
}

.js-pdp-reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.js-pdp-bar-row {
    display: grid;
    grid-template-columns: 48px 1fr 24px;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
}

.js-pdp-bar-label {
    white-space: nowrap;
}

.js-pdp-bar-label .bi-star-fill {
    color: var(--js-pdp-gold);
    font-size: 10px;
}

.js-pdp-bar-track {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.js-pdp-bar-fill {
    height: 100%;
    background: var(--js-pdp-gold);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.js-pdp-bar-count {
    text-align: right;
    color: #888;
}

.js-btn-write-review {
    background: var(--js-pdp-brown);
    color: var(--js-white, #fff);
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease;
}

.js-btn-write-review:hover {
    background: var(--js-brown-dark, #5A4A3A);
}

.js-pdp-review-form-wrap {
    background: var(--js-white, #fff);
    border: 1px solid var(--js-border, #ddd);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.js-pdp-review-form-wrap .btn-pr-gold {
    background: var(--js-pdp-brown);
    border-color: var(--js-pdp-brown);
    color: var(--js-white, #fff);
}

.js-pdp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.js-pdp-review-item {
    background: var(--js-white, #fff);
    border: 1px solid var(--js-border, #ddd);
    padding: 1.25rem 1.5rem;
}

.js-pdp-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.js-pdp-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 11px;
    color: #2e7d32;
    margin-left: 0.5rem;
}

.js-pdp-review-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.js-pdp-review-photo img {
    max-width: 120px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.js-pdp-review-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--js-text, #222);
}

.js-pdp-review-date {
    font-size: 12px;
    color: #888;
}

.js-pdp-no-reviews {
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Related products */
.js-pdp-related {
    padding-bottom: 3rem;
}

.js-pdp-related .js-product-card-image {
    border-radius: 8px;
}
