/* ══════════════════════════════════════════════════════════════
   💎 Modern Luxury Product Details & Reviews Styling
   Clean, human-crafted, premium e-commerce UX
   ══════════════════════════════════════════════════════════════ */

.pd-page {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 20px 80px;
    direction: rtl;
}

/* ── Breadcrumb ── */
.pd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #64748b;
}
.dark .pd-breadcrumb { color: #94a3b8; }
.pd-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dark .pd-breadcrumb a { color: #94a3b8; }
.pd-breadcrumb a:hover {
    color: var(--color-primary, #ec4899);
}
.pd-breadcrumb__sep {
    color: #cbd5e1;
    font-size: 10px;
}
.dark .pd-breadcrumb__sep { color: #475569; }
.pd-breadcrumb__current {
    color: #0f172a;
    font-weight: 700;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dark .pd-breadcrumb__current { color: #f8fafc; }

/* ── Main 2-Column Grid ── */
.pd-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 40px;
}
@media (max-width: 991px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ── Gallery ── */
.pd-gallery {
    position: sticky;
    top: 24px;
}
.pd-image__main {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}
.dark .pd-image__main {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}
.pd-image__main:hover {
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.08);
}
.pd-image__main.zoom-active {
    cursor: zoom-out;
}
.pd-image__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    display: block;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}
.pd-image__main.zoom-active img {
    transform: scale(2.2);
}

/* Discount & Status Badges */
.pd-image__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 99px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    letter-spacing: 0.5px;
}
.pd-image__new-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.pd-image__zoom-hint {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}
.pd-image__main:hover .pd-image__zoom-hint {
    opacity: 1;
}

/* Gallery Nav Arrows */
.pd-image__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
    opacity: 0;
    color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.dark .pd-image__nav {
    background: rgba(30, 41, 59, 0.95);
    border-color: #334155;
    color: #e2e8f0;
}
.pd-image__main:hover .pd-image__nav {
    opacity: 1;
}
.pd-image__nav:hover {
    background: var(--color-primary, #ec4899);
    border-color: var(--color-primary, #ec4899);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}
.pd-image__nav.prev { right: 14px; }
.pd-image__nav.next { left: 14px; }

/* Thumbnails */
.pd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
}
.pd-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
}
.dark .pd-thumb {
    background: #1e293b;
    border-color: #334155;
}
.pd-thumb:hover {
    border-color: var(--color-primary-light, #f9a8d4);
    transform: translateY(-2px);
}
.pd-thumb.is-active {
    border-color: var(--color-primary, #ec4899);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* ── Product Info Panel ── */
.pd-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pd-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.38;
    margin: 0;
}
@media (min-width: 1024px) {
    .pd-title { font-size: 28px; }
}
.dark .pd-title { color: #f8fafc; }

/* Rating Header Row (Clickable jump to reviews) */
.pd-rating-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.pd-rating-inline-badge:hover {
    color: var(--color-primary, #ec4899);
}
.pd-stars-mini {
    color: #f59e0b;
    display: inline-flex;
    gap: 2px;
    font-size: 13px;
}

/* Meta badges row */
.pd-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.pd-badge-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #334155;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dark .pd-badge-brand { background: #1e293b; color: #cbd5e1; }
.pd-badge-brand:hover {
    background: var(--color-primary-bg, #fdf2f8);
    color: var(--color-primary, #ec4899);
}
.pd-badge-sku {
    font-family: monospace;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}
.dark .pd-badge-sku {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
.pd-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
}
.pd-stock-pill--in {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.dark .pd-stock-pill--in {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #047857;
}
.pd-stock-pill--out {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.dark .pd-stock-pill--out {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}
.pd-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.pd-stock-pill--in .pd-stock-dot {
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ── Price Card ── */
.pd-price-box {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.dark .pd-price-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}
.pd-price-main-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.pd-price-current {
    font-size: 30px;
    font-weight: 900;
    color: var(--color-primary, #ec4899);
    letter-spacing: -0.5px;
}
.pd-price-old {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}
.pd-savings-pill {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
}
.dark .pd-savings-pill {
    background: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
}

/* ── Action Form & Buttons ── */
.pd-buy-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pd-cart-controls {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.pd-qty-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.dark .pd-qty-wrapper {
    background: #1e293b;
    border-color: #475569;
}
.pd-qty-wrapper:focus-within {
    border-color: var(--color-primary, #ec4899);
}
.pd-qty__btn {
    width: 44px;
    height: 50px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark .pd-qty__btn { color: #cbd5e1; }
.pd-qty__btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-primary, #ec4899);
}
.dark .pd-qty__btn:hover { background: rgba(255, 255, 255, 0.08); }
.pd-qty__input {
    width: 46px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    background: transparent;
}
.dark .pd-qty__input { color: #f8fafc; }

/* Primary Add to Cart Button */
.pd-btn-main-cart {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #db2777));
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px -4px var(--shadow-primary, rgba(236, 72, 153, 0.35));
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pd-btn-main-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -4px var(--shadow-primary, rgba(236, 72, 153, 0.5));
}
.pd-btn-main-cart:active {
    transform: translateY(0);
}
.pd-btn-main-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* WhatsApp Direct Order Button */
.pd-btn-whatsapp {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #15803d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.dark .pd-btn-whatsapp {
    background: #052e16;
    border-color: #166534;
    color: #4ade80;
}
.pd-btn-whatsapp:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
    transform: translateY(-1px);
}

/* ── Unified Highlights / Guarantees Strip ── */
.pd-perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px;
}
.pd-perk-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.2s ease;
}
.dark .pd-perk-card {
    background: #1e293b;
    border-color: #334155;
}
.pd-perk-card:hover {
    border-color: var(--color-primary-light, #cbd5e1);
    transform: translateY(-1px);
}
.pd-perk-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-primary-bg, #fdf2f8);
    color: var(--color-primary, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dark .pd-perk-icon {
    background: rgba(236, 72, 153, 0.15);
}
.pd-perk-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.dark .pd-perk-title { color: #f1f5f9; }
.pd-perk-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.dark .pd-perk-desc { color: #94a3b8; }

/* ── Shipping Calculator Box ── */
.pd-shipping-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-top: 4px;
}
.dark .pd-shipping-box {
    background: #1e293b;
    border-color: #334155;
}
.pd-shipping-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.pd-shipping-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dark .pd-shipping-title { color: #f8fafc; }
.pd-province-dropdown {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 13px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 36px;
}
.dark .pd-province-dropdown {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}
.pd-province-dropdown:focus {
    outline: none;
    border-color: var(--color-primary, #ec4899);
}
.pd-shipping-result {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    animation: fadeInSlide 0.2s ease;
}
.dark .pd-shipping-result {
    background: #052e16;
    border-color: #166534;
}
.pd-shipping-result.is-visible { display: block; }
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Warranty & Return Accordion Box ── */
.pd-assurance-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}
.dark .pd-assurance-card {
    background: #1e293b;
    border-color: #334155;
}
.pd-assurance-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.2s ease;
}
.dark .pd-assurance-header { background: #0f172a; }
.pd-assurance-header:hover { background: #f1f5f9; }
.dark .pd-assurance-header:hover { background: #1e293b; }
.pd-assurance-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dark .pd-assurance-title { color: #f8fafc; }
.pd-assurance-content {
    display: none;
    padding: 16px;
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}
.dark .pd-assurance-content {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}
.pd-policy[aria-expanded="true"] .pd-assurance-content {
    display: block;
}
.pd-policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pd-policy-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Tabs Section ── */
.pd-tabs-container {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}
.dark .pd-tabs-container {
    background: #1e293b;
    border-color: #334155;
}
.pd-tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
}
.dark .pd-tabs-header {
    background: #0f172a;
    border-color: #334155;
}
.pd-tabs-header::-webkit-scrollbar { display: none; }
.pd-tabs-btn {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pd-tabs-btn:hover {
    color: var(--color-primary, #ec4899);
}
.pd-tabs-btn.is-active {
    color: var(--color-primary, #ec4899);
    border-bottom-color: var(--color-primary, #ec4899);
    background: #ffffff;
}
.dark .pd-tabs-btn.is-active {
    background: #1e293b;
    color: var(--color-primary-light, #f472b6);
}
.pd-tab-pane {
    display: none;
    padding: 28px;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.8;
}
.dark .pd-tab-pane { color: #cbd5e1; }
.pd-tab-pane.is-active {
    display: block;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Specs Table */
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.pd-specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.dark .pd-specs-table tr { border-color: #334155; }
.pd-specs-table tr:last-child { border: none; }
.pd-specs-table th {
    width: 180px;
    padding: 12px 16px;
    text-align: right;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
}
.dark .pd-specs-table th {
    background: #0f172a;
    color: #94a3b8;
}
.pd-specs-table td {
    padding: 12px 16px;
    font-weight: 700;
    color: #0f172a;
}
.dark .pd-specs-table td { color: #f8fafc; }

/* ── Reviews System Styling ── */
.pd-reviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Rating Summary Top Card */
.pd-rating-summary-box {
    display: grid;
    grid-template-columns: 220px 1fr 200px;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
}
.dark .pd-rating-summary-box {
    background: #0f172a;
    border-color: #334155;
}
@media (max-width: 900px) {
    .pd-rating-summary-box {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }
}

.pd-rating-score-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-left: 1.5px solid #e2e8f0;
    padding-left: 20px;
}
.dark .pd-rating-score-side { border-color: #334155; }
@media (max-width: 900px) {
    .pd-rating-score-side {
        border-left: none;
        padding-left: 0;
        border-bottom: 1.5px solid #e2e8f0;
        padding-bottom: 16px;
    }
}

.pd-score-number {
    font-size: 46px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -1px;
}
.dark .pd-score-number { color: #f8fafc; }

.pd-score-stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 16px;
}
.pd-score-count {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}
.dark .pd-score-count { color: #94a3b8; }

/* Rating Bars Breakdown */
.pd-rating-bars-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}
.dark .pd-bar-row { color: #cbd5e1; }
.pd-bar-label {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}
.pd-bar-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.dark .pd-bar-track { background: #334155; }
.pd-bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 99px;
    transition: width 0.4s ease;
}
.pd-bar-count {
    width: 36px;
    text-align: left;
    color: #94a3b8;
    font-size: 11px;
}

.pd-rating-cta-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pd-btn-open-review {
    width: 100%;
    padding: 12px 18px;
    background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #db2777));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.25);
    transition: all 0.2s ease;
}
.pd-btn-open-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

/* Review Form Card */
.pd-review-form-card {
    display: none;
    background: #ffffff;
    border: 2px solid var(--color-primary-light, #f9a8d4);
    border-radius: 18px;
    padding: 24px;
    animation: fadeInSlide 0.25s ease;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06);
}
.dark .pd-review-form-card {
    background: #1e293b;
    border-color: #475569;
}
.pd-review-form-card.is-open {
    display: block;
}

.pd-star-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
}
.pd-star-pick-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 0 2px;
    line-height: 1;
}
.pd-star-pick-btn.active,
.pd-star-pick-btn.hover {
    color: #f59e0b;
    transform: scale(1.15);
}
.pd-star-pick-label {
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
    margin-right: 8px;
}

/* Form Controls */
.pd-input-field {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 13.5px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.dark .pd-input-field {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}
.pd-input-field:focus {
    outline: none;
    border-color: var(--color-primary, #ec4899);
    background: #ffffff;
}

/* Reviews Feed List */
.pd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pd-review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dark .pd-review-card {
    background: #0f172a;
    border-color: #1e293b;
}
.pd-review-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.pd-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.pd-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pd-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary-bg, #fdf2f8);
    color: var(--color-primary, #ec4899);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--color-primary-light, #fce7f3);
}
.dark .pd-review-avatar {
    background: #1e293b;
    border-color: #334155;
    color: #f472b6;
}
.pd-review-name {
    font-weight: 800;
    color: #0f172a;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dark .pd-review-name { color: #f8fafc; }
.pd-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid #a7f3d0;
}
.dark .pd-badge-verified {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #047857;
}

.pd-review-date {
    font-size: 12px;
    color: #94a3b8;
}
.pd-review-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 14px;
}
.pd-review-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    margin: 0;
}
.dark .pd-review-text { color: #cbd5e1; }

.pd-reviews-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
}
.dark .pd-reviews-empty {
    background: #0f172a;
    border-color: #334155;
}

/* ── Related Section ── */
.pd-related-section {
    margin-top: 48px;
}
.pd-related-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dark .pd-related-title { color: #f8fafc; }
.pd-related-accent {
    width: 4px;
    height: 24px;
    background: var(--color-primary, #ec4899);
    border-radius: 99px;
}
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .pd-related-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
    .pd-related-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ── Sticky Bottom Cart Island ── */
.pd-sticky-bar {
    position: fixed;
    bottom: -90px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    z-index: 50;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 0;
}
.dark .pd-sticky-bar {
    background: rgba(15, 23, 42, 0.96);
    border-color: #1e293b;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}
.pd-sticky-bar.is-visible {
    bottom: 0;
}
.pd-sticky-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.pd-sticky-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pd-sticky-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2px;
    flex-shrink: 0;
}
.dark .pd-sticky-thumb { background: #1e293b; border-color: #334155; }
.pd-sticky-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}
.dark .pd-sticky-name { color: #f8fafc; }
.pd-sticky-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary, #ec4899);
}

/* Toast Notifications */
.pd-toasts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd-toast {
    padding: 12px 20px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.pd-toast--success { background: linear-gradient(135deg, #10b981, #059669); }
.pd-toast--error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.pd-toast.is-leaving { animation: toastSlideOut 0.25s ease forwards; }
@keyframes toastSlideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { from { opacity: 1; } to { opacity: 0; transform: translateX(120%); } }

/* Mobile Adjustments */
@media (max-width: 640px) {
    .pd-page { padding: 12px 14px 90px; }
    .pd-title { font-size: 20px; }
    .pd-price-current { font-size: 24px; }
    .pd-perks-grid { grid-template-columns: 1fr; gap: 8px; }
    .pd-sticky-name { display: none; }
    .pd-cart-controls { flex-direction: column; }
    .pd-qty-wrapper { width: 100%; justify-content: center; }
    .pd-btn-main-cart { width: 100%; }
}
