/* ==========================================================================
   MYSHOP STOREFRONT PRODUCT DETAIL PAGE (PDP) STYLESHEET
   Aesthetics: Modern Luxury Tech, Dark/Light Mode Aware, Micro-interactions
   ========================================================================== */

/* --- PDP Container & Breadcrumbs --- */
.pdp-page {
    padding: 24px 0 64px 0;
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.pdp-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 24px;
    padding: 10px 16px;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-md, 10px);
}

.pdp-breadcrumbs a {
    color: var(--text-secondary, #475569);
    text-decoration: none;
    transition: color var(--transition-fast, 0.15s ease);
}

.pdp-breadcrumbs a:hover {
    color: var(--accent-primary, #09090b);
}

.pdp-breadcrumbs .sep {
    color: var(--border-medium, #cbd5e1);
    user-select: none;
}

.pdp-breadcrumbs .current {
    color: var(--text-primary, #0f172a);
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Hero Showcase Grid (2-Column Minimalist Editorial) --- */
.pdp-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 0 36px 0;
    box-shadow: none;
    margin-bottom: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .pdp-hero-grid {
        grid-template-columns: 1fr;
        padding: 8px 0 24px 0;
        gap: 36px;
    }
}

/* --- Left Column: Photo Gallery --- */
.pdp-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.pdp-main-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.pdp-main-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.pdp-main-image-box:hover .pdp-main-image {
    transform: scale(1.03);
}

.pdp-gallery-badges {
    display: none;
}

/* Minimal Thumbnail Strip */
.pdp-thumbs-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
}

.pdp-thumb-btn {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 4px;
    background: #fbfbfb;
    border: 1px solid #e4e4e7;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    overflow: hidden;
}

.pdp-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-thumb-btn:hover {
    border-color: #18181b;
}

.pdp-thumb-btn.active {
    border-color: #18181b;
    box-shadow: 0 0 0 1px #18181b;
}

/* --- Right Column: Product Buy Box --- */
.pdp-details-col {
    display: flex;
    flex-direction: column;
}

/* Breadcrumbs Lineage */
.pdp-simple-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8125rem;
    color: #71717a;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.pdp-simple-breadcrumb a {
    color: #71717a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pdp-simple-breadcrumb a:hover {
    color: #18181b;
}

.pdp-simple-breadcrumb .sep {
    color: #d4d4d8;
    user-select: none;
    font-size: 0.75rem;
}

.pdp-simple-breadcrumb .current {
    color: #18181b;
    font-weight: 500;
}

/* Category Kicker */
.pdp-simple-category-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #52525b;
    margin-bottom: 8px;
}

/* Editorial Title */
.pdp-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: #18181b;
    line-height: 1.2;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

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

/* SKU Line */
.pdp-simple-sku-row {
    margin-bottom: 16px;
}

.pdp-simple-sku {
    font-size: 0.8rem;
    font-weight: 400;
    color: #71717a;
    letter-spacing: 0.03em;
}

#pdpDiscountBadge,
#pdpBarcodeChip,
#pdpWeightChip {
    display: none !important;
}

/* Clean Unboxed Price */
.pdp-simple-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.pdp-simple-price-row .pdp-price-current {
    font-size: 1.625rem;
    font-weight: 500;
    color: #18181b;
    letter-spacing: -0.01em;
}

.pdp-simple-price-row .pdp-price-original {
    font-size: 1.1rem;
    color: #a1a1aa;
    text-decoration: line-through;
    font-weight: 400;
}

/* Variant Groups */
.pdp-variants-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.pdp-attr-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp-attr-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.875rem;
    color: #18181b;
}

.pdp-attr-label {
    font-weight: 400;
    color: #18181b;
}

.pdp-attr-selected-val {
    font-weight: 700;
    color: #18181b;
}

.pdp-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Luxury Square Swatches */
.pdp-color-swatch {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #d4d4d8;
    background-size: cover;
    background-position: center;
    transition: all 0.15s ease;
    padding: 0;
    position: relative;
    box-shadow: none;
}

.pdp-color-swatch:hover {
    border-color: #18181b;
    transform: translateY(-1px);
}

.pdp-color-swatch.active {
    border-color: #18181b;
    outline: 2px solid #18181b;
    outline-offset: 2px;
}

.pdp-opt-pill {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #d4d4d8;
    background: #ffffff;
    color: #18181b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pdp-opt-pill:hover {
    border-color: #18181b;
}

.pdp-opt-pill.active {
    border-color: #18181b;
    background: #18181b;
    color: #ffffff;
}

/* Order Samples Link */
.pdp-samples-row {
    margin: 4px 0 20px 0;
}

.pdp-order-samples-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #18181b;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.15s ease;
    cursor: pointer;
}

.pdp-order-samples-link:hover {
    opacity: 0.65;
    color: #18181b;
}

/* Editorial Description Paragraph */
.pdp-editorial-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #52525b;
    margin-bottom: 24px;
    max-width: 580px;
}

/* Stock Status */
.pdp-stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #3f3f46;
    margin-bottom: 22px;
}

.pdp-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.pdp-stock-dot.in {
    background: #10b981;
}

.pdp-stock-dot.low {
    background: #f59e0b;
}

.pdp-stock-dot.out {
    background: #ef4444;
}

/* Actions Row: Stepper & CTA */
.pdp-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}

.pdp-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d4d4d8;
    border-radius: 4px;
    background: #ffffff;
    height: 48px;
    padding: 0 4px;
}

.pdp-qty-btn {
    width: 34px;
    height: 100%;
    border: none;
    background: transparent;
    color: #18181b;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.pdp-qty-btn:hover {
    background: #f4f4f5;
}

.pdp-qty-input {
    width: 36px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #18181b;
    -moz-appearance: textfield;
}

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

.pdp-btn-add-cart {
    flex: 1;
    max-width: 320px;
    height: 48px;
    background: #18181b;
    color: #ffffff;
    border: 1px solid #18181b;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: none;
}

.pdp-btn-add-cart:hover:not(:disabled) {
    background: #27272a;
    border-color: #27272a;
}

.pdp-btn-add-cart:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pdp-btn-wishlist {
    width: 48px;
    height: 48px;
    border: 1px solid #d4d4d8;
    border-radius: 4px;
    background: #ffffff;
    color: #18181b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.pdp-btn-wishlist:hover {
    border-color: #18181b;
    background: #f4f4f5;
}

@media (max-width: 640px) {
    .pdp-page {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 16px;
    }
    .pdp-actions-row {
        flex-wrap: wrap;
    }
    .pdp-btn-add-cart {
        max-width: 100%;
        flex: 1 1 calc(100% - 64px);
    }
}

/* --- Deep-Dive Tabs Section --- */
.pdp-tabs-wrapper {
    background: transparent;
    border: none;
    border-top: 1px solid #e4e4e7;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-top: 24px;
    margin-bottom: 64px;
    padding-top: 36px;
}

.pdp-tabs-nav {
    display: flex;
    gap: 36px;
    overflow-x: auto;
    border-bottom: 1px solid #e4e4e7;
    background: transparent;
    padding: 0;
    scrollbar-width: none;
    margin-bottom: 32px;
}

.pdp-tab-btn {
    padding: 0 0 14px 0;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #71717a;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.pdp-tab-btn:hover {
    color: #18181b;
}

.pdp-tab-btn.active {
    color: #18181b;
    font-weight: 600;
}

.pdp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #18181b;
    border-radius: 0;
}

.pdp-tab-content {
    padding: 8px 0 32px 0;
    display: none;
}

.pdp-tab-content.active {
    display: block;
    animation: fadeInTab 0.25s ease-in-out;
}

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

/* Description Tab Content */
.pdp-desc-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary, #475569);
}

.pdp-desc-prose p {
    margin-bottom: 16px;
}

.pdp-desc-prose h3, .pdp-desc-prose h4 {
    color: var(--text-primary, #0f172a);
    margin: 24px 0 12px 0;
}

.pdp-desc-prose ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.pdp-desc-prose li {
    margin-bottom: 8px;
}

/* Specifications Table */
.pdp-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.pdp-specs-table tr:nth-child(even) {
    background: var(--bg-surface-raised, #f8fafc);
}

.pdp-specs-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.pdp-specs-table td:first-child {
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    width: 30%;
    min-width: 140px;
}

.pdp-specs-table td:last-child {
    color: var(--text-secondary, #475569);
}

/* --- Customer Reviews & Rating Engine --- */
.pdp-reviews-layout {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Rating Overview Box */
.pdp-rating-overview-card {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 32px;
    align-items: center;
    background: var(--bg-surface-raised, #f8fafc);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 28px 32px;
}

@media (max-width: 860px) {
    .pdp-rating-overview-card {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
}

.pdp-big-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdp-big-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    line-height: 1;
    margin-bottom: 6px;
}

.pdp-big-stars {
    color: #f59e0b;
    font-size: 1.35rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.pdp-big-count {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
}

/* Progress Bars Breakdown */
.pdp-breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary, #475569);
}

.pdp-bar-label {
    min-width: 48px;
}

.pdp-bar-track {
    flex: 1;
    height: 10px;
    background: var(--border-medium, #cbd5e1);
    border-radius: var(--radius-full, 9999px);
    overflow: hidden;
}

.pdp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: var(--radius-full, 9999px);
    transition: width 0.6s ease;
}

.pdp-bar-percent {
    min-width: 36px;
    text-align: right;
    color: var(--text-muted, #94a3b8);
}

.pdp-btn-write-review {
    padding: 12px 24px;
    background: var(--accent-primary, #09090b);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md, 10px);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(9, 9, 11, 0.25);
    transition: all var(--transition-fast, 0.15s ease);
    white-space: nowrap;
}

.pdp-btn-write-review:hover {
    background: var(--accent-primary-hover, #4338ca);
    transform: translateY(-2px);
}

/* Interactive Review Form Box */
.pdp-review-form-box {
    background: var(--bg-surface, #ffffff);
    border: 1.5px solid var(--accent-primary, #09090b);
    border-radius: var(--radius-lg, 16px);
    padding: 28px;
    box-shadow: 0 10px 25px -5px rgba(9, 9, 11, 0.1);
    margin-bottom: 24px;
}

.pdp-form-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 16px;
}

/* Star Rating Hover Picker */
.pdp-star-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pdp-star-picker {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.pdp-star-picker span {
    font-size: 2rem;
    color: var(--border-medium, #cbd5e1);
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.pdp-star-picker span:hover,
.pdp-star-picker span.active {
    color: #f59e0b;
    transform: scale(1.15);
}

.pdp-star-picker-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #b45309;
}

.pdp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .pdp-form-grid {
        grid-template-columns: 1fr;
    }
}

.pdp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdp-form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.pdp-form-input, .pdp-form-textarea {
    padding: 12px 16px;
    border-radius: var(--radius-md, 10px);
    border: 1.5px solid var(--border-medium, #cbd5e1);
    background: var(--bg-surface, #ffffff);
    color: var(--text-primary, #0f172a);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast, 0.15s ease);
}

.pdp-form-input:focus, .pdp-form-textarea:focus {
    border-color: var(--accent-primary, #09090b);
}

.pdp-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.pdp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

/* Reviews List & Cards */
.pdp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdp-review-card {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform var(--transition-fast, 0.15s ease);
}

.pdp-review-card:hover {
    border-color: var(--border-accent, rgba(9, 9, 11, 0.3));
}

.pdp-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.pdp-reviewer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdp-reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #09090b 0%, #27272a 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.pdp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: var(--radius-full, 9999px);
}

[data-theme="dark"] .pdp-verified-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.pdp-review-date {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

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

.pdp-review-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.pdp-review-comment {
    font-size: 0.925rem;
    color: var(--text-secondary, #475569);
    line-height: 1.6;
}

.pdp-review-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
}

.pdp-btn-helpful {
    background: var(--bg-surface-raised, #f1f5f9);
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-secondary, #475569);
    padding: 6px 14px;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast, 0.15s ease);
}

.pdp-btn-helpful:hover {
    background: var(--bg-surface-hover, #e2e8f0);
    color: var(--text-primary, #0f172a);
}

.pdp-btn-helpful.voted {
    background: var(--accent-gradient-glow, rgba(9, 9, 11, 0.15));
    border-color: var(--accent-primary, #09090b);
    color: var(--accent-primary, #09090b);
    pointer-events: none;
}

/* Empty Reviews State */
.pdp-empty-reviews {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted, #94a3b8);
}

.pdp-empty-reviews-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* --- Curated Related Products Grid --- */
.pdp-related-section {
    margin-top: 48px;
}

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

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

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

/* --- Dynamic Shipping & Returns Policy Styling --- */
.pdp-policy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.pdp-policy-card {
    background: var(--bg-surface-raised, #f8fafc);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s ease;
}

.pdp-policy-card:hover {
    border-color: var(--accent-primary, #09090b);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.pdp-policy-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.pdp-policy-meta strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 3px;
}

.pdp-policy-meta span {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
}

.pdp-policy-box {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
}

.pdp-policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.pdp-policy-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
}

.pdp-policy-badge.custom {
    background: #eef2ff;
    color: #09090b;
    border: 1px solid #c7d2fe;
}

.pdp-policy-badge.standard {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.pdp-policy-body {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-secondary, #475569);
}

.pdp-policy-body p {
    margin-bottom: 12px;
}

.pdp-policy-body p:last-child {
    margin-bottom: 0;
}

[data-theme="dark"] .pdp-policy-card {
    background: var(--bg-surface-raised, #1e293b);
    border-color: var(--border-subtle, #334155);
}

[data-theme="dark"] .pdp-policy-icon {
    background: var(--bg-surface, #0f172a);
    border-color: var(--border-subtle, #334155);
}

[data-theme="dark"] .pdp-policy-box {
    background: var(--bg-surface, #1e293b);
    border-color: var(--border-subtle, #334155);
}

[data-theme="dark"] .pdp-policy-badge.custom {
    background: rgba(9, 9, 11, 0.2);
    color: #a5b4fc;
    border-color: rgba(9, 9, 11, 0.4);
}

[data-theme="dark"] .pdp-policy-badge.standard {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

/* ==========================================================================
   FREQUENTLY BOUGHT TOGETHER & BUNDLE DISCOUNT ENGINE (PREMIUM LUXURY DESIGN)
   ========================================================================== */
.fbt-bundle-section {
    margin: 48px 0;
    background: var(--bg-surface, #ffffff);
    border: 1.5px solid var(--border-subtle, #e2e8f0);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.fbt-bundle-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #09090b, #27272a, #52525b);
}

.fbt-bundle-section:hover {
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* Header */
.fbt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-subtle, #f1f5f9);
    margin-bottom: 28px;
}

.fbt-header-main {
    flex: 1;
    min-width: 280px;
}

.fbt-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-primary, #09090b);
    background: rgba(9, 9, 11, 0.08);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.fbt-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #09090b;
    animation: fbtDotPulse 1.8s infinite;
}

@keyframes fbtDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.45); }
}

.fbt-title {
    margin: 0 0 6px 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.02em;
}

.fbt-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
}

.fbt-header-perk {
    display: flex;
    align-items: center;
}

.fbt-perk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

/* Layout Grid - Align Start prevents dead empty space in summary */
.fbt-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* Left Showcase Stream Container */
.fbt-stream-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

/* Visual Cards Stream Wrapper with Navigation Arrows */
.fbt-stream-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.fbt-stream-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface, #ffffff);
    border: 1.5px solid var(--border-medium, #cbd5e1);
    color: var(--text-primary, #0f172a);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.fbt-stream-arrow.prev {
    left: -14px;
}

.fbt-stream-arrow.next {
    right: -14px;
}

.fbt-stream-arrow:hover {
    background: var(--accent-primary, #09090b);
    color: #ffffff;
    border-color: var(--accent-primary, #09090b);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(9, 9, 11, 0.35);
}

.fbt-stream-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Visual Cards Stream (Horizontal Flow with Smooth Touch Scroll) */
.fbt-items-stream {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 6px 4px 14px 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-medium, #cbd5e1) transparent;
    width: 100%;
}

.fbt-items-stream::-webkit-scrollbar {
    height: 6px;
}

.fbt-items-stream::-webkit-scrollbar-track {
    background: transparent;
}

.fbt-items-stream::-webkit-scrollbar-thumb {
    background: var(--border-medium, #cbd5e1);
    border-radius: 9999px;
}

/* Product Card */
.fbt-item-card {
    flex: 0 0 205px;
    width: 205px;
    min-height: 295px;
    background: var(--bg-surface, #ffffff);
    border: 1.5px solid var(--border-subtle, #e2e8f0);
    border-radius: 18px;
    padding: 16px 14px 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.fbt-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary, #09090b);
    box-shadow: 0 12px 28px -4px rgba(9, 9, 11, 0.14);
}

.fbt-item-card.is-unselected {
    opacity: 0.45;
    filter: grayscale(0.85);
    background: var(--bg-surface-sunken, #f8fafc);
    border-style: dashed;
    border-color: var(--border-medium, #cbd5e1);
    transform: none !important;
    box-shadow: none;
}

/* Card Top Bar & Badges */
.fbt-card-top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fbt-card-role-chip {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
}

.fbt-card-role-chip.main {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.fbt-card-role-chip.addon {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

/* Custom Check Pill */
.fbt-card-check-pill {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.72rem;
    font-weight: 900;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fbt-card-check-pill.is-checked {
    background: linear-gradient(135deg, #09090b 0%, #27272a 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(9, 9, 11, 0.35);
}

.fbt-card-check-pill.locked {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.fbt-hidden-cb {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Card Thumbnail */
.fbt-item-thumb-wrapper {
    width: 116px;
    height: 116px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border-subtle, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.fbt-item-card:hover .fbt-item-thumb-wrapper {
    transform: scale(1.04);
}

.fbt-item-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card Title */
.fbt-item-card-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 10px;
    max-height: 2.7em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.15s ease;
}

.fbt-item-card-title:hover {
    color: var(--accent-primary, #09090b);
    text-decoration: underline;
}

/* Card Price */
.fbt-item-card-price-wrap {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fbt-card-reg-price {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    text-decoration: line-through;
}

.fbt-card-price {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.01em;
}

/* Circular Connector Plus */
.fbt-connector-plus {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-surface, #ffffff);
    border: 2px solid var(--border-medium, #cbd5e1);
    color: var(--accent-primary, #09090b);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    user-select: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fbt-connector-plus:hover {
    transform: scale(1.1);
    border-color: #09090b;
}

/* Minimalist Synchronized Checklist */
.fbt-checklist {
    list-style: none;
    margin: 0;
    padding: 16px 0 0 0;
    border-top: 1px solid var(--border-subtle, #f1f5f9);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fbt-check-item {
    background: transparent;
    border-bottom: 1px solid var(--border-subtle, #f8fafc);
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.fbt-check-item:last-child {
    border-bottom: none;
}

.fbt-check-item:hover {
    background: var(--bg-surface-raised, rgba(241, 245, 249, 0.5));
}

.fbt-check-item.is-unselected {
    opacity: 0.45;
}

.fbt-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.fbt-check-input {
    width: 17px;
    height: 17px;
    accent-color: #09090b;
    cursor: pointer;
}

.fbt-check-text {
    font-size: 0.86rem;
    color: var(--text-secondary, #334155);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbt-check-this-item {
    color: var(--text-primary, #0f172a);
    font-weight: 700;
    margin-right: 4px;
}

.fbt-check-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.fbt-check-link:hover {
    color: #09090b;
    text-decoration: underline;
}

.fbt-check-price-badge {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
}

/* Sticky Summary Card (Right Column) */
.fbt-summary-box {
    position: sticky;
    top: 96px;
    align-self: start;
    background: var(--bg-surface, #ffffff);
    border: 1.5px solid var(--border-subtle, #e2e8f0);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s ease;
}

.fbt-summary-box:hover {
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.1);
}

.fbt-summary-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle, #f1f5f9);
}

.fbt-summary-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0;
}

.fbt-items-count-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary, #09090b);
    background: rgba(9, 9, 11, 0.08);
    padding: 3px 10px;
    border-radius: 9999px;
}

/* Breakdown List */
.fbt-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fbt-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
}

.fbt-breakdown-row.total-row {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1.5px dashed var(--border-subtle, #e2e8f0);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.fbt-price-regular {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-muted, #94a3b8);
}

.fbt-price-discount {
    font-size: 0.94rem;
    font-weight: 700;
    color: #059669;
}

.fbt-price-bundle {
    font-size: 1.85rem;
    font-weight: 900;
    color: #059669;
    letter-spacing: -0.02em;
}

/* Savings Callout Banner */
.fbt-savings-callout {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #047857;
}

/* Add to Cart CTA Button */
.fbt-add-btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 0.98rem;
    font-weight: 800;
    border-radius: 14px;
    background: linear-gradient(135deg, #09090b 0%, #27272a 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(9, 9, 11, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fbt-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(9, 9, 11, 0.45);
    filter: brightness(1.06);
}

.fbt-add-btn:active {
    transform: translateY(0);
}

.fbt-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

/* Reassurance Trust List */
.fbt-trust-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle, #f1f5f9);
}

.fbt-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
}

.fbt-trust-icon {
    color: #059669;
    font-weight: 800;
}

/* Dark Mode Overrides */
[data-theme="dark"] .fbt-bundle-section {
    background: var(--bg-surface, #1e293b);
    border-color: var(--border-subtle, #334155);
}

[data-theme="dark"] .fbt-badge-pill {
    background: rgba(9, 9, 11, 0.2);
    color: #a5b4fc;
}

[data-theme="dark"] .fbt-item-card {
    background: var(--bg-surface-raised, #0f172a);
    border-color: var(--border-subtle, #334155);
}

[data-theme="dark"] .fbt-item-card.is-unselected {
    background: #0b1120;
    border-color: #1e293b;
}

[data-theme="dark"] .fbt-item-thumb-wrapper {
    background: #1e293b;
    border-color: var(--border-subtle, #334155);
}

[data-theme="dark"] .fbt-card-check-pill {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .fbt-card-check-pill.is-checked {
    background: linear-gradient(135deg, #09090b 0%, #27272a 100%);
    border-color: transparent;
    color: #ffffff;
}

[data-theme="dark"] .fbt-connector-plus {
    background: #1e293b;
    border-color: #334155;
    color: #a5b4fc;
}

[data-theme="dark"] .fbt-check-item:hover {
    background: rgba(51, 65, 85, 0.3);
}

[data-theme="dark"] .fbt-summary-box {
    background: var(--bg-surface, #1e293b);
    border-color: var(--border-subtle, #334155);
}

[data-theme="dark"] .fbt-items-count-pill {
    background: rgba(9, 9, 11, 0.2);
    color: #a5b4fc;
}

[data-theme="dark"] .fbt-perk-badge {
    background: rgba(5, 150, 105, 0.2);
    color: #6ee7b7;
    border-color: rgba(5, 150, 105, 0.4);
}

[data-theme="dark"] .fbt-savings-callout {
    background: rgba(5, 150, 105, 0.15);
    color: #6ee7b7;
    border-color: rgba(5, 150, 105, 0.3);
}

[data-theme="dark"] .fbt-card-role-chip.main {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .fbt-card-role-chip.addon {
    background: rgba(9, 9, 11, 0.15);
    color: #a5b4fc;
    border-color: rgba(9, 9, 11, 0.3);
}

[data-theme="dark"] .fbt-stream-arrow {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .fbt-stream-arrow:hover {
    background: #09090b;
    border-color: #09090b;
    color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .fbt-layout-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .fbt-summary-box {
        position: static;
    }
}

@media (max-width: 640px) {
    .fbt-bundle-section {
        padding: 20px 16px;
        margin: 32px 0;
        border-radius: 18px;
    }
    .fbt-stream-arrow {
        display: none;
    }
    .fbt-item-card {
        flex: 0 0 170px;
        width: 170px;
        min-height: 270px;
        padding: 14px 10px;
    }
    .fbt-item-thumb-wrapper {
        width: 95px;
        height: 95px;
    }
    .fbt-price-bundle {
        font-size: 1.55rem;
    }
}
