/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--secondary-color);
}

/* Header */
.header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    width: 280px;
    height: 120px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Offers Section */
.offers-section {
    background: var(--white);
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.offers-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0 1rem;
    scroll-behavior: smooth;
}

.offers-carousel::-webkit-scrollbar {
    height: 6px;
}

.offers-carousel::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.offers-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.offer-card {
    min-width: 300px;
    height: 300px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-weight: 600;
}

/* Categories Navigation */
.categories-nav {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Dropdown Nav Style */
.categories-nav.nav-dropdown {
    padding: 0.75rem 0;
}
.categories-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background: var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s;
    border: 2px solid var(--light-gray);
}
.categories-dropdown-toggle:hover {
    border-color: var(--primary-color);
}
.categories-dropdown-toggle i {
    transition: transform 0.3s;
}
.categories-dropdown-toggle.open i {
    transform: rotate(180deg);
}
.categories-dropdown-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
    border-radius: 0 0 8px 8px;
}
.categories-dropdown-list.open {
    max-height: 500px;
}
.categories-dropdown-list a {
    display: block;
    padding: 0.75rem 1.2rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.2s;
}
.categories-dropdown-list a:last-child {
    border-bottom: none;
}
.categories-dropdown-list a:hover,
.categories-dropdown-list a.active {
    background: var(--primary-color);
    color: var(--on-primary, var(--white));
}

.categories-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1rem;
}

.categories-list::-webkit-scrollbar {
    height: 4px;
}

.categories-list::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.categories-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--on-primary, var(--white));
}

/* Menu Content */
.menu-content {
    padding: 2rem 0;
}

.category-section {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-header {
    background: var(--primary-color);
    color: var(--on-primary, var(--white));
    padding: 1.5rem;
    text-align: center;
}

.category-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.items-grid {
    padding: 1.5rem;
}

.menu-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dietary-icons {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.dietary-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dietary-icon:hover {
    transform: scale(1.1);
}

.dietary-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tooltip styles - Always centered on screen */
.dietary-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(44, 62, 80, 0.95);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    white-space: normal;
    min-width: 200px;
    max-width: 320px;
    width: max-content;
    text-align: center;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(15px);
    pointer-events: none;
}

.dietary-icon:hover .dietary-tooltip,
.dietary-icon.active .dietary-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Ensure menu items don't clip tooltips */
.menu-item {
    overflow: visible;
}

.category-section {
    overflow: visible;
}

.items-grid {
    overflow: visible;
}

.item-info {
    overflow: visible;
}

.dietary-icons {
    position: relative;
    overflow: visible;
}

.item-description {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.item-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.price {
    font-weight: 700;
    font-size: 1.25rem;
}

.price-ars {
    color: var(--primary-text, var(--primary-color));
}

.price-usd {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 700;
}

/* Empty States */
.empty-category {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.empty-category i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-offers {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Footer Delivery Switcher */
.footer-delivery-switcher {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer-mode-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}
.footer-mode-tab.active {
    background: var(--primary-color);
    color: var(--on-primary, var(--white));
}
.footer-mode-tab:hover:not(.active) {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.footer a {
    color: var(--primary-on-dark, var(--primary-color));
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header {
        padding: 0.8rem 0;
    }
    
    .logo-container {
        width: 220px;
        height: 88px;
    }
    
    .offer-card {
        min-width: 250px;
        height: 250px;
    }
    
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .item-prices {
        align-items: flex-start;
        flex-direction: row;
        gap: 1rem;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }

    .dietary-tooltip {
        max-width: calc(100vw - 2rem);
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .offers-carousel,
    .categories-list {
        padding: 0 0.5rem;
    }
    
    .items-grid {
        padding: 1rem;
    }
    
    .category-header {
        padding: 1rem;
    }

    .dietary-tooltip {
        min-width: 180px;
        max-width: calc(100vw - 1.5rem);
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Menu Mode Switcher */
.menu-mode-switcher {
    background: var(--white);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}
.mode-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.mode-tab {
    padding: 0.7rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--gray);
    background: var(--light-gray);
}
.mode-tab.active {
    background: var(--primary-color);
    color: var(--on-primary, var(--white));
}
.mode-tab:hover:not(.active) {
    background: #ddd;
}

/* Category Image */
.category-image {
    width: 100%;
    aspect-ratio: 4/1;
    overflow: hidden;
}
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== STYLE: MINIMALIST ========== */
.style-minimalist body {
    font-family: 'DM Sans', sans-serif;
    background: #fafafa;
}
.style-minimalist .header {
    background: #fafafa;
    box-shadow: none;
    border-bottom: 1px solid #eee;
}
.style-minimalist .categories-nav {
    background: #fafafa;
    box-shadow: none;
    border-bottom: 1px solid #eee;
}
.style-minimalist .category-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.style-minimalist .category-btn:hover,
.style-minimalist .category-btn.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.style-minimalist .category-section {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 3rem;
}
.style-minimalist .category-header {
    background: transparent;
    color: var(--dark);
    padding: 0 0 0.75rem 0;
    text-align: left;
    border-bottom: 2px solid var(--dark);
}
.style-minimalist .category-header h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.style-minimalist .items-grid {
    padding: 0.5rem 1rem;
}
.style-minimalist .category-header {
    padding: 0.75rem 1rem;
}
.style-minimalist .menu-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}
.style-minimalist .item-name {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
}
.style-minimalist .item-description {
    font-size: 0.85rem;
    color: #999;
}
.style-minimalist .price {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.style-minimalist .offers-section {
    background: transparent;
}
.style-minimalist .offer-card {
    border-radius: 4px;
}
.style-minimalist .footer {
    background: transparent;
    color: var(--dark);
    border-top: 1px solid #eee;
}
.style-minimalist .footer a {
    color: var(--dark);
}
.style-minimalist .footer-mode-tab {
    color: rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}
.style-minimalist .footer-mode-tab.active {
    background: var(--dark);
    color: #fff;
}
.style-minimalist .footer-mode-tab:hover:not(.active) {
    background: rgba(0,0,0,0.1);
    color: var(--dark);
}
.style-minimalist .categories-dropdown-toggle {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.style-minimalist .categories-dropdown-list a:hover,
.style-minimalist .categories-dropdown-list a.active {
    background: var(--dark);
}
.style-minimalist .category-image {
    border-radius: 0;
}

/* Minimalist dark mode adjustments */
.style-minimalist[data-theme="dark"] .category-section {
    background: transparent;
    box-shadow: none;
}
.style-minimalist[data-theme="dark"] .items-grid {
    padding: 0.5rem 1rem;
}
.style-minimalist[data-theme="dark"] .menu-item {
    border-bottom-color: var(--dm-border);
}

/* ========== STYLE: CLASSIC ========== */
.style-classic body {
    font-family: 'Playfair Display', Georgia, serif;
    background: #f8f5f0;
}
.style-classic .header {
    background: #2C2C2C;
    box-shadow: none;
    border-bottom: 3px double #8B7355;
}
.style-classic .logo-container {
    background: transparent;
    color: #d4c5a9;
}
.style-classic .categories-nav {
    background: #3a3a3a;
    box-shadow: none;
}
.style-classic .category-btn {
    background: transparent;
    color: #d4c5a9;
    border: 1px solid #8B7355;
    border-radius: 0;
    padding: 0.6rem 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
}
.style-classic .category-btn:hover,
.style-classic .category-btn.active {
    background: #8B7355;
    color: #fff;
}
.style-classic .category-section {
    background: #fffdf8;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #d4c5a9;
    margin-bottom: 2rem;
}
.style-classic .category-header {
    background: linear-gradient(135deg, #3a3a3a, #2C2C2C);
    color: #d4c5a9;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #8B7355;
}
.style-classic .category-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.style-classic .category-header h2::before,
.style-classic .category-header h2::after {
    content: ' \2014 ';
    color: #8B7355;
}
.style-classic .items-grid {
    padding: 1rem 1.5rem;
}
.style-classic .menu-item {
    padding: 1.2rem 0;
    border-bottom: 1px dashed #d4c5a9;
}
.style-classic .menu-item:last-child {
    border-bottom: none;
}
.style-classic .item-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #2C2C2C;
}
.style-classic .item-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #8B7355;
    font-style: italic;
}
.style-classic .price {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #8B7355;
}
.style-classic .offers-section {
    background: #fffdf8;
    border-bottom: 2px solid #d4c5a9;
}
.style-classic .offer-card {
    border-radius: 0;
    border: 1px solid #d4c5a9;
}
.style-classic .footer {
    background: #2C2C2C;
    border-top: 3px double #8B7355;
}
.style-classic .footer a {
    color: #d4c5a9;
}
.style-classic .footer-mode-tab {
    border-radius: 0;
    font-family: 'Playfair Display', serif;
    border: 1px solid #8B7355;
    background: transparent;
    color: #8B7355;
}
.style-classic .footer-mode-tab.active {
    background: #8B7355;
    color: #fff;
}
.style-classic .footer-mode-tab:hover:not(.active) {
    background: rgba(139,115,85,0.15);
}
.style-classic .categories-dropdown-toggle {
    background: #fffdf8;
    border: 1px solid #d4c5a9;
    border-radius: 0;
    font-family: 'Playfair Display', serif;
    color: #2C2C2C;
}
.style-classic .categories-dropdown-list a:hover,
.style-classic .categories-dropdown-list a.active {
    background: #8B7355;
}
.style-classic .category-image {
    border-radius: 0;
}

/* ========== STYLE: MODERN ========== */
.style-modern .category-section {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}
.style-modern .category-header {
    background-color: var(--primary-color);
    color: var(--on-primary, var(--white));
    background-image: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.18) 100%);
}
.style-modern .category-header h2 {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.style-modern .category-btn {
    border-radius: 25px;
    font-weight: 600;
}
.style-modern .offer-card {
    border-radius: 16px;
}
.style-modern .item-name {
    font-weight: 700;
}
.style-modern .price {
    font-weight: 700;
    font-size: 1.15rem;
}
.style-modern .category-image {
    border-radius: 16px 16px 0 0;
}

/* ========== FONT SIZE TOGGLE ========== */
.font-size-container {
    position: fixed;
    bottom: 8.5rem;
    right: 1.2rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.font-size-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--dark);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.font-size-btn:hover {
    transform: scale(1.1);
}
.font-size-options {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
}
.font-size-options.open {
    display: flex;
}
.font-size-opt {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    background: var(--white);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.font-size-opt:hover {
    transform: scale(1.1);
}
.font-size-opt.disabled {
    opacity: 0.35;
    pointer-events: none;
}
[data-theme="dark"] .font-size-btn {
    background: var(--white);
    color: var(--dark);
}
[data-theme="dark"] .font-size-opt {
    background: var(--dm-card, #1e2a45);
    color: var(--dm-text, #e0e0e0);
    border-color: var(--dm-text, #e0e0e0);
}

[data-fontsize="large"] .item-name { font-size: 1.45rem; }
[data-fontsize="large"] .item-description { font-size: 1.2rem; }
[data-fontsize="large"] .price { font-size: 1.45rem; }
[data-fontsize="large"] .price-usd { font-size: 1.15rem; }
[data-fontsize="large"] .category-header h2 { font-size: 2.2rem; }
[data-fontsize="large"] .category-btn { font-size: 1.05rem; }

[data-fontsize="xlarge"] .item-name { font-size: 1.65rem; }
[data-fontsize="xlarge"] .item-description { font-size: 1.35rem; }
[data-fontsize="xlarge"] .price { font-size: 1.65rem; }
[data-fontsize="xlarge"] .price-usd { font-size: 1.3rem; }
[data-fontsize="xlarge"] .category-header h2 { font-size: 2.5rem; }
[data-fontsize="xlarge"] .category-btn { font-size: 1.15rem; }

/* ========== DARK MODE ========== */
.theme-toggle {
    position: fixed;
    bottom: 5rem;
    right: 1.2rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--dark);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
    background: var(--white);
    color: var(--dark);
}

.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

[data-theme="dark"] {
    --dm-bg: #1a1a2e;
    --dm-surface: #16213e;
    --dm-card: #1e2a45;
    --dm-text: #e0e0e0;
    --dm-text-muted: #a0a0a0;
    --dm-border: #2a3a5c;
}

[data-theme="dark"] body {
    background: var(--dm-bg);
    color: var(--dm-text);
}

[data-theme="dark"] .header {
    background: var(--dm-surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

[data-theme="dark"] .logo-container {
    background: transparent;
    color: var(--dm-text);
}

[data-theme="dark"] .categories-nav {
    background: var(--dm-surface);
    border-bottom-color: var(--dm-border);
}

[data-theme="dark"] .category-btn {
    background: var(--dm-card);
    color: var(--dm-text);
    border-color: var(--dm-border);
}

[data-theme="dark"] .category-btn:hover,
[data-theme="dark"] .category-btn.active {
    background: var(--primary-color);
    color: var(--on-primary, var(--white));
}

[data-theme="dark"] .categories-dropdown-toggle {
    background: var(--dm-card);
    color: var(--dm-text);
    border-color: var(--dm-border);
}

[data-theme="dark"] .categories-dropdown-list {
    background: var(--dm-card);
    border-color: var(--dm-border);
}

[data-theme="dark"] .categories-dropdown-list a {
    color: var(--dm-text);
    border-bottom-color: var(--dm-border);
}

[data-theme="dark"] .category-section {
    background: var(--dm-card);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .category-header {
    background: var(--primary-color);
}

[data-theme="dark"] .menu-item {
    border-bottom-color: var(--dm-border);
}

[data-theme="dark"] .item-name {
    color: var(--dm-text);
}

[data-theme="dark"] .item-description {
    color: var(--dm-text-muted);
}

[data-theme="dark"] .price-ars {
    color: var(--primary-text, var(--primary-color));
}

[data-theme="dark"] .price-usd {
    color: var(--dm-text-muted);
}

[data-theme="dark"] .empty-category {
    color: var(--dm-text-muted);
}

[data-theme="dark"] .offers-section {
    background: var(--dm-surface);
}

[data-theme="dark"] .offer-card {
    background: var(--dm-card);
    color: var(--dm-text);
}

[data-theme="dark"] .footer {
    background: #0d1117;
}

[data-theme="dark"] .footer-mode-tab {
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .footer-mode-tab.active {
    background: var(--primary-color);
    color: var(--on-primary, var(--white));
}

[data-theme="dark"] .categories-list::-webkit-scrollbar-track {
    background: var(--dm-border);
}

[data-theme="dark"] .dietary-tooltip {
    background: rgba(30, 42, 69, 0.95);
}

/* Colores de marca legibles en modo oscuro (ver includes/color-contrast.php) */
[data-theme="dark"] .footer {
    color: var(--dm-text);
}
.style-minimalist[data-theme="dark"] .footer a:not(.footer-mode-tab) {
    color: var(--primary-text);
}
.style-minimalist[data-theme="dark"] .category-header {
    background: transparent;
    color: var(--dm-text);
    border-bottom-color: var(--primary-color);
}

/* Fotos de platos */
.menu-item.has-photo { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: start; gap: 1rem; }
.item-photo { width: 96px; height: 96px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--light-gray, #eee); }
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.item-photo:hover img { transform: scale(1.05); }
@media (max-width: 768px) {
    .menu-item.has-photo { grid-template-columns: 76px minmax(0, 1fr); gap: .85rem; }
    .menu-item.has-photo .item-photo { width: 76px; height: 76px; grid-row: span 2; }
    .menu-item.has-photo .item-prices { grid-column: 2; }
}
.photo-viewer { position: fixed; inset: 0; z-index: 10001; background: rgba(0, 0, 0, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; cursor: zoom-out; }
.photo-viewer[hidden] { display: none; }
.photo-viewer img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.photo-viewer-caption { color: #fff; font-weight: 600; font-size: 1.1rem; text-align: center; }
