*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --blue: #013AD1;
    --blue-dark: #0128a0;
    --blue-glow: rgba(1, 58, 209, 0.18);
    --gold: #C9973A;
    --bg: #F4F2EE;
    --white: #FFFFFF;
    --dark: #0B0D1A;
    --text: #18192A;
    --sub: #7B839A;
    --border: rgba(0, 0, 0, 0.07);
    --r: 18px;
}

html {
    height: 100%;
    background: var(--bg);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
    overflow-x: hidden;
}

/* The 430px "app column" width only applies to the customer-facing menu page.
   admin.php has its own full-width layout (.admin-container caps itself at
   1280px) and must NOT inherit this — it sets margin:0 on body.admin-body,
   so a shared max-width here would clip it flush to the left on wide screens. */
body:not(.admin-body) {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* ── RESPONSIVE: TABLET ──────────────────── */
@media (min-width: 700px) {
    .cart-bar-wrap { max-width: 500px; }
}

/* ── RESPONSIVE: DESKTOP ─────────────────── */
@media (min-width: 1024px) {
    .cart-bar-wrap { max-width: 420px; left: auto; right: 32px; transform: none; }
    .cart-bar-wrap.active { animation: popUpDesktop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
}

/* ── RESPONSIVE: LARGE DESKTOP ────────────── */
@media (min-width: 1440px) {
    .cart-bar-wrap { max-width: 440px; }
}

@media (min-width: 1920px) {
    .cart-bar-wrap { max-width: 460px; }
}

@keyframes popUpDesktop {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── HEADER ─────────────────────────────── */
.header {
    background: linear-gradient(135deg, #001f80 0%, #013AD1 55%, #001566 100%);
    padding: 24px 20px 16px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(1, 43, 163, 0.25);
}

.cats-bar {
    background: rgba(1, 58, 209, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.cats-bar::before,
.cats-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
    z-index: 2;
    pointer-events: none;
}

.cats-bar::before {
    left: 0;
    background: linear-gradient(to right, rgba(1, 58, 209, 0.95), transparent);
}

.cats-bar::after {
    right: 0;
    background: linear-gradient(to left, rgba(1, 58, 209, 0.95), transparent);
}

.header::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.logo-wrap {
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-wrap img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.header-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 500;
}

/* Search */
.search-wrap {
    position: relative;
    margin: 14px 0 0;
    z-index: 1;
}

.search-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 16px 10px 44px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: white;
    outline: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 3.5px rgba(255, 255, 255, 0.18);
}

.search-wrap:focus-within svg {
    opacity: 0.9;
}

/* Category icons row */
.cats {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
    cursor: grab;
}

/* Applied while a mouse-drag scroll is in progress (see enableCatsDragScroll) */
.cats.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.cats::-webkit-scrollbar {
    display: none;
}

.cat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 10px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.25s ease;
    overflow: hidden;
}

.cat-icon svg {
    width: 18px;
    height: 18px;
}

.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s;
    letter-spacing: 0.2px;
}

.cat.active {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), 0 0 16px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.cat.active .cat-icon {
    background: rgba(1, 58, 209, 0.12);
    color: var(--blue);
}

.cat.active .cat-label {
    color: var(--blue);
    font-weight: 700;
}

/* ── BODY ────────────────────────────────── */
.body {
    padding: 0 0 40px;
}

/* Search results */
#search-pane {
    display: none;
}

#search-pane.on {
    display: block;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--sub);
    font-size: 15px;
}

.no-results div {
    font-size: 44px;
    margin-bottom: 10px;
}

/* Section */
.pane {
    display: none;
}

.pane.on {
    display: block;
    animation: up 0.3s ease;
}

/* Logo pulse used as the loading indicator while the menu fetches from the DB */
@keyframes pulseLogo {
    0%, 100% { opacity: 0.35; transform: scale(0.96); }
    50% { opacity: 0.65; transform: scale(1.04); }
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── FEATURED CARD ───────────────────────── */
.feat {
    margin: 20px 16px 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-radius: 22px;
    padding: 22px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--blue-glow);
}

.feat::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.feat::after {
    content: '';
    position: absolute;
    right: 30px;
    top: -20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(201, 151, 58, 0.14);
}

.feat-tag {
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
}

.feat-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.feat-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    line-height: 1.6;
}

.feat-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.feat-price sup {
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    opacity: 0.55;
    vertical-align: super;
}

/* ── DARK INFO CARD ──────────────────────── */
.info-card {
    margin: 12px 16px 0;
    background: var(--dark);
    border-radius: var(--r);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.info-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: white;
    font-weight: 600;
}

.info-body {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
    line-height: 1.6;
}

/* ── SECTION TITLE ───────────────────────── */
.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 20px 0;
}

.sec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.sec-count {
    font-size: 11.5px;
    color: var(--blue);
    background: rgba(1, 58, 209, 0.08);
    border: 1px solid rgba(1, 58, 209, 0.12);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Sub label */
.sub-lbl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sub);
    padding: 20px 20px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-lbl::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

/* ── ITEM CARD ENHANCEMENTS ──────────────── */
.items {
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.sub-lbl + .items {
    margin-top: 0;
}

.items:first-child {
    margin-top: 0;
}

@media (min-width: 640px) {
    .items { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 1024px) {
    .items { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 1440px) {
    .items { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

@media (min-width: 1920px) {
    .items { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}

.item {
    background: #ffffff;
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(1, 58, 209, 0.12), 0 3px 10px rgba(0, 0, 0, 0.04);
    border-color: rgba(1, 58, 209, 0.25);
}

.item-img-box {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #F4F6FC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.item-img-box:hover .item-img {
    transform: scale(1.1);
}

.item-img-zoom {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(11, 13, 26, 0.7);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.item-img-box:hover .item-img-zoom {
    transform: scale(1.12);
    background: var(--blue);
}

.item-img-zoom svg {
    width: 10px;
    height: 10px;
}

.item-em {
    font-size: 28px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F6FC;
    border-radius: 16px;
    flex-shrink: 0;
}

.item-mid {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    padding-right: 4px;
}

.item-name {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.item-desc {
    font-size: 11.5px;
    color: #64748B;
    line-height: 1.35;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-badges {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.b-sig {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #3B5BDB;
    border: 1px solid rgba(59, 91, 219, 0.15);
}

.b-hot {
    background: linear-gradient(135deg, #FFF0F0 0%, #FFE3E3 100%);
    color: #E03131;
    border: 1px solid rgba(224, 49, 49, 0.15);
}

.b-new {
    background: linear-gradient(135deg, #EBFBEE 0%, #D3F9D8 100%);
    color: #2F9E44;
    border: 1px solid rgba(47, 158, 68, 0.15);
}

.item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.item-price {
    font-family: 'Outfit', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: #013AD1;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, #F0F4FF 0%, #E6EEFF 100%);
    border: 1px solid rgba(1, 58, 209, 0.12);
    padding: 6px 10px;
    border-radius: 10px;
}

.item-price span {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748B;
    margin-left: 2px;
}

@media (max-width: 480px) {
    .items {
        padding: 0 14px;
        gap: 12px;
    }

    .item {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 18px;
    }

    .item-img-box, .item-em {
        width: 66px;
        height: 66px;
        border-radius: 14px;
    }

    .item-name {
        font-size: 14.5px;
    }

    .item-price {
        font-size: 15px;
        padding: 5px 9px;
        border-radius: 8px;
    }

    .sec-head {
        padding: 20px 16px 0;
    }

    .sub-lbl {
        padding: 16px 16px 4px;
    }
}


/* Out-of-stock state (item toggled off in the admin dashboard) */
.item-unavailable {
    opacity: 0.55;
}

.item-unavailable .item-img-box {
    filter: grayscale(60%);
}

.badge-outofstock {
    font-size: 9.5px;
    font-weight: 700;
    color: #E03131;
    background: #FFF0F0;
    border: 1px solid rgba(224, 49, 49, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Add / Quantity Buttons */
.btn-add {
    background: linear-gradient(135deg, var(--blue) 0%, #0028a0 100%);
    color: white;
    border: none;
    padding: 6.5px 14px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(1, 58, 209, 0.25);
}

.btn-add:hover {
    background: linear-gradient(135deg, #0028a0 0%, #001f80 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(1, 58, 209, 0.35);
}

.btn-add:active {
    transform: scale(0.94);
}

.qty-picker {
    display: flex;
    align-items: center;
    background: #F0F4FF;
    border-radius: 20px;
    padding: 3px;
    gap: 6px;
    border: 1px solid rgba(1, 58, 209, 0.22);
}

.btn-add:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-add:active {
    transform: scale(0.95);
}

.qty-picker {
    display: flex;
    align-items: center;
    background: #F0F3FF;
    border-radius: 20px;
    padding: 3px;
    gap: 6px;
    border: 1px solid rgba(1, 58, 209, 0.2);
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.15s, transform 0.1s;
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    min-width: 14px;
    text-align: center;
}

/* ── EXTRAS GRID ─────────────────────────── */
.extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px;
}

.extra {
    background: var(--white);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}

.extra-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.extra-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
}

/* ── FLOATING CART BAR ────────────────────── */
.cart-bar-wrap {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 398px;
    z-index: 99;
    display: none;
}

.cart-bar-wrap.active {
    display: block;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Belt-and-suspenders alongside the JS gating in renderCartUI(): even if the
   cart bar were ever activated while ordering is off, this keeps it hidden. */
body.orders-disabled .cart-bar-wrap {
    display: none !important;
}

@keyframes popUp {
    from { opacity: 0; transform: translate(-50%, 20px) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.cart-bar {
    background: var(--dark);
    color: white;
    border-radius: 24px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 35px rgba(11, 13, 26, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cart-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-badge-icon {
    position: relative;
    width: 42px;
    height: 42px;
    background: var(--blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px var(--blue-glow);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3B30;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark);
}

.cart-bar-info {
    display: flex;
    flex-direction: column;
}

.cart-total-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cart-total-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}

.btn-view-order {
    background: var(--blue);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.1s;
}

.btn-view-order:hover {
    background: var(--blue-dark);
}

.btn-view-order:active {
    transform: scale(0.96);
}

/* ── MODALS & DRAWERS ────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 13, 26, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 28px 28px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.22);
    position: relative;
    padding-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 700px) {
    .modal-content { max-width: 500px; border-radius: 28px; margin-bottom: 4vh; }
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-handle {
    width: 44px;
    height: 5px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    margin: 12px auto 8px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.modal-body {
    padding: 18px 22px;
}

/* Item Detail Lightbox Modal */
.lightbox-hero {
    width: 100%;
    height: 250px;
    border-radius: 22px;
    background: #F4F6FC;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.lightbox-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    padding: 5px 12px;
    font-size: 10px;
    backdrop-filter: blur(8px);
}

.lightbox-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.lightbox-title {
    font-size: 23px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.lightbox-price-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #013AD1;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border: 1px solid rgba(1, 58, 209, 0.16);
    padding: 6px 14px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(1, 58, 209, 0.08);
}

.lightbox-price-tag small {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.lightbox-desc-box {
    background: #F8FAFC;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Barista Q&A Section inside Lightbox */
.lightbox-qa-section {
    margin-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 16px;
}

.lightbox-qa-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lightbox-qa-card {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 12.5px;
    line-height: 1.5;
}

.lightbox-qa-q {
    color: #1E293B;
    margin-bottom: 4px;
}

.lightbox-qa-a {
    color: var(--blue);
    font-weight: 500;
}

/* ── OFFERS POPUP ─────────────────────────── */
.offer-modal-content {
    padding-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.offer-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.offer-close-btn:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: scale(1.08);
}

.offer-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.offer-carousel::-webkit-scrollbar {
    display: none;
}

.offer-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.offer-hero {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #001f80 0%, #013AD1 100%);
    position: relative;
    overflow: hidden;
}

.offer-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-hero[data-noimg="1"]::before {
    content: '🎁';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: 0.9;
}

.offer-badge-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: linear-gradient(135deg, #D4AF37 0%, #C9973A 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 6px 18px rgba(201, 151, 58, 0.45);
}

.offer-slide-body {
    padding: 24px 24px 6px;
}

.offer-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.offer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.18;
    margin-bottom: 8px;
}

.offer-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.offer-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.offer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(1, 58, 209, 0.18);
    transition: all 0.28s ease;
}

.offer-dot.active {
    width: 22px;
    border-radius: 6px;
    background: var(--blue);
}

.offer-actions {
    padding: 20px 24px 0;
}

.offer-skip {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: var(--sub);
    font-size: 13px;
    font-weight: 500;
    padding: 14px 0 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.offer-skip:hover {
    color: var(--text);
}

.lightbox-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    background: #ffffff;
    padding: 8px;
    border-radius: 26px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.modal-qty-picker {
    display: flex;
    align-items: center;
    background: #F0F4FF;
    border-radius: 20px;
    padding: 4px;
    gap: 8px;
}

.modal-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #013AD1;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, background 0.15s ease;
}

.modal-qty-btn:active {
    transform: scale(0.9);
}

.modal-qty-val {
    font-size: 14px;
    font-weight: 700;
    color: #013AD1;
    min-width: 16px;
    text-align: center;
}

.lightbox-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #013AD1 0%, #002699 100%);
    box-shadow: 0 6px 18px rgba(1, 58, 209, 0.3);
}

.option-group {
    margin-bottom: 16px;
}

.option-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sub);
    margin-bottom: 8px;
}

.option-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 14px;
    border-radius: 12px;
    background: white;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip.selected {
    background: #EEF2FF;
    border-color: var(--blue);
    color: var(--blue);
    font-weight: 600;
}

/* Cart & Checkout Drawer */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.cart-item-img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    background: #F8F9FD;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-sub {
    font-size: 11px;
    color: var(--sub);
    margin-top: 2px;
}

.cart-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
}

/* Form Controls */
.form-sec {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
}

.form-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #F0F2F8;
    padding: 3px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.type-btn {
    padding: 9px 0;
    text-align: center;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sub);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-btn.active {
    background: white;
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #FAFAFC;
    margin-bottom: 10px;
}

.form-input:focus {
    border-color: var(--blue);
    background: white;
}

.order-summary {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 8px;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    border-top: 1.5px dashed var(--border);
    padding-top: 10px;
    margin-bottom: 0;
}

.summary-row.total .total-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--blue);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Receipt Modal */
.receipt-card {
    background: white;
    border-radius: 20px;
    padding: 24px 20px;
    border: 1px dashed var(--blue);
    text-align: center;
    position: relative;
}

.receipt-icon {
    width: 60px;
    height: 60px;
    background: #EBFBEE;
    color: #2F9E44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
}

.receipt-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

.receipt-sub {
    font-size: 13px;
    color: var(--sub);
    margin-top: 4px;
    margin-bottom: 16px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}