/* Ingredients Section with Tabs Styles */

/* Main Section */
.ingredients-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

/* Section Header */
.ingredients-section .section-header {
    margin-bottom: 60px;
}

.ingredients-section .section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #da000e, #0056b3);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.ingredients-section .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ingredients-section .section-description {
    font-size: 16px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.1), transparent);
    transition: left 0.6s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    border-color: #da000e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #da000e, #0056b3);
    border-color: #da000e;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.3);
}

.tab-btn img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.tab-btn:hover img,
.tab-btn.active img {
    transform: scale(1.1);
}

.tab-btn span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.tab-btn:hover span,
.tab-btn.active span {
    color: #ffffff;
}

/* Tab Content */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Image */
.product-image {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
}

.product-image:hover img {
    transform: scale(1.05);
}
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Image */
.product-image {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    width: 100%;
    height: auto;
}

.product-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
    transition: transform 0.3s ease;
    display: block;
    object-fit: cover;
}

.product-image:hover img {
    transform: scale(1.05);
}

/* Ingredients Content */
.ingredients-content {
    padding-left: 30px;
}

/* Ensure full width for image column */
.col-lg-6:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-lg-6:first-child .product-image {
    width: 100%;
    max-width: 100%;
    flex: 1;
}

/* Row alignment for better image display */
.row.align-items-center {
    align-items: stretch !important;
}

.col-lg-6:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ingredients-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.ingredients-content p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Ingredients List */
.ingredients-list {
    space-y: 20px;
}

.ingredient-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.ingredient-item:hover {
    background: #ffffff;
    border-left-color: #da000e;
    box-shadow: 0 5px 15px rgba(0,123,255,0.1);
    transform: translateX(5px);
}

.ingredient-item i {
    color: #da000e;
    font-size: 20px;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ingredient-item div {
    flex: 1;
}

.ingredient-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.ingredient-item p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 991px) {
    .ingredients-section {
        padding: 80px 0;
    }
    
    .ingredients-section .section-title {
        font-size: 32px;
    }
    
    .tab-navigation {
        gap: 10px;
    }
    
    .tab-btn {
        min-width: 160px;
        padding: 15px;
    }
    
    .tab-btn img {
        width: 50px;
        height: 50px;
    }
    
    .tab-btn span {
        font-size: 13px;
    }
    
    .ingredients-content {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .ingredients-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .ingredients-section {
        padding: 60px 0;
    }
    
    .ingredients-section .section-title {
        font-size: 28px;
    }
    
    .ingredients-section .section-description {
        font-size: 14px;
    }
    
    .tab-navigation {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .tab-btn {
        min-width: 250px;
        padding: 15px;
        display: flex;
        align-items: center;
        text-align: left;
    }
    
    .tab-btn img {
        width: 40px;
        height: 40px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .tab-btn span {
        font-size: 14px;
    }
    
    .ingredients-content h3 {
        font-size: 20px;
    }
    
    .ingredients-content p {
        font-size: 14px;
    }
    
    .ingredient-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .ingredient-item h4 {
        font-size: 15px;
    }
    
    .ingredient-item p {
        font-size: 13px;
    }
    
    /* Mobile image adjustments */
    .product-image {
        margin-bottom: 20px;
    }
    
    .product-image img {
        width: 100%;
        max-width: 100%;
    }
}

/* Loading Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ingredient-item {
    animation: slideInUp 0.6s ease forwards;
}

.ingredient-item:nth-child(1) { animation-delay: 0.1s; }
.ingredient-item:nth-child(2) { animation-delay: 0.2s; }
.ingredient-item:nth-child(3) { animation-delay: 0.3s; }
.ingredient-item:nth-child(4) { animation-delay: 0.4s; }