/**
 * FNP-Style Product Sidebar CSS
 * Left images sticky - stays in place while scrolling
 * Right sidebar scrollbar hidden but functional
 * Weight variation options styling
 */

/* ============================================
   DESKTOP: Left product images stay in place
   ============================================ */
@media screen and (min-width: 992px) {
    
    /* LEFT COLUMN - Product images STAY IN PLACE */
    body.single-product .product-image-grid,
    .woocommerce.single-product .product-image-grid,
    .single-product .product-image-grid {
        position: sticky !important;
        top: 20px !important;
        align-self: flex-start !important;
    }
    
    /* RIGHT SIDEBAR - Hide scrollbar but keep functionality */
    .product-info,
    .wp-block-column.product-info {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .product-info::-webkit-scrollbar,
    .wp-block-column.product-info::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        background: transparent !important;
    }
}

/* ============================================
   MOBILE: Reset to normal flow
   ============================================ */
@media screen and (max-width: 991px) {
    
    body.single-product .product-image-grid,
    .woocommerce.single-product .product-image-grid,
    .single-product .product-image-grid {
        position: relative !important;
        top: auto !important;
    }
}

/* ============================================
   Weight Variation Options - Consistent Styling
   ============================================ */

/* Base styling for all weight options */
div.var_cst_option {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 70px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    margin-right: 12px !important;
    margin-bottom: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
}

div.var_cst_option.is-visible {
    display: inline-flex !important;
}

/* Normalize all weight values to consistent size */
div.var_cst_option[data-value="500gms"],
div.var_cst_option[data-value="300gms"],
div.var_cst_option[data-value="1kg"],
div.var_cst_option[data-value="1-5kg"],
div.var_cst_option[data-value="2kg"] {
    width: auto !important;
    height: auto !important;
    min-width: 70px !important;
    min-height: 40px !important;
}

/* Hover state */
div.var_cst_option:hover {
    border-color: #2A445F !important;
    background: #f8f9fa !important;
}

/* Selected state */
div.var_cst_option.on {
    border-color: #FE6B35 !important;
    background: #FE6B35 !important;
}

div.var_cst_option.on .active-label {
    color: #fff !important;
}

/* Label styling */
div.var_cst_option .active-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2A445F !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    div.var_cst_option {
        min-width: 60px !important;
        min-height: 36px !important;
        padding: 6px 10px !important;
        margin-right: 8px !important;
    }
    
    div.var_cst_option .active-label {
        font-size: 12px !important;
    }
}

/* ============================================
   Product FAQ Section
   ============================================ */
.product-faq-section {
    padding: 60px 0;
    background: #fff;
    width: 100%;
}

.product-faq-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-faq-title {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 50px;
    font-family: 'Fredoka', sans-serif;
}

.product-faq-accordion {
    border-top: 1px solid #e0e0e0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: none;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #1e3a5f;
    opacity: 0.8;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
}

.faq-question-text {
    flex: 1;
    font-size: 20px;
    font-weight: 500;
    color: #1e3a5f;
    line-height: 1.4;
    font-family: 'Fredoka', sans-serif;
}

.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #1e3a5f;
}

.faq-toggle .icon-minus {
    display: none;
}

.faq-item.active .faq-toggle .icon-plus {
    display: none;
}

.faq-item.active .faq-toggle .icon-minus {
    display: block;
}

.faq-answer {
    display: none;
    padding: 0 10px 25px 52px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.8;
}

.faq-answer p {
    margin: 0 0 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 8px;
    position: relative;
}

.faq-answer ul li::marker {
    color: #1e3a5f;
}

@media (max-width: 768px) {
    .product-faq-section {
        padding: 40px 0;
    }
    
    .product-faq-container {
        padding: 0 15px;
    }
    
    .product-faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 18px 5px;
        gap: 15px;
    }
    
    .faq-icon {
        width: 26px;
        height: 26px;
    }
    
    .faq-question-text {
        font-size: 17px;
    }
    
    .faq-answer {
        padding-left: 41px;
        font-size: 15px;
    }
}
