/* Category Meals Sliders - Premium Modern Styles (Individual Sections) */

/* Scoped CSS Variables for Theming - No Global Conflicts */
.category-meals-slider-section {
    /* Component-specific prefixed variables */
    --cms-primary-color: #1B9C85;
    --cms-secondary-color: #7EC6B7;
    --cms-bg-light: #f8fcfa;
    --cms-text-dark: #374151;
    --cms-text-light: #6b7280;
    --cms-white: #ffffff;
    
    --cms-text-primary: #111827;
    --cms-text-secondary: #6B7280;
    --cms-text-light-alt: #9CA3AF;
    
    --cms-bg-primary: #FFFFFF;
    --cms-bg-secondary: #F9FAFB;
    --cms-bg-accent: #F3F4F6;
    
    --cms-border-color: #E5E7EB;
    --cms-border-hover: #D1D5DB;
    
    --cms-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --cms-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --cms-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --cms-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --cms-radius-sm: 0.375rem;
    --cms-radius-md: 0.5rem;
    --cms-radius-lg: 0.75rem;
    --cms-radius-xl: 1rem;
    
    --cms-transition-fast: 0.15s ease-out;
    --cms-transition-normal: 0.3s ease-out;
    --cms-transition-slow: 0.5s ease-out;
}

/* Category Sections - Individual Standalone */
.category-meals-slider-section {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 40px 0px;
}

/* Category Color Themes - Dynamic Generic Approach */
.category-meals-slider-section {
    --category-primary: #1B9C85;
    --category-secondary: #7EC6B7;
    --category-accent: rgba(27, 156, 133, 0.1);
}

/* Rotating color scheme for different products */
.category-meals-slider-section:nth-child(5n+1) {
    --category-primary: #1B9C85;
    --category-secondary: #7EC6B7;
    --category-accent: rgba(27, 156, 133, 0.1);
}

.category-meals-slider-section:nth-child(5n+2) {
    --category-primary: #22C55E;
    --category-secondary: #86EFAC;
    --category-accent: rgba(34, 197, 94, 0.1);
}

.category-meals-slider-section:nth-child(5n+3) {
    --category-primary: #EF4444;
    --category-secondary: #FCA5A5;
    --category-accent: rgba(239, 68, 68, 0.1);
}

.category-meals-slider-section:nth-child(5n+4) {
    --category-primary: #3B82F6;
    --category-secondary: #93C5FD;
    --category-accent: rgba(59, 130, 246, 0.1);
}

.category-meals-slider-section:nth-child(5n+5) {
    --category-primary: #A855F7;
    --category-secondary: #C4B5FD;
    --category-accent: rgba(168, 85, 247, 0.1);
}

/* Generic gradient backgrounds that work for all categories */
.category-meals-slider-section:nth-child(5n+1) .category-meals-slider-header::before {
    background: linear-gradient(135deg, 
        #1B9C85 0%, rgba(27, 156, 133, 0.95) 30%, rgba(27, 156, 133, 0.9) 50%, 
        rgba(27, 156, 133, 0.85) 70%, rgba(27, 156, 133, 0.75) 85%, rgba(27, 156, 133, 0.5) 100%);
}

.category-meals-slider-section:nth-child(5n+2) .category-meals-slider-header::before {
    background: linear-gradient(135deg, 
        #22C55E 0%, rgba(34, 197, 94, 0.95) 30%, rgba(34, 197, 94, 0.9) 50%, 
        rgba(34, 197, 94, 0.85) 70%, rgba(34, 197, 94, 0.75) 85%, rgba(34, 197, 94, 0.5) 100%);
}

.category-meals-slider-section:nth-child(5n+3) .category-meals-slider-header::before {
    background: linear-gradient(135deg, 
        #EF4444 0%, rgba(239, 68, 68, 0.95) 30%, rgba(239, 68, 68, 0.9) 50%, 
        rgba(239, 68, 68, 0.85) 70%, rgba(239, 68, 68, 0.75) 85%, rgba(239, 68, 68, 0.5) 100%);
}

.category-meals-slider-section:nth-child(5n+4) .category-meals-slider-header::before {
    background: linear-gradient(135deg, 
        #3B82F6 0%, rgba(59, 130, 246, 0.95) 30%, rgba(59, 130, 246, 0.9) 50%, 
        rgba(59, 130, 246, 0.85) 70%, rgba(59, 130, 246, 0.75) 85%, rgba(59, 130, 246, 0.5) 100%);
}

.category-meals-slider-section:nth-child(5n+5) .category-meals-slider-header::before {
    background: linear-gradient(135deg, 
        #A855F7 0%, rgba(168, 85, 247, 0.95) 30%, rgba(168, 85, 247, 0.9) 50%, 
        rgba(168, 85, 247, 0.85) 70%, rgba(168, 85, 247, 0.75) 85%, rgba(168, 85, 247, 0.5) 100%);
}

/* .category-meals-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
    opacity: 0.2;
    pointer-events: none;
    animation: backgroundSlide 20s linear infinite;
} */

@keyframes backgroundSlide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

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

/* Category Header - Compact with Background Image and Gradient Overlay */
.category-meals-slider-header {
    border-radius: var(--radius-xl);
  
    box-shadow: var(--cms-shadow-lg);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    transition: background-size var(--cms-transition-slow);
}



.category-meals-slider-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: opacity var(--cms-transition-normal);
    /* Gradient will be overridden by category-specific styles */
}



.category-meals-slider-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 4rem; /* Increased side padding to accommodate buttons */
    position: relative;
    z-index: 2;
}

.category-meals-slider-info {
    flex: 1;
    max-width: 70%;
}

.category-meals-slider-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.category-meals-slider-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.category-meals-slider-badge {
    display: inline-block;
}

.category-meals-slider-badge span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-meals-slider-info {
    max-width: 800px;
}

/* Meals Slider */
.category-meals-slider-wrapper {
    position: relative;
    /* background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl); */
    padding: 1rem;
    /* box-shadow: var(--shadow-lg); */
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Desktop - Ensure container can handle 4 cards */
@media (min-width: 1200px) {
    .category-meals-slider-wrapper {
        max-width: 1240px; /* Optimal width for 4 cards */
        margin-left: auto;
        margin-right: auto;
    }
}

.category-meals-slider {
    overflow: hidden;
    border-radius: var(--cms-radius-lg);
}

.category-meals-slider-track {
    display: flex;
    gap: 1rem; /* Reduced from 1.5rem */
    transition: transform var(--cms-transition-normal);
    padding: 0.5rem;
}

.category-meals-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--category-primary, var(--cms-primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--cms-transition-normal);
    z-index: 10;
    color: var(--category-primary, var(--cms-primary-color));
    box-shadow: var(--cms-shadow-lg);
}

.category-meals-slider-nav-btn:hover {
    background: var(--category-primary, var(--cms-primary-color));
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.category-meals-slider-prev {
    left: -25px; /* Moved inside container */
}

.category-meals-slider-next {
    right: -25px; /* Moved inside container */
}

.category-meals-slider-nav-btn svg {
    width: 20px;
    height: 20px;
}
.category-meals-slider-order-btn{
text-align:center;
 margin-bottom:30px;
}
.category-meals-slider-order-btn a{
    
    padding:10px 20px;
    font-size:30px;
    font-weight: 600;
    border: 1px solid #1B9C85;
    color:#1B9C85;
    border-radius:5px;
    
}
.category-meals-slider-order-btn a:hover{
color:#fff;
    background:#1B9C85;
}
/* Meal Cards */
.category-meals-slider-meal-card {
    flex: 0 0 calc((100% - 3rem) / 4); /* 4 cards with 1rem gaps: (100% - 3 × 1rem) ÷ 4 */
    background: white;
    border-radius: var(--cms-radius-lg);
    overflow: hidden;
    box-shadow: var(--cms-shadow-md);
    transition: all var(--cms-transition-normal);
    cursor: pointer;
    position: relative;
}

/* Empty State Styles */
.category-meals-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(249, 250, 251, 0.95) 100%);
    border-radius: var(--cms-radius-xl);
    border: 2px dashed var(--category-primary, var(--cms-primary-color));
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.category-meals-empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, 
        rgba(var(--category-primary, var(--cms-primary-color)), 0.05) 0%, 
        transparent 50%);
    pointer-events: none;
}

.category-meals-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--category-accent, rgba(27, 156, 133, 0.1));
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.category-meals-empty-icon svg {
    width: 100%;
    height: 100%;
    color: var(--category-primary, var(--cms-primary-color));
    stroke-width: 1.5;
}

.category-meals-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cms-text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.category-meals-empty-description {
    font-size: 1rem;
    color: var(--cms-text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.category-meals-empty-cta {
    position: relative;
    z-index: 1;
}

.category-meals-empty-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--category-primary, var(--cms-primary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--cms-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--cms-transition-normal);
    box-shadow: var(--cms-shadow-md);
}

.category-meals-empty-button:hover {
    background: var(--category-secondary, var(--cms-secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--cms-shadow-lg);
    text-decoration: none;
    color: white;
}

.category-meals-slider-meal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cms-shadow-xl);
}

.category-meals-slider-meal-image-container {
    position: relative;
    height: 180px; /* Reduced from 240px */
    overflow: hidden;
}

/* Info Button Styles - Redesigned for Better Visibility */
.category-meals-info-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100; /* High z-index to ensure visibility */
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.category-meals-info-btn:hover {
    background: var(--category-primary, var(--cms-primary-color));
    color: white;
    border-color: var(--category-primary, var(--cms-primary-color));
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.category-meals-info-btn:active {
    transform: scale(1.05);
}

.category-meals-info-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    transition: all 0.2s ease;
}

/* Ensure info button stays visible on mobile with higher z-index */
@media (max-width: 768px) {
    .category-meals-info-btn {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        z-index: 200; /* Even higher on mobile */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid rgba(0, 0, 0, 0.15);
    }
    
    .category-meals-info-btn svg {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 480px) {
    .category-meals-info-btn {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        z-index: 200;
    }
    
    .category-meals-info-btn svg {
        width: 16px;
        height: 16px;
    }
}

.category-meals-slider-meal-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform var(--cms-transition-normal);
}

.category-meals-slider-meal-card:hover .category-meals-slider-meal-image {
    transform: scale(1.05);
}

.category-meals-slider-meal-overlay {
   position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}


.category-meals-slider-meal-card:hover .category-meals-slider-meal-overlay {
    opacity: 1;
}


.category-meals-slider-meal-content {
    padding: 1rem; /* Reduced from 1.5rem */
}

.category-meals-slider-meal-tags {
    display: flex;
    gap: 0.375rem; /* Reduced from 0.5rem */
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    flex-wrap: wrap;
}

.category-meals-slider-meal-tag {
    padding: 0.2rem 0.6rem; /* Reduced from 0.25rem 0.75rem */
    background: var(--category-accent, rgba(102, 126, 234, 0.1));
    color: var(--category-primary, var(--cms-primary-color));
    border-radius: var(--cms-radius-sm);
    font-size: 0.7rem; /* Reduced from 0.75rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-meals-slider-meal-title {
    font-size: 1.1rem; /* Reduced from 1.25rem */
    font-weight: 700;
    color: var(--cms-text-primary);
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    line-height: 1.3;
}

.category-meals-slider-meal-description {
    color: var(--cms-text-secondary);
    line-height: 1.5; /* Reduced from 1.6 */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    font-size: 0.85rem; /* Reduced from 0.95rem */
    overflow: hidden;
  display: block;
  display: -webkit-box;        /* keep for wide compatibility */
  -webkit-box-orient: vertical;
  line-clamp: 2;               /* future-friendly shorthand where supported */
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.category-meals-slider-meal-macros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem; /* Reduced from 0.75rem */
    padding-top: 0.75rem; /* Reduced from 1rem */
    border-top: 1px solid var(--cms-border-color);
}

.category-meals-slider-macro {
    text-align: center;
}

.category-meals-slider-macro-value {
    display: block;
    font-weight: 700;
    color: var(--cms-text-primary);
    font-size: 0.8rem; /* Reduced from 0.9rem */
    margin-bottom: 0.2rem; /* Reduced from 0.25rem */
}

.category-meals-slider-macro-label {
    font-size: 0.7rem; /* Reduced from 0.75rem */
    color: var(--cms-text-light-alt);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



/* Responsive Design */
/* Tablet and Large Mobile - Adjust button positioning */
@media (max-width: 1024px) {
    .category-meals-slider-content {
        padding: 1.5rem 2.5rem; /* Reduce side padding for better button positioning */
    }
    
    .category-meals-slider-prev {
        left: 10px; /* Move buttons closer on smaller screens */
    }

    .category-meals-slider-next {
        right: 10px; /* Move buttons closer on smaller screens */
    }
}

@media (max-width: 1200px) {
    .category-meals-slider-section {
        max-width: 100%;
        margin: 2rem auto;
        border-radius: 0;
    }
    
    .category-meals-slider-meal-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 768px) {
    .category-meals-slider-section {
        margin: 1.5rem auto;
        padding: 1.5rem 1rem;
    }
    
    /* Compact Header - Mobile */
    .category-meals-slider-content {
        padding: 1.25rem 1.5rem;
    }
    
    .category-meals-slider-info {
        max-width: 100%;
    }
    
    .category-meals-slider-title {
        font-size: 1.5rem;
    }
    
    .category-meals-slider-description {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .category-meals-slider-header {
        min-height: 100px;
        background-position: center;
    }
    
    .category-meals-slider-wrapper,
    .category-footer {
        padding: 1.5rem;
    }
    
    .category-meals-slider-meal-card {
        flex: 0 0 calc(45vw);
        max-width: calc(45vw);
    }
    
    .category-meals-slider-track {
        gap: 1rem;
    }
    
    .category-meals-slider-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .category-meals-slider-prev {
        left: -12px;
    }
    
    .category-meals-slider-next {
        right: -12px;
    }
    
    /* Empty State Mobile */
    .category-meals-empty-state {
        padding: 2rem 1.5rem;
        min-height: 250px;
    }
    
    .category-meals-empty-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .category-meals-empty-title {
        font-size: 1.25rem;
    }
    
    .category-meals-empty-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Tablet - Show 2-3 cards */
@media (min-width: 769px) and (max-width: 1199px) {
    .category-meals-slider-meal-card {
        flex: 0 0 calc(33.333% - 1rem); /* Show 3 cards on larger tablets */
        max-width: calc(33.333% - 1rem);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .category-meals-slider-meal-card {
        flex: 0 0 calc(50% - 0.75rem); /* Show 2 cards on smaller tablets */
        max-width: calc(50% - 0.75rem);
    }
}

/* Show navigation buttons on mobile but make them smaller */
@media (max-width: 768px) {
    .category-meals-slider-nav-btn {
        display: flex !important;
        width: 35px;
        height: 35px;
        z-index: 20;
        opacity: 0.7 !important; /* Reduced opacity for better text readability */
        background: rgba(255, 255, 255, 0.85); /* More transparent background */
    }
    
    .category-meals-slider-prev {
        left: -10px; /* Move further inside container */
         top:35%;
    }
    
    .category-meals-slider-next {
        right: -10px; /* Move further inside container */
        top:35%;
    }
    
    .category-meals-slider-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Override disabled state styling on mobile */
    .category-meals-slider-nav-btn.disabled {
        opacity: 0.5 !important; /* Keep consistent opacity */
        pointer-events: auto !important;
    }
    
    /* Slight hover effect for mobile */
    .category-meals-slider-nav-btn:active {
        opacity: 0.9 !important;
        transform: translateY(-50%) scale(0.95);
    }
}

@media (max-width: 480px) {
    .category-meals-slider-section {
        padding: 1rem 0.5rem;
        margin: 1rem auto;
    }
    
    /* Compact Header - Very Small Mobile */
    .category-meals-slider-content {
        padding: 1rem;
    }
    
    .category-meals-slider-title {
        font-size: 1.25rem;
    }
    
    .category-meals-slider-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .category-image {
        height: 80px;
    }
    
    .category-meals-slider-badge span {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .category-meals-slider-meal-card {
        flex: 0 0 92vw; /* Full viewport width for each card */
        max-width: 92vw;
        margin: 0px 10px;
        scroll-snap-align: center; /* Center the card */
        scroll-snap-stop: always;
    }
    
    .category-meals-slider-meal-macros {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-meals-slider-track {
        gap: 0; /* Remove all gaps */
        padding: 0; /* Remove padding */
        width: max-content;
    }
    
    .category-meals-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        margin: 0 -1rem; /* Negative margin to break out of wrapper padding */
    }
    
    .category-meals-slider-wrapper {
        padding: 1rem 0; /* Remove horizontal padding, keep vertical */
        margin: 0; /* Remove any margins */
    }
    
    /* Custom scrollbar for mobile */
    .category-meals-slider::-webkit-scrollbar {
        height: 6px;
    }
    
    .category-meals-slider::-webkit-scrollbar-track {
        background: var(--cms-bg-accent);
        border-radius: 2px;
    }
    
    .category-meals-slider::-webkit-scrollbar-thumb {
        background: var(--category-primary, var(--cms-primary-color));
        border-radius: 2px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .category-meals-sliders-container {
        background: white;
    }
    
    .category-meals-slider-meal-card {
        border: 2px solid var(--cms-text-primary);
    }
    
    .category-nav-tab {
        border: 2px solid var(--cms-text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none;
    }
    
    .backgroundSlide {
        animation: none;
    }
}

/* ==================== CATEGORY MEALS SLIDER MODAL STYLES ==================== */

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

.category-meals-slider-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.category-meals-slider-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.category-meals-slider-modal-container {
    position: relative;
    background: #EDF6EE;
    border-radius: 20px;
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 4px 20px -4px rgba(0, 0, 0, 0.2);
    transform: scale(0.92) translateY(30px);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

/* Custom scrollbar styling */
.category-meals-slider-modal-container::-webkit-scrollbar {
    width: 8px;
}

.category-meals-slider-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.category-meals-slider-modal-container::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.3);
    border-radius: 4px;
}

.category-meals-slider-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.5);
}

.category-meals-slider-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
    width: 44px;
    height: 44px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-meals-slider-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
}

.category-meals-slider-modal-close:active {
    transform: scale(0.98);
}

.category-meals-slider-modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.category-meals-slider-modal-content {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    position: relative;
}

.category-meals-slider-modal-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.category-meals-slider-modal-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-meals-slider-modal-hero:hover .category-meals-slider-modal-hero-image {
    transform: scale(1.02);
}

.category-meals-slider-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.3) 100%
    );
}

.category-meals-slider-modal-card-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.category-meals-slider-modal-main {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0;
    min-height: 400px;
}

.category-meals-slider-modal-image {
    position: relative;
    background: #EDF6EE;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.category-meals-slider-modal-image img {
    width: 100%;
    height: 280px !important;
    object-fit: cover  !important;
    display: block;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.category-meals-slider-modal-badge {
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 20;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: rgba(0, 0, 0, 0.85);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.category-meals-slider-modal-badge svg {
    width: 14px;
    height: 14px;
}

.category-meals-slider-modal-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap:20px;
    margin-top:20px;
}

.category-meals-slider-modal-nutrition-container {
    width: 100%;
    padding: 24px 32px 32px;
    background: #EDF6EE;
    border-top: 1px solid #e2e8f0;
}

.category-meals-slider-modal-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-meals-slider-modal-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.category-meals-slider-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-meals-slider-modal-tags .meal-modal-tag {
    background: var(--category-accent, rgba(27, 156, 133, 0.1));
    color: var(--category-primary, #1B9C85);
    border: 1.5px solid var(--category-primary, #1B9C85);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-meals-slider-modal-tags .meal-modal-tag:hover {
    background: var(--category-primary, #1B9C85);
    color: white;
    transform: translateY(-1px);
}

.category-meals-slider-modal-description-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-meals-slider-modal-description-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.category-meals-slider-modal-description-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--category-primary, #1B9C85);
    border-radius: 2px;
    flex-shrink: 0;
}

.category-meals-slider-modal-description-text {
    color: #475569;
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.category-meals-slider-modal-nutrition-section {
    background: #EDF6EE;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-meals-slider-modal-nutrition-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom:10px;
}
.category-meals-slider-modal-ingredients-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    display: flex;
    align-items: center;
    gap: 12px;
   
}

.category-meals-slider-modal-nutrition-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #10b981;
    border-radius: 2px;
    flex-shrink: 0;
}
.category-meals-slider-modal-ingredients-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #10b981;
    border-radius: 2px;
    flex-shrink: 0;
}
.category-meals-slider-modal-ingredients-content{
margin-bottom:20px;
line-height:1.7;
font-size:16px;
font-weight:400;
}

.category-meals-slider-modal-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-meals-slider-modal-nutrition-item {
    background: #EDF6EE;
    border: 1px solid #e2e8f0;
    padding: 24px 16px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-meals-slider-modal-nutrition-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--category-primary, #1B9C85) 0%, 
        var(--category-secondary, #7EC6B7) 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-meals-slider-modal-nutrition-item:hover {
    background: #EDF6EE;
    border-color: var(--category-primary, #1B9C85);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(27, 156, 133, 0.12);
}

.category-meals-slider-modal-nutrition-item:hover::before {
    opacity: 1;
}

.category-meals-slider-modal-nutrition-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--category-primary, #1B9C85);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.category-meals-slider-modal-nutrition-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-top: 4px;
}

.category-meals-slider-modal-footer {
    padding: 24px 32px 32px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
}

.category-meals-slider-modal-btn {
    background: linear-gradient(135deg, 
        var(--category-primary, #1B9C85) 0%, 
        var(--category-secondary, #7EC6B7) 100%);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    min-width: 140px;
    box-shadow: 0 4px 14px rgba(27, 156, 133, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-meals-slider-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(27, 156, 133, 0.35);
    background: linear-gradient(135deg, 
        var(--category-secondary, #7EC6B7) 0%, 
        var(--category-primary, #1B9C85) 100%);
}

.category-meals-slider-modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 156, 133, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-meals-slider-modal-overlay {
        padding: 16px;
        padding-top: 40px; /* Space for mobile browser UI */
        padding-bottom: 40px;
        align-items: flex-end;
    }
    
    .category-meals-slider-modal-container {
        max-height: 85vh;
        max-width: 95vw;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        animation: modalSlideUpMobile 0.3s ease-out 0.1s forwards;
    }
    
    .category-meals-slider-modal-main {
        grid-template-columns: 1fr;
    }
    
    .category-meals-slider-modal-image {
        height: auto;
        padding: 20px;
    }
    
    .category-meals-slider-modal-image img {
        height: 200px;
    }
    
    .category-meals-slider-modal-details {
        padding: 24px;
    }
    
    .category-meals-slider-modal-nutrition-container {
        padding: 20px 24px 24px;
    }
    
    .category-meals-slider-modal-title {
        font-size: 24px;
        margin-right: 40px;
    }
    
    .category-meals-slider-modal-close {
        top: 20px; /* Fixed position that stays within modal bounds */
        right: 20px;
        width: 36px;
        height: 36px;
    }
    
    .category-meals-slider-modal-badge {
        top: 12px;
        left: 12px;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .category-meals-slider-modal-nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-meals-slider-modal-nutrition-item {
        padding: 16px;
    }
    
    .category-meals-slider-modal-nutrition-value {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .category-meals-slider-modal-nutrition-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .category-meals-slider-modal-overlay {
        padding: 16px;
        padding-top: 60px; /* Space for mobile browser address bar */
        padding-bottom: 60px; /* Space for mobile browser navigation */
    }
    
    .category-meals-slider-modal-container {
        border-radius: 12px;
        max-height: 80vh; /* Conservative height that accounts for browser UI */
    }
    
    .category-meals-slider-modal-image {
        padding: 16px;
    }
    
    .category-meals-slider-modal-image img {
        height: 160px;
    }
    
    .category-meals-slider-modal-details {
        padding: 20px;
    }
    
    .category-meals-slider-modal-nutrition-container {
        padding: 16px 20px 20px;
    }
    
    .category-meals-slider-modal-title {
        font-size: 20px;
    }
    
    .category-meals-slider-modal-description div,
    .category-meals-slider-modal-nutrition div {
        font-size: 14px;
    }
    
    .category-meals-slider-modal-description div {
        font-size: 14px;
    }
    
    .category-meals-slider-modal-nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-meals-slider-modal-nutrition-item {
        padding: 12px;
    }
    
    .category-meals-slider-modal-nutrition-value {
        font-size: 18px;
    }
    
    .category-meals-slider-modal-nutrition-label {
        font-size: 10px;
    }
}

@keyframes modalSlideUpMobile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}