/* CSV Digital Menu - Public Styles v7.7 (FINAL - Button and Menu Styles Corrected) */

.cdm-menu-category-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* --- Styles for Category Title --- */
.cdm-menu-category-title {
    font-size: 2.5em;
    text-align: center;
    text-transform: uppercase;
    margin: 0 auto 20px auto;
    color: inherit;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Styles for Back Button --- */
.cdm-button-wrap {
    text-align: center !important; /* This will center the button */
    margin-bottom: 40px !important;
    margin-top: 20px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Language Switcher for Category Buttons Pages */
.cdm-language-switcher-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px auto 30px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.cdm-language-switcher-wrap .cdm-language-switcher {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
}

.cdm-language-switcher-wrap .cdm-language-switcher select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    color: white !important;
    font-size: 14px !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.cdm-language-switcher-wrap .cdm-language-switcher select:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.cdm-back-button {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid #ffffff;
    border-radius: 50px; /* Pill shape */
    color: #ffffff;
    background-color: transparent;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cdm-back-button:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* --- Menu List and Item Styles --- */
.cdm-menu-list {
    list-style: none !important; 
    padding: 0 !important;
    margin: 0 !important;
    width: 100%; 
}

.elementor-widget-shortcode .cdm-menu-item { /* Use high specificity for the item itself */
    padding: 10px 0 !important; 
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}
.elementor-widget-shortcode .cdm-menu-item:last-child {
    border-bottom: none !important;
}

/* Use high specificity for the inner elements to override theme */
.elementor-widget-shortcode .cdm-item-title-line { 
    display: flex !important;       
    flex-direction: row !important; /* Force horizontal for all screen sizes */
    align-items: baseline !important;
    width: 100% !important;
    line-height: 1.4;
    margin-bottom: 4px; 
}

.elementor-widget-shortcode .cdm-item-name {
    flex-shrink: 1; 
    margin-right: 0.5em;
    font-weight: 600; 
}

.elementor-widget-shortcode .cdm-item-dots {
    flex-grow: 1 !important; 
    border-bottom: 1px dotted currentColor;
    margin-bottom: 0.4em; 
}

.elementor-widget-shortcode .cdm-item-price {
    flex-shrink: 0; 
    white-space: nowrap;
    margin-left: 0.5em;
    font-weight: 600; 
}

/* --- Image Styles --- */
.cdm-item-image-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.cdm-item-image-wrap:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cdm-item-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.cdm-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Image Popup Styles */
#cdm-image-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    z-index: 100001 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#cdm-image-popup-content {
    position: relative !important;
    max-width: 500px !important;
    max-height: 80vh !important;
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 auto !important;
}

.cdm-popup-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-height: 200px;
}

.cdm-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cdm-no-image {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

#cdm-image-popup-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
}

.cdm-popup-price {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    display: block;
}

.cdm-popup-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.cdm-popup-description:empty {
    display: none;
}

#cdm-image-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#cdm-image-popup-close:hover {
    color: #000;
}

/* Switchers Container - Positioned Above First Price */
.cdm-switchers-container {
    position: absolute;
    top: -45px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    font-size: 13px;
    z-index: 1000;
    width: auto;
}

/* Currency Switcher Styles */
.cdm-currency-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Language Switcher Styles */
.cdm-language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cdm-menu-category-wrap {
    position: relative;
}

.cdm-menu-list {
    position: relative;
}

.cdm-currency-switcher label,
.cdm-language-switcher label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cdm-currency-select,
.cdm-language-select {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-left: 8px;
    min-width: 60px;
    backdrop-filter: blur(5px);
    position: relative;
}

.cdm-currency-select:focus,
.cdm-language-select:focus {
    border-color: rgba(255, 255, 255, 0.6);
    outline: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1001;
}

.cdm-currency-select:hover,
.cdm-language-select:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

/* Fix dropdown positioning and ensure it's not clipped */
.cdm-currency-select {
    /* Ensure dropdown appears below the select */
    overflow: visible;
}

.cdm-currency-select option,
.cdm-language-select option {
    background: rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
}

/* Ensure the menu list doesn't clip the dropdown */
.cdm-menu-list {
    overflow: visible;
}

.cdm-menu-category-wrap {
    overflow: visible;
}

/* Mobile responsive popup */
@media (max-width: 768px) {
#cdm-image-popup-overlay {
padding: 10px;
}
    
#cdm-image-popup-content {
        max-width: 90vw;
        max-height: 85vh;
        margin: auto;
    }
    
    .cdm-popup-image-container {
        padding: 15px;
    }
    
    #cdm-image-popup-img {
        max-height: 300px;
    }
    
    .cdm-popup-info {
        padding: 15px;
    }
    
    #cdm-image-popup-title {
        font-size: 20px;
    }
    
    .cdm-popup-price {
        font-size: 16px;
    }
    
    .cdm-popup-description {
        font-size: 13px;
    }
    
    .cdm-switchers-container {
        position: absolute;
        top: -40px;
        right: 5px;
        gap: 10px;
    }
    
    .cdm-currency-switcher,
    .cdm-language-switcher {
        gap: 6px;
        margin: 0;
        padding: 3px 0;
        background: transparent;
        border: none;
        border-radius: 3px;
        justify-content: flex-end;
        width: auto;
        gap: 6px;
        font-size: 12px;
        z-index: 1000;
    }
    
    .cdm-currency-switcher label,
    .cdm-language-switcher label {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }
    
    .cdm-currency-select,
    .cdm-language-select {
        min-width: 50px;
        padding: 3px 6px;
        font-size: 11px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        background: rgba(0, 0, 0, 0.4);
        color: rgba(255, 255, 255, 0.9);
        border-radius: 3px;
        position: relative;
    }
}

.elementor-widget-shortcode .cdm-item-description {
    opacity: 0.8;
    line-height: 1.5;
    width: 100%; 
    font-size: 0.9em;
}

/* --- Read More & Popup Styles --- */
.cdm-read-more { /* Keep this selector simple */
    display: inline-block; margin-left: 8px; font-weight: bold; text-decoration: none; cursor: pointer;
    width: 24px; height: 24px; line-height: 22px; text-align: center;
    border: 1px solid #888; border-radius: 50%;
    font-size: 14px; color: #888; background-color: transparent;
    transition: all 0.2s ease-in-out; position: relative; top: 4px;
}
.cdm-read-more:hover { background-color: #888; color: #1a1a1a; }

#cdm-popup-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000; 
    display: none; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    box-sizing: border-box;
    animation: cdmFadeIn 0.2s ease;
}

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

#cdm-popup-content { 
    position: relative; 
    background-color: #1a1a1a; 
    color: #f0f0f0; 
    padding: 30px 40px; 
    border: 1px solid #444; 
    border-radius: 12px; 
    max-width: 600px; 
    width: 100%; 
    max-height: 80vh; 
    overflow-y: auto; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7); 
    text-align: left;
    animation: cdmSlideUp 0.3s ease;
}

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

#cdm-popup-title { 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-size: 1.6em; 
    line-height: 1.3; 
    color: #ffffff; 
    border-bottom: 1px solid #555; 
    padding-bottom: 10px; 
}

#cdm-popup-description { 
    font-size: 1em; 
    line-height: 1.7; 
    color: #cccccc; 
}
#cdm-popup-close { position: absolute; top: 10px; right: 15px; font-size: 30px; font-weight: bold; color: #aaaaaa; cursor: pointer; line-height: 1; transition: color 0.2s; }
#cdm-popup-close:hover { color: #ffffff; }

/* --- Responsive Image Styles --- */
@media (max-width: 1024px) {
    .cdm-item-image-wrap {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .cdm-item-image-wrap {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .elementor-widget-shortcode .cdm-menu-item {
        flex-direction: row; /* Keep horizontal layout on mobile */
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cdm-item-image-wrap {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }
}

/* Category Buttons Styling - NUCLEAR OVERRIDE */

/* NUCLEAR OVERRIDE - Remove all gray backgrounds */
.cdm-category-button,
.cdm-category-button *:not(.cdm-button-icon),
.cdm-category-button-item,
.cdm-category-button-item *:not(.cdm-button-icon) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* Category Buttons Styling */
.cdm-category-buttons-wrap {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px 0 !important;
}

.cdm-category-buttons-grid {
    display: grid !important;
    gap: 40px !important;
    margin: 0 auto !important;
    max-width: 1000px !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    place-items: center !important;
    width: 100% !important;
    justify-items: center !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    padding: 0 20px !important;
}

.cdm-category-button-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}
.cdm-category-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    padding: 10px !important;
    margin: 0 auto !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.cdm-category-button:hover {
    transform: translateY(-5px) !important;
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.cdm-button-icon {
    width: 240px !important;
    height: 240px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 20px auto !important;
    border: 4px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.cdm-category-button:hover .cdm-button-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cdm-category-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.cdm-no-image {
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.cdm-button-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    text-align: center !important;
}

.cdm-category-button:hover .cdm-button-title {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cdm-button-wrap {
        margin-bottom: 30px !important;
        margin-top: 15px !important;
    }
    
    .cdm-category-buttons-wrap {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 15px 0 !important;
    }
    
    .cdm-category-buttons-grid {
        gap: 25px !important;
        padding: 0 10px !important;
        justify-content: center !important;
        align-items: center !important;
        place-items: center !important;
        width: 100% !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        margin: 0 auto !important;
    }
    
    .cdm-category-button-item {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .cdm-category-button {
        margin: 0 auto;
        width: 100%;
    }
    
    .cdm-button-icon {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto 15px auto !important;
        border: 3px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .cdm-button-title {
        font-size: 20px !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cdm-button-wrap {
        margin-bottom: 25px !important;
        margin-top: 10px !important;
    }
    
    .cdm-category-buttons-wrap {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 10px 0 !important;
    }
    
    .cdm-category-buttons-grid {
        gap: 20px !important;
        justify-content: center !important;
        align-items: center !important;
        place-items: center !important;
        padding: 0 5px !important;
        width: 100% !important;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        margin: 0 auto !important;
    }
    
    .cdm-category-button-item {
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .cdm-category-button {
        margin: 0 auto;
        width: 100%;
    }
    
    .cdm-button-icon {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto 12px auto !important;
        border: 3px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .cdm-button-title {
        font-size: 18px !important;
        text-align: center;
    }
    
    .cdm-no-image {
        font-size: 20px !important;
    }
}

/* Mobile-specific FONT SIZES are handled by the inline styles from the plugin's admin settings. */

/* =====================================================================
   MODERN DESIGN MODE STYLES
   All styles prefixed with .cdm-design-modern to isolate from original design
   ===================================================================== */

/* Modern Design - Base Styles */
.cdm-design-modern {
    --cdm-modern-bg: transparent;
    --cdm-modern-bg-card: rgba(30, 30, 30, 0.6);
    --cdm-modern-bg-card-hover: rgba(40, 40, 40, 0.7);
    --cdm-modern-text: #ffffff;
    --cdm-modern-text-muted: rgba(255, 255, 255, 0.7);
    --cdm-modern-text-subtle: rgba(255, 255, 255, 0.5);
    --cdm-modern-border: rgba(255, 255, 255, 0.15);
    --cdm-modern-accent: #ff6b35;
    --cdm-modern-pill-bg: rgba(255, 255, 255, 0.1);
    --cdm-modern-pill-active: rgba(255, 255, 255, 0.2);
    --cdm-modern-radius: 16px;
    --cdm-modern-radius-sm: 8px;
    --cdm-modern-radius-pill: 50px;
}

/* Modern Design - Page Background Override - Transparent to show site background */
.cdm-design-modern .cdm-menu-category-wrap,
.cdm-design-modern .cdm-category-buttons-wrap {
    background: transparent !important;
}

/* Modern Design - Category Title */
.cdm-design-modern .cdm-menu-category-title {
    font-size: 1.8em !important;
    font-weight: 600 !important;
    text-transform: none !important;
    text-align: left !important;
    color: var(--cdm-modern-text) !important;
    border-bottom: none !important;
    padding: 20px 15px 10px 15px !important;
    margin: 0 !important;
}

/* Modern Design - Search Bar */
.cdm-design-modern .cdm-search-wrap {
    padding: 0 15px 20px 15px !important;
}

.cdm-design-modern .cdm-search-container {
    position: relative !important;
    width: 100% !important;
}

.cdm-design-modern .cdm-search-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.cdm-design-modern .cdm-search-input {
    width: 100% !important;
    padding: 14px 20px 14px 45px !important;
    background: rgba(30, 30, 30, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--cdm-modern-radius) !important;
    color: var(--cdm-modern-text) !important;
    font-size: 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.2s ease !important;
}

.cdm-design-modern .cdm-search-input:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(30, 30, 30, 0.85) !important;
}

.cdm-design-modern .cdm-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Original Design - Search Bar */
.cdm-search-wrap {
    padding: 0 15px 20px 15px !important;
}

.cdm-search-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cdm-search-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.cdm-search-input {
    width: 100% !important;
    padding: 14px 20px 14px 45px !important;
    background: rgba(30, 30, 30, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.cdm-search-input:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(30, 30, 30, 0.85) !important;
}

.cdm-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Base Filter Pills Styles */
.cdm-filter-pills-wrap {
    padding: 0 15px 25px 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    position: relative !important;
    background: transparent !important;
}

.cdm-filter-pills {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 15px !important;
    max-width: 100% !important;
    background: transparent !important;
}

.cdm-filter-pills::-webkit-scrollbar {
    display: none !important;
}

/* Scroll indicator line - starts at left, moves with scroll */
.cdm-scroll-indicator {
    display: block !important;
    width: 60px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    margin: 10px 0 0 0 !important;
    position: relative !important;
    left: 0 !important;
    transition: left 0.2s ease !important;
}

.cdm-filter-pill,
a.cdm-filter-pill {
    flex-shrink: 0 !important;
    padding: 8px 28px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 25px !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    font-family: inherit !important;
    text-decoration: none !important;
    display: inline-block !important;
    letter-spacing: 0.3px !important;
}

.cdm-filter-pill:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.cdm-filter-pill.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

/* =====================================================================
   STICKY HEADER (Modern Design Only - Task 2)
   ===================================================================== */

/* Sticky header container - DISABLED */
.cdm-design-modern .cdm-sticky-header {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Sticky header when scrolled - DISABLED */
.cdm-design-modern .cdm-sticky-header.is-stuck {
    box-shadow: none !important;
    background: transparent !important;
}

/* Category title inside sticky header */
.cdm-design-modern .cdm-sticky-header .cdm-menu-category-title {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    font-size: 24px !important;
    text-align: center !important;
}

/* Filter pills inside sticky header */
.cdm-design-modern .cdm-sticky-header .cdm-filter-pills-wrap {
    padding: 0 0 15px 0 !important;
    background: transparent !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .cdm-design-modern .cdm-sticky-header {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }
    
    .cdm-design-modern .cdm-sticky-header .cdm-menu-category-title {
        font-size: 20px !important;
        margin: 0 0 12px 0 !important;
    }
    
    .cdm-design-modern .cdm-sticky-header .cdm-filter-pills-wrap {
        padding: 0 0 12px 0 !important;
        background: transparent !important;
    }
}

/* iOS safe area support */
@supports (padding: max(0px)) {
    .cdm-design-modern .cdm-sticky-header {
        padding-left: max(20px, env(safe-area-inset-left)) !important;
        padding-right: max(20px, env(safe-area-inset-right)) !important;
        top: env(safe-area-inset-top, 0) !important;
    }
}

/* =====================================================================
   MENU SEARCH BAR (Task 4)
   ===================================================================== */

.cdm-menu-search-wrap {
    padding: 20px 15px !important;
    background: transparent !important;
}

.cdm-menu-search-wrap .cdm-search-container {
    position: relative !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.cdm-menu-search-wrap .cdm-search-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.cdm-menu-search-input {
    width: 100% !important;
    padding: 12px 45px 12px 45px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.cdm-menu-search-input:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.cdm-menu-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Clear button */
.cdm-search-clear {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.cdm-search-clear:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Results count */
.cdm-search-results-count {
    text-align: center !important;
    padding: 8px 0 0 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
}

/* No results message */
.cdm-search-no-results {
    text-align: center !important;
    padding: 40px 20px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 16px !important;
}

/* Highlight matched text */
.cdm-search-highlight {
    background: rgba(255, 255, 0, 0.3) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
}

/* =====================================================================
   CURRENCY SYSTEM ENHANCEMENTS (Task 8)
   ===================================================================== */

.cdm-item-price {
    transition: opacity 0.2s ease !important;
}

.cdm-currency-switcher {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.cdm-currency-switcher label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
}

.cdm-currency-select {
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.cdm-currency-select:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.cdm-currency-select:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Modern Design - Filter Pills/Chips */
.cdm-design-modern .cdm-filter-pills,
.cdm-design-modern .cdm-category-filter {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding: 0 15px 20px 15px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

.cdm-design-modern .cdm-filter-pills::-webkit-scrollbar,
.cdm-design-modern .cdm-category-filter::-webkit-scrollbar {
    display: none !important;
}

.cdm-design-modern .cdm-filter-pill,
.cdm-design-modern .cdm-filter-btn {
    flex-shrink: 0 !important;
    padding: 12px 24px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--cdm-modern-radius-pill) !important;
    color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.cdm-design-modern .cdm-filter-pill:hover,
.cdm-design-modern .cdm-filter-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.cdm-design-modern .cdm-filter-pill.active,
.cdm-design-modern .cdm-filter-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

/* Modern Design - Menu List */
.cdm-design-modern .cdm-menu-list {
    padding: 0 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

/* Modern Design - Menu Item Card - Large Image on Top */
.cdm-design-modern .cdm-menu-item {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    transition: all 0.2s ease !important;
    border-bottom: none !important;
}

.cdm-design-modern .cdm-menu-item:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Modern Design - Item Image - Large Full Width */
.cdm-design-modern .cdm-item-image-wrap {
    width: 100% !important;
    min-width: 100% !important;
    height: 220px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: var(--cdm-modern-radius) !important;
    cursor: pointer !important;
    order: -1 !important;
}

.cdm-design-modern .cdm-item-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.cdm-design-modern .cdm-item-image-wrap:hover img {
    transform: scale(1.05) !important;
}

/* Modern Design - Item Content - Below Image */
.cdm-design-modern .cdm-item-content {
    flex: 1 !important;
    padding: 15px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
}

.cdm-design-modern .cdm-item-title-line {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    flex-wrap: wrap !important;
}

.cdm-design-modern .cdm-item-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--cdm-modern-text) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    flex: 1 !important;
}

.cdm-design-modern .cdm-item-dots {
    display: none !important;
}

.cdm-design-modern .cdm-item-price {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--cdm-modern-text) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    order: 1 !important;
}


.cdm-design-modern .cdm-item-description {
    font-size: 14px !important;
    color: var(--cdm-modern-text-muted) !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
}

/* Modern Design - Weight/Portion Size */
.cdm-design-modern .cdm-item-weight {
    font-size: 14px !important;
    color: var(--cdm-modern-text-muted) !important;
    margin-left: 10px !important;
}

/* Modern Design - Category Buttons Grid */
.cdm-design-modern .cdm-category-buttons-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding: 15px !important;
}

/* Modern Design - Category Button Card - Full Width Image with Text Overlay */
.cdm-design-modern .cdm-category-button-item {
    width: 100% !important;
}

.cdm-design-modern .cdm-category-button {
    display: block !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    height: 180px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.cdm-design-modern .cdm-category-button:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4) !important;
}

.cdm-design-modern .cdm-button-icon {
    width: 100% !important;
    height: 100% !important;
    border-radius: 20px !important;
    border: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background: rgba(40, 40, 40, 0.5) !important;
}

.cdm-design-modern .cdm-button-icon::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%) !important;
    pointer-events: none !important;
    border-radius: 20px !important;
}

.cdm-design-modern .cdm-button-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
}

.cdm-design-modern .cdm-button-title {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 0 25px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    background: transparent !important;
    z-index: 2 !important;
    width: 100% !important;
}

/* Modern Design - Section Cards (Dnevni meni, Obrok salate, etc.) */
.cdm-design-modern .cdm-section-card {
    background: linear-gradient(135deg, var(--cdm-modern-bg-card) 0%, rgba(40, 40, 40, 1) 100%) !important;
    border: 1px solid var(--cdm-modern-border) !important;
    border-radius: var(--cdm-modern-radius) !important;
    padding: 25px !important;
    margin: 15px !important;
    text-align: center !important;
}

.cdm-design-modern .cdm-section-card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--cdm-modern-text) !important;
    margin-bottom: 8px !important;
}

.cdm-design-modern .cdm-section-card-subtitle {
    font-size: 14px !important;
    color: var(--cdm-modern-text-muted) !important;
}

/* Modern Design - Back Button */
.cdm-design-modern .cdm-back-button {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #1a1a1a !important;
    padding: 12px 30px !important;
    border-radius: var(--cdm-modern-radius-pill) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.cdm-design-modern .cdm-back-button:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Modern Design - Currency Switcher */
.cdm-design-modern .cdm-currency-switcher {
    background: var(--cdm-modern-bg-card) !important;
    border: 1px solid var(--cdm-modern-border) !important;
    border-radius: var(--cdm-modern-radius-sm) !important;
    padding: 8px 12px !important;
}

.cdm-design-modern .cdm-currency-switcher select {
    background: transparent !important;
    border: none !important;
    color: var(--cdm-modern-text) !important;
}

/* Modern Design - Language Switcher */
.cdm-design-modern .cdm-language-switcher {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.cdm-design-modern .cdm-language-switcher select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    color: white !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.cdm-design-modern .cdm-language-switcher select:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Modern Design - No Image Placeholder */
.cdm-design-modern .cdm-no-image {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(30, 30, 30, 0.8) 100%) !important;
    color: var(--cdm-modern-text-subtle) !important;
    font-size: 24px !important;
    border-radius: 20px !important;
}

/* Modern Design - Responsive Adjustments */
@media (min-width: 768px) {
    .cdm-design-modern .cdm-category-buttons-grid {
        gap: 20px !important;
        padding: 20px !important;
    }
    
    .cdm-design-modern .cdm-category-button {
        height: 200px !important;
    }
    
    .cdm-design-modern .cdm-button-title {
        font-size: 28px !important;
        letter-spacing: 3px !important;
    }
    
    .cdm-design-modern .cdm-item-image-wrap {
        height: 300px !important;
    }
    
    .cdm-design-modern .cdm-menu-list {
        padding: 0 20px !important;
        gap: 40px !important;
    }
    
    .cdm-design-modern .cdm-item-name {
        font-size: 20px !important;
    }
    
    .cdm-design-modern .cdm-item-price {
        font-size: 32px !important;
    }
}

@media (min-width: 1024px) {
    .cdm-design-modern .cdm-category-buttons-grid {
        max-width: 700px !important;
        margin: 0 auto !important;
    }
    
    .cdm-design-modern .cdm-category-button {
        height: 220px !important;
    }
    
    .cdm-design-modern .cdm-menu-list {
        max-width: 700px !important;
        margin: 0 auto !important;
    }
    
    .cdm-design-modern .cdm-item-image-wrap {
        height: 350px !important;
    }
}

/* Modern Design - Popup Overlay */
.cdm-design-modern #cdm-image-popup-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.cdm-design-modern #cdm-image-popup-content {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6) !important;
}

.cdm-design-modern #cdm-image-popup-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
}

.cdm-design-modern #cdm-image-popup-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.cdm-design-modern .cdm-popup-image-container {
    padding: 0 !important;
    background: transparent !important;
}

.cdm-design-modern #cdm-image-popup-img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    border-radius: 20px 20px 0 0 !important;
    display: block !important;
}

.cdm-design-modern .cdm-popup-info {
    background: transparent !important;
    border-top: none !important;
    padding: 20px !important;
}

/* Popup Title and Price Row */
.cdm-design-modern .cdm-popup-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    margin-bottom: 12px !important;
    gap: 15px !important;
}

.cdm-design-modern #cdm-image-popup-title {
    color: var(--cdm-modern-text) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    flex: 1 !important;
}

.cdm-design-modern #cdm-image-popup-price {
    color: var(--cdm-modern-text) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}


.cdm-design-modern #cdm-image-popup-description {
    color: var(--cdm-modern-text-muted) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

/* Popup Weight/Portion */
.cdm-design-modern .cdm-popup-weight {
    color: var(--cdm-modern-text-muted) !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
}

/* Popup Add-ons Section */
.cdm-design-modern .cdm-popup-addons {
    border-top: 1px solid var(--cdm-modern-border) !important;
    padding-top: 20px !important;
    margin-top: 10px !important;
}

.cdm-design-modern .cdm-popup-addons-title {
    color: var(--cdm-modern-text) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.cdm-design-modern .cdm-popup-addon-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--cdm-modern-border) !important;
}

.cdm-design-modern .cdm-popup-addon-item:last-child {
    border-bottom: none !important;
}

.cdm-design-modern .cdm-popup-addon-name {
    color: var(--cdm-modern-text) !important;
    font-size: 15px !important;
}

.cdm-design-modern .cdm-popup-addon-price {
    color: var(--cdm-modern-text) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}


/* Modern Design - Smooth Transitions */
.cdm-design-modern * {
    transition-property: background-color, border-color, color, transform, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}