/**
 * Product V2 Detail Page CSS
 * Modern design matching the products-modern.css listing page
 * Bootstrap 3.3.4 Compatible
 */

/* === Base Styles === */
.product-v2-page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.product-v2-page * {
    box-sizing: border-box;
}

/* Override parent theme Roboto Condensed on all text elements */
.product-v2-page p,
.product-v2-page li,
.product-v2-page span,
.product-v2-page a,
.product-v2-page strong,
.product-v2-page em,
.product-v2-page b,
.product-v2-page blockquote,
.product-v2-page label {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.product-v2-page h1,
.product-v2-page h2,
.product-v2-page h3,
.product-v2-page h4 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 600;
}

/* Collapse the modular wrapper when no course content is visible */
.modular-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.modular-wrapper .modular-modules.header-hide {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix for WordPress theme header height conflict */
.top-header {
    height: auto !important;
}

.product-v2-page {
    clear: both;
    display: block;
}

/* === Hero Section === */
.product-v2-hero {
    background: linear-gradient(135deg, #1d4160 0%, #3468B1 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.product-v2-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(15deg);
}

.product-v2-hero h1 {
    font-size: 42px !important;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.product-v2-hero .hero-subtitle {
    font-size: 20px !important;
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.product-v2-hero .sale-banner {
    display: inline-block;
    background: linear-gradient(135deg, #EB7D32 0%, #d66a25 100%);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 15px !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-v2-hero .video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    margin-top: 1rem;
}

.product-v2-hero .product-hero-image {
    max-height: 300px;
    margin: 1rem auto 0;
}

/* === Overview Section (Description + Pricing) === */
.product-v2-pricing {
    padding: 2.5rem 0;
    background: #fff;
}

.product-v2-pricing > .container > .row {
    display: flex;
    align-items: flex-start;
}

/* Left column: short description */
.product-v2-pricing .overview-description {
    padding-right: 2rem;
}

.product-v2-pricing .description-content p {
    font-size: 17px !important;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.product-v2-pricing .description-content p:last-child {
    margin-bottom: 0;
}

/* Right column: pricing card */
.product-v2-pricing .pricing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    padding: 1.5rem 1.75rem;
    text-align: center;
    border: 2px solid #e0e0e0;
    position: sticky;
    top: 100px;
}

.product-v2-pricing .pricing-card h3 {
    font-size: 24px !important;
    font-weight: 700;
    color: #1d4160;
    margin: 0 0 0.25rem 0;
}

.product-v2-pricing .course-details {
    font-size: 14px !important;
    color: #666;
    margin-bottom: 0.15rem;
}

.product-v2-pricing .delivery-note {
    font-size: 13px !important;
    color: #999;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.product-v2-pricing .delivery-note i {
    margin-right: 0.25rem;
}

.product-v2-pricing .member-notice {
    background: #f0f7ff;
    border: 1px solid #cce0f5;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-bottom: 0.75rem;
}

.product-v2-pricing .member-notice p {
    margin: 0;
    font-size: 13px !important;
    color: #333;
}

.product-v2-pricing .member-notice a {
    color: #3468B1;
    text-decoration: underline;
}

.product-v2-pricing .price-display {
    margin-bottom: 0.75rem;
}

.product-v2-pricing .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.product-v2-pricing .price-row:last-child {
    border-bottom: none;
}

.product-v2-pricing .price-label {
    font-size: 15px !important;
    color: #666;
    font-weight: 500;
}

.product-v2-pricing .price-value {
    font-size: 20px !important;
    font-weight: 700;
    color: #1d4160;
}

.product-v2-pricing .price-value.strikethrough {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
}

.product-v2-pricing .price-value.highlight {
    color: #24D366;
    font-size: 24px !important;
}

.product-v2-pricing .member-price .price-label {
    color: #3468B1;
}

.product-v2-pricing .member-price .price-value {
    color: #3468B1;
}

.product-v2-pricing .sale-price .price-label {
    color: #EB7D32;
    font-weight: 700;
}

.product-v2-pricing .btn-buy {
    display: block;
    padding: 0.875rem 2rem;
    font-size: 18px !important;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #24D366 0%, #1db857 100%);
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.product-v2-pricing .btn-buy:hover {
    background: linear-gradient(135deg, #1db857 0%, #18a34d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(36, 211, 102, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

.product-v2-pricing .btn-buy i {
    margin-right: 0.5rem;
}

/* === Sales Content Section === */
.product-v2-description {
    padding: 3rem 0;
    background: #f8f9fa;
}

.product-v2-description .sales-content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 3rem;
    border: 1px solid #e8eaed;
}

.product-v2-description h2 {
    font-size: 26px !important;
    font-weight: 700;
    color: #3468B1;
    margin: 1.5rem 0 0.75rem 0;
}

.product-v2-description h2:first-child {
    margin-top: 0;
}

.product-v2-description p {
    font-size: 17px !important;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.product-v2-description ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.product-v2-description ul li {
    font-size: 17px !important;
    color: #495057;
    line-height: 1.7;
    padding: 0.4rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.product-v2-description ul li::before {
    content: '\f00c';
    font-family: 'FontAwesome' !important;
    position: absolute;
    left: 0;
    color: #24D366;
    font-size: 14px;
    top: 0.55rem;
}

/* === Features Section === */
.product-v2-features {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #1d4160 0%, #2a5a8a 100%);
    color: #fff;
}

.product-v2-features h2 {
    font-size: 36px !important;
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 2.5rem 0;
}

.product-v2-features .row {
    display: flex;
    flex-wrap: wrap;
}

.product-v2-features .row > [class*="col-"] {
    display: flex;
}

.product-v2-features .feature-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

.product-v2-features .feature-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.product-v2-features .feature-card .feature-icon {
    font-size: 28px;
    margin-bottom: 0.75rem;
    color: #4db8ff;
}

.product-v2-features .feature-card h3 {
    font-size: 20px !important;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 0.5rem 0;
}

.product-v2-features .feature-card p {
    font-size: 15px !important;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.6;
}

/* === Testimonials Section === */
.product-v2-testimonials {
    padding: 3.5rem 0;
    background: #f8f9fa;
}

.product-v2-testimonials h2 {
    font-size: 36px !important;
    font-weight: 700;
    color: #1d4160;
    text-align: center;
    margin: 0 0 2.5rem 0;
}

.product-v2-testimonials .row {
    display: flex;
    flex-wrap: wrap;
}

.product-v2-testimonials .row > [class*="col-"] {
    display: flex;
}

.product-v2-testimonials .testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 1.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
}

.product-v2-testimonials .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-v2-testimonials .testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: none;
}

.product-v2-testimonials .testimonial-author {
    font-size: 16px !important;
    font-weight: 700;
    color: #1d4160;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-v2-testimonials .testimonial-text {
    font-size: 15px !important;
    color: #495057;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* === CTA Section === */
.product-v2-cta {
    padding: 3rem 0;
    background: linear-gradient(135deg, #3468B1 0%, #2a5490 100%);
    color: #fff;
}

.product-v2-cta h2 {
    font-size: 28px !important;
    font-weight: 600;
    color: #fff !important;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.product-v2-cta .btn-buy-lg {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 22px !important;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #24D366 0%, #1db857 100%);
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-v2-cta .btn-buy-lg:hover {
    background: linear-gradient(135deg, #1db857 0%, #18a34d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(36, 211, 102, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

.product-v2-cta .btn-buy-lg i {
    margin-right: 0.5rem;
}

.product-v2-cta .cc-icons {
    margin-top: 0.75rem;
    max-width: 200px;
    opacity: 0.9;
}

.product-v2-cta .cta-image {
    max-height: 250px;
}

/* === Guarantee Section === */
.product-v2-guarantee {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #1d4160 0%, #3468B1 100%);
    color: #fff;
}

.product-v2-guarantee .guarantee-box {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.product-v2-guarantee .guarantee-icon {
    flex-shrink: 0;
}

.product-v2-guarantee .guarantee-icon img {
    width: 150px;
    height: auto;
}

.product-v2-guarantee .guarantee-content h3 {
    font-size: 32px !important;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 1rem 0;
}

.product-v2-guarantee .guarantee-content p {
    font-size: 17px !important;
    color: rgba(255,255,255,0.95) !important;
    margin: 0;
    line-height: 1.7;
}

/* === Footer Override === */
.product-v2-page .bottom-footer .site-info p {
    font-size: 13px !important;
    color: #999;
    line-height: 1.6;
}

/* === Responsive Styles === */
@media (max-width: 991px) {
    .product-v2-hero h1 {
        font-size: 36px !important;
    }

    .product-v2-hero .hero-subtitle {
        font-size: 18px !important;
    }

    .product-v2-pricing .overview-description {
        padding-right: 1.5rem;
    }

    .product-v2-pricing .pricing-card {
        padding: 1.5rem;
    }

    .product-v2-pricing .pricing-card h3 {
        font-size: 22px !important;
    }

    .product-v2-features h2 {
        font-size: 30px !important;
    }

    .product-v2-testimonials h2 {
        font-size: 30px !important;
    }

    .product-v2-guarantee .guarantee-box {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    .product-v2-guarantee .guarantee-content h3 {
        font-size: 28px !important;
    }

    .product-v2-guarantee .guarantee-content p {
        font-size: 16px !important;
    }

    .product-v2-cta h2 {
        font-size: 24px !important;
    }

    .product-v2-cta .cta-image {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .product-v2-hero {
        padding: 2rem 0;
        text-align: center;
    }

    .product-v2-hero h1 {
        font-size: 28px !important;
    }

    .product-v2-hero .hero-subtitle {
        font-size: 16px !important;
    }

    .product-v2-hero .product-hero-image {
        max-height: 200px;
        margin-top: 1.5rem;
    }

    .product-v2-pricing {
        padding: 1.5rem 0;
    }

    .product-v2-pricing > .container > .row {
        display: block;
    }

    .product-v2-pricing .overview-description {
        padding-right: 15px;
        margin-bottom: 1.5rem;
    }

    .product-v2-pricing .pricing-card {
        padding: 1.25rem;
        position: static;
    }

    .product-v2-pricing .pricing-card h3 {
        font-size: 20px !important;
    }

    .product-v2-pricing .price-value {
        font-size: 18px !important;
    }

    .product-v2-pricing .price-value.highlight {
        font-size: 22px !important;
    }

    .product-v2-pricing .btn-buy {
        padding: 0.875rem 2rem;
        font-size: 18px !important;
    }

    .product-v2-description {
        padding: 1.5rem 0;
    }

    .product-v2-description .sales-content-card {
        padding: 1.5rem 1.25rem;
    }

    .product-v2-description h2 {
        font-size: 22px !important;
    }

    .product-v2-features {
        padding: 2.5rem 0;
    }

    .product-v2-features h2 {
        font-size: 26px !important;
    }

    .product-v2-testimonials {
        padding: 2.5rem 0;
    }

    .product-v2-testimonials h2 {
        font-size: 26px !important;
    }

    .product-v2-cta {
        text-align: center;
    }

    .product-v2-cta h2 {
        font-size: 22px !important;
    }

    .product-v2-cta .btn-buy-lg {
        font-size: 18px !important;
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .product-v2-cta .cta-image {
        max-height: 180px;
        margin-top: 1.5rem;
    }

    .product-v2-guarantee .guarantee-box {
        padding: 1.5rem;
    }

    .product-v2-guarantee .guarantee-icon img {
        width: 100px;
    }

    .product-v2-guarantee .guarantee-content h3 {
        font-size: 24px !important;
    }

    .product-v2-guarantee .guarantee-content p {
        font-size: 15px !important;
    }
}

/* === Print Styles === */
@media print {
    .product-v2-hero,
    .product-v2-cta,
    .product-v2-guarantee {
        display: none;
    }

    .product-v2-pricing .btn-buy {
        display: none;
    }
}
