/* ==========================================================================
   Product Detail Page Styles - BeeRoboKids
   ========================================================================== */

/* Breadcrumbs */
.pdp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}
.pdp-breadcrumb a {
    color: #64748b;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.pdp-breadcrumb a:hover {
    color: var(--primary, #4338ca);
}
.pdp-breadcrumb .separator {
    color: #cbd5e1;
    font-size: 0.75rem;
}
.pdp-breadcrumb .current {
    color: var(--text, #0f172a);
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Hero Grid */
.pdp-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .pdp-hero-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 3rem;
    }
}

/* Gallery Section */
.pdp-gallery-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
    position: relative;
}

/* Main Image Container (Click opens Lightbox Modal) */
.pdp-main-image-container {
    width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.875rem;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.pdp-main-image-container:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.pdp-main-image {
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.pdp-zoom-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pdp-zoom-btn:hover {
    background: var(--primary, #4338ca);
    transform: translateY(-1px);
}

/* Lightbox Modal */
.pdp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pdp-lightbox.active {
    display: flex;
    opacity: 1;
}

.pdp-lightbox-toolbar {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.pdp-lightbox-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.pdp-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.pdp-lightbox-stage {
    width: 92vw;
    height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    user-select: none;
    touch-action: none;
}

.pdp-lightbox-stage.zoomed {
    cursor: grab;
}

.pdp-lightbox-stage.dragging {
    cursor: grabbing;
}

.pdp-lightbox-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 0.5rem;
}

.pdp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    z-index: 10;
}
.pdp-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.pdp-lightbox-nav.prev {
    left: 1.5rem;
}
.pdp-lightbox-nav.next {
    right: 1.5rem;
}

.pdp-lightbox-hint {
    position: absolute;
    bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.825rem;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Thumbnail Strip */
.pdp-thumbnails-strip {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.pdp-thumbnail {
    flex: 0 0 72px;
    height: 72px;
    border-radius: 0.625rem;
    border: 2px solid var(--border, #e2e8f0);
    background: #ffffff;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pdp-thumbnail:hover {
    border-color: #94a3b8;
}

.pdp-thumbnail.active {
    border-color: var(--primary, #4338ca);
    box-shadow: 0 0 0 2px rgba(67, 56, 202, 0.2);
}

.pdp-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.375rem;
}

/* Buy Box Section */
.pdp-buy-box {
    display: flex;
    flex-direction: column;
}

.pdp-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary, #4338ca);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pdp-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text, #0f172a);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    .pdp-title {
        font-size: 1.625rem;
    }
}

/* Rating Header Row */
.pdp-rating-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.pdp-stars {
    color: #f59e0b;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.pdp-rating-score {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text, #0f172a);
}

.pdp-review-count-link {
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.pdp-review-count-link:hover {
    color: var(--primary, #4338ca);
}

.pdp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #059669;
    background: #ecfdf5;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* Price Box */
.pdp-price-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pdp-price-main {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pdp-price-value {
    font-size: 2.125rem;
    font-weight: 800;
    color: var(--text, #0f172a);
    letter-spacing: -0.02em;
    line-height: 1;
}

.pdp-price-tax {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.pdp-price-perks {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #475569;
    flex-wrap: wrap;
    padding-top: 0.25rem;
    border-top: 1px dashed #cbd5e1;
}

.pdp-price-perks span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Quantity & Action Buttons */
.pdp-actions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.pdp-qty-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdp-qty-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text, #0f172a);
}

.pdp-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 0.625rem;
    background: #ffffff;
    overflow: hidden;
}

.pdp-qty-btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.pdp-qty-btn:hover {
    background: #f1f5f9;
    color: var(--primary, #4338ca);
}

.pdp-qty-input {
    width: 48px;
    height: 38px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text, #0f172a);
    background: transparent;
    -moz-appearance: textfield;
}

.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Primary Action Buttons */
.pdp-cta-primary-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .pdp-cta-primary-group {
        grid-template-columns: 1fr;
    }
}

.pdp-btn-order-now {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    color: #ffffff !important;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px 0 rgba(67, 56, 202, 0.35);
    transition: all 0.25s ease;
    text-align: center;
    width: 100%;
}

.pdp-btn-order-now:hover {
    background: linear-gradient(135deg, #3730a3 0%, #312e81 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(67, 56, 202, 0.45);
}

.pdp-btn-add-cart {
    background: #ffffff;
    color: var(--primary, #4338ca) !important;
    border: 2px solid var(--primary, #4338ca);
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    text-align: center;
    width: 100%;
}

.pdp-btn-add-cart:hover {
    background: #f5f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.15);
}

/* Secondary Action Buttons (WhatsApp & Share) */
.pdp-cta-secondary-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pdp-btn-whatsapp {
    background: #f0fdf4;
    color: #15803d !important;
    border: 1.5px solid #86efac;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.pdp-btn-whatsapp:hover {
    background: #22c55e;
    color: #ffffff !important;
    border-color: #22c55e;
    transform: translateY(-1px);
}

.pdp-btn-share {
    background: #ffffff;
    color: #475569 !important;
    border: 1.5px solid var(--border, #e2e8f0);
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdp-btn-share:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--text, #0f172a) !important;
    transform: translateY(-1px);
}

/* Trust Badges Grid */
.pdp-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.pdp-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.pdp-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: var(--primary, #4338ca);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.pdp-trust-text strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--text, #0f172a);
    margin-bottom: 2px;
}

.pdp-trust-text p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    text-align: left !important;
}

/* ==========================================================================
   Full Width Details & Tabs Section
   ========================================================================== */
.pdp-details-section {
    margin-top: 1rem;
    margin-bottom: 4rem;
}

.pdp-tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border, #e2e8f0);
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    padding-bottom: 6px;
}

.pdp-tabs-nav::-webkit-scrollbar {
    height: 5px;
}

.pdp-tabs-nav::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.pdp-tabs-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pdp-tabs-nav::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.pdp-tab-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pdp-tab-btn:hover {
    color: var(--text, #0f172a);
}

.pdp-tab-btn.active {
    color: var(--primary, #4338ca);
}

.pdp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary, #4338ca);
    border-radius: 3px 3px 0 0;
}

.pdp-tab-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-weight: 700;
}

.pdp-tab-btn.active .pdp-tab-badge {
    background: #e0e7ff;
    color: var(--primary, #4338ca);
}

.pdp-tab-pane {
    display: none;
    animation: pdpFadeIn 0.3s ease;
}

.pdp-tab-pane.active {
    display: block;
}

@keyframes pdpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rich Description & Video Embed Styling */
.pdp-rich-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.pdp-rich-description h2,
.pdp-rich-description h3,
.pdp-rich-description h4 {
    color: var(--text, #0f172a);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.pdp-rich-description p {
    margin-bottom: 1.25rem;
    text-align: left !important;
}

.pdp-rich-description ul,
.pdp-rich-description ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.pdp-rich-description li {
    margin-bottom: 0.5rem;
    text-align: left !important;
    list-style-type: disc;
}

/* Video Wrapper */
.pdp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
    margin: 2rem 0;
    background: #000000;
    border: 1px solid var(--border, #e2e8f0);
}

.pdp-video-wrapper iframe,
.pdp-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Features Cards Grid */
.pdp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.pdp-feature-card {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdp-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

.pdp-feature-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.pdp-feature-title {
    font-weight: 700;
    color: var(--text, #0f172a);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.pdp-feature-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    text-align: left !important;
}

/* ==========================================================================
   Customer Reviews Dashboard
   ========================================================================== */
.pdp-reviews-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

/* Rating Summary Card */
.pdp-rating-summary-card {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    margin-bottom: 2rem;
}

.pdp-score-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    margin-bottom: 1.5rem;
}

.pdp-big-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text, #0f172a);
    line-height: 1;
    letter-spacing: -0.03em;
}

.pdp-score-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pdp-score-meta .pdp-stars {
    font-size: 1.35rem;
}

.pdp-score-meta span {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Star Breakdown Bars */
.pdp-bars-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pdp-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
}

.pdp-bar-label {
    min-width: 45px;
    font-weight: 600;
}

.pdp-progress-track {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}

.pdp-progress-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.pdp-bar-count {
    min-width: 32px;
    text-align: right;
    font-weight: 600;
    color: var(--text, #0f172a);
}

/* Review Cards List */
.pdp-review-card {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease;
}

.pdp-review-card:hover {
    border-color: #cbd5e1;
}

.pdp-reviewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.pdp-reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pdp-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #4338ca), #6d28d9);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.pdp-reviewer-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text, #0f172a);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdp-review-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.pdp-review-comment {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-align: left !important;
}

/* Write a Review Box */
.pdp-write-review-card {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    height: fit-content;
}

.pdp-write-review-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text, #0f172a);
}

.pdp-write-review-card p.subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    text-align: left !important;
}

/* Interactive Star Rating Selector */
.pdp-star-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.pdp-star-picker label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text, #0f172a);
}

.pdp-stars-interactive {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.pdp-stars-interactive input[type="radio"] {
    display: none;
}

.pdp-stars-interactive label {
    font-size: 1.75rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.pdp-stars-interactive label:hover,
.pdp-stars-interactive label:hover ~ label,
.pdp-stars-interactive input[type="radio"]:checked ~ label {
    color: #f59e0b;
    transform: scale(1.15);
}

/* Related Products Grid */
.pdp-related-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border, #e2e8f0);
}

.pdp-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.pdp-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text, #0f172a);
    letter-spacing: -0.02em;
}

.pdp-view-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary, #4338ca);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.pdp-view-all-link:hover {
    text-decoration: underline;
}

.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.pdp-related-card {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.pdp-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.pdp-related-img-box {
    width: 100%;
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.pdp-related-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pdp-related-card:hover .pdp-related-img-box img {
    transform: scale(1.05);
}

.pdp-related-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pdp-related-cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary, #4338ca);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.pdp-related-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdp-related-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px dashed #f1f5f9;
}

.pdp-related-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text, #0f172a);
}

/* Sticky Mobile Bar */
.pdp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    padding: 0.75rem 1rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    animation: pdpSlideUp 0.3s ease;
}

@keyframes pdpSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.pdp-sticky-info {
    max-width: 55%;
}

.pdp-sticky-name {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text, #0f172a);
}

.pdp-sticky-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary, #4338ca);
}

.pdp-sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .pdp-sticky-bar.visible {
        display: flex;
    }
}
