/* ============================================================
   GOURMET TEMPLATE OVERRIDES
   Loaded on top of style.css when template="gourmet"
   ============================================================ */

/* ==================== BASE OVERRIDES ==================== */
body.gourmet-active {
    direction: ltr;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FFFFFF;
    padding-bottom: 0;
}

body.gourmet-active .app-header {
    background: #FFFFFF !important;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #E8E8E8;
    border-radius: 0;
    margin-bottom: 0;
}

body.gourmet-active .header-bg {
    display: none;
}

body.gourmet-active .header-top-row,
body.gourmet-active .header-restaurant-info,
body.gourmet-active .restaurant-rating,
body.gourmet-active .restaurant-meta,
body.gourmet-active .header-restaurant-logo {
    display: none;
}

/* Show gourmet brand + controls */
body.gourmet-active .gourmet-brand {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

body.gourmet-active .gourmet-controls {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 4px 0;
    position: relative;
}

/* ==================== BRAND STYLES ==================== */
body.gourmet-active .logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.1rem;
    flex-shrink: 0;
}

body.gourmet-active .logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

body.gourmet-active .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0;
}

body.gourmet-active .brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: #6B6B6B;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ==================== CONTROLS ==================== */
body.gourmet-active .control-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B6B6B;
    cursor: pointer;
}

body.gourmet-active .control-item i {
    font-size: 1rem;
}

body.gourmet-active .control-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6B6B6B;
}

body.gourmet-active .social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.gourmet-active .social-link {
    color: #6B6B6B;
    text-decoration: none;
    font-size: 1rem;
}

/* ==================== STATUS BAR ==================== */
body.gourmet-active .status-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 4px;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
}

body.gourmet-active .status-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: 0.5px;
}

body.gourmet-active .status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1A1A1A;
    font-size: 0.75rem;
}

/* ==================== CATEGORIES ==================== */
body.gourmet-active .categories-wrapper {
    background: #FFFFFF;
    padding: 12px 0 8px;
    border-bottom: 1px solid #F0F0F0;
}

body.gourmet-active .cat-tab {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    min-width: 64px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9E9E9E;
    background: transparent;
    border: none;
    border-radius: 0;
    white-space: normal;
}

body.gourmet-active .cat-tab:hover {
    background: transparent;
    color: #9E9E9E;
}

body.gourmet-active .cat-tab.active {
    background: transparent;
    color: #1A1A1A;
    font-weight: 700;
    box-shadow: none;
}

body.gourmet-active .cat-tab-img-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F8F8;
}

body.gourmet-active .cat-tab-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.gourmet-active .cat-tab.active .cat-tab-img-wrap {
    border-color: #1A1A1A;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.gourmet-active .cat-tab i {
    font-size: 1.3rem;
}

/* ==================== ACTIVE CATEGORY LABEL ==================== */
body.gourmet-active .active-category-bar {
    display: flex !important;
    padding: 10px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
}

body.gourmet-active .active-category-label {
    display: inline-block;
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==================== MENU ITEMS (REGULAR) ==================== */
body.gourmet-active .menu-items-list {
    display: none;
}

body.gourmet-active .menu-section-header {
    display: none;
}

/* ==================== GRID VIEW (TABLET) ==================== */
body.gourmet-active .grid-view {
    display: none;
}

.grid-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
}

.grid-item {
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #F0F0F0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.grid-item-image-wrap {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.grid-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-item:hover .grid-item-image {
    transform: scale(1.05);
}

.grid-item-info {
    padding: 14px 16px 16px;
}

.grid-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.grid-item-desc {
    font-size: 0.8rem;
    color: #6B6B6B;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    min-height: 2.4em;
}

.grid-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-item-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1A1A1A;
}

.grid-item-price-currency {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B6B6B;
}

.grid-item-add {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1.5px solid #E8E8E8;
    background: #FFFFFF;
    color: #1A1A1A;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.grid-item-add:hover {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
}

.grid-item-add.added {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
}

/* ==================== LIST VIEW (SMARTPHONE) ==================== */
body.gourmet-active .list-view {
    display: flex;
    flex-direction: column;
    padding: 8px 16px;
    gap: 16px;
}

.list-item {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #F0F0F0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.list-item:active {
    transform: scale(0.99);
}

.list-item-image-wrap {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

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

.list-item-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E53935;
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-item-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,0.6);
    color: #FFD700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.list-item-rating span {
    color: #FFFFFF;
    margin-left: 2px;
}

.list-item-info {
    padding: 12px 14px;
}

.list-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.list-item-name-en {
    font-size: 0.78rem;
    color: #9E9E9E;
    font-weight: 400;
    margin-bottom: 6px;
}

.list-item-desc {
    font-size: 0.82rem;
    color: #6B6B6B;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.list-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-item-price-current {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2E7D32;
}

.list-item-price-old {
    font-size: 0.82rem;
    color: #BDBDBD;
    text-decoration: line-through;
    font-weight: 500;
}

.list-item-price-regular {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1A1A1A;
}

.list-item-add {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #E8E8E8;
    background: #FFFFFF;
    color: #1A1A1A;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.list-item-add:hover {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
}

.list-item-add.added {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
    width: auto;
    padding: 0 8px;
    border-radius: 50px;
    gap: 4px;
}

.list-item-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    font-weight: 700;
    margin-left: 2px;
}

/* ==================== DAILY SPECIAL ==================== */
body.gourmet-active .daily-special {
    display: block !important;
    padding: 20px 16px 80px;
    background: #F8F8F8;
    margin-top: 8px;
}

.daily-special-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.daily-special-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1A1A1A;
}

.daily-special-badge {
    background: #E53935;
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.daily-special-card {
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #F0F0F0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.daily-special-image-wrap {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.daily-special-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.daily-special-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E53935;
    color: #FFFFFF;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daily-special-info {
    padding: 14px 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daily-special-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A1A;
}

.daily-special-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1A1A1A;
}

.daily-special-price .currency {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B6B6B;
    margin-left: 2px;
}

/* ==================== CART (GOURMET STYLES) ==================== */
body.gourmet-active .cart-fab {
    bottom: 80px;
    right: 16px;
    left: auto;
}

body.gourmet-active .cart-fab-btn {
    background: #1A1A1A;
}

body.gourmet-active .cart-fab-total {
    font-family: 'Inter', sans-serif;
    direction: ltr;
}

body.gourmet-active .cart-checkout-btn {
    font-family: 'Inter', sans-serif;
}

body.gourmet-active #cartDrawerTitle {
    font-family: 'Playfair Display', serif;
}

/* ==================== BOTTOM BAR (TABLET) ==================== */
body.gourmet-active .bottom-bar {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1B2A4A;
    color: #FFFFFF;
    z-index: 100;
    padding: 14px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.bottom-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bottom-bar-left i {
    font-size: 1.15rem;
}

.bottom-bar-text {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bottom-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.bottom-bar-count {
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.82rem;
}

.bottom-bar-divider {
    opacity: 0.3;
    margin: 0 2px;
}

.bottom-bar-total {
    font-size: 1rem;
    font-weight: 700;
}

.bottom-bar-currency {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
}

/* ==================== BOTTOM NAV (GOURMET) ==================== */
body.gourmet-active .bottom-nav {
    display: flex;
}

body.gourmet-active #navSearch {
    display: none;
}

body.gourmet-active .nav-item {
    font-family: 'Inter', sans-serif;
}

/* ==================== SEARCH / PROMO (HIDE IN GOURMET) ==================== */
body.gourmet-active .search-bar,
body.gourmet-active .promo-banner {
    display: none !important;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.fade-in {
    animation: fadeInUp 0.35s ease forwards;
}

/* ============================================================
   TABLET (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
    body.gourmet-active .status-bar {
        display: none !important;
    }

    body.gourmet-active .active-category-bar {
        display: none !important;
    }

    body.gourmet-active .daily-special {
        display: none !important;
    }

    body.gourmet-active .list-view {
        display: none !important;
    }

    body.gourmet-active .cart-fab {
        display: none !important;
    }

    body.gourmet-active .bottom-nav {
        display: none !important;
    }

    body.gourmet-active .bottom-bar {
        display: block !important;
    }

    body.gourmet-active .grid-view {
        display: block !important;
    }

    .grid-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 900px;
        margin: 0 auto;
        padding: 24px;
    }

    body.gourmet-active .app-header {
        padding: 24px 24px 16px;
    }

    body.gourmet-active .gourmet-brand {
        gap: 16px;
        justify-content: center;
    }

    body.gourmet-active .logo-circle {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    body.gourmet-active .brand-name {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    body.gourmet-active .brand-tagline {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }

    body.gourmet-active .gourmet-controls {
        justify-content: center;
        gap: 48px;
        padding: 8px 0 0;
    }

    body.gourmet-active .location-btn {
        display: none;
    }

    body.gourmet-active .clock-btn {
        position: absolute;
        right: 0;
    }

    body.gourmet-active .social-icons {
        gap: 18px;
    }

    .grid-item-image-wrap {
        height: 200px;
    }

    .grid-item-name {
        font-size: 1.1rem;
    }

    .grid-item-desc {
        font-size: 0.85rem;
    }

    .grid-item-price {
        font-size: 1.2rem;
    }

    .grid-item-add {
        padding: 8px 20px;
        font-size: 0.82rem;
    }

    body.gourmet-active .menu-content {
        padding-bottom: 80px;
    }
}

/* ==================== MEDIUM SCREENS ==================== */
@media (min-width: 500px) and (max-width: 767px) {
    .grid-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== LARGE TABLET ==================== */
@media (min-width: 1024px) {
    .grid-items {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        gap: 24px;
        padding: 32px;
    }

    .bottom-bar-content {
        max-width: 1000px;
    }
}

/* ==================== CART DRAWER OVERRIDES ==================== */
body.gourmet-active .cart-empty p {
    font-family: 'Playfair Display', serif;
}

body.gourmet-active .cart-item-name {
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    direction: ltr;
}
