/* Product-specific styles — shared styles in detail-shared.css */

/* ===== Skeleton (product-specific ID) ===== */
#pd-skeleton {
    position: relative;
}

#pd-skeleton .pd-hero {
    animation: none;
}

/* Staggered reveal (product-specific ID) */
#pd-real-content.pd-revealing {
    opacity: 1 !important;
}


/* ===== Badges (product version — inline, not absolute) ===== */
.pd-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

/* ===== Stock ===== */
.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pd-stock.in-stock {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.pd-stock.out-stock {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* ===== Price ===== */
.pd-price-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pd-price {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* ===== Duration Selector ===== */

/* ===== Buyers ===== */
.pd-buyers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pd-buyer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    animation: pd-in 0.3s ease both;
}

.pd-buyer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(16, 185, 129, 0.35);
}

.pd-buyer-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.pd-buyer-date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.pd-buyers-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px 0;
}

/* ===== Reviews ===== */
.pd-review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
}

.pd-rating-big {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pd-rating-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.pd-rating-count {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Review Form */
.pd-review-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
}

.pd-review-form-wrap h3 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.pd-review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 1.6rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.15);
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.star:hover,
.star.active {
    color: #f59e0b;
    transform: scale(1.1);
}

.pd-review-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease;
}

.pd-review-form textarea:focus {
    border-color: var(--accent-primary);
}

.pd-review-form textarea::placeholder {
    color: var(--text-muted);
}

.pd-review-form .btn {
    align-self: flex-end;
    padding: 10px 24px;
}

/* Reviews List */
.pd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    animation: pd-in 0.3s ease both;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(16, 185, 129, 0.3);
}

.review-user-info {
    flex: 1;
}

.review-user-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.review-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.review-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.review-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pd-reviews-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px 0;
    text-align: center;
}

/* ===== Product-Specific Responsive ===== */
@media (max-width: 768px) {
    #pd-duration-selector {
        max-width: 100% !important;
        width: 100%;
        margin-top: 0 !important;
    }

    .duration-btn {
        min-height: 44px;
    }

    .pd-price-row {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border-top: none;
        box-shadow: none;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        width: 100%;
    }

    .pd-price {
        font-size: 1.6rem;
    }

    .pd-review-summary {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }

    .pd-rating-big {
        font-size: 2rem;
    }

    .pd-review-form-wrap {
        padding: 18px;
    }

    .review-card {
        padding: 16px;
    }
}

/* ===== Product-Specific Desktop ===== */
@media (min-width: 768px) {
    .duration-btn {
        min-height: auto;
    }
    .pd-price-row,
    body.light-theme .pd-price-row {
        margin-top: 8px !important;
        margin-left: 0 !important;
        align-self: auto !important;
        justify-content: space-between !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

.pd-price-original {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 500;
}

body.light-theme .pd-price-original {
    color: #71717a;
}

/* ===== Light Theme — Product Page ===== */
/* Duration selector */
body.light-theme .duration-btn {
    background: rgba(24, 24, 27, 0.03);
    border-color: rgba(24, 24, 27, 0.08);
    color: #52525b;
}
body.light-theme .duration-btn:hover {
    background: rgba(24, 24, 27, 0.06);
    border-color: rgba(24, 24, 27, 0.12);
}
body.light-theme .duration-btn.active {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.28);
    color: #059669;
}
body.light-theme .duration-label { color: #18181b; }
body.light-theme .duration-price { color: #52525b; }

/* Buyers */
body.light-theme .pd-buyer {
    background: #ffffff;
    border-color: rgba(24, 24, 27, 0.08);
}
body.light-theme .pd-buyer-name { color: #18181b; }
body.light-theme .pd-buyer-date { color: #71717a; }
body.light-theme .pd-buyers-empty { color: #71717a; }

/* Reviews */
body.light-theme .pd-review-summary {
    background: #ffffff;
    border-color: rgba(24, 24, 27, 0.08);
}
body.light-theme .pd-rating-big { color: #18181b; }
body.light-theme .pd-rating-count { color: #52525b; }

/* Review form */
body.light-theme .pd-review-form-wrap {
    background: #ffffff;
    border-color: rgba(24, 24, 27, 0.08);
}
body.light-theme .pd-review-form textarea {
    background: #faf9f5;
    border-color: rgba(24, 24, 27, 0.12);
    color: #18181b;
}
body.light-theme .pd-review-form textarea::placeholder {
    color: #71717a;
}
body.light-theme .star { color: rgba(24, 24, 27, 0.14); }

/* Review cards */
body.light-theme .review-card {
    background: #ffffff;
    border-color: rgba(24, 24, 27, 0.08);
}
body.light-theme .review-user-name { color: #18181b; }
body.light-theme .review-date { color: #71717a; }
body.light-theme .review-text { color: #52525b; }
body.light-theme .pd-reviews-empty { color: #71717a; }

/* Price row fixed bar (mobile only) */
@media (max-width: 768px) {
    body.light-theme .pd-price-row {
        background: transparent;
        border-top-color: rgba(24, 24, 27, 0.06);
        box-shadow: none;
    }
}
body.light-theme .pd-price { color: #18181b; }
body.light-theme .pd-old-price { color: #71717a; }

/* ===== Compact Product Detail Discount Pill Badge ===== */
.pd-discount-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(249, 115, 22, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 100px;
    margin-top: 10px;
    margin-bottom: 14px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.pd-discount-timer .badge-svg-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #f87171;
    animation: iconPulse 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pd-discount-timer .timer-text {
    font-size: 0.82rem;
    font-weight: 800;
    color: #f87171;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.pd-discount-timer .timer-sub-text {
    font-size: 0.72rem;
    color: rgba(248, 113, 113, 0.8);
    font-weight: 500;
    white-space: nowrap;
}

body.light-theme .pd-discount-timer {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.22);
}

body.light-theme .pd-discount-timer .timer-text {
    color: #dc2626;
}

body.light-theme .pd-discount-timer .timer-sub-text {
    color: rgba(220, 38, 38, 0.8);
}

/* Standalone Discount Timer Box (placed directly below duration selector, exact same width/border-radius) */
.pd-discount-timer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    margin-top: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .pd-discount-timer-box {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

.pd-timer-box-label {
    color: #f87171;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.light-theme .pd-timer-box-label {
    color: #dc2626;
}

.pd-timer-box-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(249, 115, 22, 0.2));
    color: #f87171;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
}

body.light-theme .pd-timer-box-countdown {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}