/* ==========================================================
   PART 3: CONTENT SECTIONS (Benefits, Details)
   Filename: assets/css/ql-sections.css
   ========================================================== */

/* 1. BENEFITS SECTION (3D Cards) */
.ql-section.ql-benefits-section {
    width: 100%;
    max-width: 1280px; 
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
    clear: both;
    position: relative;
    z-index: 5;
    display: block !important;
}

.ql-section-title {
    font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #222; text-align: left;
}

/* Desktop Grid */
.ql-benefits-grid.ql-scroll-snap {
    display: flex; gap: 15px; flex-wrap: wrap; 
}

/* THE 3D CARD (Desktop) */
.ql-benefit-card {
    background: #fff;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 0 #e0e0e0, 0 10px 20px rgba(0,0,0,0.05); 
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1;
    min-width: 200px;
    overflow: hidden;
}

.ql-benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #e0e0e0, 0 15px 30px rgba(0,0,0,0.1);
}

.ql-benefit-inner {
    padding: 20px;
    display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; box-sizing: border-box;
}

.ql-benefit-icon-wrapper {
    width: 50px; height: 50px; background: #fdf6e7; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.ql-benefit-icon-wrapper .dashicons {
    font-size: 24px; width: 24px; height: 24px; color: #e65100;
}

.ql-benefit-content h4 {
    font-size: 15px; font-weight: 700; margin: 0 0 5px; color: #333;
}
.ql-benefit-content p {
    font-size: 13px; color: #666; margin: 0; line-height: 1.4;
}

/* === MOBILE: COMPACT 1-LINE SCROLL (FIXED) === */
@media (max-width: 767px) {
    .ql-section.ql-benefits-section {
        margin: 15px 0 20px 0 !important;
        padding: 0 4px !important; 
        width: 100% !important;
    }
    
    .ql-section-title {
        padding: 0 4px; font-size: 18px; margin-bottom: 12px;
    }

    .ql-benefits-grid.ql-scroll-snap {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding: 5px 20px 25px 5px !important; 
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        width: 100% !important;
    }

    .ql-benefits-grid.ql-scroll-snap::-webkit-scrollbar { display: none; }
    .ql-benefits-grid.ql-scroll-snap { -ms-overflow-style: none; scrollbar-width: none; }

    .ql-benefit-card {
        flex: 0 0 105px !important; 
        min-width: 105px !important;
        max-width: 105px !important;
        scroll-snap-align: start;
        box-shadow: 0 3px 0 #e0e0e0, 0 5px 10px rgba(0,0,0,0.05);
        border-radius: 10px;
    }
    
    .ql-benefit-card:hover { transform: none; }
    
    .ql-benefit-inner { padding: 12px 6px; }
    
    .ql-benefit-icon-wrapper {
        width: 36px; height: 36px; margin-bottom: 8px;
    }
    .ql-benefit-icon-wrapper .dashicons {
        font-size: 18px; width: 18px; height: 18px;
    }
    
    .ql-benefit-content h4 { 
        font-size: 11px !important; margin-bottom: 3px; line-height: 1.2;
    }
    .ql-benefit-content p { 
        font-size: 9px !important; line-height: 1.2; 
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
    }
}

/* 2. PRODUCT DETAILS CARD */
.ql-section.ql-details-section {
    width: 100%; max-width: 1280px; 
    margin: 30px auto; padding: 0 15px;
    box-sizing: border-box; clear: both;
}

.ql-details-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100%;
}

.ql-details-banner {
    width: 100%; max-height: 350px; overflow: hidden; position: relative; background: #f0f0f0;
}

.ql-details-banner img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.ql-details-content { padding: 40px; }

.ql-details-content .ql-section-title {
    font-size: 22px; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; color: #222;
}

.ql-content-body {
    font-size: 16px; line-height: 1.8; color: #444;
}

.ql-content-body p { margin-bottom: 20px; }
.ql-content-body h2, .ql-content-body h3, .ql-content-body h4 {
    margin-top: 30px; margin-bottom: 15px; color: #111;
}
.ql-content-body img {
    max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Mobile Tweaks for Details Card */
@media (max-width: 767px) {
    .ql-section.ql-details-section {
        margin: 15px 0 !important; padding: 0 4px !important;
    }
    .ql-details-card {
        border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    }
    .ql-details-banner { max-height: 200px; }
    .ql-details-content { padding: 20px 15px; }
    .ql-details-content .ql-section-title {
        font-size: 18px; margin-bottom: 15px; padding-bottom: 10px;
    }
    .ql-content-body { font-size: 15px; line-height: 1.6; }
}