/* ============================================
   PRODUCT SECTIONS STYLES
   ============================================ */

/* Sticky Navigation */
.product-sections-nav {
    background: #efefef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.product-sections-nav.is-sticky {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sections-nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.sections-nav-list li {
    margin: 0;
}

.section-nav-link {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.section-nav-link:hover {
    color: #0b5b63;
    border-bottom-color: #0b5b63;
}

.section-nav-link.active {
    color: #0b5b63;
    border-bottom-color: #0b5b63;
}

/* Section Container */
.product-section {
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
    scroll-margin-top: 80px;
    /* Offset for sticky nav */
}

.product-section:last-child {
    border-bottom: none;
}

.product-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0b5b63;
    padding-bottom: 15px;
}

/* ============================================
   KEY BENEFITS SECTION
   ============================================ */
.section-benefits .benefit-item {
    display: flex;
    gap: 20px;
    height: 100%;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.section-benefits .benefit-item:hover {
    background: #f0f8f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-benefits .benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #0b5b63;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.section-benefits .benefit-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #0b5b63;
    margin-bottom: 8px;
}

.section-benefits .benefit-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   INGREDIENTS SECTION
   ============================================ */


.section-ingredients .ingredient-card {
    background: #e9ecef38;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.section-ingredients .ingredient-card:hover {
    border-color: #0b5b63;
    box-shadow: 0 4px 15px rgba(11, 91, 99, 0.1);
}

.section-ingredients .ingredient-header {
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.section-ingredients .ingredient-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #0b5b63;
    margin: 0;
}

.section-ingredients .ingredient-quantity {
    background: #0b5b63;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.section-ingredients .ingredient-benefits {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   HOW TO USE SECTION
   ============================================ */

.section-how-to-use .usage-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-bottom: 4px solid #0b5b63;
}

.section-how-to-use .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #0b5b63;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.section-how-to-use .step-content {
    flex: 1;
}

.section-how-to-use .step-instruction {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.section-how-to-use .step-note {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* ============================================
   PRODUCT DETAILS SECTION
   ============================================ */
.section-details .details-content {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.section-details .details-content h4 {
    color: #0b5b63;
    font-size: 20px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section-details .details-content ul,
.section-details .details-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.section-details .details-content li {
    margin-bottom: 8px;
}

.section-details .specifications-table {
    margin-top: 30px;
}

.section-details .specifications-table h4 {
    color: #0b5b63;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-details .specifications-table table {
    width: 100%;
    border-collapse: collapse;
}

.section-details .specifications-table th {
    background: #f8f9fa;
    color: #0b5b63;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    width: 30%;
    border: 1px solid #dee2e6;
}

.section-details .specifications-table td {
    padding: 12px;
    color: #666;
    border: 1px solid #dee2e6;
}

/* ============================================
   FAQs SECTION
   ============================================ */
.section-faqs .accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.section-faqs .accordion-button {
    background: #f8f9fa;
    color: #0b5b63;
    font-weight: 600;
    padding: 15px 20px;
}

.section-faqs .accordion-button:not(.collapsed) {
    background: #0b5b63;
    color: #fff;
}

.section-faqs .accordion-button:focus {
    box-shadow: none;
    border-color: #0b5b63;
}

.section-faqs .accordion-body {
    padding: 20px;
    color: #666;
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .product-sections-nav {
        overflow-x: auto;
    }

    .sections-nav-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .section-nav-link {
        padding: 12px 18px;
        font-size: 14px;
        white-space: nowrap;
    }

    .product-section h3 {
        font-size: 24px;
    }

    .section-ingredients .ingredients-grid {
        grid-template-columns: 1fr;
    }

    .section-benefits .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .section-benefits .benefit-icon {
        margin: 0 auto;
    }
}

/* ============================================
   ADMIN PANEL SPECIFIC STYLES
   ============================================ */
.sections-editor-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-editor-group {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0b5b63;
}

.section-editor-header h5 {
    color: #0b5b63;
    font-weight: 600;
    margin: 0;
}

.repeater-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.repeater-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.repeater-remove-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.repeater-remove-btn:hover {
    background: #c82333;
}

.repeater-add-btn {
    background: #0b5b63;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.repeater-add-btn:hover {
    background: #094952;
}

/* ============================================
   CIRCULAR IMAGE STYLES FOR SECTIONS
   ============================================ */

/* Benefits Grid Layout */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.benefit-card {
    background: #e9ecef38;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #0b5b63;
    box-shadow: 0 8px 20px rgba(11, 91, 99, 0.15);
    transform: translateY(-5px);
}

/* Circular Benefit Images */
.benefit-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #0a545b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.benefit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-card .benefit-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #0b5b63;
    margin-bottom: 10px;
}

.benefit-card .benefit-content p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* Circular Ingredient Images */
.ingredient-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #86c440;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.ingredient-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ingredient-card {
    text-align: center;
}

/* Circular How-to-Use Step Images */
.step-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1f8457;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-number-overlay {
    position: absolute;
    bottom: 20px;
    right: 29px;
    background: #0b5b63;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.usage-step {
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .benefit-card,
    .ingredient-card {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}