/* QR Menu Stylesheet - Clean Rewrite */

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    max-width: 480px;
    margin: 0 auto;
}

/* Custom Scrollbar for a premium look */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- CSS Variables --- */
:root {
    --primary-color: #006ba6;
    --hover-color: #0496ff;
    --text-primary: #0f172a;
    --text-secondary: #6c757d;
    --bg-light: #f8fafc;
    --nav-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
}

.dark-mode-toggle {
    touch-action: manipulation !important;
    position: absolute !important;
    left: 12px !important;
    bottom: -50px !important;
    top: auto !important;
    right: auto !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 100 !important;
    width: 60px !important;
    height: 32px !important;
}

.toggle-track {
    width: 60px;
    height: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #87CEEB, #4DA6DB);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: background 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggle-sun {
    font-size: 0.75rem;
    color: #FFD700;
    z-index: 1;
}

.toggle-moon {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.toggle-thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

/* Dark mode active toggle state */
body.dark-mode .toggle-track {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.dark-mode .toggle-sun {
    color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .toggle-moon {
    color: #E8E8FF;
}

body.dark-mode .toggle-thumb {
    transform: translateX(28px);
    background: #2c2c4a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ===== GLOBAL DARK MODE THEME COLORS (MUST BE TOP LEVEL) ===== */
/* User's Custom Luxury Dark Gold Theme */
body.dark-mode {
    background-color: #0B0B0B !important;
    color: #E5E5E5 !important;
    --primary-color: #D4AF37;
    --hover-color: #B89528;
    --text-primary: #E5E5E5;
    --text-secondary: #9CA3AF;
    --bg-light: #0B0B0B;
    --nav-bg: #1F2937;
    --card-bg: #1F2937;
    --border-color: rgba(229, 229, 229, 0.1);
}

body.dark-mode .brand-name {
    color: #f0f0f0;
}

body.dark-mode .brand-logo {
    border-color: #333;
}

body.dark-mode .sticky-nav-wrapper {
    background: #1a1a1a;
}

body.dark-mode .category-nav {
    border-bottom-color: #333;
}

body.dark-mode .category-btn {
    background-color: #2a2a2a;
    color: #999;
}

body.dark-mode .category-btn.active {
    background-color: #e0e0e0;
    color: #111;
    font-weight: bold;
}

body.dark-mode .menu-container {
    background: #121212;
}

body.dark-mode .menu-section {
    color: #e0e0e0;
}

body.dark-mode .section-title {
    color: #f0f0f0;
    border-bottom-color: #333;
}

body.dark-mode .menu-item {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .item-title {
    color: #f0f0f0;
}

body.dark-mode .item-description {
    color: #999;
}

body.dark-mode .item-price {
    color: #FF8A8A;
}

body.dark-mode .add-to-cart-btn {
    border-color: #FF8A8A;
    color: #FF8A8A;
}

body.dark-mode .add-to-cart-btn:hover {
    background-color: #FF8A8A;
    color: #121212;
}

body.dark-mode .floating-cart {
    background-color: #f0f0f0;
    color: #121212;
}

body.dark-mode .item-modal-content,
body.dark-mode .cart-modal-content {
    background: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .lang-btn-current {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .lang-btn-current:hover {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .lang-dropdown {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .lang-option {
    color: #e0e0e0;
}

body.dark-mode .lang-option:hover {
    background: #2a2a2a;
    color: #fff;
}

body.dark-mode .modal-item-header h2 {
    color: #f0f0f0;
}

body.dark-mode .modal-item-desc {
    color: #999;
}

body.dark-mode .total-row {
    border-top-color: #555;
    color: #f0f0f0;
}

body.dark-mode .customer-phone-input input {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .social-circle-btn {
    background-color: #2a2a2a;
}

body.dark-mode .social-circle-btn i {
    color: #ccc;
}

body.dark-mode .contact-call-link {
    color: #ccc;
}

body.dark-mode .contact-call-link i {
    color: #ccc;
}

body.dark-mode .page-loader {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .spinner {
    border-color: #2a2a2a;
    border-top-color: var(--primary-color);
}

/* Dark Mode Search Input Override */
body.dark-mode #menu-search-input {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode #menu-search-input::placeholder {
    color: #999999;
}

body.dark-mode .search-icon {
    color: #999999;
}

/* --- CUSTOM THEMES (LIGHT MODE ONLY) --- */
body.theme-rum-chocolate:not(.dark-mode) {
    background-color: #450E16 !important;
    --card-bg: #5a121d;
    --nav-bg: #5a121d;
    --nav-bg-glass: rgba(90, 18, 29, 0.85);
    --bg-light: #5a121d;
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
    --border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.theme-rum-chocolate:not(.dark-mode) .section-title,
body.theme-rum-chocolate:not(.dark-mode) .brand-name {
    color: #ffffff;
}

body.theme-rum-chocolate:not(.dark-mode) .section-title {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.theme-rum-chocolate:not(.dark-mode) .category-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.theme-rum-chocolate:not(.dark-mode) .category-btn.active {
    background-color: #ffffff;
    color: #450E16;
}


body.theme-yoghurt:not(.dark-mode) {
    background-color: #F5E9CE !important;
    --card-bg: #E8D9B4;
    --nav-bg: #E8D9B4;
    --nav-bg-glass: rgba(232, 217, 180, 0.85);
    --bg-light: #E8D9B4;
    --border-color: rgba(0, 0, 0, 0.08);
}

body.theme-vivid-orange:not(.dark-mode) {
    background-color: #FFA102 !important;
    --card-bg: #FFCC80;
    --nav-bg: #FFCC80;
    --nav-bg-glass: rgba(255, 204, 128, 0.85);
    --bg-light: #FFCA70;
    --border-color: rgba(255, 255, 255, 0.3);
}

body.theme-oceanic-noir:not(.dark-mode) {
    background-color: #172B36 !important;
    --card-bg: #223F4F;
    --nav-bg: #223F4F;
    --nav-bg-glass: rgba(34, 63, 79, 0.85);
    --bg-light: #223F4F;
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
    --border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.theme-oceanic-noir:not(.dark-mode) .section-title,
body.theme-oceanic-noir:not(.dark-mode) .brand-name {
    color: #ffffff;
}

/* --- New Mint & Green Themes --- */



body.theme-seafoam:not(.dark-mode) {
    background-color: #8FC6B7 !important;
    --card-bg: #7FB6A7;
    --nav-bg: #7FB6A7;
    --nav-bg-glass: rgba(127, 182, 167, 0.85);
    --bg-light: #7FB6A7;
}



/* --- CITRUS & FRUIT THEMES (From User Image) --- */

body.theme-citrus-orange:not(.dark-mode) {
    background-color: #E27745 !important;
    --card-bg: #D16834;
    --nav-bg: #D16834;
    --nav-bg-glass: rgba(209, 104, 52, 0.85);
    --bg-light: #D16834;
    color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
}

body.theme-lime-green:not(.dark-mode) {
    background-color: #A9BC4B !important;
    --card-bg: #98A93A;
    --nav-bg: #98A93A;
    --nav-bg-glass: rgba(152, 169, 58, 0.85);
    --bg-light: #98A93A;
    color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
}

body.theme-lemon-yellow:not(.dark-mode) {
    background-color: #FBC936 !important;
    --card-bg: #EBB825;
    --nav-bg: #EBB825;
    --nav-bg-glass: rgba(235, 184, 37, 0.85);
    --bg-light: #EBB825;
}

body.theme-ruby-red:not(.dark-mode) {
    background-color: #D12A31 !important;
    --card-bg: #C01920;
    --nav-bg: #C01920;
    --nav-bg-glass: rgba(192, 25, 32, 0.85);
    --bg-light: #C01920;
    color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
}
body.theme-ruby-red:not(.dark-mode) .section-title,
body.theme-ruby-red:not(.dark-mode) .brand-name {
    color: #ffffff;
}
body.theme-citrus-orange:not(.dark-mode) .section-title,
body.theme-citrus-orange:not(.dark-mode) .brand-name {
    color: #ffffff;
}
body.theme-lime-green:not(.dark-mode) .section-title,
body.theme-lime-green:not(.dark-mode) .brand-name {
    color: #ffffff;
}



/* --- Theme Picker --- */
.theme-switch {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1500;
}

.theme-btn-current {
    touch-action: manipulation;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    font-size: 1.1rem;
}

body.dark-mode .theme-btn-current {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-btn-current:hover {
    background: rgba(255, 255, 255, 0.6);
}

body.dark-mode .theme-btn-current:hover {
    background: rgba(0, 0, 0, 0.6);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    min-width: unset;
    padding: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1500;
    height: 110px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    position: relative;
}

.theme-dropdown::-webkit-scrollbar {
    display: none;
}

.drum-padding {
    flex: 0 0 41px;
    width: 100%;
}

.drum-selector-overlay {
    position: sticky;
    top: 40px; /* Center of 110px container (55px) minus half of 30px height (15px) */
    left: 0;
    width: 30px;
    height: 30px;
    margin-bottom: -30px; /* offset height so it doesn't take space */
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
}

.theme-dropdown.show {
    display: flex;
    animation: fadeIn 0.1s ease;
}

.theme-option {
    -webkit-appearance: none;
    appearance: none;
    background-image: none !important;
    padding: 0;
    width: 28px;
    height: 28px;
    margin: 6px 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    scroll-snap-align: center;
    flex-shrink: 0;
    z-index: 10;
}

.theme-option:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

body.dark-mode .theme-dropdown {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-option.active {
    transform: scale(1.15);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color), 0 4px 10px rgba(0,0,0,0.2);
}

body.dark-mode .theme-option.active {
    border-color: #1e1e1e;
}

/* --- Header --- */
.header {
    position: relative;
}

.header-cover {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: visible;
}

.header-cover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

}


.header-container {
    text-align: center;
    padding: 0 20px 15px;
    position: relative;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -50px;
    position: relative;
}

.brand-logo {
    width: 99px;
    height: 99px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    background: white;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 8px;
    color: var(--text-primary);
}

/* --- Language Switcher --- */
.lang-switch {
    position: absolute;
    bottom: -50px;
    top: auto;
    right: 15px;
    z-index: 10;
}

.lang-btn-current {
    touch-action: manipulation;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    width: auto;
    min-width: 60px;
    height: 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    transition: all 0.2s;
}

.lang-btn-current:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    min-width: 60px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 20;
}

.lang-dropdown.show {
    display: flex;
    animation: fadeIn 0.1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    background: none;
    border: none;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}

.lang-option:hover {
    background: #f0f2f5;
    color: var(--text-primary);
}

.lang-option.active {
    display: none;
}

.lang-btn-current img,
.lang-option img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    vertical-align: middle;
}

/* --- Category Navigation --- */
.sticky-nav-wrapper {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    top: 0;
    /* Glassmorphism Effect */
    background: var(--nav-bg-glass, rgba(255, 255, 255, 0.70));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    margin-top: 15px;
    /* Add some spacing from the content above */
    display: flex;
    flex-direction: column;
}

/* --- Search Bar --- */
.search-container {
    padding: 15px 20px 0 20px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #555555;
    font-size: 1rem;
}

#menu-search-input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.95rem;
    background-color: #ffffff; /* Always white in light mode for best contrast */
    color: #111111;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

#menu-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 150, 255, 0.15);
}

#menu-search-input::placeholder {
    color: #666666;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e9ecef;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #495057;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.clear-search-btn:hover {
    background: #ced4da;
}

.category-nav {
    overflow-x: auto;
    padding: 15px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-bottom: 5px solid rgba(240, 242, 245, 0.5);
    /* Make border semi-transparent too */
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-list {
    list-style: none;
    display: flex;
    gap: 12px;
}

.category-btn {
    border: none;
    background-color: var(--bg-light);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-btn.active {
    background-color: #212529;
    color: white;
}

/* --- Menu Container --- */
.menu-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* --- No Results Message --- */
.no-results-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: none;
}

.no-results-msg i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

.no-results-msg h3 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

/* --- Menu Section & Titles --- */
.menu-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
    color: var(--text-primary);
    text-align: center;
}


/* --- Menu Item Card --- */
.menu-item {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-2px);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.item-content {
    padding: 15px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.item-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-badges {
    margin-bottom: 8px;
}

/* --- Add to Cart Button --- */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 4px;
    background-color: var(--card-bg, #f1f5f9);
    color: var(--text-primary, #475569);
    border: 1px solid var(--border-color, #e2e8f0);
}

.badge-vegan {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
    border-color: #bbf7d0 !important;
}

.badge-gluten-free {
    background-color: #fef08a !important;
    color: #854d0e !important;
    border-color: #fde047 !important;
}

.badge-new {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-popular {
    background-color: #fff3e0;
    color: #e65100;
}

.badge-spicy {
    background-color: #ffebee;
    color: #c62828;
}

/* --- Floating Cart --- */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #212529;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    max-width: 440px;
    width: calc(100% - 40px);
    justify-content: space-between;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-count {
    background-color: var(--primary-color);
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.cart-total {
    font-weight: 700;
}

/* --- Cart Modal --- */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: flex-end;
}

.cart-modal.active {
    display: flex;
}

.cart-modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-header h2 {
    font-size: 1.2rem;
}

#close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 0;
    border-top: 2px solid var(--text-primary);
    margin-top: 10px;
}

/* --- WhatsApp Input & Checkout --- */
.wa-input-group {
    margin: 15px 0;
}

.wa-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.wa-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
}

#checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

#checkout-btn:hover {
    background-color: #1ebe57;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 0;
}

/* --- Category Button Emojis --- */
.cat-emoji {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
}

/* --- Contact Call Link --- */
.contact-call-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 5px;
}

.contact-call-link i {
    font-size: 1.2rem;
    color: #333;
}

.contact-call-link:hover {
    color: #000;
}

/* --- Social Circles - Small round buttons with brand logos --- */
.social-circles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.social-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #ECECEC;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0;
    overflow: hidden;
}

.social-circle-btn:hover {
    background-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.social-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Premium Social Button --- */
.premium-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #FFD32A 0%, #EFBF04 50%, #CFA503 100%);
    color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif; /* Mükəmməl 'ə' dəstəyi və premium görünüş */
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(239, 191, 4, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.5);
    margin: 15px auto 10px auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: fit-content;
    text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.3);
}
.premium-social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(239, 191, 4, 0.5);
    background: linear-gradient(135deg, #FFF04B 0%, #FFD32A 50%, #EFBF04 100%);
}
.pulse-icon {
    animation: pulseIcon 2s infinite;
    font-size: 1.2rem;
}
@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1); }
}

/* --- Social Bottom Sheet Modal --- */
.social-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.social-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.social-modal-content {
    background: var(--card-bg, #fff);
    width: 100%;
    max-width: 480px;
    padding: 25px;
    border-radius: 30px 30px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}
.social-modal-overlay.active .social-modal-content {
    transform: translateY(0);
}
.social-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.social-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}
.close-social-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* --- Item Detail Modal --- */
.item-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Darker overlay for focus */
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    /* Center popup horizontally and vertically */
}

.item-modal-overlay.active {
    display: flex;
}

.item-modal-content {
    background: var(--card-bg);
    width: 95%;
    /* Maximum immersive width */
    max-width: 480px;
    max-height: 92vh;
    border-radius: 28px;
    /* High radius like user screenshot */
    overflow-y: auto;
    /* Enable scrolling for long descriptions */
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    /* Starting scale for preview feel */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.item-modal-overlay.active .item-modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-item-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-item-btn:active {
    transform: scale(0.9);
}

/* Image Zoom logic removed as requested - Modal is now immersive by default */
.modal-item-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    cursor: default;
}

@media (max-width: 480px) {
    /* Mobile adjustments if needed */
}

.item-modal-body {
    padding: 20px;
    background: var(--card-bg);
}

.modal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.modal-item-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.modal-item-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.add-from-modal-btn {
    width: 100%;
    margin-top: 10px;
}

/* --- Cart Modal Overlay --- */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: flex-end;
}

.cart-modal-overlay.active {
    display: flex;
}

/* --- Modal Quantity Selector --- */
.modal-quantity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

body.dark-mode .modal-quantity-container {
    background: rgba(255, 255, 255, 0.05);
}

.modal-qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.modal-qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.modal-qty-btn:active {
    transform: scale(0.9);
}

.modal-qty-display {
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    color: var(--text-primary);
}

/* --- Customer Phone Input --- */
.customer-phone-input {
    margin: 15px 0;
}

.customer-phone-input label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.customer-phone-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
}

/* --- Close Button (Cart) --- */
.close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px;
}

/* --- Cart Footer --- */
.cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* --- Checkout Button (Reusable) --- */
.checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background-color: #1ebe57;
}

/* --- Prevent Horizontal Overflow --- */
html,
body {
    overflow-x: clip;
    max-width: 100vw;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .menu-container {
        padding: 10px 15px;
    }

    .item-image {
        height: 180px;
    }

    .header-cover {
        height: 180px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .floating-cart {
        bottom: 15px;
        padding: 10px 20px;
    }
}

/* --- Cart Bounce Animation --- */
@keyframes cartJump {
    0% {
        transform: scale(1) translateY(0);
    }

    30% {
        transform: scale(1.1) translateY(-10px);
    }

    50% {
        transform: scale(1.05) translateY(-5px);
    }

    70% {
        transform: scale(1.1) translateY(-8px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.jump-animation {
    animation: cartJump 0.5s ease-out;
}


/* --- Page Loader --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Higher than toggle */
    transition: opacity 0.5s ease, visibility 0.5s;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Image Zoom logic removed as requested - Modal is now immersive by default */
.modal-item-img {
    cursor: default;
}

/* --- Infinite Scroll Sentinel --- */
.scroll-sentinel {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.scroll-sentinel::after {
    content: '';
    width: 28px;
    height: 28px;
    border: 3px solid #e9ecef;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

body.dark-mode .scroll-sentinel::after {
    border-color: #333;
    border-top-color: var(--primary-color);
}

/* --- Landing Page Styling --- */
.landing-page {
    min-height: 100vh;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.landing-hero {
    text-align: center;
    max-width: 800px;
    margin-bottom: 50px;
}

.landing-logo-box {
    margin-bottom: 20px;
}

.landing-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.landing-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #333, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 30px;
}

.landing-cta-box {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-cta-btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-cta-btn.demo-btn {
    background: #333;
    color: white;
}

.landing-cta-btn.contact-btn {
    background: #25D366;
    color: white;
}

.landing-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

.feature-card p {
    color: #888;
    line-height: 1.6;
}

.landing-footer {
    margin-top: auto;
    padding-top: 40px;
    color: #bbb;
}

body.dark-mode .landing-page {
    background: #121212;
    color: white;
}

body.dark-mode .landing-subtitle {
    color: #999;
}

body.dark-mode .landing-title {
    background: linear-gradient(135deg, white, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
}

body.dark-mode .feature-card {
    background: #1e1e1e;
}

body.dark-mode .feature-card h3 {
    color: white;
}

body.dark-mode .feature-icon {
    color: white;
}

@media (max-width: 600px) {
    .landing-title {
        font-size: 2.2rem;
    }
    .landing-subtitle {
        font-size: 1.1rem;
    }
}

/* Headings Font Override */
h1, h2, h3, h4, h5, h6, .brand-name, .data-info h4, .cart-header h2, .modal-item-title, .section-heading {
    font-family: 'Montserrat', sans-serif;
}

/* Luxury Category Fonts */
.section-title, .category-btn, .category-btn span {
    font-family: 'Playfair Display', serif !important;
    font-weight: 800 !important;
}
