/* Product Detail Pages - Shared Styles */

/* Nav */
.pdp-nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 14px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(94, 35, 157, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06)
}

.pdp-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 32px
}

.pdp-nav .nav-links {
    display: flex;
    gap: 24px;
    list-style: none
}

.pdp-nav .nav-links a {
    color: #5E239D;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s
}

.pdp-nav .nav-links a:hover {
    color: #F61067
}

.pdp-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 16px
}

/* Cart Icon */
.cart-icon-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px
}

.cart-icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: #5E239D
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: #F61067;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center
}

.cart-badge.visible {
    display: flex
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 5%;
    font-size: 0.85rem;
    color: #999;
    background: #fafafa
}

.breadcrumbs a {
    color: #5E239D;
    text-decoration: none
}

.breadcrumbs a:hover {
    text-decoration: underline
}

.breadcrumbs span {
    margin: 0 8px;
    color: #ccc
}

/* Hero */
.pdp-hero {
    display: flex;
    gap: 60px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center
}

.pdp-hero-image {
    flex: 1;
    max-width: 600px
}

.pdp-hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1)
}

.pdp-hero-info {
    flex: 1
}

.pdp-badge {
    display: inline-block;
    background: #E3F2FD;
    color: #1565C0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em
}

.pdp-hero-info h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #1A1638;
    margin-bottom: 16px;
    line-height: 1.1;
    text-transform: none
}

.pdp-hero-info .pdp-tagline {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6
}

.pdp-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #5E239D;
    margin-bottom: 24px
}

.pdp-trust-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap
}

.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500
}

.pdp-trust-item svg {
    width: 18px;
    height: 18px;
    stroke: #42D9C8;
    flex-shrink: 0
}

.pdp-cta-row {
    display: flex;
    gap: 16px;
    align-items: center
}

/* Buttons */
.pdp-add-btn {
    background: #F61067;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em
}

.pdp-add-btn:hover {
    background: #D92E89;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 16, 103, 0.3)
}

.pdp-add-btn.added {
    background: #10B981
}

.pdp-add-btn.added:hover {
    background: #059669
}

.pdp-secondary-btn {
    background: transparent;
    color: #5E239D;
    border: 2px solid #5E239D;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none
}

.pdp-secondary-btn:hover {
    background: rgba(94, 35, 157, 0.05)
}

/* Sections */
.pdp-section {
    padding: 80px 5%
}

.pdp-section-light {
    background: #FFFFFF
}

.pdp-section-teal {
    background: #42D9C8
}

.pdp-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A1638;
    margin-bottom: 16px;
    text-transform: none;
    text-align: center
}

.pdp-section .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto
}

/* Scenario Cards */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto
}

.scenario-item {
    background: white;
    border: 1px solid rgba(94, 35, 157, 0.08);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s
}

.scenario-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08)
}

.scenario-item .emoji {
    font-size: 2rem;
    margin-bottom: 12px
}

.scenario-item h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1638;
    margin-bottom: 8px;
    text-transform: none
}

.scenario-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5
}

/* Test List */
.test-list-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start
}

.test-list {
    flex: 1;
    list-style: none;
    padding: 0
}

.test-list li {
    background: white;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(94, 35, 157, 0.08);
    transition: transform 0.2s
}

.test-list li:hover {
    transform: translateX(4px)
}

.test-num {
    background: #42D9C8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0
}

.test-info strong {
    display: block;
    color: #1A1638;
    font-size: 1rem
}

.test-info .method {
    font-size: 0.8rem;
    color: #999
}

.medical-note {
    flex: 0 0 340px;
    background: #5E239D;
    color: white;
    padding: 36px;
    border-radius: 24px
}

.medical-note h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: white;
    margin-bottom: 16px;
    font-size: 1.2rem;
    text-transform: none
}

.medical-note p {
    opacity: 0.9;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6
}

.medical-note a {
    color: #42D9C8;
    text-decoration: underline;
    font-weight: 700
}

/* How It Works */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto
}

.how-step {
    text-align: center;
    padding: 32px 24px
}

.how-step-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #5E239D, #42D9C8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 20px
}

.how-step h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1638;
    margin-bottom: 8px;
    text-transform: none
}

.how-step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5
}

/* FAQ */
.pdp-faq {
    max-width: 700px;
    margin: 0 auto
}

.pdp-faq-item {
    border-bottom: 1px solid rgba(94, 35, 157, 0.1);
    padding: 20px 0
}

.pdp-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #1A1638
}

.pdp-faq-q::after {
    content: '+';
    font-size: 1.4rem;
    color: #5E239D;
    transition: transform 0.3s
}

.pdp-faq-item.active .pdp-faq-q::after {
    content: '−'
}

.pdp-faq-a {
    display: none;
    padding-top: 12px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6
}

.pdp-faq-item.active .pdp-faq-a {
    display: block
}

/* Footer CTA */
.pdp-footer-cta {
    background: #1A1638;
    color: white;
    padding: 80px 5%;
    text-align: center
}

.pdp-footer-cta h2 {
    color: white;
    margin-bottom: 16px
}

.pdp-footer-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px
}

.pdp-footer-cta .pdp-add-btn {
    font-size: 1.1rem;
    padding: 18px 48px
}

.pdp-footer-meta {
    margin-top: 48px;
    font-size: 0.8rem;
    opacity: 0.4
}

/* Cross-sell */
.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto
}

.cross-sell-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(94, 35, 157, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block
}

.cross-sell-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08)
}

.cross-sell-card img {
    width: 100%;
    height: 180px;
    object-fit: cover
}

.cross-sell-card .card-body {
    padding: 20px
}

.cross-sell-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1A1638;
    margin-bottom: 4px;
    text-transform: none
}

.cross-sell-card .card-price {
    color: #5E239D;
    font-weight: 700;
    font-size: 1.1rem
}

/* Cart Slide-out Panel */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: white;
    z-index: 9999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column
}

.cart-panel.open {
    right: 0
}

.cart-panel-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.cart-panel-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A1638;
    text-transform: none;
    margin: 0
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 4px
}

.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px
}

.cart-empty {
    text-align: center;
    color: #999;
    padding: 40px 0
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1A1638;
    margin: 0 0 4px
}

.cart-item-info .cart-item-type {
    font-size: 0.8rem;
    color: #999
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 12px
}

.cart-item-price {
    font-weight: 700;
    color: #5E239D
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px
}

.cart-remove-btn:hover {
    color: #F61067
}

.cart-concierge-toggle {
    background: #f8f0ff;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.cart-concierge-toggle label {
    font-weight: 600;
    color: #1A1638;
    font-size: 0.9rem
}

.cart-concierge-toggle .price {
    color: #5E239D;
    font-weight: 700;
    font-size: 0.85rem
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s
}

.toggle-switch.active {
    background: #5E239D
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s
}

.toggle-switch.active::after {
    transform: translateX(22px)
}

.cart-panel-footer {
    padding: 24px;
    border-top: 1px solid #eee
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 1.1rem
}

.cart-subtotal .label {
    color: #666
}

.cart-subtotal .value {
    font-weight: 800;
    color: #1A1638;
    font-size: 1.3rem
}

.cart-checkout-btn {
    width: 100%;
    background: #F61067;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em
}

.cart-checkout-btn:hover {
    background: #D92E89;
    transform: translateY(-1px)
}

.cart-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none
}

/* Responsive */
@media(max-width:768px) {
    .pdp-hero {
        flex-direction: column;
        padding: 30px 5%;
        gap: 30px
    }

    .pdp-hero-image {
        max-width: 100%
    }

    .pdp-hero-info h1 {
        font-size: 2rem
    }

    .pdp-price {
        font-size: 2rem
    }

    .scenario-grid,
    .how-grid,
    .cross-sell-grid {
        grid-template-columns: 1fr
    }

    .test-list-container {
        flex-direction: column
    }

    .medical-note {
        flex: auto
    }

    .pdp-nav .nav-links {
        display: none
    }

    .pdp-cta-row {
        flex-direction: column
    }

    .pdp-cta-row .pdp-add-btn,
    .pdp-cta-row .pdp-secondary-btn {
        width: 100%;
        text-align: center
    }

    .cart-panel {
        width: 100%;
        max-width: 100%;
        right: -100%
    }
}