/* single.css - Modire Sabz Style Redesign */

.single-product .site-main {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Hide default top section for custom templates */
.has-custom-course-template .summary.entry-summary,
.has-custom-course-template .woocommerce-product-gallery {
    display: none !important;
}

/* --- MAIN LAYOUT --- */
.course-main-layout {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Right Content Area */
.course-content-right {
    grid-column: 1;
}

.course-description-content {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px;
    line-height: 1.8;
    color: #444;
}

.course-description-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #212529;
    border-right: 5px solid #007bff;
    padding-right: 15px;
}

.course-description-content p {
    margin-bottom: 20px;
}

/* Fix for Sticky Sidebar */
html, body {
    overflow-x: visible !important;
}

#wrapper {
    overflow: visible !important;
}

/* Left Sidebar Area */
.course-sidebar-left {
    grid-column: 2;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 120px; /* Adjusted for sticky header height */
    height: fit-content;
    z-index: 10;
    align-self: start; /* Crucial for sticky in CSS Grid */
}

.course-sidebar-left .price {
    background: #fff;
    padding: 25px 20px 15px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    border: 1px solid #eee;
    border-bottom: none;
    margin: 0;
}

.course-sidebar-left .price,
.course-sidebar-left .price .amount,
.course-sidebar-left .price ins,
.course-sidebar-left .price ins .amount {
    text-decoration: none !important;
    font-size: 26px !important; /* Slightly smaller as requested */
    font-weight: 900 !important;
    color: #2d3748 !important; /* Dark professional color */
    display: block;
    line-height: 1.2;
    font-family: inherit !important;
}

.course-sidebar-left .price .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    margin-right: 4px !important;
    font-weight: 600 !important;
    color: #718096 !important;
}

.course-sidebar-left .price del,
.course-sidebar-left .price del .amount {
    font-size: 14px !important;
    color: #a0aec0 !important;
    margin-bottom: 6px !important;
    display: block;
    text-decoration: line-through !important;
    opacity: 0.7;
}

.course-sidebar-left form.cart {
    background: #fff;
    padding: 0 20px 25px;
    border-radius: 0 0 15px 15px;
    border: 1px solid #eee;
    border-top: none;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

/* Hide Quantity Field */
.course-sidebar-left .quantity {
    display: none !important;
}

.course-sidebar-left button.single_add_to_cart_button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px !important; /* Smaller button text */
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.course-sidebar-left button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
    filter: brightness(1.05);
}

/* Sidebar Boxes */
.sidebar-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.course-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f7f9fc;
    font-size: 11px !important; /* Even smaller */
    font-weight: 600;
    color: #4a5568;
}

.course-features-list li:last-child {
    border-bottom: none;
}

.course-features-list li i {
    color: #27ae60;
    font-size: 14px;
    background: #eafaf1;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

/* SnappPay Sidebar Box */
.snapppay-sidebar-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.snapppay-logo {
    font-family: sans-serif;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    line-height: 1;
    background: #00d166; /* SnappPay Green */
    color: #fff;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    min-width: 70px;
}

.snapppay-logo .pay {
    font-size: 12px;
    opacity: 0.9;
}

.snapppay-text p {
    margin: 0;
    font-size: 11px !important;
    font-weight: 700;
    color: #2d3748;
}

.installment-amount {
    font-size: 10px !important;
    color: #718096;
    margin-top: 3px;
}

.installment-amount strong {
    color: #00d166;
    font-size: 13px !important;
}

/* Bold Guarantee Sidebar */
.course-guarantee-sidebar {
    margin-bottom: 20px;
}

.guarantee-badge {
    background: linear-gradient(135deg, #fff9f0 0%, #fffaf0 100%);
    border: 2px dashed #fbd38d;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.guarantee-badge i {
    font-size: 36px;
    color: #dd6b20;
    filter: drop-shadow(0 2px 4px rgba(221, 107, 32, 0.2));
}

.badge-text strong {
    display: block;
    font-size: 12px !important;
    color: #7b341e;
    margin-bottom: 4px;
    font-weight: 800;
}

.badge-text p {
    margin: 0;
    font-size: 10px !important;
    color: #9c4221;
    line-height: 1.4;
}

/* Hide default WC elements that we moved */
.single-product div.product .summary {
    display: none;
}

/* Related Products */
.related.products {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .course-hero-container,
    .course-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .course-content-right,
    .course-sidebar-left {
        grid-column: 1 !important;
    }

    .course-sidebar-left {
        order: -1; /* Sidebar (Price/Cart) above content on mobile */
        position: static;
    }
}


