/*
 * ============================================================
 * Ahmadiyad - Premium Women's Undergarments E-Commerce
 * Developed by: Etarnity Global Innovation
 * Website: https://etarnity.com
 * ============================================================
 */

/* ============================================================
 * PRODUCT DETAIL PAGE
 * Layout: Image Gallery (left) + Product Info (right)
 * Mobile: Stacked (image top, info below)
 * ============================================================ */

.pdp-section {
    padding: 24px 0 60px;
}

.pdp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Breadcrumb --- */
.pdp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .pdp-breadcrumb {
        display: none !important;
    }
}

.pdp-breadcrumb a,
.pdp-breadcrumb span {
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

.pdp-breadcrumb a:hover {
    color: var(--secondary);
}

.pdp-breadcrumb .sep {
    font-size: 10px;
    color: #ccc;
}

.pdp-breadcrumb .current {
    color: var(--text);
    font-weight: 600;
}

/* --- Main Layout: 2-column --- */
.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    position: relative;
}

/* ============================================================
 * LEFT: Image Gallery
 * Layout: Vertical thumbnails (left) + Main image (right)
 * PC: row direction; Mobile: column (thumbnails below)
 * ============================================================ */
.pdp-gallery {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    position: sticky;
    top: 90px;
    z-index: 20;
}

/* --- Vertical Thumbnail Strip (PC) --- */
.pdp-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    order: -1;
    max-height: 540px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.pdp-thumb {
    width: 76px;
    height: 94px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #E2E8F0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pdp-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    transition: transform 0.25s ease;
}

.pdp-thumb:hover {
    border-color: rgba(213, 0, 109, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(213, 0, 109, 0.1);
}

.pdp-thumb.active {
    border-color: var(--secondary, #D5006D);
    box-shadow: 0 0 0 1px var(--secondary, #D5006D), 0 4px 12px rgba(213, 0, 109, 0.2);
    transform: translateY(-1px);
}

/* Main Image & Side Zoom Container */
.pdp-main-image {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 0;
    user-select: none;
    -webkit-user-select: none;
}

.pdp-main-img-inner {
    position: relative;
    width: 100%;
    height: 540px;
    min-height: 460px;
    max-height: 580px;
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    padding: 12px;
}

.pdp-main-img-inner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    display: block;
    margin: auto;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Semi-transparent cursor lens */
.pdp-zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--secondary, #D5006D);
    background: rgba(213, 0, 109, 0.12);
    border-radius: 10px;
    display: none;
    pointer-events: none;
    z-index: 35;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 4px 14px rgba(213, 0, 109, 0.22);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* High-res Side Flyout Zoom Window (Amazon/Luxury boutique style - compact & sleek) */
.pdp-side-zoom-box {
    position: absolute;
    left: calc(100% + 20px);
    top: 0;
    width: 440px;
    height: 440px;
    max-width: 85vw;
    border-radius: 16px;
    border: 1.5px solid rgba(213, 0, 109, 0.25);
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: none;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
    animation: pdpZoomPopIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pdpZoomPopIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateX(-6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.pdp-side-zoom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.82);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 3px 10px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.pdp-side-zoom-badge i {
    color: #F472B6;
    font-size: 11px;
}

/* Wishlist on main image */
.pdp-wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    color: #94A3B8;
    font-size: 19px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 40;
}

.pdp-wishlist-btn:hover,
.pdp-wishlist-btn.active {
    color: var(--secondary, #D5006D);
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(213, 0, 109, 0.25);
}

/* Responsive PDP rules */
@media (max-width: 991px) {
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .pdp-gallery {
        position: static;
        flex-direction: column;
    }
    .pdp-thumbnails {
        flex-direction: row;
        order: 1;
        max-height: none;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .pdp-thumb {
        width: 64px;
        height: 76px;
    }
    .pdp-main-img-inner {
        height: 380px;
        min-height: 320px;
        border-radius: 16px;
    }
    .pdp-side-zoom-box,
    .pdp-zoom-lens {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .pdp-main-img-inner {
        height: 320px;
        min-height: 260px;
        border-radius: 14px;
    }
}

/* ============================================================
 * RIGHT: Product Info
 * ============================================================ */
.pdp-info {
    padding-top: 8px;
}

.pdp-category-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    background: rgba(213, 0, 109, 0.08);
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.pdp-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 12px;
}

/* Rating Row */
.pdp-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pdp-stars {
    display: flex;
    gap: 2px;
    color: #F4B400;
    font-size: 15px;
}

.pdp-stars .empty {
    color: #ddd;
}

.pdp-rating-text {
    font-size: 13px;
    color: #999;
}

.pdp-rating-text strong {
    color: var(--text);
}

/* Price Block */
.pdp-price-block {
    margin-bottom: 24px;
}

.pdp-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--cocoa);
    letter-spacing: -0.5px;
}

.pdp-price .currency {
    font-size: 16px;
    font-weight: 700;
    margin-right: 2px;
}

.pdp-price-regular {
    font-size: 16px;
    font-weight: 400;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 12px;
}

.pdp-price-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: #27AE60;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Description */
.pdp-description {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Size Selector --- */
.pdp-option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-option-label span {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.pdp-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.pdp-size-btn {
    min-width: 52px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    padding: 0 8px;
}

.pdp-size-btn:hover {
    border-color: var(--text);
}

.pdp-size-btn.active {
    border-color: var(--text);
    background: var(--text);
    color: var(--white);
}

/* --- Color Selector --- */
.pdp-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pdp-color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.pdp-color-btn:hover {
    transform: scale(1.1);
}

.pdp-color-btn.active {
    outline-color: var(--text);
}

/* --- Live Stock Badge & Availability --- */
.pdp-stock-status-wrap {
    margin-bottom: 20px;
}

.pdp-stock-status-wrap {
    margin-bottom: 20px;
}

.pdp-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pdp-stock-badge i {
    font-size: 14px;
}

.pdp-stock-badge.in-stock {
    background: #ECFDF5;
    color: #065F46;
    border: 1.5px solid #A7F3D0;
}

.pdp-stock-badge.low-stock {
    background: #FFFBEB;
    color: #92400E;
    border: 1.5px solid #FDE68A;
}

.pdp-stock-badge.out-of-stock {
    background: #FEF2F2;
    color: #991B1B;
    border: 1.5px solid #FECACA;
}

/* --- Quantity Stepper --- */
.pdp-qty-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.pdp-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pdp-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #F8FAFC;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pdp-qty-btn:hover {
    background: #E2E8F0;
    color: var(--secondary, #D5006D);
}

.pdp-qty-btn:active {
    background: #CBD5E1;
    transform: scale(0.94);
}

.pdp-qty-input {
    width: 52px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    background: #FFFFFF;
    outline: none;
    -moz-appearance: textfield;
}

.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Action Buttons --- */
.pdp-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.pdp-addcart-btn.disabled,
.pdp-buynow-btn.disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(0.7) !important;
}

/* PC: Buy Now FIRST, Add to Cart SECOND */
.pdp-buynow-btn {
    order: -1;
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pdp-buynow-btn:hover {
    background: var(--text);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(74, 31, 39, 0.35);
    transform: translateY(-1px);
}

.pdp-buynow-btn:active {
    transform: translateY(0) scale(0.98);
}

.pdp-buynow-btn i {
    font-size: 16px;
}

.pdp-addcart-btn {
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--text);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s ease;
}

.pdp-addcart-btn:hover {
    background: var(--secondary);
    box-shadow: 0 6px 20px rgba(213, 0, 109, 0.35);
    transform: translateY(-1px);
}

.pdp-addcart-btn:active {
    transform: translateY(0) scale(0.98);
}

.pdp-addcart-btn i {
    font-size: 18px;
}

/* --- Delivery Info --- */
.pdp-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #FAFAFA;
    border-radius: var(--radius);
    margin-top: 8px;
}

.pdp-delivery-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #555;
}

.pdp-delivery-item i {
    font-size: 18px;
    color: var(--secondary);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.pdp-delivery-item strong {
    color: var(--text);
}

/* ============================================================
 * RELATED PRODUCTS SECTION
 * ============================================================ */
.pdp-related {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pdp-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.pdp-related-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* ============================================================
 * SECTION TITLE (shared)
 * ============================================================ */
.pdp-section-title {
    margin-bottom: 24px;
}

.pdp-section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
}

.pdp-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ============================================================
 * LONG DESCRIPTION
 * ============================================================ */
.pdp-long-desc {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pdp-long-desc-content {
    font-size: 14px;
    color: #555;
    line-height: 1.85;
}

.pdp-long-desc-content p {
    margin-bottom: 16px;
}

.pdp-long-desc-content p:last-child {
    margin-bottom: 0;
}

/* ============================================================
 * REVIEWS SECTION
 * ============================================================ */
.pdp-reviews {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pdp-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.pdp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdp-reviews-avg {
    font-size: 28px;
    font-weight: 700;
    color: var(--cocoa);
}

.pdp-reviews-stars {
    display: flex;
    gap: 2px;
    color: #F4B400;
    font-size: 16px;
}

.pdp-reviews-stars .empty {
    color: #ddd;
}

.pdp-reviews-count-text {
    font-size: 13px;
    color: #999;
}

.pdp-seeall-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary, #D5006D);
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(213, 0, 109, 0.08);
    border-radius: 50px;
    transition: all 0.2s ease;
}

.pdp-seeall-reviews-link:hover {
    background: var(--secondary, #D5006D);
    color: #FFFFFF;
    transform: translateX(2px);
}

.pdp-more-reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 24px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.pdp-more-reviews-btn:hover {
    border-color: var(--secondary, #D5006D);
    color: var(--secondary, #D5006D);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(213, 0, 109, 0.15);
}

/* Review Card */
.pdp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.pdp-review-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.pdp-review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pdp-review-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.pdp-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.pdp-review-meta {
    flex: 1;
    min-width: 0;
}

.pdp-review-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #27AE60;
    background: rgba(39, 174, 96, 0.08);
    padding: 2px 8px;
    border-radius: 50px;
}

.pdp-verified-badge i {
    font-size: 12px;
}

.pdp-review-date {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.pdp-review-rating {
    display: flex;
    gap: 1px;
    color: #F4B400;
    font-size: 14px;
    flex-shrink: 0;
}

.pdp-review-rating .empty {
    color: #ddd;
}

.pdp-review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 0;
}

/* Review Images */
.pdp-review-images {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pdp-review-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: var(--transition);
}

.pdp-review-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Helpful Button */
.pdp-review-helpful {
    margin-top: 14px;
}

.pdp-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.pdp-helpful-btn:hover,
.pdp-helpful-btn.active {
    color: var(--secondary);
    border-color: var(--secondary);
    background: rgba(213, 0, 109, 0.06);
}

/* Write Review CTA & Status Cards */
.pdp-reviews-cta {
    margin-top: 32px;
}

.pdp-review-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    text-align: left;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.pdp-status-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 240px;
}

.pdp-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pdp-status-body {
    flex: 1;
    min-width: 220px;
}

.pdp-status-body h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0F172A;
}

.pdp-status-body p {
    font-size: 13px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* Already Reviewed Status */
.pdp-reviewed-status {
    background: #F0FDF4;
    border-color: #BBF7D0;
}
.pdp-reviewed-status .pdp-status-icon {
    background: #DCFCE7;
    color: #16A34A;
}
.pdp-reviewed-status h4 {
    color: #166534;
}

/* Eligible to Review Status */
.pdp-eligible-status {
    background: #FDF2F8;
    border-color: #FBCFE8;
}
.pdp-eligible-status .pdp-status-icon {
    background: #FCE7F3;
    color: var(--secondary, #D5006D);
}
.pdp-eligible-status h4 {
    color: #9D174D;
}

/* Locked (Non-buyer) Status */
.pdp-locked-status {
    background: #F8FAFC;
    border-color: #E2E8F0;
}
.pdp-locked-status .pdp-status-icon {
    background: #F1F5F9;
    color: #64748B;
}

/* Guest (Not logged in) Status */
.pdp-guest-status {
    background: #F8FAFC;
    border-color: #E2E8F0;
}
.pdp-guest-status .pdp-status-icon {
    background: #EEF2F6;
    color: #475569;
}

.pdp-write-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--secondary, #D5006D);
    border: 2px solid var(--secondary, #D5006D);
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    box-shadow: 0 4px 14px rgba(213, 0, 109, 0.25);
    flex-shrink: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.pdp-write-review-btn:hover {
    background: #b8005d;
    border-color: #b8005d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(213, 0, 109, 0.35);
}

.pdp-write-review-btn:active {
    transform: scale(0.96);
}

.pdp-review-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    background: #0F172A;
    border: 2px solid #0F172A;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    flex-shrink: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.pdp-review-buy-btn:hover {
    background: var(--secondary, #D5006D);
    border-color: var(--secondary, #D5006D);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(213, 0, 109, 0.3);
}

.pdp-review-buy-btn:active {
    transform: scale(0.96);
}

.pdp-review-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    background: #0F172A;
    border: 2px solid #0F172A;
    border-radius: 12px;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: var(--font);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.pdp-review-login-btn:hover {
    background: var(--secondary, #D5006D);
    border-color: var(--secondary, #D5006D);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(213, 0, 109, 0.3);
}

.pdp-review-login-btn:active {
    transform: scale(0.96);
}

/* ============================================================
 * PC IMAGE ZOOM — panel created dynamically by JS on body
 * (bypasses all parent overflow clipping including body overflow-x:hidden)
 * ============================================================ */

/* ============================================================
 * MOBILE FULLSCREEN IMAGE VIEWER LIGHTBOX
 * ============================================================ */
.pdp-mobile-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.pdp-mobile-viewer.active {
    display: flex !important;
}

.pdp-mobile-viewer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    z-index: 1;
}

.pdp-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999999;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent;
}

.pdp-viewer-close:hover,
.pdp-viewer-close:active {
    background: var(--secondary, #D5006D);
    border-color: var(--secondary, #D5006D);
    transform: scale(1.08);
}

.pdp-viewer-img-wrap {
    position: relative;
    z-index: 5;
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pdp-viewer-img-wrap img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: viewerFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

@keyframes viewerFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.pdp-viewer-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 700;
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.pdp-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999999;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent;
}

.pdp-viewer-nav:hover,
.pdp-viewer-nav:active {
    background: var(--secondary, #D5006D);
    border-color: var(--secondary, #D5006D);
    transform: translateY(-50%) scale(1.1);
}

.pdp-viewer-prev {
    left: 16px;
}

.pdp-viewer-next {
    right: 16px;
}

