/* ============================================
   MENUPRO - PUBLIC FRONTEND
   Ψηφιακός Κατάλογος & Delivery
   ============================================ */

/* Reset & Base */
.fmp-menu-wrapper {
    --fmp-radius: 16px;
    --fmp-radius-sm: 10px;
    --fmp-shadow: 0 4px 24px rgba(0,0,0,0.15);
    --fmp-shadow-sm: 0 2px 12px rgba(0,0,0,0.1);
    --fmp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --fmp-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

    font-family: var(--fmp-font);
    background: var(--fmp-bg);
    color: var(--fmp-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    max-width: 100%;
    margin: 0 auto;
}

.fmp-menu-wrapper * {
    box-sizing: border-box;
}

/* ========== HEADER ========== */
.fmp-header {
    position: relative;
}

.fmp-header-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fmp-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 30px 20px;
}

.fmp-header-simple {
    padding: 40px 20px 24px;
    text-align: center;
    background: var(--fmp-secondary);
}

.fmp-logo-link { display: block; text-decoration: none; cursor: pointer; transition: opacity 0.2s; }
.fmp-logo-link:hover { opacity: 0.85; }

.fmp-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.fmp-store-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* ========== TOP BAR ========== */
.fmp-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--fmp-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fmp-info-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--fmp-text);
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--fmp-transition);
    font-family: var(--fmp-font);
}

.fmp-info-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--fmp-primary);
}

.fmp-info-btn svg {
    flex-shrink: 0;
}

/* ========== LANGUAGE SELECTOR ========== */
.fmp-language-selector {
    position: relative;
}

.fmp-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--fmp-text);
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--fmp-transition);
    font-family: var(--fmp-font);
}

.fmp-lang-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--fmp-primary);
}

.fmp-current-lang-flag {
    font-size: 18px;
    line-height: 1;
}

.fmp-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--fmp-secondary);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--fmp-radius-sm);
    padding: 6px;
    min-width: 180px;
    box-shadow: var(--fmp-shadow);
    display: none;
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
}

.fmp-lang-dropdown.open {
    display: block;
    animation: fmpSlideDown 0.2s ease;
}

.fmp-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    background: none;
    color: var(--fmp-text);
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.15s;
    font-family: var(--fmp-font);
}

.fmp-lang-option:hover {
    background: rgba(255,255,255,0.08);
}

.fmp-lang-option.active {
    background: var(--fmp-primary);
    color: #fff;
    font-weight: 600;
}

.fmp-lang-option-flag {
    font-size: 20px;
}

/* ========== CATEGORIES NAV ========== */
.fmp-categories-nav {
    position: sticky;
    top: 53px;
    z-index: 90;
    background: var(--fmp-bg);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fmp-cat-scroll-wrap {
    position: relative;
}

.fmp-categories-scroll {
    width: 100%;
}

/* Scroll fade hints */
.fmp-cat-scroll-wrap.can-scroll-left .fmp-categories-scroll {
    mask-image: linear-gradient(to right, transparent 0px, black 20px, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 20px, black 100%);
}
.fmp-cat-scroll-wrap.can-scroll-right .fmp-categories-scroll {
    mask-image: linear-gradient(to left, transparent 0px, black 20px, black 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0px, black 20px, black 100%);
}
.fmp-cat-scroll-wrap.can-scroll-left.can-scroll-right .fmp-categories-scroll {
    mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
}
.fmp-cat-scroll-wrap.can-scroll-left::before {
    opacity: 1;
}
.fmp-cat-scroll-wrap.can-scroll-right::after {
    opacity: 1;
}

.fmp-categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

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

.fmp-cat-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--fmp-cat-bg);
    color: var(--fmp-cat-text);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--fmp-transition);
    white-space: nowrap;
    font-family: var(--fmp-font);
}

.fmp-cat-btn:hover {
    background: var(--fmp-primary);
    color: #fff;
    border-color: var(--fmp-primary);
    transform: translateY(-1px);
}

.fmp-cat-btn.active {
    background: var(--fmp-primary);
    color: #fff;
    border-color: var(--fmp-primary);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.fmp-cat-btn.fmp-cat-daily {
    border-color: var(--fmp-offer);
    animation: fmpPulse 2s infinite;
}

.fmp-cat-icon {
    font-size: 16px;
}

.fmp-cat-count {
    background: rgba(255,255,255,0.15);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* ========== PRODUCTS GRID ========== */
.fmp-products-container {
    padding: 20px 16px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.fmp-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Products inside each category — responsive grid */
.fmp-products-in-cat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* ========== PRODUCT CARD ========== */
.fmp-product-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--fmp-secondary);
    border-radius: var(--fmp-radius);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: var(--fmp-transition);
    position: relative;
    overflow: hidden;
}

.fmp-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fmp-shadow);
    border-color: rgba(255,255,255,0.12);
}

.fmp-product-card.fmp-card-offer {
    border-left: 3px solid var(--fmp-offer);
}

.fmp-product-image-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: var(--fmp-radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}

.fmp-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.fmp-product-card:hover .fmp-product-image-wrap img {
    transform: scale(1.08);
}

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

.fmp-product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.fmp-product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--fmp-text);
    margin: 0;
    line-height: 1.3;
}

.fmp-product-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.3;
}

.fmp-product-description {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fmp-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
}

.fmp-product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--fmp-primary);
}

.fmp-product-price-original {
    text-decoration: line-through;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    font-weight: 400;
    margin-right: 6px;
}

.fmp-product-price-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    margin-left: 4px;
}

.fmp-product-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* ========== BADGES ========== */
.fmp-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    max-width: calc(100% - 80px);
}

.fmp-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
}

.fmp-badge-new {
    background: var(--fmp-new);
    color: #fff;
}

.fmp-badge-offer {
    background: var(--fmp-offer);
    color: #fff;
    animation: fmpPulse 2s infinite;
}

.fmp-badge-daily {
    background: #9C27B0;
    color: #fff;
}

.fmp-badge-featured {
    background: #FFD700;
    color: #000;
}

.fmp-badge-veg {
    background: #4CAF50;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
}

.fmp-badge-vegan {
    background: #2E7D32;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
}

.fmp-badge-spicy {
    font-size: 12px;
    padding: 2px 6px;
    background: rgba(255,87,34,0.15);
    border-radius: 50px;
}

/* Mini badges for card */
.fmp-mini-badges {
    display: flex;
    gap: 3px;
}

.fmp-mini-badge {
    font-size: 12px;
    line-height: 1;
}

.fmp-calories-badge {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 50px;
}

/* ========== ALLERGENS (inline) ========== */
.fmp-allergens-inline {
    display: flex;
    gap: 3px;
}

.fmp-allergen-icon {
    font-size: 14px;
    cursor: help;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.fmp-allergen-icon:hover {
    opacity: 1;
}

/* ========== POPUP / MODAL ========== */
.fmp-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fmpFadeIn 0.2s ease;
}

.fmp-popup {
    background: var(--fmp-secondary);
    border-radius: var(--fmp-radius) var(--fmp-radius) 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    animation: fmpSlideUp 0.3s ease;
    position: relative;
}

.fmp-popup-close {
    position: sticky;
    top: 0;
    float: right;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--fmp-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    margin: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.fmp-popup-close:hover {
    background: rgba(255,255,255,0.2);
}

.fmp-popup-content {
    padding: 20px 24px 40px;
}

/* Store Info Popup */
.fmp-store-info-block h2 {
    font-size: 22px;
    color: var(--fmp-primary);
    margin: 0 0 16px;
}

.fmp-store-detail {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: flex-start;
}

.fmp-store-detail-icon {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fmp-primary, #D4A574);
    opacity: 0.8;
}

.fmp-store-detail-icon svg {
    flex-shrink: 0;
}

.fmp-store-detail-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
}

.fmp-store-detail-text a {
    color: var(--fmp-primary);
    text-decoration: none;
}

.fmp-social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fmp-social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    color: var(--fmp-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--fmp-transition);
}

.fmp-social-link:hover {
    background: var(--fmp-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* Product Detail Popup */
.fmp-detail-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--fmp-radius-sm);
    margin-bottom: 20px;
}

.fmp-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--fmp-text);
    margin: 0 0 6px;
}

.fmp-detail-subtitle {
    font-size: 14px;
    color: var(--fmp-primary);
    margin: 0 0 12px;
}

.fmp-detail-description {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0 0 20px;
}

.fmp-detail-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--fmp-radius-sm);
}

.fmp-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--fmp-primary);
}

.fmp-detail-price-original {
    font-size: 18px;
    text-decoration: line-through;
    color: rgba(255,255,255,0.3);
}

.fmp-detail-extra-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fmp-extra-price-tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 50px;
    font-size: 13px;
}

.fmp-extra-price-tag strong {
    color: var(--fmp-primary);
    margin-left: 6px;
}

/* Nutrition Table */
.fmp-nutrition-section {
    margin: 20px 0;
}

.fmp-nutrition-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fmp-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fmp-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.fmp-nutrition-item {
    text-align: center;
    padding: 10px 6px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--fmp-radius-sm);
}

.fmp-nutrition-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--fmp-primary);
}

.fmp-nutrition-label {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Allergens Detail */
.fmp-allergens-detail {
    margin: 20px 0;
}

.fmp-allergens-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fmp-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fmp-allergens-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fmp-allergen-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 50px;
    font-size: 12px;
    color: #FFC107;
}

.fmp-allergen-tag-icon {
    font-size: 16px;
}

/* ========== CATEGORY SECTION HEADER ========== */
.fmp-category-section {
    margin-bottom: 32px;
}

.fmp-category-section:last-child {
    margin-bottom: 40px;
}

.fmp-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fmp-category-header-icon {
    font-size: 22px;
}

.fmp-category-header-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--fmp-primary);
    margin: 0;
}

/* ========== EMPTY STATE ========== */
.fmp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.3);
}

.fmp-empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ========== LOADING ========== */
.fmp-loading {
    position: fixed;
    inset: 0;
    background: var(--fmp-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.fmp-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.fmp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--fmp-primary);
    border-radius: 50%;
    animation: fmpSpin 0.8s linear infinite;
}

/* ========== ANIMATIONS ========== */
@keyframes fmpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fmpSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fmpSpin {
    to { transform: rotate(360deg); }
}

@keyframes fmpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.fmp-product-card {
    animation: fmpCardIn 0.3s ease both;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (min-width: 600px) {
    .fmp-header-image { height: 320px; }
    .fmp-store-name { font-size: 34px; }
    .fmp-logo { max-height: 110px; }

    .fmp-products-in-cat {
        grid-template-columns: repeat(2, 1fr);
    }

    .fmp-popup {
        border-radius: var(--fmp-radius);
        max-height: 80vh;
        margin: auto;
    }

    .fmp-popup-overlay {
        align-items: center;
        padding: 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .fmp-header-image { height: 380px; }
    .fmp-store-name { font-size: 40px; letter-spacing: 2px; }
    .fmp-logo { max-height: 160px; }

    .fmp-products-container { padding: 24px 32px 80px; }

    .fmp-products-in-cat {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .fmp-product-card {
        padding: 20px;
    }

    .fmp-product-image-wrap {
        width: 110px;
        height: 110px;
    }

    .fmp-product-title { font-size: 16px; }
    .fmp-product-price { font-size: 19px; }

    .fmp-categories-scroll {
        justify-content: center;
        padding: 0 32px;
    }

    .fmp-top-bar {
        padding: 14px 32px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .fmp-products-in-cat {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small phones */
@media (max-width: 370px) {
    .fmp-product-image-wrap {
        width: 72px;
        height: 72px;
    }
    .fmp-product-title { font-size: 14px; }
    .fmp-product-price { font-size: 15px; }
    .fmp-cat-btn { padding: 8px 14px; font-size: 12px; }
    .fmp-store-name { font-size: 22px; }
}

/* No image product */
.fmp-product-card.fmp-no-image .fmp-product-image-wrap {
    display: none;
}

.fmp-product-card.fmp-no-image .fmp-product-info {
    width: 100%;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* RTL Support */
[dir="rtl"] .fmp-product-card { direction: rtl; }
[dir="rtl"] .fmp-lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .fmp-product-card.fmp-card-offer { border-left: none; border-right: 3px solid var(--fmp-offer); }

/* Hide GTranslate's own floating selector when on menu page (we use our own) */
.gtranslate_wrapper,
.gt_float_switcher,
#gt-nvframe,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.skiptranslate.goog-te-gadget,
body > .skiptranslate {
    display: none !important;
}
body {
    top: 0 !important;
}

/* ── UNAVAILABLE PRODUCTS ── */
.fmp-product-card.fmp-unavailable { opacity: 0.6; position: relative; }
.fmp-product-card.fmp-unavailable .fmp-product-image-wrap { filter: grayscale(70%); }
.fmp-unavailable-overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); border-radius: inherit; gap: 8px; }
.fmp-unavailable-label { color: #fff; font-weight: 700; font-size: 14px; background: rgba(220,50,50,0.85); padding: 4px 14px; border-radius: 20px; }
.fmp-unavailable-overlay button { background: #46b450; color: #fff; border: none; padding: 6px 14px; border-radius: 16px; font-size: 12px; cursor: pointer; font-weight: 600; }
.fmp-unavailable-overlay button:hover { background: #3a9a3e; }

/* ── ADMIN CONTROLS ── */
.fmp-admin-controls { position: absolute; top: 8px; right: 8px; z-index: 10; display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.fmp-product-card:hover .fmp-admin-controls { opacity: 1; }
.fmp-admin-btn { width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); transition: transform 0.15s; position: relative; z-index: 11; pointer-events: auto; }
.fmp-admin-btn:hover { transform: scale(1.15); background: rgba(0,0,0,0.95); }

/* ── QUICK EDIT OVERLAY ── */
#fmp-quick-edit-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; display: none; }
#fmp-quick-edit-overlay[style*="block"] { display: flex !important; }
#fmp-quick-edit-content { background: #1a1a2e; border-radius: 16px; padding: 28px; max-width: 480px; width: 90%; max-height: 80vh; overflow-y: auto; }
.fmp-quick-edit-form h3 { color: #fff; margin: 0 0 20px; font-size: 20px; }
.fmp-qe-row { margin-bottom: 14px; }
.fmp-qe-row label { display: block; color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 4px; }
.fmp-qe-input { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 14px; outline: none; box-sizing: border-box; }
.fmp-qe-input:focus { border-color: var(--fmp-primary, #D4A574); }
.fmp-qe-actions { display: flex; gap: 10px; margin-top: 20px; }
.fmp-qe-save { background: var(--fmp-primary, #D4A574); color: #000; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }
.fmp-qe-save:hover { opacity: 0.9; }
.fmp-qe-cancel { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 10px 24px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.fmp-qe-cancel:hover { background: rgba(255,255,255,0.15); }

/* ── PRODUCT OPTIONS IN DETAIL ── */
.fmp-options-section { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.fmp-option-group-display { margin-bottom: 16px; }
.fmp-option-group-title { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.fmp-option-hint { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 400; }
.fmp-required { color: #e74c3c; font-size: 16px; }
.fmp-option-item-label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 4px; background: rgba(255,255,255,0.05); border-radius: 8px; cursor: pointer; transition: background 0.15s; color: #fff; }
.fmp-option-item-label:hover { background: rgba(255,255,255,0.1); }
.fmp-option-input { width: 18px; height: 18px; accent-color: var(--fmp-primary, #D4A574); flex-shrink: 0; }
.fmp-option-item-name { flex: 1; font-size: 14px; }
.fmp-option-item-price { color: var(--fmp-primary, #D4A574); font-weight: 600; font-size: 14px; white-space: nowrap; }
.fmp-has-options { font-size: 10px; }

/* ── FLOATING CART BUTTON ── */
#fmp-cart-float { position: fixed; bottom: 24px; right: 24px; z-index: 99999; background: var(--fmp-primary, #D4A574); color: #000; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.4); transition: transform 0.2s; font-size: 24px; pointer-events: auto; }
#fmp-cart-float:hover { transform: scale(1.1); }
#fmp-cart-count { position: absolute; top: -4px; right: -4px; background: #e74c3c; color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.fmp-cart-bounce { animation: fmpBounce 0.5s ease; }
@keyframes fmpBounce { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.3); } }

/* ── CART POPUP ── */
.fmp-cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.fmp-cart-item-info { flex: 1; min-width: 0; }
.fmp-cart-item-name { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmp-cart-item-opts { color: rgba(255,255,255,0.5); font-size: 12px; }
.fmp-cart-item-controls { display: flex; align-items: center; gap: 6px; }
.fmp-cart-minus, .fmp-cart-plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fmp-cart-minus:hover, .fmp-cart-plus:hover { background: rgba(255,255,255,0.1); }
.fmp-cart-qty { color: #fff; font-weight: 700; font-size: 14px; min-width: 20px; text-align: center; }
.fmp-cart-item-price { color: var(--fmp-primary, #D4A574); font-weight: 700; font-size: 14px; white-space: nowrap; }
.fmp-cart-remove { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; opacity: 0.6; }
.fmp-cart-remove:hover { opacity: 1; }

/* Cart Totals */
.fmp-cart-totals { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.fmp-cart-total-row { display: flex; justify-content: space-between; color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 4px; }
.fmp-cart-grand-total { color: #fff; font-weight: 700; font-size: 18px; margin-top: 8px; }
.fmp-cart-min-warning { text-align: center; color: #ff9800; padding: 12px; background: rgba(255,152,0,0.1); border-radius: 8px; margin-top: 12px; }

/* ── PRIMARY BUTTON ── */
.fmp-btn-primary { display: block; width: 100%; background: var(--fmp-primary, #D4A574); color: #000; border: none; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 16px; transition: opacity 0.2s; }
.fmp-btn-primary:hover { opacity: 0.9; }
.fmp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── ADD TO CART IN DETAIL ── */
.fmp-detail-add-cart { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.fmp-detail-unavailable { text-align: center; color: #e74c3c; font-weight: 700; padding: 14px; background: rgba(231,76,60,0.1); border-radius: 10px; margin-top: 16px; }

/* ── CHECKOUT FORM ── */
.fmp-checkout-form label { display: block; color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 4px; }
.fmp-checkout-form input[type="text"],
.fmp-checkout-form input[type="tel"],
.fmp-checkout-form input[type="email"],
.fmp-checkout-form textarea { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 14px; outline: none; box-sizing: border-box; }
.fmp-checkout-form input:focus, .fmp-checkout-form textarea:focus { border-color: var(--fmp-primary, #D4A574); }
.fmp-co-row { margin-bottom: 12px; }
.fmp-co-row-2 { display: flex; gap: 10px; }
.fmp-co-row-2 > div { flex: 1; }
.fmp-payment-options { display: flex; flex-direction: column; gap: 6px; }
.fmp-payment-opt { display: flex; align-items: center; gap: 8px; color: #fff; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 8px; cursor: pointer; }
.fmp-payment-opt:hover { background: rgba(255,255,255,0.1); }

/* ── ORDER TRACKING ── */
.fmp-track-status { text-align: center; font-size: 18px; color: var(--fmp-primary, #D4A574); font-weight: 700; padding: 16px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-top: 12px; }

/* ── RESPONSIVE LOGO ── */
.fmp-logo.fmp-logo-responsive { display: block; width: auto; height: auto; max-height: 140px; object-fit: contain; margin: 0 auto 12px; border: none; border-radius: 0; box-shadow: none; }
@media (max-width: 768px) { .fmp-logo.fmp-logo-responsive { max-width: 55vw !important; max-height: 100px; } }
@media (max-width: 480px) { .fmp-logo.fmp-logo-responsive { max-width: 50vw !important; max-height: 80px; } }

/* ── FOOTER ── */
.fmp-footer { text-align: center; padding: 24px 16px 32px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px; }
.fmp-footer-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fmp-footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.fmp-footer-links a:hover { color: var(--fmp-primary, #D4A574); }
.fmp-footer-sep { color: rgba(255,255,255,0.2); font-size: 13px; }
.fmp-footer-copy { color: rgba(255,255,255,0.3); font-size: 12px; }

/* ── LEGAL POPUP ── */
.fmp-legal-detail { max-width: 640px; }
.fmp-legal-text { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.7; max-height: 60vh; overflow-y: auto; padding-right: 8px; }
.fmp-legal-text h3, .fmp-legal-text h4 { color: #fff; margin: 16px 0 8px; }
.fmp-legal-text a { color: var(--fmp-primary, #D4A574); }

/* ── MODE TOGGLE (Menu / Delivery) ── */
.fmp-mode-toggle { display: flex; justify-content: center; gap: 0; margin: 0 16px 8px; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 4px; }
.fmp-mode-btn { flex: 1; padding: 10px 16px; border: none; background: transparent; color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px; transition: all 0.2s; text-align: center; }
.fmp-mode-btn.active { background: var(--fmp-primary, #D4A574); color: #000; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.fmp-mode-btn:not(.active):hover { color: rgba(255,255,255,0.8); }

/* ── BOTTOM NAVIGATION BAR ── */
.fmp-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99998; display: flex; justify-content: space-around; align-items: center; background: rgba(20,20,20,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.08); padding: 6px 0; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.fmp-bnav-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; padding: 6px 16px; border-radius: 12px; transition: all 0.2s; position: relative; font-size: 11px; font-weight: 500; }
.fmp-bnav-btn:active, .fmp-bnav-btn:hover { color: var(--fmp-primary, #D4A574); }
.fmp-bnav-btn svg { stroke: currentColor; }
.fmp-bnav-cart-btn { background: var(--fmp-primary, #D4A574); color: #000; border-radius: 16px; padding: 8px 20px; margin: -8px 0; }
.fmp-bnav-cart-btn svg { stroke: #000; }
.fmp-bnav-cart-btn span { color: #000; font-weight: 700; }
.fmp-bnav-badge { position: absolute; top: -4px; right: -4px; background: #e74c3c; color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* Categories grid popup */
.fmp-categories-grid-popup { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fmp-cat-popup-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.fmp-cat-popup-item:active { background: var(--fmp-primary, #D4A574); color: #000; }

/* Adjust footer for bottom nav */
.fmp-footer { padding-bottom: 70px !important; }

/* ── QUICK EDIT POPUP (Enhanced) ── */
#fmp-quick-edit-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
#fmp-quick-edit-content { background: #222; border-radius: 16px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.fmp-quick-edit-form { color: #fff; }
.fmp-qe-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fmp-qe-header h3 { margin: 0; font-size: 18px; }
.fmp-qe-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 24px; cursor: pointer; padding: 4px 8px; }
.fmp-qe-close:hover { color: #fff; }
.fmp-qe-body { padding: 16px 20px; }
.fmp-qe-row { margin-bottom: 12px; }
.fmp-qe-row label { display: block; font-size: 13px; color: #fff; font-weight: 700; margin-bottom: 4px; }
.fmp-qe-input { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 14px; box-sizing: border-box; }
.fmp-qe-input:focus { border-color: var(--fmp-primary, #D4A574); outline: none; }
.fmp-qe-row-inline { display: flex; gap: 12px; margin-bottom: 12px; }
.fmp-qe-row-inline > div { flex: 1; }
.fmp-qe-row-inline > div label { display: block; font-size: 13px; color: #fff; font-weight: 700; margin-bottom: 4px; text-transform: none; }
.fmp-qe-checks { flex-wrap: wrap; }
.fmp-qe-checks label { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 12px; background: rgba(255,255,255,0.05); border-radius: 8px; text-transform: none; }
.fmp-qe-actions { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.fmp-qe-save { flex: 1; padding: 12px; background: var(--fmp-primary, #D4A574); color: #000; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.fmp-qe-save:hover { opacity: 0.9; }
.fmp-qe-full-edit { padding: 12px 16px; background: rgba(255,255,255,0.1); color: #fff; border: none; border-radius: 10px; font-size: 13px; cursor: pointer; text-decoration: none; text-align: center; }
.fmp-qe-cancel { padding: 12px 16px; background: none; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); border-radius: 10px; font-size: 13px; cursor: pointer; }

/* ── MOBILE PRODUCT POPUP FIX ── */
@media (max-width: 599px) {
    .fmp-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .fmp-popup {
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
        margin: 0;
        width: 100%;
        padding-bottom: 0;
    }
    .fmp-popup-content {
        padding: 12px 16px 80px;
    }
    .fmp-popup-close {
        position: absolute;
        top: 8px;
        right: 8px;
        margin: 0;
        background: rgba(0,0,0,0.5);
        z-index: 20;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .fmp-detail-image {
        max-height: 200px;
        border-radius: 12px 12px 0 0;
        margin: -12px -16px 12px -16px;
        width: calc(100% + 32px);
    }
    .fmp-detail-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .fmp-detail-subtitle {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .fmp-detail-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .fmp-detail-price-section {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    .fmp-detail-price {
        font-size: 22px;
    }
    .fmp-detail-price-original {
        font-size: 15px;
    }
    .fmp-nutrition-section {
        margin-bottom: 12px;
    }
    .fmp-nutrition-grid {
        gap: 6px;
    }
    .fmp-allergens-detail {
        margin-bottom: 10px;
    }
    .fmp-allergens-title,
    .fmp-nutrition-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .fmp-options-section {
        margin-bottom: 8px;
    }
    .fmp-option-group-display {
        padding: 10px;
        margin-bottom: 8px;
    }
    .fmp-option-group-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .fmp-option-item-label {
        padding: 8px 10px;
        font-size: 13px;
    }
    .fmp-detail-add-cart {
        margin: 0 -16px;
        padding: 12px 16px;
        position: sticky;
        bottom: 0;
        background: var(--fmp-secondary, #1a1a2e);
        z-index: 10;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .fmp-detail-add-cart .fmp-btn-primary {
        padding: 14px;
        font-size: 15px;
    }
    /* Cart popup mobile */
    .fmp-cart-content {
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }
    .fmp-cart-item {
        padding: 8px 0;
    }
    .fmp-cart-item-name {
        font-size: 13px;
    }
    /* Checkout form mobile */
    .fmp-co-row-2 {
        flex-direction: column;
        gap: 0;
    }
    /* Account popup mobile */
    .fmp-cart-content h2 {
        font-size: 18px;
    }
    /* Chars badges mobile */
    .fmp-chars-section {
        margin: 8px 0 !important;
        gap: 4px !important;
    }
    .fmp-chars-section span {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
}
