/* ============================================================
   JCD REPAIR -- V3 PRODUCT PAGE STYLES
   Direction A layout with compact trust cards
   ============================================================ */

/* Reset Flatsome product page wrapper */
.jcd-v3-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F9F6F1;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* === Title Band === */
.jcd-v3-titleband {
    background: #0B1B2E;
    color: #fff;
    padding: 28px 0 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.jcd-v3-titleband-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}
.jcd-v3-titleband-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #F6A41C;
    font-weight: 700;
    margin-bottom: 10px;
}
.jcd-v3-titleband-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.jcd-v3-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.jcd-v3-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}
.jcd-v3-breadcrumb a:hover {
    color: rgba(255,255,255,0.7);
}
.jcd-v3-bc-sep {
    margin: 0 8px;
    color: rgba(255,255,255,0.2);
}
.jcd-v3-bc-current {
    color: #fff;
}

/* === Hero Card === */
.jcd-v3-hero-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 48px;
}
.jcd-v3-hero-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 0 rgba(11,27,46,0.04), 0 24px 48px -24px rgba(11,27,46,0.15);
    border: 1px solid #ECE7DE;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}
.jcd-v3-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.jcd-v3-hero-oval {
    background: radial-gradient(circle at 50% 40%, #FFF 0%, #F4EFE6 70%);
    border-radius: 999px;
    padding: 28px 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.jcd-v3-hero-oval img {
    max-width: 180px;
    max-height: 370px;
    object-fit: contain;
}
.jcd-v3-hero-placeholder {
    width: 180px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
}

/* === Hero Info === */
.jcd-v3-price {
    font-size: 40px;
    font-weight: 800;
    color: #0E1A2B;
    line-height: 1;
    margin-bottom: 4px;
}
.jcd-v3-price-note {
    font-size: 13px;
    color: #5A6679;
    margin-bottom: 20px;
}
.jcd-v3-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #5A6679;
}
.jcd-v3-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.jcd-v3-meta-item svg {
    flex-shrink: 0;
}
.jcd-v3-diagnostic {
    font-size: 15px;
    color: #2A3647;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* === Warning === */
.jcd-v3-warning {
    padding-left: 14px;
    border-left: 3px solid #F6A41C;
    margin-bottom: 16px;
}
.jcd-v3-warning-label {
    font-size: 11px;
    font-weight: 700;
    color: #E08A0A;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}
.jcd-v3-warning p {
    font-size: 13px;
    color: #2A3647;
    line-height: 1.6;
    margin: 0;
}

/* === What's Included === */
.jcd-v3-included {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
}
.jcd-v3-included-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2A3647;
}
.jcd-v3-included-item svg {
    flex-shrink: 0;
}

/* === CTA === */
.jcd-v3-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.jcd-v3-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F6A41C;
    color: #0E1A2B;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(246,164,28,0.5);
    transition: background 0.15s;
}
.jcd-v3-cta-button:hover {
    background: #fbbf24;
    color: #0E1A2B;
    text-decoration: none;
}
.jcd-v3-cta-arrow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0E1A2B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jcd-v3-cta-phone {
    font-size: 13px;
    color: #5A6679;
}
.jcd-v3-cta-phone a {
    color: #0E1A2B;
    text-decoration: none;
}
.jcd-v3-cta-phone a:hover {
    text-decoration: underline;
}

/* === Trust Banner === */
.jcd-v3-trust-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px 36px;
}
.jcd-v3-trust-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #ECE7DE;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.jcd-v3-trust-cell {
    padding: 20px 24px;
    text-align: center;
}
.jcd-v3-trust-cell-mid {
    border-left: 1px solid #ECE7DE;
    border-right: 1px solid #ECE7DE;
}
.jcd-v3-trust-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.jcd-v3-trust-title {
    font-size: 12px;
    font-weight: 700;
    color: #0E1A2B;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.jcd-v3-trust-link {
    display: block;
    color: #E08A0A;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(224,138,10,0.4);
}
.jcd-v3-trust-link:hover {
    color: #c06a08;
    text-decoration-color: rgba(192,106,8,0.6);
}
.jcd-v3-trust-desc {
    font-size: 11.5px;
    color: #5A6679;
    line-height: 1.5;
}

/* === How It Works === */
.jcd-v3-hiw-section {
    background: #F4F2EE;
    padding: 40px 0;
    border-top: 1px solid #ECE7DE;
    border-bottom: 1px solid #ECE7DE;
}
.jcd-v3-hiw-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}
.jcd-v3-hiw-header {
    text-align: center;
    margin-bottom: 32px;
}
.jcd-v3-hiw-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #F6A41C;
    font-weight: 700;
    margin-bottom: 6px;
}
.jcd-v3-hiw-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0E1A2B;
    margin: 0;
}
.jcd-v3-hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.jcd-v3-hiw-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ECE7DE;
    padding: 24px 22px;
    text-align: center;
}
.jcd-v3-hiw-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(246,164,28,0.1);
    color: #F6A41C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin: 0 auto 14px;
}
.jcd-v3-hiw-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0E1A2B;
    margin: 0 0 6px;
}
.jcd-v3-hiw-card p {
    font-size: 13px;
    color: #5A6679;
    line-height: 1.6;
    margin: 0;
}

/* === Locations Line === */
.jcd-v3-locations {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 48px;
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 13px;
    color: #5A6679;
}
.jcd-v3-locations a {
    color: #E08A0A;
    text-decoration: none;
    font-weight: 600;
}
.jcd-v3-locations a:hover {
    text-decoration: underline;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .jcd-v3-titleband-heading {
        font-size: 24px;
    }
    .jcd-v3-hero-wrap {
        padding: 24px 16px;
    }
    .jcd-v3-hero-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    .jcd-v3-hero-oval {
        padding: 20px;
    }
    .jcd-v3-hero-oval img {
        max-width: 140px;
        max-height: 280px;
    }
    .jcd-v3-price {
        font-size: 32px;
    }
    .jcd-v3-meta {
        flex-direction: column;
        gap: 8px;
    }
    .jcd-v3-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .jcd-v3-cta-button {
        width: 100%;
        justify-content: center;
    }
    .jcd-v3-trust-wrap {
        padding: 0 16px 24px;
    }
    .jcd-v3-trust-banner {
        grid-template-columns: 1fr;
    }
    .jcd-v3-trust-cell-mid {
        border-left: none;
        border-right: none;
        border-top: 1px solid #ECE7DE;
        border-bottom: 1px solid #ECE7DE;
    }
    .jcd-v3-hiw-inner {
        padding: 0 16px;
    }
    .jcd-v3-hiw-grid {
        grid-template-columns: 1fr;
    }
    .jcd-v3-locations {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px;
    }
    .jcd-v3-titleband-inner,
    .jcd-v3-hero-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .jcd-v3-hero-oval {
        max-width: 100%;
        box-sizing: border-box;
    }
    .jcd-v3-hero-oval img {
        max-width: 100% !important;
    }
    .jcd-v3-cta-button {
        white-space: normal !important;
        box-sizing: border-box;
        text-align: center;
    }

}

/* Hide Flatsome elements on V3 product pages */
.jcd-v3-active .page-title-inner,
.jcd-v3-active .page-title,
.jcd-v3-active .shop-page-title {
    display: none !important;
}

/* Hide global "Repair My Device" CTA */
.jcd-v3-active .woocommerce-notices-wrapper + .row,
.jcd-v3-page ~ .section,
.jcd-v3-page ~ .row {
    display: none !important;
}

/* Force product image size on V3 pages */
.jcd-v3-active .jcd-v3-hero-oval img,
.jcd-v3-hero-oval img {
    max-width: 280px !important;
    max-height: 420px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* === V3 Product Page — Hide Flatsome elements === */

/* Kill the navy title bar */
.jcd-v3-active .headerContent,
.jcd-v3-active .innerPageHeader .header-bg-container {
    display: none !important;
}

/* Kill the empty gap the header leaves behind */
.jcd-v3-active .innerPageHeader {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Kill the product gallery/booking card forced sizing from Additional CSS */
.jcd-v3-active .product-gallery,
.jcd-v3-active .woocommerce-product-gallery,
.jcd-v3-active .product-gallery img,
.jcd-v3-active .woocommerce-product-gallery img,
.jcd-v3-active .booking-card {
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: static !important;
}

/* Kill the product container padding from Additional CSS */
.jcd-v3-active .product-container,
.jcd-v3-active .product-main {
    padding-top: 0 !important;
}

/* Kill gap above V3 title band */
.jcd-v3-active .product-container,
.jcd-v3-active .product-main,
.jcd-v3-active .content-area,
.jcd-v3-active .shop-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.jcd-v3-page {
    margin-top: -30px;
}

/* 1. Bigger product image */
.jcd-v3-active .jcd-v3-hero-oval img,
.jcd-v3-hero-oval img {
    max-width: 360px !important;
    max-height: 500px !important;
}

/* 2. Title band text more readable */
.jcd-v3-titleband-heading {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 28px !important;
}

/* 3. Add space above "iPhone Repairs" label */
.jcd-v3-titleband {
    padding-top: 54px !important;
}

/* 4. No underline on hover for any V3 links */
.jcd-v3-page a:hover,
.jcd-v3-page a:focus {
    text-decoration: none !important;
}

/* 5. Kill gap above title band (increase negative margin) */
.jcd-v3-page {
    margin-top: -40px;
}

/* Phone pills */
.jcd-v3-phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #ECE7DE;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #5A6679 !important;
    margin-left: 4px;
    transition: all 0.2s;
}
.jcd-v3-phone-pill:hover {
    border-color: #F6A41C;
    color: #E08A0A !important;
    background: rgba(246,164,28,0.04);
}

/* Prevent CTA button text wrap */
.jcd-v3-cta-button {
    white-space: nowrap !important;
}

/* Keep phone pills inline with CTA */
.jcd-v3-cta {
    flex-wrap: wrap !important;
    gap: 10px !important;
}
.jcd-v3-cta-phone {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

/* Hide Repair My Device CTA on V3 pages */
.jcd-v3-active .repair-my-device-btn,
.jcd-v3-active a.call-to-action[href*="order-repair"],
.jcd-v3-active .single-product .repair-my-device-btn {
    display: none !important;
}

/* Kill white gap between V3 content and footer */
.jcd-v3-active .woocommerce-tabs,
.jcd-v3-active .related.products,
.jcd-v3-active .product-footer,
.jcd-v3-active #product-bottom-wrap {
    display: none !important;
}

/* Kill white gap from shop-container bottom padding */
.jcd-v3-active .shop-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.jcd-v3-active .product-main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.jcd-v3-active .content-area {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.jcd-v3-active #main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* === Mobile fixes (must be LAST to override desktop !important rules) === */
@media (max-width: 768px) {
    .jcd-v3-cta-button {
        white-space: normal !important;
        box-sizing: border-box !important;
        text-align: center !important;
        max-width: 100% !important;
    }
    .jcd-v3-active .jcd-v3-hero-oval img,
    .jcd-v3-hero-oval img {
        max-width: 100% !important;
        max-height: 280px !important;
    }
    .jcd-v3-hero-oval {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}