@font-face {
    font-family: "Zaglaviq";
    src: url("../../ttf/Zaglaviq.otf");
    font-weight: 400;
}

:root {
    /* Set by JS (updateHeaderPosition) from real measured bar heights — same value
       used for both sticky "top" and main-content paddingTop, so they never drift apart */
    --marketing-h: 0px;
    --bars-h: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ── Mobile: no double-tap zoom, native app feel ─────────────── */
html {
    touch-action: manipulation;
    scroll-behavior: smooth;
    background-color: #141414;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    background-color: #141414;
    background: #141414 url('../images/background.jpg') no-repeat center center / cover;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
}

/* Body scroll lock — keeps page from scrolling behind open modals on iOS */
body.scroll-locked {
    position: fixed;
    width: 100%;
    overflow-y: scroll;
}
img { -webkit-touch-callout: none; }

/* ── Global typography: Zaglaviq for headings, buttons & prices ── */
h1, h2, h3, h5, h6 {
    font-family: 'Zaglaviq', Arial, sans-serif;
}

.current-price, .eur-price, .original-price,
.price-main, .price-row, .ci-prices,
.summary-value, .cart-subtotal, .cart-total,
.total-price, .loyalty-points-value {
    font-family: 'Zaglaviq', Arial, sans-serif;
}
/* Inputs inherit body (system font — best readability for typing) */
input, textarea, select {
    font-family: inherit;
}

/* Enhanced Banned User Overlay */
.banned-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.banned-container {
    text-align: center;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(244, 67, 54, 0.4);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 450px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(244, 67, 54, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: bannedSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.banned-container i {
    font-size: 60px;
    color: #f44336;
    margin-bottom: 20px;
    display: block;
    animation: bannedIconPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

@keyframes bannedIconPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(244, 67, 54, 0.8);
    }
}

.banned-container h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-weight: 700;
}

.banned-container p {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.banned-container .contact-info {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    color: #ff8a80;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
}

.contact-info strong {
    color: #ff5252;
    font-size: 15px;
    display: block;
    margin-top: 5px;
}

/* Enhanced Logout Button */
.logout-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(244, 67, 54, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Zaglaviq', Arial, sans-serif;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.logout-btn:hover::before {
    left: 100%;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(244, 67, 54, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(244, 67, 54, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.loading-logo {
    max-width: 150px;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(225, 88, 41, 0.3);
    border-top: 3px solid #e15829;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.loading-content p {
    color: #ccc;
    font-size: 14px;
    margin-top: 8px;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

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

/* Main Content */
.main-content {
    opacity: 0;
    animation: contentFadeIn 0.5s ease-out 0.3s forwards;
}

@keyframes contentFadeIn {
    to {
        opacity: 1;
    }
}

/* Marketing Bar */
.marketing-bar {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e15829, #c44a24);
    color: white;
    padding: 2px 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(225, 88, 41, 0.4);
    animation: slideDown 0.5s ease-out;
}

.marketing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.marketing-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.promo-icon {
    font-size: 1rem;
    animation: bounce 2s infinite;
}

.promo-text {
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.close-marketing-bar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 11px;
    margin-left: 10px;
}

.close-marketing-bar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-2px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* ============================================================
   MENU HEADER — desktop + mobile
   ============================================================ */
.menu-header {
    background: rgba(15, 15, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    /* --bars-h is set by JS from the real measured height of the marketing/break bars,
       so the sticky "top" always matches main-content's paddingTop exactly (no jump on scroll) */
    top: calc(var(--bars-h, 0px) + env(safe-area-inset-top, 0px));
    z-index: 1000;
    transition: top 0.3s ease;
}

/* ── SHARED BASE ── */
.logo {
    height: 41px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }

/* ── SEARCH CLOSE BUTTON ── */
.search-close-btn {
    display: none;
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 13px;
    transition: color 0.2s;
    z-index: 2;
}
.search-close-btn:hover { color: #fff; }

/* ── SEARCH TOGGLE BUTTON (hidden on desktop, shown on mobile) ── */
.search-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ccc;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.search-toggle-btn:hover,
.search-toggle-btn.active {
    background: rgba(225, 88, 41, 0.18);
    border-color: rgba(225, 88, 41, 0.5);
    color: #e15829;
}

/* ── BLINKING STATUS DOT ── */
.store-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: default;
}
.store-pulse-dot.store-open {
    background: #4caf50;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
    animation: pulseGreen 2.2s ease-in-out infinite;
}
.store-pulse-dot.store-closed {
    background: #f44336;
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.5);
    animation: pulseRed 2.2s ease-in-out infinite;
}
@keyframes pulseGreen {
    0%   { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.55); }
    60%  { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
@keyframes pulseRed {
    0%   { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.55); }
    60%  { box-shadow: 0 0 0 7px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}
.store-pulse-dot.store-break {
    background: #fbbf24;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
    animation: pulseYellow 2.2s ease-in-out infinite;
}
@keyframes pulseYellow {
    0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.55); }
    60%  { box-shadow: 0 0 0 7px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.break-bar {
    position: fixed;
    /* --marketing-h is the real measured height of the marketing bar (0 if hidden/absent) */
    top: calc(var(--marketing-h, 0px) + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    background: linear-gradient(135deg, #b45309, #d97706);
    color: white;
    padding: 2px 0;
    z-index: 1999;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
    animation: slideDown 0.5s ease-out;
    transition: top 0.3s ease;
}

.break-bar-timer {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.2);
    padding: 1px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
    font-size: 11px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ============================================================
   DESKTOP LAYOUT  (min-width: 769px)
   ============================================================ */
@media (min-width: 769px) {
    /* Flex row: [logo(1)] [search-center(2)] [account(3)] [cart+fav+notif+dot(4)] */
    .header-container {
        display: flex;
        align-items: center;
        max-width: 1400px;
        margin: 0 auto;
        padding: 10px 24px;
        gap: 14px;
    }

    .header-left    { flex-shrink: 0; order: 1; }
    .header-center  { position: static; flex: 1; min-width: 0; order: 2; overflow: visible; max-height: none; padding: 0; transform: none; visibility: visible; opacity: 1; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-bottom: none; }
    .header-account { flex-shrink: 0; order: 3; }
    .header-right   { flex-shrink: 0; order: 4; display: flex; align-items: center; gap: 8px; }

    /* Search: constrained width + centred within its flex space + page-load animation */
    .header-center .search-container {
        max-width: 380px;
        margin: 0 auto;
        animation: searchReveal 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) 0.2s both;
    }
    @keyframes searchReveal {
        from { opacity: 0; transform: scaleX(0.55); }
        to   { opacity: 1; transform: scaleX(1); }
    }

    /* Search close btn and toggle: hidden on desktop */
    .search-close-btn  { display: none !important; }
    .search-toggle-btn { display: none !important; }

    /* Account: show text on desktop */
    .header-account .profile-btn .user-name { display: inline; }
    .header-account .profile-btn .dd-chevron { display: inline; }
    .header-account .login-btn .btn-label   { display: inline; }

    /* Status dot: slightly bigger on desktop */
    .store-pulse-dot { width: 10px; height: 10px; }
}

/* ============================================================
   MOBILE LAYOUT  (max-width: 768px)
   Header: logo + status badge only (centred)
   Buttons: fixed bottom navigation bar
   ============================================================ */

/* Base: mobile-only elements hidden on desktop */

@keyframes notifDropInMobile {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 768px) {
    /* ── Mobile header: burger+notif left | logo center | cart right ── */
    .menu-header { padding: 0; }

    .header-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        position: relative;
        max-width: 100%;
        margin: 0;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 10px;
        gap: 0;
        min-height: calc(env(safe-area-inset-top, 0px) + 54px);
    }

    /* Left: burger + notifications */
    .header-left {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        z-index: 1;
    }

    /* Logo: absolutely centered in header-container */
    .logo-link {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 0;
        display: flex;
        align-items: center;
    }

    /* Right: cart only — shown on mobile */
    .header-right {
        display: flex !important;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        z-index: 1;
        margin-left: auto;
    }
    /* Hide desktop-only items from header-right on mobile */
    .header-right .favorites-container { display: none !important; }
    .header-right .notif-container { display: none !important; }
    .header-right .store-pulse-dot { display: none !important; }
    /* Cart button on mobile: larger touch target, no tooltip */
    .header-right .cart-btn { width: 42px; height: 42px; font-size: 17px; }
    .cart-tooltip { display: none !important; }

    /* Hide desktop-only elements */
    .header-account  { display: none !important; }
    .search-toggle-btn { display: none !important; }

    /* Search: fixed full-width overlay that slides down from below the header */
    .header-center {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 54px);
        left: 0;
        right: 0;
        z-index: 1002;
        background: rgba(12, 12, 14, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
        padding: 10px 16px;
        transform: translateY(-110%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity   0.32s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.32s;
        /* override any flex-child properties */
        order: unset;
        flex: unset;
        width: unset;
        max-height: unset;
        overflow: visible;
    }
    .header-center.search-open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity   0.32s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s;
    }
    .header-center .search-container { max-width: none; margin: 0; animation: none; }

    .logo { height: 34px; }
    .search-close-btn { display: flex; }
    .header-center .clear-search { right: 36px; }

    /* Notif dropdown: fixed, centred on screen when opened on mobile */
    #notif-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(92vw, 360px) !important;
        z-index: 2000 !important;
    }
    #notif-dropdown.show {
        animation: notifDropInMobile 0.24s cubic-bezier(0.34, 1.3, 0.64, 1) !important;
    }

    /* Normal bottom padding — no bottom nav */
    .menu-main {
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Fallback before JS sets the precise inline top via header.getBoundingClientRect() */
    .categories-nav {
        top: calc(60px + var(--bars-h, 0px));
        padding: 8px 0;
    }
    .categories-scroll { justify-content: flex-start; }
}

/* Header center: base (desktop inherits flex:1 via media query) */
.header-center { flex: 1; min-width: 0; }

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 14px;
    z-index: 2;
}

#search-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    #search-input { font-size: 16px; }
}

#search-input:focus {
    outline: none;
    border-color: #e15829;
    box-shadow: 0 0 0 2px rgba(225, 88, 41, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.clear-search {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}



/* User Menu */
.user-menu-container {
    position: relative;
}

.login-btn {
    background: linear-gradient(135deg, #e15829, #c44a24);
    color: white;
    font-family: 'Zaglaviq', Arial, sans-serif;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(225, 88, 41, 0.3);
    white-space: nowrap;
}

.login-btn:hover {
    background: linear-gradient(135deg, #c44a24, #a83c1f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 88, 41, 0.4);
}

/* ── Profile button ───────────────────────────────────────────── */
.user-profile-menu { position: relative; }

.profile-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    color: #fff;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}
.profile-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(225,88,41,0.45); }
.profile-btn i:first-child { font-size: 15px; color: #e15829; }
.profile-btn .dd-chevron { font-size: 9px; opacity: .7; transition: transform .25s; }
.profile-btn.active .dd-chevron { transform: rotate(180deg); }

/* ── Desktop dropdown ─────────────────────────────────────────── */
.profile-dropdown {
    font-family: 'Zaglaviq', Arial, sans-serif;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: rgba(20,20,22,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 6px 0 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity .22s ease, transform .22s cubic-bezier(.22,.68,0,1.2), visibility .22s;
    z-index: 10001;
}
.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Points row (desktop) */
.dd-points-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 8px;
    padding: 10px 12px;
    background: rgba(225,88,41,0.1);
    border: 1px solid rgba(225,88,41,0.22);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s;
}
.dd-points-row:hover { background: rgba(225,88,41,0.18); }
.dd-pts-icon { color: #f0c040; font-size: 14px; width: 18px; text-align: center; }
.dd-pts-label { color: #ccc; font-size: 16px; font-weight: 600; flex: 1; }
.dd-pts-val { color: #f0c040; font-size: 15px; font-weight: 800; }

/* Dropdown user header (visible on mobile) */
.dd-user-header { display: none; }
.dd-handle      { display: none; }

.dropdown-section {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dropdown-section:last-child { border-bottom: none; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.dropdown-item:hover { background: rgba(225,88,41,0.1); color: #fff; }
.dropdown-item i { width: 14px; text-align: center; color: #e15829; font-size: 13px; }
.dropdown-item.logout { color: #f55; }
.dropdown-item.logout i { color: #f55; }
.dropdown-item.logout:hover { background: rgba(244,67,54,0.1); }

/* ── Mobile modal wrapper (appended to body by JS) ───────────── */
#dd-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    -webkit-tap-highlight-color: transparent;
}
#dd-modal-wrap.show { display: flex; }

/* ── Mobile: dropdown is relative inside the wrapper ────────── */
@media (max-width: 768px) {
    .profile-dropdown {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: min(88vw, 340px) !important;
        max-height: 80dvh !important;
        overflow-y: auto !important;
        transform: scale(0.9) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity .2s ease, transform .2s cubic-bezier(.22,.68,0,1.2), visibility 0s linear .2s !important;
        padding: 0 0 12px !important;
        z-index: 1 !important;
        background: rgba(18,18,20,0.99) !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        border-radius: 20px !important;
        box-shadow: 0 24px 60px rgba(0,0,0,0.7) !important;
    }
    .profile-dropdown.show {
        transform: scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: opacity .2s ease, transform .2s cubic-bezier(.22,.68,0,1.2), visibility 0s linear 0s !important;
    }

    /* Hide handle (not needed for center modal) */
    .dd-handle { display: none; }

    /* User header */
    .dd-user-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 18px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 4px;
    }
    .dd-avatar-icon { font-size: 28px; color: #e15829; flex-shrink: 0; }
    .dd-user-name   { font-size: 15px; font-weight: 700; color: #fff; flex: 1; }
    .dd-x-btn {
        background: rgba(255,255,255,0.08); border: none; color: #888;
        width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        font-size: 12px; transition: background .15s, color .15s; flex-shrink: 0;
    }
    .dd-x-btn:active { background: rgba(255,255,255,0.18); color: #fff; }

    /* Points row on mobile */
    .dd-points-row {
        margin: 6px 12px !important;
        padding: 11px 14px !important;
    }
    .dd-pts-label { font-size: 13px !important; }
    .dd-pts-val   { font-size: 13px !important; }

    /* Section items */
    .dropdown-section { padding: 4px 0 !important; }
    .dropdown-item {
        padding: 13px 18px !important;
        font-size: 15px !important;
        color: #ddd !important;
        gap: 12px !important;
    }
    .dropdown-item i { font-size: 15px !important; width: 18px !important; }
}

/* Favorites Button */
.favorites-container {
    position: relative;
}

.favorites-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 14px;
    transform: scale(1);
}

.favorites-btn:hover {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.4);
    transform: scale(1.05);
}

.favorites-btn.show-animation {
    animation: favoritePulse 0.6s ease-out;
}

@keyframes favoritePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(244, 67, 54, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.favorites-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #f44336;
    color: white;
    border-radius: 6px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.4);
    animation: pulse 2s infinite;
}

/* Cart Button */
.cart-container {
    position: relative;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 14px;
}

.cart-btn:hover {
    background: rgba(225, 88, 41, 0.15);
    border-color: rgba(225, 88, 41, 0.4);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #e15829;
    color: white;
    border-radius: 6px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(225, 88, 41, 0.4);
}

.cart-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
    min-width: 160px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.cart-container:hover .cart-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tooltip-subtotal,
.tooltip-subtotal-eur {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #ccc;
}

.tooltip-subtotal span:last-child,
.tooltip-subtotal-eur span:last-child {
    font-weight: 600;
    color: #fff;
}

/* Categories Navigation - CENTERED */
/* Fallback before JS sets the precise inline top via header.getBoundingClientRect() */
.categories-nav {
    position: sticky;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.65), rgba(20, 20, 20, 0.65));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 2px solid #e15829;
    padding: 10px 0;
    top: calc(62px + var(--bars-h, 0px));
    z-index: 999;
    box-shadow: 0 4px 20px rgba(225, 88, 41, 0.2);
    transition: top 0.3s ease;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-scroll-wrapper {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.categories-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 3px 0;
    justify-content: center;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    font-family: 'Zaglaviq', Arial, sans-serif;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .category-btn {
        padding: 10px 18px;
        font-size: 17px;
    }
}

.category-btn:hover {
    background: rgba(225, 88, 41, 0.2);
    color: #fff;
    border-color: #e15829;
}

.category-btn.active {
    background: #e15829;
    color: white;
    border-color: #e15829;
    box-shadow: 0 4px 12px rgba(225, 88, 41, 0.4);
}

/* Main Menu */
.menu-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 180px);
}

.products-section {
    margin-bottom: 30px;
}

/* Desktop Products Grid */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
}

/* Mobile Products Grid - ДВА реда вместо един */
@media (max-width: 768px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .product-card {
        margin: 0;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 15px;
        line-height: 1.3;
    }

    .product-weight {
        font-size: 12px;
    }

    .allergen-tag {
        font-size: 8px;
        padding: 1px 4px;
    }

    .allergen-tag img {
        width: 10px;
        height: 10px;
    }

    .current-price,
    .eur-price {
        font-size: 15px;
        padding: 2px 4px;
    }

    .original-price {
        font-size: 11px;
        gap: 4px;
    }

    .discount-badge {
        top: 7px;
        right: 7px;
        padding: 4px 7px;
        font-size: 11px;
    }

    .add-to-cart-btn {
        padding: 8px 12px;
        font-size: 15px;
    }
}

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

/* Product Card */
.product-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.795), rgba(20, 20, 20, 0.795));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: productCardAppear 0.6s ease-out forwards;
}

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

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(225, 88, 41, 0.3);
}

.product-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: rgba(40, 40, 40, 0.4);
    flex-shrink: 0;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 8px;
}

.product-card:hover .main-image {
    transform: scale(1.05);
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 35px;
}

/* ── НОВО ribbon ── */
.new-label {
    display: none;
    position: absolute;
    top: 16px;
    left: -26px;
    width: 110px;
    text-align: center;
    background: linear-gradient(180deg, #2ecc71 0%, #1a9e52 100%);
    color: #fff;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 0;
    transform: rotate(-45deg);
    z-index: 10;
    pointer-events: none;
    box-shadow:
        0 2px 0 #0e6b36,
        0 4px 12px rgba(30,160,80,0.5),
        inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.product-card.is-new .new-label {
    display: block;
}

/* ── Text label on image ── */
.product-custom-labels {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
}

.custom-label {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.text-label {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}

/* ── Product mid section: weight+allergens left, img-labels right ── */
.product-mid-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.product-mid-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-img-labels {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    justify-content: flex-start;
}

.image-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 4px;
}

.image-label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
    display: block;
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ccc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: rgba(244, 67, 54, 0.8);
    color: white;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #f44336;
    color: white;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
}

/* Product Info */
.product-info {
    padding: 12px 7px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
}

.product-name {
    font-size: 18px;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    font-weight: 700;
}

.product-weight {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 4px;
}

.product-weight i {
    color: #e15829;
    font-size: 10px;
}

.product-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.allergen-tag {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(225, 88, 41, 0.1);
    border: 1px solid rgba(225, 88, 41, 0.2);
    border-radius: 5px;
    font-size: 9px;
    color: #e15829;
    transition: all 0.3s ease;
}

.allergen-tag:hover {
    background: rgba(225, 88, 41, 0.2);
    transform: translateY(-1px);
}

.allergen-tag img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    border-radius: 2px;
}

/* Product Pricing */
.product-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 6px;
    margin-top: auto;
}

.discount-pricing {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.current-price {
    color: #ffffff;
    background-color: #f1582a;
    border-radius: 4px;
    padding: 0px 7px;
    font-size: 17px;
    font-weight: 800;
    font-family: 'Zaglaviq', Arial, sans-serif;
}

.eur-price {
    color: #ffffff;
    background-color: #436db5;
    border-radius: 4px;
    padding: 0px 7px;
    font-size: 17px;
    font-weight: 800;
    font-family: 'Zaglaviq', Arial, sans-serif;
}

.normal-pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.discount-pricing .original-price {
    display: flex;
    gap: 5px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: line-through;
    margin-top: 2px;
}

.discount-pricing .original-price span {
    color: inherit;
}

.discount-badge {
    font-family: 'Zaglaviq', Arial, sans-serif;
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e15829, #c44a24);
    color: #fff;
    padding: 1px 12px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(225, 88, 41, 0.35);
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
}

/* Add to Cart Button */
/* ---- Cart button area (morphs between add-btn and qty-controls) ---- */
.cart-btn-area {
    margin-top: auto;
    position: relative;
    height: 38px;
}

.add-to-cart-btn {
    font-family: 'Zaglaviq', Arial, sans-serif;
    width: 100%;
    height: 38px;
    background: linear-gradient(135deg, #e15829, #c44a24);
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(225, 88, 41, 0.35);
    position: absolute;
    inset: 0;
    opacity: 1;
    transform: scale(1);
}

.add-to-cart-btn.hide {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f06030, #d05030);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(225, 88, 41, 0.5);
}

.add-to-cart-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.55;
}

/* ---- Card quantity controls ---- */
.card-qty-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(225, 88, 41, 0.5);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.card-qty-controls.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.card-qty-btn {
    flex: 0 0 38px;
    height: 100%;
    background: transparent;
    border: none;
    color: #e15829;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.card-qty-btn:hover {
    background: rgba(225, 88, 41, 0.15);
}

.card-qty-btn.decrease:hover {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.card-remove-all {
    flex: 0 0 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #666;
}

.card-remove-all:hover {
    background: rgba(244, 67, 54, 0.15) !important;
    color: #f44336 !important;
}

.card-qty-count {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    user-select: none;
}

/* ---- Mini cart toast ---- */
.cart-mini-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 110000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 260px;
    max-width: 320px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cart-mini-toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

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

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(12px) scale(0.94); }
}

.toast-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}

.toast-img-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(225, 88, 41, 0.15);
    border: 1px solid rgba(225, 88, 41, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #e15829;
    font-size: 18px;
}

.toast-info {
    flex: 1;
    min-width: 0;
}

.toast-label {
    font-size: 10px;
    color: #4CAF50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toast-label i { font-size: 9px; }

.toast-name {
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-qty {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

.toast-close {
    background: none;
    border: none;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.toast-close:hover { color: #aaa; }

/* Removed-from-cart toast variant */
.cart-mini-toast--removed {
    border-color: rgba(244, 67, 54, 0.3);
}

.toast-img-placeholder--remove {
    background: rgba(244, 67, 54, 0.12);
    border-color: rgba(244, 67, 54, 0.25);
    color: #f44336;
}

.toast-label--remove {
    color: #f44336;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 20px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    grid-column: 1 / -1;
    animation: fadeIn 0.5s ease-out;
}

.no-results i {
    font-size: 40px;
    color: #e15829;
    margin-bottom: 12px;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 600;
}

.no-results p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.495), rgba(20, 20, 20, 0.495));
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: modalSlideIn 0.38s cubic-bezier(0.22, 0.68, 0, 1.15);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)      scale(1);    }
}

@keyframes sheetSlideUp {
    from { opacity: 0.5; transform: translateY(32px); }
    to   { opacity: 1;   transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.933);
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.modal-header .header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 {
    font-family: 'Zaglaviq', Arial, sans-serif;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.modal-close {
    font-family: 'Zaglaviq', Arial, sans-serif;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.modal-body {
    padding: 20px;
}

/* =============================================== */
/* REDESIGNED CART MODAL - MODERN & MOBILE FIRST */
/* =============================================== */

.cart-modal-content {
    max-width: 540px; /* mobile base; desktop overrides via @media below */
    width: 96%;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

/* Give modal body its own flex row so cart-with-items can fill height */
.cart-modal-content .modal-body {
    flex: 1;
    overflow: hidden;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #ccc;
    animation: fadeIn 0.5s ease-out;
}

.empty-cart-icon {
    font-size: 60px;
    color: #e15829;
    margin-bottom: 15px;
    opacity: 0.7;
}

.cart-empty h4 {
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.cart-empty p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.cart-empty .btn-primary {
    font-family: 'Zaglaviq', Arial, sans-serif;
    margin-top: 10px;
    justify-content: center;
}

.cart-with-items {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    gap: 12px;
}


/* Cart Items Section */
.cart-items-section {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.cart-items-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cart-items-section .section-header h4 {
    font-family: 'Zaglaviq', Arial, sans-serif;
    color: #fff;
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.items-count {
    background: rgba(225, 88, 41, 0.1);
    color: #e15829;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Cart Item - Redesigned for Mobile */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cart-item {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.95), rgba(25, 25, 25, 0.98));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    transition: border-color 0.2s;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .cart-item {
        padding: 10px;
        gap: 10px;
    }
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(40, 40, 40, 0.8);
    position: relative;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
}

@media (max-width: 599px) {
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Discount badge inside cart item image — scoped so it doesn't affect product card badge */
.cart-item-image .discount-badge {
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 5px;
}

.cart-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

/* Top row: info (name + weight) + remove button */
.ci-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.ci-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-size: 17px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* Inline discount badge after name */
.ci-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e15829, #c44a24);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 1px 10px;
    border-radius: 10px;
    font-family: 'Zaglaviq', Arial, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-item-remove {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: rgba(239, 68, 68, 0.7);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: scale(1.08);
}



/* Discount row in summary (green) */
.summary-discount-row {
    background: rgba(74, 222, 128, 0.07);
    border-radius: 6px;
    padding: 5px 8px !important;
    border: 1px solid rgba(74, 222, 128, 0.18) !important;
    border-bottom: 1px solid rgba(74, 222, 128, 0.18) !important;
    margin-bottom: 2px;
}

.summary-discount-row span:first-child {
    color: #4ade80 !important;
    font-size: 16px !important;
}

.summary-discount-val {
    color: #4ade80 !important;
}
.summary-no-disc-row {
    opacity: 0.45;
}
.summary-no-disc-row span:first-child {
    font-size: 11px;
    color: #aaa;
}
.summary-no-disc-val {
    font-size: 11px !important;
    color: #999 !important;
}

/* Bottom row: qty + prices */
.ci-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* Price area: original strikethrough above pills */
.ci-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

/* Strikethrough original price line */
.ci-orig-line {
    display: flex;
    gap: 4px;
    font-size: 17px;
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
    line-height: 1;
}

/* Pills row: EUR orange + BGN blue side by side */
.ci-pills {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* Override product-card pill sizes for compact cart items */
.ci-pills .current-price,
.ci-pills .eur-price {
    font-size: 17px;
    padding: 0px 7px;
}




.quantity-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    padding: 2px;
}

.quantity-btn {
    background: none;
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    flex-shrink: 0;
}

@media (max-width: 599px) {
    .quantity-btn {
        width: 30px;
        height: 30px;
    }
}

.quantity-btn:hover {
    background: rgba(225, 88, 41, 0.2);
}

.quantity-display {
    min-width: 22px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

/* Order Summary Section */
.order-summary-section {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 768px) {
    /* Mobile cart: only modal-body scrolls; outer wrapper must not scroll */
    .cart-modal-content {
        max-height: calc(100% - env(safe-area-inset-top, 0px) - 20px) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .cart-modal-content .modal-body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 12px 14px;
        -webkit-overflow-scrolling: touch;
    }
    .cart-with-items {
        flex-direction: column !important;
        overflow: visible !important;
        flex: none !important;
        gap: 10px;
    }
    .cart-items-section {
        overflow-y: visible !important;
        flex: none !important;
        min-height: unset !important;
    }
    .cart-items-container {
        overflow-y: visible !important;
        flex: none !important;
    }
    /* Hide product image in cart on mobile — saves space and removes flicker */
    .cart-item-image {
        display: none;
    }
    .order-summary-section {
        flex-shrink: 0;
        padding: 12px;
        margin-top: 0;
    }
}

.order-summary-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e15829;
}

.order-summary-section .section-header h4 {
    font-family: 'Zaglaviq', Arial, sans-serif;
    color: #fff;
    font-size: 16px;
    margin: 0;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-row {
    font-family: 'Zaglaviq', Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    color: #ccc;
    font-size: 16px;
}

.summary-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.summary-value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    font-family: 'Zaglaviq', Arial, sans-serif;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(225, 88, 41, 0.3), 
        transparent);
    margin: 10px 0;
}

.summary-row.total {
    align-items: center;
    margin-top: 7px;
    padding: 7px 17px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(225, 88, 41, 0.16), rgba(225, 88, 41, 0.06));
    border: 1px solid rgba(225, 88, 41, 0.32);
}

.summary-row.total span:first-child {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
}
.summary-row.total span:first-child i { color: #e15829; }

.summary-row.total .summary-value {
    font-size: 17px;
    color: #ff8a5c;
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.total-price {
    font-weight: 800 !important;
    color: #ff8a5c !important;
}
.summary-row.total #cart-total-eur { font-size: 20px !important; }
.summary-row.total #cart-total { font-size: 13px !important; color: #c9a99c !important; }

@media (max-width: 768px) {
    .summary-row.total span:first-child { font-size: 19px; }
    .summary-row.total #cart-total-eur { font-size: 23px !important; }
    .summary-row.total #cart-total { font-size: 18px !important; }
}

/* Minimum Order Alert */
.min-order-alert {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.alert-icon {
    color: #FF9800;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content p {
    color: #FF9800;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .alert-content p {
        font-size: 13px;
    }
}

/* Cart Actions */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.cart-actions .btn-secondary,
.cart-actions .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 700;
}

.continue-shopping {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.continue-shopping:hover {
    background: rgba(255, 255, 255, 0.12);
}

.checkout-btn {
    background: linear-gradient(135deg, #e15829, #c44a24);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(225, 88, 41, 0.3);
}

.checkout-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c44a24, #a83c1f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 88, 41, 0.5);
}

.checkout-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* ── Desktop cart: two-column flex (comes AFTER base rules to win specificity) ── */
@media (min-width: 769px) {
    .cart-modal-content {
        max-width: min(800px, 92vw) !important;
        max-height: 86vh !important;
        overflow: hidden !important;
    }
    .cart-modal-content .modal-body {
        overflow: hidden !important;
        min-height: 0;
    }
    .cart-with-items {
        flex-direction: row !important;
        gap: 16px !important;
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    .cart-items-section {
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important; /* section clips; container scrolls */
        display: flex !important;
        flex-direction: column !important;
    }
    .cart-items-container {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    .order-summary-section {
        width: 345px !important;
        flex-shrink: 0 !important;
        overflow-y: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Product Detail Modal */
.product-modal-content {
    max-width: 800px;
    width: 95%;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.product-detail-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(40, 40, 40, 0.250);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .product-detail-image {
        height: 160px;
    }
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

/* Product Detail — НОВО ribbon */
.product-detail.is-new .product-detail-image {
    position: relative;
    overflow: hidden;
}
.product-detail.is-new .new-label {
    display: block;
    top: 22px;
    left: -32px;
    width: 130px;
    transform: rotate(-45deg);
}

/* Product Detail — text labels on image */
.product-detail-image .product-custom-labels {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
}

/* Product Detail — weight+allergens left, img-labels right */
.product-detail-mid-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.product-detail-mid-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-detail-mid-row .product-img-labels {
    flex-shrink: 0;
}

.product-detail-mid-row .image-label {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 5px;
}

.favorite-btn-detail {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ccc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
}

.favorite-btn-detail:hover,
.favorite-btn-detail.active {
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

/* Discount badge: bottom-left on cards (favorites btn is top-right), bottom-right in detail modal */
.product-image .discount-badge {
    top: auto;
    bottom: 10px;
    right: auto;
    left: 10px;
}

.product-detail-image .discount-badge {
    top: auto;
    bottom: 12px;
    right: 12px;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-detail-name {
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .product-detail-name {
        font-size: 16px;
        margin-bottom: 2px;
    }
}

.product-detail-weight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: #bbb;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 6px;
}

.product-detail-weight i {
    color: #e15829;
    font-size: 11px;
}

.product-detail-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.price-label i {
    color: #e15829;
    font-size: 10px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-detail-pricing .current-price,
.product-detail-pricing .eur-price {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.product-detail-pricing .original-price {
    display: flex;
    gap: 8px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: line-through;
    margin-top: 4px;
}

.product-detail-pricing .original-price span {
    color: inherit;
}

.discount-pricing .price-main,
.normal-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-detail-description,
.product-detail-allergens {
    margin: 0;
}

.product-detail-description h4,
.product-detail-allergens h4 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(225, 88, 41, 0.1);
    border: 1px solid rgba(225, 88, 41, 0.22);
    color: #e15829;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.product-detail-description h4 i,
.product-detail-allergens h4 i {
    font-size: 9px;
}

.product-detail-description p {
    color: #c5c5c5;
    line-height: 1.75;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 14px 16px;
    border-radius: 10px;
    margin: 0;
}

.allergens-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.allergen-tag-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: rgba(225, 88, 41, 0.1);
    border: 1px solid rgba(225, 88, 41, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: #e15829;
    transition: all 0.3s ease;
}

.allergen-tag-detail:hover {
    background: rgba(225, 88, 41, 0.2);
    transform: translateY(-2px);
}

.allergen-tag-detail img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
}

.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 56px;
}

/* ---- Detail modal: in-cart mode ---- */
.detail-incart-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeInUp 0.25s ease-out;
}

.detail-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-incart-label {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-qty-ctrl {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    overflow: hidden;
}

.detail-qty-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #e15829;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.detail-qty-btn:hover { background: rgba(225, 88, 41, 0.15); }
.detail-decrease:hover { background: rgba(244, 67, 54, 0.15); color: #f44336; }

.detail-qty-num {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    user-select: none;
}

.detail-remove-all {
    width: 100%;
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.detail-remove-all:hover {
    background: rgba(244, 67, 54, 0.16);
    border-color: rgba(244, 67, 54, 0.55);
}

@media (max-width: 768px) {
    .product-detail-actions {
        flex-direction: column;
        gap: 10px;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px;
}

@media (max-width: 768px) {
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
}

.quantity-btn {
    background: none;
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.quantity-btn:hover {
    background: rgba(225, 88, 41, 0.2);
}

.quantity-display {
    min-width: 35px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.add-to-cart-detail {
    flex: 1;
    background: linear-gradient(135deg, #e15829, #c44a24);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(225, 88, 41, 0.3);
}

@media (max-width: 768px) {
    .add-to-cart-detail {
        width: 100%;
    }
}

.add-to-cart-detail:hover {
    background: linear-gradient(135deg, #c44a24, #a83c1f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 88, 41, 0.5);
}

/* Confirmation Modal */
.confirmation-modal-content {
    max-width: 350px;
    text-align: center;
}

.confirmation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px 20px 0;
}

.confirmation-header i {
    font-size: 20px;
    color: #FF9800;
}

.confirmation-header h3 {
    color: #fff;
    font-size: 21px;
    margin: 0;
    font-family: 'Zaglaviq', Arial, sans-serif;
}

.confirmation-body {
    padding: 0 20px 15px;
}

.confirmation-body p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.5);
    border-radius: 0 0 12px 12px;
}

.confirmation-actions .btn-secondary,
.confirmation-actions .btn-primary {
    font-family: 'Zaglaviq', Arial, sans-serif;
    flex: 1;
    justify-content: center;
}

/* Favorites Modal */
.favorites-modal-content {
    max-width: 800px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 4px 4px 8px;
    animation: fadeIn 0.5s ease-out;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.favorites-grid .product-card {
    animation: none;
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: none !important;
        overflow-y: visible !important;
    }
}

.favorites-empty {
    text-align: center;
    padding: 30px 15px;
    color: #ccc;
    animation: fadeIn 0.5s ease-out;
}

.favorites-empty i {
    font-size: 50px;
    color: #e15829;
    margin-bottom: 15px;
    opacity: 0.7;
}

.favorites-empty h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.favorites-empty p {
    font-size: 13px;
    margin-bottom: 0;
}

/* Notification Bell */
/* ── Notification Bell Animations ─────────────────────────────── */
@keyframes bellRing {
    0%   { transform: rotate(0) scale(1); }
    8%   { transform: rotate(18deg) scale(1.1); }
    18%  { transform: rotate(-16deg) scale(1.05); }
    28%  { transform: rotate(13deg); }
    38%  { transform: rotate(-9deg); }
    48%  { transform: rotate(6deg); }
    58%  { transform: rotate(-3deg); }
    68%  { transform: rotate(2deg); }
    80%  { transform: rotate(-1deg); }
    100% { transform: rotate(0); }
}

@keyframes badgePop {
    0%   { transform: scale(0); opacity: 0; }
    55%  { transform: scale(1.35); opacity: 1; }
    75%  { transform: scale(0.88); }
    90%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes notifGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225,88,41,0); }
    50%       { box-shadow: 0 0 0 5px rgba(225,88,41,0.18); }
}

@keyframes notifDropIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes notifNewFlash {
    0%   { background: rgba(225,88,41,0.18); }
    60%  { background: rgba(225,88,41,0.06); }
    100% { background: rgba(225,88,41,0.05); }
}

/* ── Notification Bell ─────────────────────────────────────────── */
.notif-container {
    position: relative;
}

.notif-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    transform-origin: center;
}

.notif-btn:hover {
    background: rgba(225,88,41,0.15);
    border-color: rgba(225,88,41,0.35);
    color: #e15829;
}

.notif-btn.has-unread {
    background: rgba(225,88,41,0.12);
    border-color: rgba(225,88,41,0.32);
    color: #e15829;
    animation: notifGlow 2.5s ease-in-out infinite;
}

.notif-btn.ringing .fa-bell {
    animation: bellRing 0.9s cubic-bezier(0.36,0.07,0.19,0.97);
    transform-origin: top center;
    display: inline-block;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #e15829, #ff6b3d);
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 0 0 2px #111, 0 2px 8px rgba(225,88,41,0.5);
    transform-origin: center;
}

.notif-badge.pop {
    animation: badgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: rgba(18,18,20,0.98);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    z-index: 9999;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
    overflow: hidden;
}

.notif-dropdown.show {
    display: block;
    animation: notifDropIn 0.24s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.notif-mark-all {
    font-family: 'Zaglaviq', Arial, sans-serif;
    background: none;
    border: none;
    color: #e15829;
    font-size: 17px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 600;
}

.notif-mark-all:hover {
    background: rgba(225,88,41,0.1);
}

.notif-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 4px 0;
}

.notif-list::-webkit-scrollbar {
    width: 4px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.notif-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    transition: background 0.2s;
    cursor: default;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    animation: notifItemSlide 0.22s ease both;
}

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

.notif-item:hover {
    background: rgba(255,255,255,0.045);
}

.notif-item.unread {
    background: rgba(225,88,41,0.055);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #e15829, #ff6b3d);
    border-radius: 0 2px 2px 0;
}

.notif-item.is-new {
    animation: notifNewFlash 1.4s ease both;
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.notif-item-msg {
    font-size: 12px;
    color: #aaa;
    line-height: 1.45;
    margin-bottom: 5px;
}

.notif-item-time {
    font-size: 11px;
    color: #666;
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: #666;
}

.notif-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

.notif-empty p {
    font-size: 13px;
    margin: 0;
}

/* Profile Modal */
.profile-modal-content {
    max-width: 1000px;
    width: 96%;
}

/* ── Profile Tabs — new icon-above-label design ────────────── */
.profile-tabs-wrapper {
    background: rgba(14, 14, 14, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 12px 0;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.tab-btn {
    font-family: 'Zaglaviq', Arial, sans-serif;
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    color: #777;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 6px 11px;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 18px;
    width: auto;
    display: block;
}

.tab-btn span {
    display: block;
    line-height: 1;
}

.tab-btn:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: #e15829;
    border-bottom-color: #e15829;
    background: rgba(225, 88, 41, 0.08);
}

@media (max-width: 768px) {
    .profile-tabs-wrapper {
        padding: 8px 8px 0;
    }
    .profile-tabs {
        gap: 3px;
    }
    .tab-btn {
        padding: 8px 2px 10px;
        font-size: 16px;
        gap: 4px;
        border-radius: 8px 8px 0 0;
    }
    .tab-btn i {
        font-size: 16px;
    }
}

.tab-content {
    padding: 32px 36px;
    min-height: 420px;
}

@media (max-width: 768px) {
    .tab-content {
        padding: 10px;
        min-height: 0;
    }
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

/* =============================================== */
/* UPDATED: Profile Forms - SEPARATED PROPERLY */
/* =============================================== */

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* FIX: Password change form separated properly */
#password-change-form {
    margin-top: 10px;
}

.form-row {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group label:after {
    content: '*';
    color: #e15829;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 13px; /* ≥16px prevents iOS Safari auto-zoom on focus */
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: not-allowed;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e15829;
    box-shadow: 0 0 0 3px rgba(225, 88, 41, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

/* Profile Form Actions */
.form-actions.profile-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .form-group {
        gap: 5px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 9px 12px;
    }
    .form-group label {
        font-size: 13px;
    }
    .profile-form {
        gap: 3px;
    }
}

@media (max-width: 768px) {
    .form-actions.profile-form-actions {
        flex-direction: column;
        gap: 10px;
    }
}

.form-actions.profile-form-actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(225, 88, 41, 0.3),
        transparent);
    margin: 18px 0;
}

/* Password Feedback */
.password-feedback {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    display: none;
}

.password-feedback.valid {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
    display: flex;
}

.password-feedback.invalid {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.2);
    display: flex;
}

.password-feedback i {
    font-size: 13px;
}

/* Change Password — collapsible toggle */
.change-password-section {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.change-password-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    gap: 8px;
}

.change-password-toggle span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.change-password-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.change-password-toggle.open {
    color: #e15829;
    background: rgba(225, 88, 41, 0.07);
    border-bottom: 1px solid rgba(225, 88, 41, 0.2);
}

.toggle-chevron {
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.change-password-toggle.open .toggle-chevron {
    transform: rotate(180deg);
}

.change-password-form {
    display: none;
    padding: 18px 16px 16px;
    background: rgba(255, 255, 255, 0.02);
}

.password-strength {
    margin-top: 10px;
    margin-bottom: -10px;
}

.strength-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
    position: relative;
}

.strength-bar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #f44336;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-bar.weak:before {
    width: 25%;
    background: #f44336;
}

.strength-bar.medium:before {
    width: 50%;
    background: #FF9800;
}

.strength-bar.strong:before {
    width: 75%;
    background: #4CAF50;
}

.strength-bar.very-strong:before {
    width: 100%;
    background: #4CAF50;
}

.strength-text {
    font-size: 12px;
    color: #888;
    text-align: right;
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    transition: all 0.3s ease;
}

.requirement.valid {
    color: #4CAF50;
}

.requirement.valid i {
    color: #4CAF50;
}

.requirement i {
    font-size: 10px;
    color: #666;
}

/* Address Info */
.address-info {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(225, 88, 41, 0.1);
    border: 1px solid rgba(225, 88, 41, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 6px;
    color: #e15829;
    font-size: 12px;
}

.address-info i {
    font-size: 13px;
    flex-shrink: 0;
}

/* Change Password Form — padding handled by parent */

/* Address Input */
.address-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.address-input-container input {
    padding-right: 40px !important;
    width: 100%;
}

.location-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.location-btn:hover {
    background: rgba(225, 88, 41, 0.2);
    color: #e15829;
    border-color: rgba(225, 88, 41, 0.4);
}

/* Improved Address Map Container */
.address-map-container {
    position: relative;
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    background: rgba(40, 40, 40, 0.8);
    display: block;
    height: 340px;
    transition: opacity 0.3s ease;
}

.address-map-container.hidden {
    display: none;
}

.address-map {
    height: 100%;
    width: 100%;
    border-radius: 14px;
    z-index: 1;
}

/* Leaflet polish inside the dark modal */
.address-map .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.55);
    color: #bbb;
}
.address-map .leaflet-control-attribution a { color: #e1a07f; }
.address-map .leaflet-bar a {
    background: rgba(30, 30, 30, 0.92);
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}
.address-map .leaflet-bar a:hover { background: rgba(225, 88, 41, 0.85); }

.address-map-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-control-btn {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-control-btn:hover {
    background: rgba(225, 88, 41, 0.8);
    transform: scale(1.05);
    border-color: rgba(225, 88, 41, 0.4);
}

/* Map Toggle */
.map-toggle-container {
    margin-top: 8px;
    margin-bottom: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e15829;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-label input:checked + .toggle-slider {
    background: rgba(225, 88, 41, 0.3);
}

.toggle-label input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-text {
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
}

/* Address Suggestions */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(225, 88, 41, 0.3);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(225, 88, 41, 0.2);
    display: none;
}

.address-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.address-suggestion:last-child {
    border-bottom: none;
}

.address-suggestion:hover {
    background: rgba(225, 88, 41, 0.15);
}

.address-suggestion i {
    color: #e15829;
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.suggestion-main {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
}

.suggestion-details {
    color: #ccc;
    font-size: 11px;
    line-height: 1.4;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
}

/* Buttons */
.form-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    font-family: 'Zaglaviq', Arial, sans-serif;
    background: linear-gradient(135deg, #e15829, #c44a24);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(225, 88, 41, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #c44a24, #a83c1f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 88, 41, 0.5);
}

.btn-primary:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-secondary {
    font-family: 'Zaglaviq', Arial, sans-serif;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #d9d9d9;
}

.btn-primary.full-width,
.btn-secondary.full-width {
    width: 100%;
    justify-content: center;
}

/* Improved Addresses Section */
.addresses-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 12px;
    }
}

.section-title-wrapper {
    flex: 1;
}

.section-title {
    font-family: 'Zaglaviq', Arial, sans-serif;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-description {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
    margin-left: 30px;
}

#add-address-btn {
    font-family: 'Zaglaviq', Arial, sans-serif;
    background: linear-gradient(135deg, #436db5, #354f8c);
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    white-space: nowrap;
}

#add-address-btn:hover {
    background: linear-gradient(135deg, #354f8c, #2a3f6f);
    transform: translateY(-2px);
}

/* Addresses Grid Layout */
.addresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.address-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-column-title {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.address-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.address-count {
    color: #e15829;
    font-size: 12px;
    font-weight: 600;
    background: rgba(225, 88, 41, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

/* Improved Address Card */
.address-card {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.95), rgba(25, 25, 25, 0.98));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .address-card {
        padding: 12px;
    }
}

.address-card.active {
    border-color: #e15829;
    box-shadow: 0 8px 25px rgba(225, 88, 41, 0.2);
}

.address-card.active:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #e15829, #c44a24);
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.address-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.address-title i {
    color: #e15829;
    font-size: 16px;
    width: 20px;
}

.address-title span {
    font-family: 'Zaglaviq', Arial, sans-serif;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.address-status-badge {
    font-family: 'Zaglaviq', Arial, sans-serif;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    white-space: nowrap;
}

.address-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-text {
    color: #ccc;
    line-height: 1.5;
    font-size: 12px;
    margin: 0;
}

.address-notes {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #FF9800;
}

.address-notes i {
    color: #FF9800;
    font-size: 14px;
    margin-top: 2px;
}

.address-notes span {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
}

.address-date {
    color: #888;
    font-size: 11px;
    font-style: italic;
    text-align: right;
    margin-top: 5px;
}

.address-actions {
    display: flex;
    gap: 6px;
}

.address-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.address-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.address-action-btn.set-active-address:hover {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
}

.address-action-btn.edit-address:hover {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border-color: rgba(33, 150, 243, 0.3);
}

.address-action-btn.delete-address:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.3);
}

.address-action-btn.copy-address:hover {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
    border-color: rgba(156, 39, 176, 0.3);
}

.address-action-btn.edit-on-map:hover {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
}

/* Address Alert */
.address-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
}

.address-alert i {
    color: #FF9800;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-title {
    color: #FF9800;
    font-weight: 600;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.alert-description {
    color: #FF9800;
    opacity: 0.9;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Other Addresses List */
.other-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 50px;
    color: #e15829;
    opacity: 0.5;
}

.empty-title,
.empty-state h3,
.empty-state h4 {
    color: #ccc;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.empty-description,
.empty-state p {
    color: #888;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.empty-state .small {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Favorites Container (profile section) */
.favorites-container .favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 15px;
}

.favorites-container .favorites-grid .product-card,
.favorites-grid .product-card {
    animation: none;
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .favorites-container .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

/* ── Notification System ──────────────────────────────────────────── */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 110000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
    max-width: 380px;
}

.notification {
    background: rgba(11, 11, 17, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--notif-color, #555);
    border-radius: 14px;
    padding: 0;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.72),
        0 8px 24px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    width: 340px;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(28px) scale(0.94);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    position: relative;
}

.notification.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.notification.hiding {
    transform: translateX(28px) scale(0.94);
    opacity: 0;
    transition: transform 0.22s ease-in, opacity 0.18s ease-in;
}

/* Mobile notifications — bottom of screen, slide up */
@media (max-width: 768px) {
    #notification-container {
        top: auto;
        bottom: max(16px, env(safe-area-inset-bottom));
        right: 12px;
        left: 12px;
        max-width: none;
        align-items: stretch;
    }
    .notification {
        width: 100%;
        border-radius: 14px;
        transform: translateY(16px) scale(0.97);
    }
    .notification.show {
        transform: translateY(0) scale(1);
    }
    .notification.hiding {
        transform: translateY(16px) scale(0.97);
        transition: transform 0.18s ease-in, opacity 0.15s ease-in;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 12px 16px 14px;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

.notification-text {
    color: #9898aa;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: #3c3c50;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1;
    align-self: flex-start;
    margin-top: 2px;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 0;
    height: 3px;
    transform-origin: left;
    transform: scaleX(1);
    opacity: 0.65;
    border-radius: 0 0 14px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-scroll {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    /* header + categories + bottom-nav handled by the dedicated mobile block above */

    .menu-main {
        padding: 15px;
    }
    
    .modal-content {
        animation: modalSlideUp 0.36s cubic-bezier(0.22, 0.68, 0, 1.15);
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .favorites-container .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .order-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .order-actions {
        justify-content: stretch;
    }
    
    .order-actions .btn-secondary {
        flex: 1;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .marketing-container {
        padding: 0 15px;
    }
    
    .promo-text {
        font-size: 12px;
        text-align: left;
    }
    
    .favorites-btn {
        width: 35px;
        height: 35px;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .address-map {
        height: 200px;
    }
    
    .map-control-btn {
        width: 30px;
        height: 30px;
    }
    
    .form-actions.profile-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions.profile-form-actions .btn-secondary,
    .form-actions.profile-form-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
    }

    .logo {
        height: 32px;
    }

    .cart-btn, .favorites-btn, .notif-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .header-account .profile-btn,
    .header-account .login-btn,
    .search-toggle-btn {
        width: 32px;
        height: 32px;
    }

    .notif-dropdown {
        width: 300px;
        right: -40px;
    }

    .categories-nav {
        padding: 6px 0;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .favorites-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .favorites-count {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .banned-container {
        padding: 25px 15px;
        margin: 10px;
    }
    
    .banned-container i {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .banned-container h2 {
        font-size: 18px;
    }
    
    .banned-container p {
        font-size: 12px;
    }
    
    .logout-btn {
        padding: 8px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .address-card {
        padding: 15px;
    }
    
    .image-label {
        width: 30px;
        height: 30px;
        padding: 3px;
    }

    .product-detail-name-row .image-label {
        width: 36px;
        height: 36px;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .address-column-title {
        font-size: 14px;
    }
    
    .cart-modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .cart-item-image {
        width: 65px;
        height: 65px;
    }
    
    .quantity-controls {
        width: auto;
    }

}

@media (max-width: 768px) {
    .marketing-bar.hide-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .marketing-bar.hide-desktop {
        display: none;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #e15829;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c44a24;
}

/* Selection Styling */
::selection {
    background: rgba(225, 88, 41, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(225, 88, 41, 0.3);
    color: white;
}
/* ═══════════ Sushido Points (client profile tab — dark theme) ═══════════ */
#points-tab { color: #fff; }
.loyalty-loading, .loyalty-empty {
    text-align: center; color: #9a9a9a; padding: 34px 14px; font-size: 14px;
}
/* When empty state is inside the shop grid, span all columns so it centers */
.loyalty-shop .loyalty-empty {
    grid-column: 1 / -1;
}
.loyalty-loading i { color: #e15829; margin-right: 8px; }

.loyalty-section-title {
    font-size: 17px; margin: 30px 0 4px; color: #fff; font-weight: 700;
    display: flex; align-items: center; gap: 9px;
}
.loyalty-section-title i { color: #e15829; }
.loyalty-section-hint { color: #9a9a9a; font-size: 13px; margin: 0 0 16px; line-height: 1.55; }

/* ── Hero: balance + rank ── */
.loyalty-hero {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    background: linear-gradient(135deg, #e15829 0%, #c0392b 60%, #8e2b20 100%);
    color: #fff; border-radius: 20px; padding: 26px 30px; flex-wrap: wrap;
    position: relative; overflow: hidden;
    box-shadow: 0 12px 34px rgba(225, 88, 41, 0.32);
}
.loyalty-hero::after {
    content: ""; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    pointer-events: none;
}
.lh-balance { display: flex; flex-direction: column; position: relative; z-index: 1; }
.lh-balance-num { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -1px; font-family: 'Zaglaviq', Arial, sans-serif;}
.lh-balance-label { font-size: 17px; opacity: .92; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; font-family: 'Zaglaviq', Arial, sans-serif;}
.lh-rank {
    display: flex; align-items: center; gap: 14px; position: relative; z-index: 1;
    background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px; padding: 12px 20px;
}
.lh-rank i { font-size: 30px; color: #ffe08a; }
.lh-rank-name { font-size: 23px; font-weight: 800; font-family: 'Zaglaviq', Arial, sans-serif; }
.lh-rank-bonus { font-size: 13px; opacity: .92; margin-top: 2px; }

/* ── Progress to next rank ── */
.loyalty-progress {
    margin-top: 16px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 18px 20px;
}
.lp-progress-head {display: flex;justify-content: space-between;font-size: 18px;color: #cfcfcf;margin-bottom: 9px;font-weight: 600; font-family: 'Zaglaviq', Arial, sans-serif;}
.lp-progress-bar { height: 12px; background: rgba(255, 255, 255, 0.1); border-radius: 20px; overflow: hidden; }
.lp-progress-fill { height: 100%; background: linear-gradient(90deg, #e15829, #f0a04b); border-radius: 20px; transition: width .5s ease; }
.lh-perks { font-size: 13px; color: #aeaeae; margin: 12px 0 0; font-style: italic; }

/* ── Daily healthy task ── */
.loyalty-daily {
    display: flex; align-items: center; gap: 16px; margin-top: 18px;
    background: rgba(42, 157, 143, 0.12); border: 1px solid rgba(42, 157, 143, 0.4);
    border-radius: 16px; padding: 16px 20px;
}
.ld-icon {
    font-size: 22px; color: #4ad0bb; flex-shrink: 0;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    background: rgba(42, 157, 143, 0.18); border-radius: 12px;
}
.ld-info { flex: 1; }
.ld-info h4 { margin: 0 0 3px; font-size: 15px; color: #fff; }
.ld-info p { margin: 0; font-size: 13px; color: #b8b8b8; }
.ld-points { font-weight: 800; color: #4ad0bb; font-size: 20px; }
.ld-done { color: #4ad0bb; font-weight: 700; font-size: 14px; white-space: nowrap; }
.ld-done i { margin-right: 4px; }

/* ── Voucher shop ── */
.loyalty-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.loyalty-shop-card {
    border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 20px 16px; text-align: center;
    display: flex; flex-direction: column; gap: 10px; align-items: center;
    background: rgba(255, 255, 255, 0.04); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.loyalty-shop-card:not(.locked):hover {
    transform: translateY(-3px); border-color: rgba(225, 88, 41, 0.6);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.loyalty-shop-card.locked { opacity: .5; }
.ls-discount { font-size: 30px; font-weight: 800; color: #ff7a45; line-height: 1; }
.ls-name { font-size: 13px; color: #cfcfcf; min-height: 34px; display: flex; align-items: center; }
.ls-cost { font-size: 13px; color: #ffd9a8; font-weight: 700; }
.ls-cost i { color: #f0a04b; }
.ls-buy {
    border: none; background: linear-gradient(135deg, #e15829, #ff6b3d); color: #fff; border-radius: 10px;
    padding: 11px 12px; font-weight: 700; font-size: 13px; cursor: pointer; width: 100%; transition: opacity .15s;
}
.ls-buy:disabled { background: rgba(255, 255, 255, 0.1); color: #888; cursor: not-allowed; }
.ls-buy:not(:disabled):hover { opacity: .9; }

/* ── My vouchers ── */
.loyalty-myvouchers { display: flex; flex-direction: column; gap: 12px; }
.loyalty-myvoucher {
    display: flex; justify-content: space-between; align-items: center;
    border: 1px dashed rgba(225, 88, 41, 0.6); border-radius: 14px; padding: 15px 20px;
    background: rgba(225, 88, 41, 0.08); position: relative;
}
.lmv-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lmv-disc { font-size: 24px; font-weight: 800; color: #ff7a45; }
.lmv-left code { font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.1); padding: 4px 10px; border-radius: 7px; letter-spacing: .5px; }
.lmv-reason {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    background: rgba(245, 158, 11, 0.18); color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4); border-radius: 20px;
    padding: 2px 9px;
}
.lmv-right { text-align: right; display: flex; flex-direction: column; }
.lmv-right small { font-size: 11px; color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; }
.lmv-right strong { color: #e0e0e0; font-size: 14px; }

/* ── History ── */
.loyalty-history { display: flex; flex-direction: column; }
.loyalty-hist-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.loyalty-hist-row:last-child { border-bottom: none; }
.lhr-info { display: flex; flex-direction: column; gap: 2px; }
.lhr-info strong { font-size: 14px; color: #f0f0f0; }
.lhr-info small { font-size: 12px; color: #9a9a9a; }
.lhr-points { font-weight: 800; font-size: 18px; font-family: 'Zaglaviq', Arial, sans-serif; }
.lhr-points.pos { color: #4ad0bb; }
.lhr-points.neg { color: #ff8a80; }
.lh-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); }
.lh-pager-btn { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #ccc; border-radius: 8px; width: 32px; height: 32px; font-size: 16px; cursor: pointer; transition: background .15s; }
.lh-pager-btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); color: #fff; }
.lh-pager-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.lh-pager-info { font-size: 13px; color: #777; min-width: 40px; text-align: center; }

@media (max-width: 768px) {
    .loyalty-hero { padding: 22px; }
    .lh-balance-num { font-size: 38px; }
    .loyalty-shop { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Product card prices (.current-price = EUR, .eur-price = лв) keep their
   original equal sizing from the rules above. */

/* ═══════════ My orders (profile tab) ═══════════ */
.orders-loading { text-align: center; color: #9a9a9a; padding: 34px 14px; font-size: 14px; }
.orders-loading i { color: #e15829; margin-right: 8px; }
.orders-container { display: flex; flex-direction: column; gap: 14px; }

.myorder-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 18px;
}
.myorder-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 6px;
}
.myorder-num { font-size: 20px; font-weight: 800; color: #fff; font-family: 'Zaglaviq', Arial, sans-serif; }
.myorder-status {
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.myorder-status.pending    { background: rgba(255, 152, 0, 0.2);  color: #ffb74d; }
.myorder-status.preparing  { background: rgba(33, 150, 243, 0.2); color: #7bb8f5; }
.myorder-status.ready      { background: rgba(76, 175, 80, 0.2);  color: #86d98a; }
.myorder-status.delivering { background: rgba(156, 39, 176, 0.25);color: #ce93d8; }
.myorder-status.done       { background: rgba(76, 175, 80, 0.22); color: #8ee592; }
.myorder-status.cancelled  { background: rgba(244, 67, 54, 0.2);  color: #ff8a80; }

.myorder-meta { font-size: 13px; color: #9a9a9a; margin-bottom: 8px; }
.myorder-sched-badge { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:#c084fc; background:rgba(168,85,247,0.12); border:1px solid rgba(168,85,247,0.25); border-radius:20px; padding:4px 10px; margin-bottom:10px; }
.myorder-sched-badge i { font-size:11px; }

.myorder-items {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.myorder-item { display: flex; justify-content: space-between; gap: 12px; font-size: 20px; font-family: 'Zaglaviq', Arial, sans-serif;}
.myorder-item-name { color: #e0e0e0; }
.myorder-item-price { color: #fff; white-space: nowrap; font-weight: 600; }
.myorder-item-price .lv { color: #9a9a9a; font-weight: 400; font-size: 20px; }

.myorder-total {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px; font-size: 18px;
    font-family: 'Zaglaviq', Arial, sans-serif;
}
.myorder-total span { color: #cfcfcf; }
.myorder-total strong { color: #ff8a5c; font-size: 24px; }
.myorder-total strong .lv { color: #9a9a9a; font-size: 22px; font-weight: 400; }

/* My orders: only in-progress cards are clickable → tracking */
.myorder-card.trackable { cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; }
.myorder-card.trackable:hover { border-color: rgba(225,88,41,0.45); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.myorder-pts-sep { color: #fff; font-weight: 400; }
.myorder-points {
    padding: 3px 8px;
    background: rgba(225,88,41,0.12); border: 1px solid rgba(225,88,41,0.25);
    border-radius: 8px; color: #ff8a5c; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
}
.myorder-points i { font-size: 10px; }
.myorder-track {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07);
    text-align: center; color: #ff8a5c; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
.myorder-card.trackable:hover .myorder-track { color: #ffa074; }

.orders-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.op-btn {
    min-width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05); color: #ddd; font-weight: 700; cursor: pointer; font-size: 14px; transition: all .15s;
}
.op-btn:hover:not(:disabled) { background: rgba(255,255,255,0.13); }
.op-btn.active { background: #e15829; border-color: #e15829; color: #fff; }
.op-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Mobile slide-up modal animation ─────────────────────────────── */
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── iOS zoom fix: inputs must be ≥ 16px to prevent auto-zoom ───── */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: max(16px, 1em) !important;
    }
}

/* ── Charity Campaign Styles ── */
.myorder-charity { background: linear-gradient(135deg, rgba(225,88,41,0.1), rgba(225,88,41,0.05)); border: 1px solid rgba(225,88,41,0.25); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #e98a6a; margin-top: 10px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.myorder-charity .charity-heart { color: #e15829; margin-top: 3px; flex-shrink: 0; font-size: 15px; }
.myorder-charity .charity-content { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.myorder-charity .charity-title { font-size: 13px; color: #f0a080; font-weight: 600; }
.myorder-charity .charity-dates { font-size: 11px; color: rgba(225,88,41,0.7); font-weight: 400; margin-left: 4px; }
.myorder-charity .charity-desc { font-size: 12px; color: #e98a6a; }
.myorder-charity .charity-status { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 4px; padding: 5px 10px; border-radius: 6px; }
.myorder-charity .charity-status.donated { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.25); color: #4ade80; }
.myorder-charity .charity-status.donated i { color: #4ade80; }
.myorder-charity .charity-status.pending { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); color: #fbbf24; }
.myorder-charity .charity-status.pending i { color: #fbbf24; }
.myorder-charity .charity-status.terminated { background: rgba(156,163,175,0.08); border: 1px solid rgba(156,163,175,0.2); color: #9ca3af; }
.myorder-charity .charity-status.terminated i { color: #9ca3af; }
.myorder-charity.terminated { background: linear-gradient(135deg, rgba(100,100,100,0.08), rgba(80,80,80,0.04)); border-color: rgba(156,163,175,0.2); }
.myorder-charity.terminated .charity-heart { color: #9ca3af; }
.myorder-charity.terminated .charity-title { color: #9ca3af; }
.myorder-charity.charity-cancelled { background: rgba(244,63,94,0.04); border-color: rgba(244,63,94,0.15); }
.myorder-charity.charity-cancelled .charity-heart { color: #6b7280; }
.myorder-charity.charity-cancelled .charity-title { color: #6b7280; }
.charity-status-cancelled { background: rgba(244,63,94,0.07); border: 1px solid rgba(244,63,94,0.18); color: #9ca3af !important; display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 4px; padding: 5px 10px; border-radius: 6px; }
.charity-status-cancelled i { color: #6b7280; }
.charity-terminated-reason { font-size: 12px; color: #9ca3af; background: rgba(156,163,175,0.06); border: 1px solid rgba(156,163,175,0.15); border-radius: 6px; padding: 6px 10px; margin-top: 4px; line-height: 1.5; }
.myorder-charity .charity-proof-link { display: inline-flex; align-items: center; gap: 4px; color: #4ade80; text-decoration: underline; font-size: 12px; margin-left: 8px; }
.myorder-charity .charity-proof-link:hover { color: #86efac; }
.cart-charity-notice { display: flex; align-items: flex-start; gap: 8px; background: rgba(225,88,41,0.07); border: 1px solid rgba(225,88,41,0.2); border-radius: 8px; padding: 9px 12px; font-size: 12px; color: #e98a6a; line-height: 1.5; margin-top: 6px; }
.cart-charity-notice i { color: #e15829; margin-top: 3px; flex-shrink: 0; }
.cart-charity-notice > div { display: flex; flex-direction: column; gap: 2px; }
.cart-charity-notice > div strong { color: #f0a080; font-size: 13px; }
.cart-charity-dates { font-size: 11px; opacity: 0.65; }
.cart-charity-label { font-size: 11px; opacity: 0.7; font-weight: 400; }

/* ── Order Detail Modal ──────────────────────────────────────────── */
.order-detail-modal { z-index: 10001; }
.order-detail-modal-content { max-width: 520px; }

/* Детален преглед бутон в картата */
.myorder-detail-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin-top: 10px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    font-size: 17px;
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    justify-content: center;
}
.myorder-detail-btn i { color: #e15829; font-size: 15px; }
.myorder-detail-btn:hover { background: rgba(225, 88, 41, 0.08); border-color: rgba(225, 88, 41, 0.3); color: #e15829; }

/* Секции вътре в детайлния преглед */
.od-section {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.od-section:last-child { border-bottom: none; }
.od-section-title {
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #e15829;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.od-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    font-size: 15px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.od-row:last-child { border-bottom: none; }
.od-row > span:first-child { color: #777; font-size: 13px; white-space: nowrap; padding-top: 1px; }
.od-row > span:last-child { text-align: right; }
.od-notes > span:last-child { color: #bbb; font-style: italic; }

/* Продукти */
.od-items { display: flex; flex-direction: column; gap: 0; }
.od-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    font-size: 15px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.od-item:last-child { border-bottom: none; }
.od-item-left { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; flex-wrap: wrap; }
.od-item-right { display: flex; align-items: center; gap: 6px; text-align: right; flex-shrink: 0; }
.od-item-qty { color: #e15829; font-weight: 700; font-size: 13px; white-space: nowrap; }
.od-item-name { flex: 1; min-width: 0; }
.od-item-disc-badge { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.25); color: #4ade80; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.od-promo-pct-badge { background: rgba(76,175,80,0.15); color: #4ade80; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 5px; white-space: nowrap; }
.od-item-orig { color: #666; font-size: 17px; text-decoration: line-through; white-space: nowrap; font-family: 'Zaglaviq', Arial, sans-serif;}
.od-item-orig-bgn { color: #555; font-size: 16px; }
.od-item-price { white-space: nowrap; font-family: 'Zaglaviq', Arial, sans-serif; font-size: 18px; }
.od-item-price .lv { color: #555; font-size: 17px; }

/* Промоции */
.od-promos { display: flex; flex-direction: column; gap: 6px; }
.od-promo-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 15px; }
.od-promo-row:last-child { border-bottom: none; }
.od-promo-left { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.od-promo-type { color: #ccc; }
.od-promo-code { background: rgba(225,88,41,0.12); border: 1px solid rgba(225,88,41,0.25); color: #e15829; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 5px; letter-spacing: 0.5px; font-family: monospace; }
.od-promo-name { color: #777; font-size: 13px; }
.od-promo-amount { color: #4ade80; font-family: 'Zaglaviq', Arial, sans-serif; font-weight: 700; white-space: nowrap; flex-shrink: 0; font-size: 18px; }

/* Суми */
.od-totals { display: flex; flex-direction: column; }
.od-totals .od-row {font-size: 19px; font-family: 'Zaglaviq', Arial, sans-serif;}
.od-discount > span:first-child { color: #4ade80; }
.od-discount > span:last-child { color: #4ade80; font-family: 'Zaglaviq', Arial, sans-serif; }
.od-disc-prod > span:first-child { color: #e15829; }
.od-disc-prod > span:last-child { color: #e15829; font-family: 'Zaglaviq', Arial, sans-serif; }
.od-sub > span:first-child { color: #aaa; font-size: 13px; }
.od-row-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0; }
.od-no-disc { opacity: 0.45; }
.od-no-disc > span:first-child { color: #888 !important; font-size: 13px; }
.od-no-disc > span:last-child { color: #888; font-family: 'Zaglaviq', Arial, sans-serif; }
.od-cash > span:first-child { color: #aaa !important; }
.od-cash > span:last-child { color: #bbb; font-family: 'Zaglaviq', Arial, sans-serif; }
.od-grand-total { padding: 9px 0 4px !important; margin-top: 4px; border-top: 2px solid rgba(255, 255, 255, 0.12) !important; border-bottom: none !important; }
.od-grand-total > span:first-child { color: #fff !important; font-weight: 700; font-size: 15px !important; }
.od-grand-total > span:last-child strong { font-size: 17px; color: #fff; font-family: 'Zaglaviq', Arial, sans-serif; }
.od-grand-total .lv { color: #777 !important; font-size: 19px !important; }

/* Планирано взимане */
.od-scheduled-pickup > span:first-child { color: #c084fc !important; }
.od-sched-badge { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:#c084fc; background:rgba(168,85,247,0.12); border:1px solid rgba(168,85,247,0.25); border-radius:20px; padding:3px 10px; }

/* Статус плащане */
.od-pay-status { font-size: 12px; font-weight: 600; }
.od-pay-paid    { color: #4ade80; }
.od-pay-unpaid  { color: #fbbf24; }
.od-pay-pending { color: #fbbf24; }
.od-pay-failed  { color: #f87171; }

/* Точки секция */
.od-section-points {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e98a6a;
}
.od-section-points i { color: #e15829; font-size: 14px; }
.od-section-points strong { color: #f0a080; }

/* Кампания секция */
.od-section-charity { padding-top: 10px; padding-bottom: 10px; }
.od-section-charity .myorder-charity { margin-top: 0; }
.od-empty { color: #666; font-size: 12px; }

@media (max-width: 768px) {
    .order-detail-modal-content { max-width: 100%; }
    .od-section { padding: 11px 13px; }
}

/* ── Prevent page scroll bounce when scrolling inside modals ────── */
.modal-content,
.modal-body,
.cart-items-section,
.cart-modal-content,
.product-modal-content,
.confirmation-modal-content,
.favorites-modal-content,
.profile-modal-content { overscroll-behavior: contain; }

/* ── Global smoothness improvements ─────────────────────────────── */
.product-card,
.category-btn,
.btn-primary,
.btn-secondary,
.cart-btn,
.favorites-btn,
.notif-btn,
.login-btn,
.profile-btn,
.modal-close,
.dropdown-item,
.cart-item,
.summary-row {
    -webkit-font-smoothing: antialiased;
}

/* Smooth out all interactive transitions on mobile */
@media (max-width: 768px) {
    .product-card {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
    .product-card:active {
        will-change: transform; /* promote to GPU layer only when pressing */
        transform: scale(0.97);
    }
    .category-btn {
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }
    .btn-primary, .btn-secondary {
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    }
    .btn-primary:active, .btn-secondary:active {
        transform: scale(0.97);
    }
    /* Smooth modal open/close */
    .modal-content {
        transition: none; /* animation handles it */
    }

    /* Hide "Продукти в количката" header on mobile — saves space */
    .cart-items-section > .section-header {
        display: none;
    }

    /* ── Bottom-sheet modals on mobile ────────────────────────────── */
    /* .modal-content slides up from the bottom of the screen.          */
    .modal-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Keep bottom of viewport free: max-height accounts for safe-area-inset-top */
        max-height: calc(100% - env(safe-area-inset-top, 0px) - 12px) !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0;
        animation: sheetSlideUp 0.28s cubic-bezier(0.22, 0.68, 0, 1.15);
        /* Safe area: ensure content isn't hidden behind home indicator */
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    }
    .modal-header {
        border-radius: 20px 20px 0 0;
    }
    /* Profile: tabs need more room */
    .profile-modal-content {
        max-height: calc(100% - env(safe-area-inset-top, 0px) - 12px) !important;
    }
    /* Tabs wrapper sticks below the modal header while content scrolls */
    .profile-tabs-wrapper {
        position: sticky;
        top: 56px;
        z-index: 5;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    /* Cart modal */
    .cart-modal-content {
        max-height: calc(100% - env(safe-area-inset-top, 0px) - 20px) !important;
    }
    /* Cart items section fills flex space and scrolls */
    .cart-items-section {
        flex: 1;
        min-height: 0;
    }
}

/* ════════════════════════════════════════════════
   MOBILE BURGER BUTTON
   ════════════════════════════════════════════════ */
.mobile-burger-btn {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 21px;
    padding: 7px 9px;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}
.mobile-burger-btn:active {
    color: #e15829;
    background: rgba(225, 88, 41, 0.1);
}

/* ── Mobile notifications mirror (left-side bell) ── */
.mobile-notif-mirror {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 7px 8px;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    transition: color 0.15s;
}
.mobile-notif-mirror .icon-with-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 19px;
}
.mobile-notif-count-mirror {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #e15829;
    color: #fff;
    border-radius: 8px;
    min-width: 15px;
    height: 15px;
    font-size: 9px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 1.5px solid #0c0c0e;
    line-height: 1;
}
.mobile-notif-count-mirror:not(:empty) { display: inline-flex; }

@media (max-width: 768px) {
    .mobile-burger-btn { display: flex; }
    .mobile-notif-mirror { display: flex; }
}

/* ════════════════════════════════════════════════
   BURGER DRAWER
   ════════════════════════════════════════════════ */
.burger-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    -webkit-tap-highlight-color: transparent;
}
.burger-overlay.burger-active { display: block; }

.burger-drawer {
    font-family: 'Zaglaviq', Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(285px, 82vw);
    background: rgba(13, 13, 15, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    z-index: 1501;
    display: flex;
    flex-direction: column;
    /* Push content below any active bars (marketing/break) so they don't overlap the drawer */
    padding-top: calc(var(--bars-h, 0px) + env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.5);
}
.burger-drawer.burger-active {
    transform: translateX(0);
}

/* User section */
.burger-user-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 20px 20px;
    background: linear-gradient(145deg, rgba(225, 88, 41, 0.1), rgba(225, 88, 41, 0.03));
    border-bottom: 1px solid rgba(225, 88, 41, 0.15);
    margin-bottom: 6px;
}
.burger-avatar {
    font-size: 46px;
    color: #e15829;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(225, 88, 41, 0.35));
}
.burger-user-info { min-width: 0; }
.burger-user-name {
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.burger-pts-row {
    display: flex;
    align-items: center;
}
.burger-pts-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(225, 88, 41, 0.22), rgba(225, 88, 41, 0.08));
    border: 1px solid rgba(225, 88, 41, 0.38);
    border-radius: 11px;
    padding: 4px 11px 1px 14px;
    font-family: 'Zaglaviq', Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #ff8a5c;
}
.burger-pts-pill i { color: #e15829; font-size: 14px; }
.burger-pts-label { color: rgba(255, 255, 255, 0.45); font-size: 15px; font-weight: 400; }

.burger-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
    flex-shrink: 0;
}

/* Menu items */
.burger-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 22px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.14s ease, color 0.14s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}
.burger-item i {
    font-size: 16px;
    width: 22px;
    text-align: center;
    color: #e15829;
    flex-shrink: 0;
}

.burger-item:active {
    background: rgba(225, 88, 41, 0.1);
    color: #fff;
}
/* Favorites count badge inside burger item */
.burger-fav-badge {
    background: #e15829;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    min-width: 16px;
    text-align: center;
    line-height: 1.4;
    display: none;
    font-family: 'Zaglaviq', Arial, sans-serif;
    flex-shrink: 0;
}
.burger-fav-badge:not(:empty) { display: inline-block; }

.burger-logout-item {
    color: rgba(255, 120, 120, 0.85);
    margin-top: auto;
}
.burger-logout-item i { color: rgba(255, 100, 100, 0.8); }
.burger-logout-item:active { background: rgba(255, 80, 80, 0.1); }

/* ════════════════════════════════════════════════
   DESKTOP: Center modals vertically
   (mobile bottom-sheet overrides still apply)
   ════════════════════════════════════════════════ */
@media (min-width: 769px) {
    .modal[style*="display: block"] {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .modal[style*="display: block"] > .modal-content {
        margin: 0;
        animation: modalFadeScale 0.28s cubic-bezier(0.22, 0.68, 0, 1.15);
    }
}

@keyframes modalFadeScale {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Site Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0;
    margin-top: auto;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
}
.footer-logo img { height: 40px; width: auto; }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    justify-content: center;
}
.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.footer-social-btn:hover {
    background: rgba(225, 88, 41, 0.18);
    color: #e15829;
    border-color: rgba(225, 88, 41, 0.4);
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 900px;
}

.footer-col { display: flex; flex-direction: column; gap: 14px; }

.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e15829;
    margin-bottom: 4px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links li {
    display: flex;
    align-items: center;
    gap: 9px;
}
.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: color .2s;
}
.footer-links a:hover { color: #e15829; }
.footer-links i { width: 16px; text-align: center; color: #555; font-size: 13px; }
.footer-links a:hover i { color: #e15829; }

.footer-contact li { color: #888; font-size: 14px; }
.footer-contact span { color: #888; }

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #444;
}
.site-footer-bottom a {
    color: #555;
    text-decoration: none;
    transition: color .2s;
}
.site-footer-bottom a:hover { color: #e15829; }
.footer-bottom-sep { color: #333; }

/* ── EUR/BGN Disclaimer ──────────────────────────────────────────── */
.footer-disclaimer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #555;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 960px) {
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 580px) {
    .site-footer-inner { padding: 40px 20px 30px; }
    .footer-cols { grid-template-columns: 1fr; gap: 24px; }
    .site-footer-bottom { padding: 16px 20px; font-size: 12px; gap: 10px; }
    .footer-disclaimer { padding: 12px 20px; }
}

/* ── Refund badge on order card ──────────────────────────────── */
.myorder-refund-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; padding: 3px 9px;
    border-radius: 20px; margin-bottom: 4px;
}
.myorder-refund-badge.card {
    background: rgba(59,130,246,.14); color: #93c5fd;
    border: 1px solid rgba(59,130,246,.3);
}
.myorder-refund-badge.voucher {
    background: rgba(251,191,36,.12); color: #fbbf24;
    border: 1px solid rgba(251,191,36,.3);
}

/* ── Refund banner in order detail modal ─────────────────────── */
.myorder-refund-banner {
    border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 2px;
}
.myorder-refund-banner.card {
    background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.28);
}
.myorder-refund-banner.voucher {
    background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.26);
}
.myorder-refund-banner-icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.myorder-refund-banner.card    .myorder-refund-banner-icon { color: #60a5fa; }
.myorder-refund-banner.voucher .myorder-refund-banner-icon { color: #fbbf24; }
.myorder-refund-banner-body { flex: 1; }
.myorder-refund-banner-title {
    font-size: 13px; font-weight: 700; margin-bottom: 8px;
}
.myorder-refund-banner.card    .myorder-refund-banner-title { color: #93c5fd; }
.myorder-refund-banner.voucher .myorder-refund-banner-title { color: #fde68a; }
.myorder-refund-banner-row {
    font-size: 12.5px; display: flex; gap: 8px; margin-bottom: 4px; flex-wrap: wrap;
}
.myorder-refund-banner-row span:first-child { opacity: .65; min-width: 70px; flex-shrink: 0; }
.myorder-refund-voucher-code {
    font-family: monospace; font-weight: 700; font-size: 13px;
    color: #fb923c; background: rgba(251,146,60,.12);
    border: 1px solid rgba(251,146,60,.25); border-radius: 4px; padding: 1px 7px;
}

