/* ============================================================
   PRODUCT DETAIL PAGE — product.css (Dark Theme)
   ============================================================ */

.pd-main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* ── Layout ── */
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 72px;
}

@media (max-width: 720px) {
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ── Gallery ── */
.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-main-img-wrap {
    position: relative;
    background: #0d0d0d;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.pd-main-img.fade-in {
    animation: pdFade 0.25s ease;
}

@keyframes pdFade {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

.pd-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pd-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: contain;
    background: #0d0d0d;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s, transform 0.15s;
    padding: 4px;
}

.pd-thumb:hover {
    transform: scale(1.06);
}

.pd-thumb.active {
    border-color: #c9a84c;
}

/* ── Info ── */
.pd-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
}

.pd-name {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
}

.pd-price {
    font-size: 28px;
    font-weight: 800;
    color: #c9a84c;
}

.pd-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-meta-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

.pd-meta-value {
    font-size: 14px;
    color: #bbb;
}

.pd-description {
    font-size: 15px;
    line-height: 1.75;
    color: #999;
}

/* Sizes */
.pd-sizes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-size-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pd-size-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.pd-size-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.pd-size-btn.active {
    background: #c9a84c;
    color: #000;
    border-color: #c9a84c;
}

.pd-size-guide {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

/* Actions */
.pd-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pd-buy-btn {
    flex: 1;
    padding: 16px;
    background: #c9a84c;
    color: #000;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pd-buy-btn:hover {
    opacity: 0.85;
}

.pd-wish-btn {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    color: #fff;
}

.pd-wish-btn:hover {
    background: rgba(255, 60, 60, 0.1);
    border-color: rgba(255, 60, 60, 0.5);
}

.pd-wish-btn:hover svg {
    stroke: #ff4444;
}

/* Features */
.pd-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 20px;
}

.pd-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #888;
}

.pd-feature svg {
    flex-shrink: 0;
    stroke: #c9a84c;
}

/* ── Section Title ── */
.pd-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Video ── */
.pd-video-section {
    margin-bottom: 72px;
}

.pd-video {
    width: 100%;
    max-height: 600px;
    border-radius: 16px;
    background: #111;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Reviews ── */
.pd-reviews-section {
    margin-bottom: 40px;
}

.pd-stars-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: #111;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-big-rating {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
}

.pd-rating-count {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.pd-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Review card shared */
.review-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.review-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 168, 76, 0.3);
}

.review-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.review-body {
    padding: 14px 16px 18px;
}

.review-stars {
    color: #c9a84c;
    font-size: 15px;
    margin-bottom: 8px;
}

.review-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.review-product-tag {
    font-size: 10px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.review-text {
    font-size: 13px;
    line-height: 1.65;
    color: #888;
}

/* Text-only review (no photo) */
.review-card--text {
    display: flex;
    align-items: center;
    min-height: 180px;
}

.review-card--text .review-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-card--text .review-text {
    font-size: 14px;
    line-height: 1.75;
    color: #aaa;
    font-style: italic;
}

/* ═══════════════════════════════════════
   CART DRAWER
═══════════════════════════════════════ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100vw);
    background: #111;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cart-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-empty {
    color: #666;
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
}

.cart-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    background: #191919;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: contain;
    background: #0d0d0d;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.cart-item-size {
    font-size: 12px;
    color: #666;
}

.cart-item-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cart-qty {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.cart-remove {
    font-size: 11px;
    color: #666;
    cursor: pointer;
    background: none;
    margin-left: 6px;
    text-decoration: underline;
    transition: color 0.2s;
}

.cart-remove:hover {
    color: #ff6666;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 800;
    color: #c9a84c;
    flex-shrink: 0;
    padding-top: 4px;
}

.cart-footer {
    padding: 16px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #aaa;
}

.cart-total-row {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 2px;
}

.cart-shipping-note {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: #c9a84c;
    color: #000;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cart-checkout-btn:hover {
    opacity: 0.85;
}

/* Cart badge on icon */
.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: #c9a84c;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
    transform-origin: center;
    transition: transform 0.2s;
}

.cart-badge:empty {
    display: none;
}

.cart-btn {
    position: relative;
}