    /* Product Card Styles */
    .card {
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
    }
    .card:hover .product-img {
        transform: scale(1.05);
    }
    .add-to-cart-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        transition: all 0.2s;
    }
    .add-to-cart-btn:hover {
        background-color: #27ae60;
    }
    /* Force 5 cards per row on large screens */
    @media (min-width: 992px) {
        .col-lg-custom-5 {
            flex: 0 0 20%;
            max-width: 20%;
        }
        .row .col-lg-custom-5:nth-child(5n+1) {
            clear: left;
        }
    }
    @media (min-width: 768px) and (max-width: 991.98px) {
        .row .col-md-4:nth-child(3n+1) {
            clear: left;
        }
    }
    @media (max-width: 767.98px) {
        .row .col-6:nth-child(2n+1) {
            clear: left;
        }
    }

    .bookmark-badge {
    top: 10px;
    left: 10px;
    width: 40px;          /* Adjust for desired width */
    height: 80px;         /* Adjust for desired height */
    background-color: #cd0f0f;
    color: #fff;
    display: flex;
    align-items: center;   /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;

    /* Clip the bottom into a "bookmark" triangle shape */
    clip-path: polygon(
        0 0,      /* top-left corner */
        100% 0,   /* top-right corner */
        100% 85%, /* right edge at 85% height */
        50% 100%, /* triangle point at bottom-center */
        0 85%     /* left edge at 85% height */
    );
    }

    .carousel-item {
        min-height: 300px; /* Reduced from 350px back to 300px */
    }

    .carousel-item .card,
    .carousel-item .row {
    height: 80%;
    }

    .carousel-item img {
    object-fit: cover;
    height: 80%;
    width: 100%;
    transition: transform 0.7s ease;
    }

    /* New carousel styling for visual appeal */
    .carousel-item .card {
    border: none !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s ease;
    }

    .carousel-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    }



    .carousel-item .col-md-6 {
    transition: all 0.3s ease;
    }

    .carousel-item .col-md-6:first-child {
    background: linear-gradient(145deg, #f8f9fa, #eaecef) !important;
    border-radius: 10px 0 0 10px;
    }

    /* Button styling */
    .carousel-item .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 30px !important;
    padding: 5px 15px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .carousel-item .btn-dark {
    background: linear-gradient(135deg, #333333, #222222);
    border: none;
    }

    .carousel-item .btn-primary {
    background: linear-gradient(135deg, #7fad39, #69932f);
    border: none;
    }

    .carousel-item .btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .carousel-item h2 {
    font-weight: 800 !important;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
    letter-spacing: -0.5px;
    }

    /* Carousel controls */
    .carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    margin: 0 20px;
    }

    .carousel-control-prev {
    left: 0;
    }

    .carousel-control-next {
    right: 0;
    }

    .carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    }

    .carousel-indicators {
    bottom: -10px;
    }

    .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0 5px;
    transition: all 0.3s ease;
    }

    .carousel-indicators button.active {
    width: 30px;
    border-radius: 10px;
    background-color: #7fad39;
    }

    /* Modal styling */
    .modal-lg {
        max-width: 960px;
    }
    
    /* Image styling */
    .nutrition-image-container {
        position: relative;
        height: 95%;
        overflow: hidden;
        border-radius: 0 0 0 10px;
    }
    
    .nutrition-side-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.5s ease;
    }
    
    .nutrition-image-container:hover .nutrition-side-image {
        transform: scale(1.05);
    }
    
    .nutrition-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        text-align: center;
    }
    
    .nutrition-image-text {
        color: white;
    }
    
    .nutrition-image-text h3 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }
    
    .accent-line {
        height: 3px;
        width: 60px;
        background-color: #7fad39;
        margin: 0.5rem auto;
        border-radius: 3px;
    }
    
    /* Form styling */
    .form-step {
        display: none;
    }
    .form-step.active {
        display: block;
    }
    .step-indicator {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    .step {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: #e9ecef;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        font-weight: 600;
        transition: all 0.3s ease;
        font-size: 0.85rem;
    }
    .step.active {
        background-color: #7fad39;
        color: white;
        transform: scale(1.1);
    }
    .step.completed {
        background-color: #28a745;
        color: white;
    }
    .step-connector {
        flex: 1;
        height: 2px;
        background-color: #e9ecef;
        margin: 16px 8px;
        transition: all 0.3s ease;
        max-width: 80px;
    }
    .step-connector.active {
        background-color: #7fad39;
    }
    .form-navigation {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }
    .form-card {
        padding: 1.5rem 2rem;
        background-color: white;
        height: 100%;
        overflow-y: auto;
        max-height: 70vh;
    }
    .form-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .form-header h2 {
        color: #333;
        font-weight: 700;
        margin-bottom: 2px;
        font-size: 1.4rem;
    }
    .form-header p {
        color: #6c757d;
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 1.25rem;
        position: relative;
        padding-bottom: 8px;
        display: inline-block;
    }
    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #7fad39;
        border-radius: 2px;
    }
    .btn-primary {
        background-color: #7fad39;
        border-color: #7fad39;
        padding: 7px 14px;
        font-weight: 600;
        border-radius: 20px;
        transition: all 0.3s ease;
        font-size: 0.85rem;
    }
    .btn-primary:hover {
        background-color: #689230;
        border-color: #689230;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .btn-secondary {
        background-color: #6c757d;
        border-color: #6c757d;
        padding: 7px 14px;
        font-weight: 600;
        border-radius: 20px;
        transition: all 0.3s ease;
        font-size: 0.85rem;
    }
    .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #5a6268;
    }
    .form-label {
        font-weight: 500;
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        color: #555;
    }
    .form-text {
        font-size: 0.75rem;
        color: #888;
    }
    .form-check-label {
        color: #495057;
        font-size: 0.85rem;
    }
    .form-control, .form-select {
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        padding: 0.6rem 1rem;
        transition: all 0.2s ease;
    }
    .form-control:focus, .form-select:focus {
        border-color: #7fad39;
        box-shadow: 0 0 0 0.2rem rgba(127, 173, 57, 0.15);
    }
    
    /* New modular styling */
    .form-row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -5px;
        margin-left: -5px;
        margin-bottom: 15px;
    }
    .form-group {
        padding-right: 5px;
        padding-left: 5px;
        margin-bottom: 10px;
    }
    .custom-select-wrapper {
        position: relative;
        background-color: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
    }
    .custom-select-wrapper select {
        background-color: transparent;
    }
    .input-with-icon {
        position: relative;
    }
    .input-with-icon .form-control {
        padding-right: 30px;
    }
    .input-with-icon .input-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
    }
    .bmi-result-card {
        background-color: white;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        border-left: none;
        transition: all 0.3s ease;
    }
    .bmi-result-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .bmi-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .bmi-value-container {
        margin-bottom: 0;
    }
    .bmi-value-container h5 {
        font-size: 0.9rem;
        font-weight: 500;
        color: #666;
        margin-bottom: 8px;
    }
    .bmi-number {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
    }
    #bmi-value {
        font-size: 1.8rem;
        font-weight: 700;
        color: #333;
    }
    .bmi-category-badge {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 12px;
        background-color: #e6f7e6;
        color: #2c882c;
    }
    #bmi-category-description {
        font-size: 0.8rem;
        color: #666;
    }
    .bmi-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        border-radius: 50%;
        color: #7fad39;
        font-size: 1.2rem;
    }
    .bmi-progress-container {
        width: 100%;
        padding: 5px 0;
    }
    .bmi-scale-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.7rem;
        color: #888;
        margin-bottom: 2px;
    }
    .bmi-progress {
        display: flex;
        height: 12px;
        border-radius: 6px;
        overflow: visible; /* Changed from hidden to visible to allow marker to show outside */
        position: relative;
    }
    .bmi-range {
        height: 100%;
        position: relative;
    }
    .bmi-range.underweight {
        background-color: #4dabf7;
        width: 10%;
    }
    .bmi-range.normal {
        background-color: #69db7c;
        width: 25%;
    }
    .bmi-range.overweight {
        background-color: #ffd43b;
        width: 20%;
    }
    .bmi-range.obese {
        background-color: #ff6b6b;
        width: 45%;
    }
    .bmi-marker {
        position: absolute;
        width: 4px;
        height: 20px;
        background-color: #333;
        top: -4px;
        left: 0; /* Start position - will be set by JavaScript */
        transform: translateX(-50%);
        z-index: 5; /* Ensure it's above all other elements */
        border-radius: 2px;
        display: none;
        box-shadow: 0 0 4px rgba(0,0,0,0.3);
    }
    .bmi-scale {
        display: flex;
        justify-content: space-between;
        font-size: 0.7rem;
        color: #666;
        margin-top: 4px;
    }
    .bmi-scale span {
        position: relative;
        text-align: center;
    }
    .bmi-scale span:nth-child(1) {
        color: #4dabf7;
        margin-right: auto;
        text-align: left;
        width: 10%;
    }
    .bmi-scale span:nth-child(2) {
        color: #2c882c;
        width: 25%;
        text-align: center;
    }
    .bmi-scale span:nth-child(3) {
        color: #b8930c;
        width: 20%;
        text-align: center;
    }
    .bmi-scale span:nth-child(4) {
        color: #c92a2a;
        margin-left: auto;
        text-align: right;
        width: 45%;
    }
    .bmi-info {
        text-align: center;
        font-size: 0.75rem;
        color: #666;
        background-color: #f8f9fa;
        padding: 6px 10px;
        border-radius: 6px;
    }
    
    /* Cooking days styling */
    .cooking-days-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    .cooking-day-btn {
        padding: 6px 12px;
        border-radius: 6px;
        background-color: #f8f9fa;
        border: 1px solid #e0e0e0;
        cursor: pointer;
        transition: all 0.2s ease;
        font-weight: 500;
        font-size: 0.85rem;
        color: #555;
    }
    .cooking-day-btn:hover {
        background-color: #f1f1f1;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .cooking-day-btn.selected {
        background-color: #7fad39;
        color: white;
        border-color: #7fad39;
        box-shadow: 0 2px 8px rgba(127, 173, 57, 0.2);
    }
    
    /* Mobile responsiveness */
    @media (max-width: 767.98px) {
        .form-card {
            padding: 15px;
        }
        .nutrition-image-container {
            display: none;
        }
        .modal-lg {
            max-width: 100%;
            margin: 0.5rem;
        }
        .cooking-days-container {
            gap: 4px;
        }
        .cooking-day-btn {
            padding: 4px 8px;
            font-size: 0.75rem;
        }
        .step {
            width: 28px;
            height: 28px;
            font-size: 0.8rem;
        }
        .form-header h2 {
            font-size: 1.2rem;
        }
        .section-title {
            font-size: 1rem;
        }
        .form-group {
            margin-bottom: 8px;
        }
    }
    
    /* Modal styling */
    .modal-content {
        border: none;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }
    
    .modal-header {
        border-bottom: none;
        padding: 1.25rem 1.5rem 0.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
        font-weight: 600;
        color: #333;
        display: flex;
        align-items: center;
    }
    
    .modal-title-icon {
        color: #7fad39;
        margin-right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background-color: rgba(127, 173, 57, 0.1);
        border-radius: 50%;
    }
    
    .btn-close {
        background-color: rgba(0,0,0,0.05);
        border-radius: 50%;
        padding: 0.5rem;
        opacity: 1;
    }
    
    /* Button styling */
    .btn-primary, .btn-secondary {
        border-radius: 6px;
        padding: 0.5rem 1.25rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border: none;
    }
    
    .btn-primary {
        background-color: #7fad39;
    }
    
    .btn-primary:hover {
        background-color: #6c9430;
        box-shadow: 0 4px 10px rgba(127, 173, 57, 0.2);
    }
    
    .btn-secondary {
        background-color: #f1f1f1;
        color: #555;
    }
    
    .btn-secondary:hover {
        background-color: #e5e5e5;
        color: #333;
    }
    
    .form-navigation {
        display: flex;
        justify-content: space-between;
        margin-top: 1.5rem;
    }
    
    /* Form step indicators */
    .step-indicators {
        display: flex;
        justify-content: center;
        margin: 1rem 0 1.5rem;
    }
    
    .step-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #e0e0e0;
        margin: 0 5px;
        transition: all 0.2s ease;
    }
    
    .step-indicator.active {
        background-color: #7fad39;
        transform: scale(1.2);
    }
    
    /* Form card */
    .form-card {
        padding: 1.5rem 2rem;
        background-color: white;
        height: 100%;
        overflow-y: auto;
        max-height: 70vh;
    }
