/* ========================================
   Product Detail Page Styles
   ======================================== */

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: var(--color-text-light);
}
.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--color-primary);
}
.breadcrumb .breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.4;
}
.breadcrumb .breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

/* Product Hero */
.pdp-hero {
    padding: 40px 0 80px;
    background: var(--color-white);
}
.pdp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Product Image */
.pdp-image {
    position: sticky;
    top: 100px;
}
.pdp-image-main {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    overflow: hidden;
}
.pdp-image-main {
    cursor: zoom-in;
}
.pdp-image-main img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s, opacity 0.2s;
}
.pdp-image-main:hover img {
    transform: scale(1.05);
}

/* Thumbnail Gallery */
.pdp-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}
.pdp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: var(--color-bg-alt, #f4f6f9);
    padding: 6px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pdp-thumb.active {
    border-color: var(--color-primary, #0d3069);
    box-shadow: 0 0 0 2px rgba(13,48,105,0.15);
}
.pdp-thumb:hover { border-color: #91bacc; }
.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Zoom Lightbox (PDP) */
.pdp-zoom-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    overflow: hidden;
    cursor: grab;
}
.pdp-zoom-overlay.active { display: block; }
.pdp-zoom-overlay.dragging { cursor: grabbing; }
.pdp-zoom-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}
.pdp-zoom-container img {
    transform-origin: center center;
    transition: transform 0.15s ease-out;
    max-width: none; max-height: none;
    user-select: none; -webkit-user-drag: none;
}
.pdp-zoom-close {
    position: absolute; top: 16px; right: 20px;
    color: #fff; font-size: 32px; cursor: pointer;
    background: rgba(0,0,0,0.5); border: none;
    z-index: 10001; width: 40px; height: 40px;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
}
.pdp-zoom-close:hover { background: rgba(255,255,255,0.2); }
.pdp-zoom-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 36px; cursor: pointer;
    background: rgba(255,255,255,0.15); border: none;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 10001;
}
.pdp-zoom-nav:hover { background: rgba(255,255,255,0.3); }
.pdp-zoom-nav.prev { left: 16px; }
.pdp-zoom-nav.next { right: 16px; }
.pdp-zoom-label {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%); color: #fff; font-size: 14px;
    background: rgba(0,0,0,0.5); padding: 6px 16px;
    border-radius: 6px; z-index: 10001;
}
.pdp-zoom-controls {
    position: absolute; bottom: 20px; right: 20px;
    display: flex; gap: 8px; z-index: 10001;
}
.pdp-zoom-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none;
    color: #fff; font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.pdp-zoom-btn:hover { background: rgba(255,255,255,0.3); }
.pdp-zoom-hint {
    position: absolute; top: 16px; left: 50%;
    transform: translateX(-50%); color: rgba(255,255,255,0.5);
    font-size: 12px; z-index: 10001;
    transition: opacity 0.5s; pointer-events: none;
}

/* Product Info */
.pdp-info {
    padding-top: 8px;
}
.pdp-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.pdp-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--color-text);
}
.pdp-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}
.pdp-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.pdp-price-note {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* Flavor Switcher (for FS Shake) */
.pdp-flavors {
    margin-bottom: 24px;
}
.pdp-flavors-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}
.pdp-flavor-options {
    display: flex;
    gap: 12px;
}
.pdp-flavor-btn {
    padding: 10px 24px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    background: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}
.pdp-flavor-btn:hover {
    border-color: var(--color-primary-light);
}
.pdp-flavor-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

/* Add to Cart */
.pdp-add-to-cart {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}
.pdp-btn-cart {
    flex: 1;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(13,48,105,0.25);
}
.pdp-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,48,105,0.35);
    background: #0a2654;
}
.pdp-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}
.pdp-qty button {
    width: 44px;
    height: 52px;
    background: var(--color-bg-alt);
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s;
}
.pdp-qty button:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
}
.pdp-qty span {
    width: 44px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Key Benefits */
.pdp-benefits {
    list-style: none;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}
.pdp-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
}
.pdp-benefits li + li {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.pdp-benefits li svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

/* Trust Badges */
.pdp-trust {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-light);
}
.pdp-trust-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Info Graphic Section */
.pdp-infographic {
    padding: 0 0 80px;
    background: var(--color-white);
}
.pdp-infographic-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.pdp-infographic-img img {
    width: 100%;
    display: block;
}

/* Tabbed Details */
.pdp-details {
    padding: 80px 0;
    background: var(--color-bg-alt);
}
.pdp-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    overflow-x: auto;
}
.pdp-tab {
    padding: 14px 28px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-bottom: -2px;
}
.pdp-tab:hover {
    color: var(--color-text);
}
.pdp-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.pdp-tab-content {
    display: none;
}
.pdp-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* What's Inside */
.pdp-ingredients {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.pdp-ingredients h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
}
.pdp-ingredient-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pdp-ingredient-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
}
.pdp-ingredient-item .ingredient-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
}
.pdp-ingredient-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.pdp-ingredient-item p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Ingredient Groups (detailed breakdown) */
.pdp-ingredient-group {
    padding: 20px 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.pdp-ingredient-group:last-child {
    margin-bottom: 0;
}
.pdp-ingredient-group h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.pdp-ingredient-group p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Direction Sections (detailed directions) */
.pdp-directions-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pdp-direction-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.pdp-direction-section:first-child {
    padding-top: 0;
}
.pdp-direction-section:last-child {
    border-bottom: none;
}
.pdp-direction-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.pdp-direction-section p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}
.pdp-direction-section p:last-child {
    margin-bottom: 0;
}
.pdp-direction-section a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pdp-direction-section a:hover {
    color: var(--color-accent);
}
.pdp-direction-notice {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 20px 24px !important;
    margin-top: 8px;
}
.pdp-fda-note {
    font-size: 12px !important;
    font-style: italic;
    opacity: 0.8;
}

/* Directions */
.pdp-directions {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.pdp-directions h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
}
.pdp-directions-list {
    counter-reset: step;
}
.pdp-direction-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.pdp-direction-step:last-child {
    border-bottom: none;
}
.pdp-direction-step::before {
    counter-increment: step;
    content: counter(step);
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.pdp-direction-step div h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.pdp-direction-step div p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Supplement Facts */
.pdp-supplement-facts {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}
.pdp-supplement-facts h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
}
.pdp-supplement-facts img {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Allergen/Exclusion Statements */
.pdp-allergens {
    padding: 60px 0;
    background: var(--color-white);
}
.pdp-allergens-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.pdp-allergen-card {
    padding: 32px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}
.pdp-allergen-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-primary);
}
.pdp-allergen-card ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pdp-allergen-card ul li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-white);
    border-radius: 999px;
    font-size: 13px;
    color: var(--color-text);
}
.pdp-allergen-card ul li svg {
    color: var(--color-primary);
    width: 14px;
    height: 14px;
}

/* Cross-sell */
.pdp-cross-sell {
    padding: 80px 0;
    background: var(--color-bg-alt);
}
.pdp-cross-sell .section-header {
    margin-bottom: 40px;
}
.pdp-cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.pdp-cross-sell-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.pdp-cross-sell-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.pdp-cross-sell-card .cross-sell-image {
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pdp-cross-sell-card .cross-sell-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.pdp-cross-sell-card .cross-sell-info {
    padding: 16px 20px 20px;
}
.pdp-cross-sell-card .cross-sell-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.pdp-cross-sell-card .cross-sell-info .cross-sell-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.pdp-cross-sell-card .cross-sell-info p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}
.pdp-cross-sell-card .cross-sell-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 10px;
}

/* FDA Disclaimer */
.pdp-disclaimer {
    padding: 40px 0;
    background: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.06);
}
.pdp-disclaimer p {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* BIACTIN Info Page Specific */
.pdp-info-page .pdp-hero {
    padding-bottom: 40px;
}
.pdp-info-section {
    padding: 60px 0;
}
.pdp-info-section:nth-child(even) {
    background: var(--color-bg-alt);
}
.pdp-info-content {
    max-width: 800px;
    margin: 0 auto;
}
.pdp-info-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 24px;
    text-align: center;
}
.pdp-info-content p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}
.pdp-info-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .pdp-hero-grid {
        gap: 40px;
    }
    .pdp-cross-sell-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pdp-hero {
        padding: 24px 0 60px;
    }
    .pdp-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pdp-image {
        position: static;
    }
    .pdp-image-main {
        max-width: 400px;
        margin: 0 auto;
    }
    .pdp-title {
        font-size: 28px;
    }
    .pdp-price {
        font-size: 28px;
    }
    .pdp-ingredient-list {
        grid-template-columns: 1fr;
    }
    .pdp-allergens-grid {
        grid-template-columns: 1fr;
    }
    .pdp-cross-sell-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
    .pdp-trust {
        flex-wrap: wrap;
        gap: 16px;
    }
    .pdp-tabs {
        gap: 0;
    }
    .pdp-tab {
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pdp-add-to-cart {
        flex-direction: column;
    }
    .pdp-qty {
        justify-content: center;
    }
    .pdp-flavor-options {
        flex-direction: column;
    }
    .pdp-flavor-btn {
        text-align: center;
    }
}
