/* ============================================================
   Restaurant Pro - Public Site CSS
   Layout inspired by zamalek-menus restaurant page
   Mobile-first, RTL, with brand color customization
   ============================================================ */

:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #fee2e2;
    --gray-900: #1a1a1a;
    --gray-700: #4a4a4a;
    --gray-500: #777;
    --gray-400: #999;
    --gray-300: #d0d0d0;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --black: #111;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --offer-yellow: #d6ff3a;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --font: 'Tajawal', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-900);
    direction: rtl;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Sticky top header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
}
.header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--gray-100);
    flex-shrink: 0;
}
.brand-text { min-width: 0; }
.brand-text .name {
    font-weight: 800;
    font-size: 15px;
    color: var(--gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-text .tagline {
    font-size: 11px;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
}
.cart-btn:active { transform: scale(0.96); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn .badge {
    background: white;
    color: var(--primary);
    font-weight: 900;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Cover + restaurant info card ---------- */
.restaurant-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: block;
}
.restaurant-cover-fallback {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 80px;
}
.restaurant-header-info {
    background: var(--white);
    max-width: 688px;
    margin: -40px 16px 0;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 5;
    display: flex;
    gap: 14px;
    align-items: center;
}
@media (min-width: 752px) {
    .restaurant-header-info { margin-right: auto; margin-left: auto; }
}
.rest-logo-lg {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gray-100);
    border: 3px solid var(--white);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.info-text { flex: 1; min-width: 0; }
.info-text h1 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.info-text .desc {
    font-size: 12px;
    color: var(--gray-500);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}
.restaurant-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--gray-500);
    flex-wrap: wrap;
    margin-top: 6px;
}
.restaurant-meta-row .meta-item { display: flex; align-items: center; gap: 4px; }
.restaurant-meta-row svg { width: 14px; height: 14px; }
.restaurant-meta-row .rating { color: var(--gray-900); font-weight: 700; }
.restaurant-meta-row .rating svg { fill: #f9b300; }

/* ---------- Offers ---------- */
.offers-section { margin-top: 20px; }
.section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-subtitle { font-size: 12px; color: var(--gray-500); padding: 0 4px; margin-bottom: 12px; }
.offers-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 16px 8px;
    margin: 0 -16px;
}
.offers-scroll::-webkit-scrollbar { display: none; }
.offer-card {
    min-width: 200px;
    max-width: 240px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.offer-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-light), #fef3c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 48px;
}
.offer-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.save-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--offer-yellow);
    color: var(--black);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
}
.offer-body { padding: 10px 12px 12px; }
.offer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.offer-prices { display: flex; align-items: center; gap: 8px; }
.offer-price-now {
    color: var(--gray-900);
    font-weight: 800;
    font-size: 14px;
    background: linear-gradient(transparent 60%, var(--offer-yellow) 60%);
    padding: 0 2px;
}
.offer-price-old { color: var(--gray-500); text-decoration: line-through; font-size: 12px; }

/* ---------- Menu tabs ---------- */
.menu-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 14px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 64px;
    z-index: 80;
    margin-top: 16px;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    white-space: nowrap;
    border: none;
    border-bottom: 2.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.menu-tab .tab-icon { font-size: 16px; }
.menu-tab.active {
    color: var(--gray-900);
    border-bottom-color: var(--primary);
}

/* ---------- Product cards ---------- */
.menu-category { margin-bottom: 24px; padding-top: 12px; }
.menu-category h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; padding: 0 4px; }

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 10px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.product-card-top {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 14px;
    cursor: pointer;
}
.product-card .prod-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gray-100);
    flex-shrink: 0;
}
.product-card .prod-img-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), #fef3c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 36px;
    flex-shrink: 0;
}
.product-card .prod-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.top-rated-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff4e6;
    color: #d97706;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    align-self: flex-start;
    width: fit-content;
}
.top-rated-badge svg { width: 12px; height: 12px; fill: var(--warning); }
.prod-name { font-size: 15px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.prod-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-price { font-size: 14px; font-weight: 800; color: var(--gray-900); }
.prod-price .prefix { color: var(--gray-500); font-weight: 600; font-size: 12px; }

/* Action buttons row */
.product-actions { display: flex; border-top: 1px solid var(--gray-100); }
.product-actions button {
    flex: 1;
    border: none;
    padding: 10px 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
    background: var(--white);
}
.product-actions svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-cart { color: var(--primary); border-left: 1px solid var(--gray-100); }
.btn-cart:hover { background: var(--primary-light); }
.btn-whatsapp { color: var(--whatsapp-dark); }
.btn-whatsapp:hover { background: #e6f9ee; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state svg { width: 60px; height: 60px; opacity: 0.4; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; margin-bottom: 4px; color: var(--gray-700); font-weight: 700; }
.empty-state p { font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 30px 16px 110px; color: var(--gray-500); font-size: 12px; margin-top: 30px; }
.site-footer > div { margin-top: 4px; }

/* ---------- Modal ---------- */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    overflow-y: auto;
}
.modal-backdrop.show { display: flex; }
.modal {
    background: white;
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s ease-out;
}
@media (min-width: 640px) {
    .modal-backdrop { align-items: center; padding: 16px; }
    .modal { border-radius: 18px; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}
.modal-header h3 { font-size: 16px; font-weight: 800; }
.modal-close {
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-body { padding: 16px 20px; }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--gray-200);
    position: sticky;
    bottom: 0;
    background: white;
}
.modal-product-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--gray-100);
}
.modal-product-desc { color: var(--gray-500); margin-bottom: 14px; font-size: 13px; line-height: 1.5; }

.option-group { margin-bottom: 14px; }
.option-group-title {
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.required-pill {
    color: var(--primary);
    font-size: 10px;
    background: var(--primary-light);
    padding: 2px 7px;
    border-radius: 50px;
    font-weight: 700;
}
.option-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    margin-bottom: 6px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.option-value:hover { border-color: var(--primary); }
.option-value.selected { border-color: var(--primary); background: var(--primary-light); }
.option-value input { display: none; }
.option-value .check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.option-value[data-type="multiple"] .check { border-radius: 5px; }
.option-value.selected .check { border-color: var(--primary); background: var(--primary); color: white; }
.option-value.selected .check::after { content: '✓'; font-size: 12px; font-weight: 900; }
.option-value-label { font-weight: 600; flex: 1; padding: 0 10px; font-size: 14px; }
.option-value-delta { color: var(--gray-500); font-size: 12px; font-weight: 700; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 10px 0; }
.qty-label { font-weight: 800; font-size: 14px; }
.qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 4px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}
.qty-value { font-weight: 900; min-width: 26px; text-align: center; font-size: 14px; }

.modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.modal-total .label { font-weight: 700; }
.modal-total .price { font-size: 20px; font-weight: 900; color: var(--primary); }

.modal-cta { display: flex; gap: 8px; }
.modal-cta button {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.modal-cta .add-cart { background: var(--primary); color: white; }
.modal-cta .order-whatsapp { background: var(--whatsapp); color: white; }

.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 13px; }
.form-row input, .form-row textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); }

/* ---------- Sticky cart bar ---------- */
.cart-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--primary);
    color: white;
    padding: 13px 18px;
    border-radius: 50px;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 50;
    text-decoration: none;
}
.cart-bar.show { display: flex; }
.cart-bar .info { display: flex; flex-direction: column; }
.cart-bar .qty { font-size: 12px; opacity: 0.9; }
.cart-bar .total { font-size: 16px; font-weight: 900; }
.cart-bar .cta { background: white; color: var(--primary); padding: 7px 14px; border-radius: 50px; font-weight: 900; font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: var(--gray-900);
    color: white;
    padding: 11px 18px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: transform 0.3s;
    font-weight: 700;
    font-size: 13px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--whatsapp); }
.toast.error { background: var(--primary); }

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cart page ---------- */
.cart-page { padding: 20px 0 100px; }
.cart-page h1 { font-size: 22px; margin-bottom: 16px; }
.cart-item {
    background: white;
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.cart-item-img, .cart-item-img-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.cart-item-img-placeholder {
    background: linear-gradient(135deg, var(--primary-light), #fef3c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 800; font-size: 14px; }
.cart-item-options { font-size: 11px; color: var(--gray-500); margin: 3px 0; line-height: 1.5; }
.cart-item-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 10px; }
.cart-item-price { font-weight: 900; color: var(--primary); font-size: 14px; }

.cart-summary {
    background: white;
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 16px;
    box-shadow: var(--shadow);
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.cart-summary-row.total {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
}
.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--whatsapp);
    color: white;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 900;
    font-size: 15px;
    margin-top: 14px;
}
.checkout-btn svg { width: 20px; height: 20px; }
.btn-remove { background: none; border: none; color: var(--gray-400); font-size: 16px; padding: 4px 8px; }

.qty-mini {
    background: var(--gray-100);
    border-radius: 50px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.qty-mini button {
    width: 26px;
    height: 26px;
    border: none;
    background: white;
    border-radius: 50%;
    font-weight: 900;
    color: var(--primary);
    font-size: 14px;
}
.qty-mini .v { font-weight: 900; min-width: 22px; text-align: center; font-size: 13px; }

/* ============================================================
   Hamburger button + side drawer
   ============================================================ */
.header-start { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.menu-toggle {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-900);
}
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle svg { width: 22px; height: 22px; }

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

.side-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 84vw;
    height: 100%;
    background: var(--white);
    z-index: 300;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.side-drawer.open { right: 0; }
.drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}
.drawer-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.drawer-title { font-weight: 800; font-size: 16px; }
.drawer-sub { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.drawer-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gray-100);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: var(--gray-700);
}
.drawer-links { padding: 12px 0; flex: 1; }
.drawer-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-900);
    transition: background 0.15s;
    position: relative;
}
.drawer-links a:hover { background: var(--primary-light); color: var(--primary); }
.drawer-links svg { width: 22px; height: 22px; flex-shrink: 0; }
.drawer-badge {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 900;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
}
.drawer-social {
    display: flex;
    gap: 10px;
    padding: 18px 20px;
    border-top: 1px solid var(--gray-200);
}
.drawer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all 0.15s;
}
.drawer-social a:hover { background: var(--primary); color: white; }
.drawer-social svg { width: 20px; height: 20px; }

/* ============================================================
   Home page content sections
   ============================================================ */
.content-section { padding: 48px 0; }
.content-section .section-head { text-align: center; margin-bottom: 32px; }
.content-section .section-head h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}
.content-section .section-head h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.5;
}
.content-section .section-head .subtitle { font-size: 15px; opacity: 0.75; margin-top: 14px; }

/* Story section */
.story-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 2;
    text-align: center;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
    cursor: pointer;
}
.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 18px 12px 10px;
    font-size: 12px;
    font-weight: 600;
}
.gallery-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), #fef3c7);
}

/* Videos grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black);
    box-shadow: var(--shadow);
}
.video-card .video-frame {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--gray-900);
}
.video-card iframe, .video-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-card .video-caption {
    padding: 12px 14px;
    background: white;
    font-weight: 700;
    font-size: 14px;
}

/* Why choose us */
.why-section { color: inherit; }
.why-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.why-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.18);
}
.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    overflow: hidden;
}
.why-icon img { width: 100%; height: 100%; object-fit: cover; }
.why-icon svg { width: 26px; height: 26px; color: #16a34a; }
.why-item-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.why-item-body p { font-size: 13px; opacity: 0.88; line-height: 1.6; }

/* Reviews */
.reviews-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.reviews-scroll::-webkit-scrollbar { display: none; }
.review-card {
    min-width: 280px;
    max-width: 320px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.review-stars { color: #f9b300; font-size: 16px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 14px; line-height: 1.7; color: var(--gray-700); margin-bottom: 14px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}
.review-name { font-weight: 800; font-size: 14px; }

/* Home offers reuse offers-scroll/.offer-card */

/* ============================================================
   Contact page
   ============================================================ */
.contact-hero {
    text-align: center;
    padding: 40px 16px 20px;
}
.contact-hero h1 { font-size: 30px; font-weight: 900; margin-bottom: 8px; }
.contact-hero p { color: var(--gray-500); font-size: 15px; }

.contact-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.contact-social a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.15s;
}
.contact-social a:hover { transform: translateY(-3px); }
.contact-social svg { width: 24px; height: 24px; }
.cs-facebook { background: #1877f2; }
.cs-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cs-tiktok { background: #010101; }
.cs-twitter { background: #1da1f2; }
.cs-youtube { background: #ff0000; }
.cs-email { background: var(--gray-700); }

.branches-list { display: grid; gap: 16px; margin: 30px 0; }
.branch-card {
    display: flex;
    gap: 16px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.branch-img {
    width: 130px;
    flex-shrink: 0;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light), #fef3c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
}
.branch-img img { width: 100%; height: 100%; object-fit: cover; }
.branch-body { flex: 1; padding: 16px; min-width: 0; }
.branch-name { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.branch-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--gray-700); }
.branch-meta .row { display: flex; align-items: center; gap: 8px; }
.branch-meta svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.branch-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.branch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    border: none;
}
.branch-btn svg { width: 16px; height: 16px; }
.branch-btn.call { background: var(--primary-light); color: var(--primary); }
.branch-btn.wa { background: #e6f9ee; color: var(--whatsapp-dark); }
.branch-btn.map { background: var(--gray-100); color: var(--gray-700); }

@media (max-width: 560px) {
    .branch-card { flex-direction: column; }
    .branch-img { width: 100%; height: 120px; }
    .content-section { padding: 36px 0; }
    .content-section .section-head h2 { font-size: 24px; }
}

/* ============================================================
   ANIMATIONS - scroll reveal, page-load stagger, micro-interactions
   ============================================================ */

/* Base hidden state for scroll-reveal elements */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
/* Reveal variants */
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-right.in-view { transform: translateX(0); }
.reveal.reveal-left { transform: translateX(-30px); }
.reveal.reveal-left.in-view { transform: translateX(0); }
.reveal.reveal-scale { transform: scale(.92); }
.reveal.reveal-scale.in-view { transform: scale(1); }

/* Stagger children: set --i via inline style or nth-child fallback */
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }
.reveal[data-delay="5"] { transition-delay: .30s; }
.reveal[data-delay="6"] { transition-delay: .36s; }

/* ---- Page-load entrance for the hero/cover + info card ---- */
@keyframes coverFadeIn {
    from { opacity: 0; transform: scale(1.06); }
    to   { opacity: 1; transform: scale(1); }
}
.restaurant-cover, .restaurant-cover-fallback {
    animation: coverFadeIn .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes cardRiseIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.restaurant-header-info {
    animation: cardRiseIn .7s cubic-bezier(.16,1,.3,1) .15s both;
}

/* ---- Menu tabs slide/fade in ---- */
@keyframes tabsFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.menu-tabs { animation: tabsFadeIn .5s ease .3s both; }

/* ---- Product cards: subtle hover lift ---- */
.product-card { transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
.product-card .prod-img { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.product-card:hover .prod-img { transform: scale(1.05); }

/* Action buttons press + shimmer */
.product-actions button { transition: background .15s ease, transform .12s ease; }
.product-actions button:active { transform: scale(.95); }

/* ---- Category tile / offer card hover ---- */
.offer-card { transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }
.offer-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 32px rgba(0,0,0,.12); }

/* ---- Review cards ---- */
.review-card { transition: transform .2s ease, box-shadow .2s ease; }
.review-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.10); }

/* ---- Why-choose items pop ---- */
.why-item { transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s ease; }
.why-item:hover { transform: translateY(-3px); background: rgba(255,255,255,.20); }
.why-item:hover .why-icon { transform: rotate(-6deg) scale(1.08); }
.why-icon { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }

/* ---- Gallery zoom ---- */
.gallery-item { transition: transform .25s ease; }
.gallery-item:hover { transform: scale(1.03); z-index: 2; }

/* ---- Section heading underline draw-in ---- */
.content-section .section-head h2::after {
    transition: width .5s cubic-bezier(.16,1,.3,1) .2s;
}
.content-section .reveal:not(.in-view) .section-head h2::after { width: 0; }

/* ---- Floating cart bar bounce-in ---- */
@keyframes cartBarIn {
    from { opacity: 0; transform: translateY(80px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cart-bar.show { animation: cartBarIn .45s cubic-bezier(.34,1.56,.64,1) both; }

/* ---- Drawer link hover slide ---- */
.drawer-links a { transition: background .15s ease, padding-right .15s ease, color .15s ease; }
.drawer-links a:hover { padding-right: 26px; }

/* ---- Buttons global press ---- */
.btn-cart, .btn-whatsapp, .checkout-btn, .cart-btn, .branch-btn {
    transition: transform .12s ease, background .15s ease, box-shadow .2s ease;
}
.checkout-btn:hover { box-shadow: 0 8px 22px rgba(37,211,102,.35); transform: translateY(-2px); }
.checkout-btn:active, .cart-btn:active { transform: scale(.97); }

/* ---- Modal option select pulse ---- */
@keyframes optPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.option-value.selected { animation: optPulse .25s ease; }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}
