/**
 * =============================================
 * STYLE.CSS — Customer-Facing Styles
 * Restoran Ipoh Raya (Darul Ridzuan)
 * =============================================
 * Mobile-first responsive design
 * Bilingual support (EN/BM)
 * =============================================
 */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --red: #C62828;
    --red-light: #E53935;
    --red-dark: #8E0000;
    --orange: #EF6C00;
    --orange-light: #FF9800;
    --yellow: #F9A825;
    --yellow-light: #FFCA28;
    --yellow-bright: #FFF176;
    --white: #FFFFFF;
    --beige: #FFFAF3;
    --beige-mid: #FFF0DB;
    --beige-dark: #F5D5B5;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-400: #BDBDBD;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-red: 0 4px 20px rgba(198,40,40,0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --font-display: 'Lalezar', cursive;
    --font-body: 'Nunito Sans', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--beige);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--red);
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 48px;
    font-weight: 400;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-red {
    background: var(--red);
    color: #fff;
    box-shadow: var(--shadow-red);
}

.btn-red:hover {
    background: var(--red-light);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--red);
    border: 2px solid #fff;
}

.btn-white:hover {
    background: var(--beige);
    transform: translateY(-2px);
}

.btn-outline-w {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-w:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* =============================================
   NAV
   ============================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--red);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--red);
    white-space: nowrap;
    line-height: 1.1;
}

.nav-logo .sub {
    color: var(--orange);
    font-size: 0.7rem;
    display: block;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-800);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--orange);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-order {
    background: var(--red);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: var(--shadow-red);
}

.nav-order:hover {
    background: var(--red-light);
}

/* Language toggle in nav */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: transparent;
    color: var(--gray-600);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--red);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    color: var(--red);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--red);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 3px solid var(--orange);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 35%, var(--orange) 100%);
}

.hero-deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-deco .c {
    position: absolute;
    border-radius: 50%;
    background: var(--yellow);
}

.hero-deco .c1 { width: 700px; height: 700px; top: -250px; right: -200px; opacity: 0.07; }
.hero-deco .c2 { width: 400px; height: 400px; bottom: -120px; left: -80px; opacity: 0.05; }
.hero-deco .c3 { width: 180px; height: 180px; top: 40%; left: 8%; opacity: 0.06; }

.hero-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--yellow) 0 20px, var(--orange-light) 20px 40px, var(--red-light) 40px 60px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    animation: fadeUp .8s ease-out;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 5rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero .hero-name-sub {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--yellow-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-info {
    margin-top: 48px;
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-info-item {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
}

.hero-info-item strong {
    display: block;
    color: var(--yellow-light);
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.open-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 4px;
}

.open-badge.open { background: rgba(255,255,255,0.95); color: #2E7D32; }
.open-badge.closed { background: rgba(0,0,0,0.25); color: #fff; }

.del-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.del-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.del-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow-light);
}

@media (max-width: 480px) {
    .hero-info { gap: 20px; }
    .hero-info-item { font-size: 0.8rem; }
    .del-badges { gap: 6px; }
    .del-badge { font-size: 0.75rem; padding: 7px 14px; }
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    aspect-ratio: 4/3;
    background: var(--beige);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-align: center;
    padding: 24px;
    border: 2px dashed var(--beige-dark);
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--red);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray-800);
    margin-bottom: 16px;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.about-stat {
    text-align: center;
    background: var(--beige);
    padding: 20px 16px;
    border-radius: var(--radius-sm);
    flex: 1;
    border: 1px solid var(--beige-mid);
}

.about-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--orange);
}

.about-stat-label {
    font-size: 0.82rem;
    color: var(--gray-600);
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-stats { gap: 10px; }
    .about-stat { padding: 14px 10px; }
    .about-stat-num { font-size: 1.5rem; }
}

/* =============================================
   HIGHLIGHTS
   ============================================= */
.highlights { background: var(--beige); }

.hl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hl-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.hl-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-light);
}

.hl-card-img {
    aspect-ratio: 3/2;
    background: linear-gradient(135deg, var(--beige-mid), var(--beige));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.8rem;
    text-align: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.hl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.pop-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.hl-card-body {
    padding: 18px;
}

.hl-card-body h3 {
    color: var(--gray-900);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.hl-card-body p {
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.5;
}

.hl-card-body .price {
    display: inline-block;
    margin-top: 10px;
    background: var(--red);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
}

@media (max-width: 900px) { .hl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .hl-grid { grid-template-columns: 1fr; } }

/* =============================================
   MENU
   ============================================= */
.menu { background: var(--white); }

.menu-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.menu-tab {
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--beige);
    color: var(--gray-800);
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
}

.menu-tab:hover,
.menu-tab.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.menu-category { display: none; }
.menu-category.active { display: block; }

.menu-category h3 {
    font-family: var(--font-display);
    color: var(--orange);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--beige-mid);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--beige);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
}

.menu-item:hover {
    border-color: var(--orange-light);
    background: var(--beige-mid);
}

.mi-name {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.95rem;
}

.mi-tag {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 700;
    color: #fff;
}

.mi-tag.pop { background: var(--red); }
.mi-tag.veg { background: #2E7D32; }

.mi-price {
    color: var(--red);
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 500px) { .menu-grid { grid-template-columns: 1fr; } }

/* =============================================
   ORDER
   ============================================= */
.order { background: var(--beige); }

.order-mode {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.order-mode-btn {
    padding: 16px 36px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    text-align: center;
}

.order-mode-btn:hover,
.order-mode-btn.active {
    border-color: var(--red);
    color: var(--red);
    background: rgba(198,40,40,0.04);
}

.order-mode-btn .icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 2px;
}

.del-notice {
    text-align: center;
    color: var(--orange);
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: var(--beige-mid);
    border-radius: var(--radius-sm);
    display: none;
    font-weight: 600;
    border: 1px solid var(--beige-dark);
}

.del-notice.show { display: block; }

.order-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.order-tab {
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--white);
    color: var(--gray-800);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.order-tab:hover,
.order-tab.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.order-item:hover {
    border-color: var(--orange-light);
    box-shadow: var(--shadow-sm);
}

.oi-left h4 {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.93rem;
}

.oi-left .price {
    color: var(--red);
    font-weight: 700;
    font-size: 0.88rem;
}

.oi-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--beige);
    color: var(--red);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: 800;
    border: 1px solid var(--gray-200);
}

.qty-btn:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.qty-num {
    color: var(--gray-900);
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    font-size: 1.05rem;
}

.order-category { display: none; }
.order-category.active { display: block; }

/* =============================================
   CART BAR
   ============================================= */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--red);
    padding: 14px 24px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(198,40,40,0.3);
}

.cart-bar.show { display: flex; }

.cart-bar-info {
    color: #fff;
    font-weight: 600;
}

.cart-bar-info span {
    color: var(--yellow-light);
    font-weight: 800;
}

.cart-bar-btn {
    background: var(--yellow);
    color: var(--gray-900);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
}

.cart-bar-btn:hover { background: var(--yellow-light); }

/* =============================================
   MODAL (Checkout)
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    border-top: 4px solid var(--red);
}

.modal h2 {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.modal-close {
    float: right;
    background: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    padding: 4px 8px;
}

.modal-close:hover { color: var(--gray-900); }

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
    font-size: 0.93rem;
}

.cart-item .ci-total {
    color: var(--red);
    font-weight: 700;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--red);
    border-top: 2px solid var(--red);
}

.fg { margin-bottom: 16px; }

.fg label {
    display: block;
    color: var(--gray-800);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.fg input,
.fg textarea,
.fg select {
    width: 100%;
    padding: 12px 16px;
    background: var(--beige);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-900);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
    outline: none;
    border-color: var(--red);
    background: var(--white);
}

.pay-opts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pay-opt {
    flex: 1;
    min-width: 130px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--beige);
    border: 2px solid var(--gray-200);
    color: var(--gray-800);
    text-align: center;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.pay-opt:hover,
.pay-opt.active {
    border-color: var(--red);
    color: var(--red);
    background: rgba(198,40,40,0.04);
}

.pay-opt .icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 4px;
}

.duitnow-qr {
    text-align: center;
    padding: 20px;
    background: var(--beige);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    display: none;
    color: var(--gray-800);
    font-weight: 600;
    border: 2px dashed var(--gray-200);
}

.duitnow-qr.show { display: block; }

/* =============================================
   CATERING
   ============================================= */
.catering {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.cat-deco {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239,108,0,0.06), transparent 70%);
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.cat-info h2 {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 2rem;
    margin-bottom: 20px;
}

.cat-info p {
    color: var(--gray-800);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 16px;
}

.cat-list li {
    padding: 10px 0;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-list li::before {
    content: '\01F525';
    font-size: 0.85rem;
}

.cat-form {
    background: var(--beige);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--beige-mid);
}

.cat-form h3 {
    font-family: var(--font-display);
    color: var(--orange);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

/* =============================================
   GALLERY
   ============================================= */
.gallery { background: var(--beige); }

.gal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gal-item {
    aspect-ratio: 4/3;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    border: 2px dashed var(--beige-dark);
    transition: var(--transition);
    overflow: hidden;
}

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

.gal-item:hover {
    border-color: var(--orange-light);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) { .gal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .gal-grid { grid-template-columns: 1fr; } }

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.cd h3 {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.ci {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--beige-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ci-text h4 {
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 0.93rem;
}

.ci-text p {
    color: var(--gray-600);
    font-size: 0.88rem;
}

.ci-text a {
    color: var(--red);
    font-weight: 600;
}

.ci-text a:hover { text-decoration: underline; }

.hrs-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
    font-size: 0.9rem;
}

.hrs-row .day { font-weight: 600; }

.map-box {
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 380px;
    border: 2px solid var(--beige-mid);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form {
    margin-top: 48px;
    background: var(--beige);
    padding: 32px;
    border-radius: var(--radius);
}

.contact-form h3 {
    font-family: var(--font-display);
    color: var(--orange);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form .fg-row { grid-template-columns: 1fr !important; }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--red-dark);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    color: var(--yellow-light);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--yellow-light);
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--yellow-light); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

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

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.wa-float {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 800;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: var(--transition);
    color: #fff;
    font-size: 1.6rem;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LOADING PLACEHOLDER
   ============================================= */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--gray-400);
}

.loading-placeholder .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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


/* =============================================
   MOBILE FIXES
   ============================================= */

@media (max-width: 480px) {
    /* Checkout modal — full screen on mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        padding: 0;
        border-top: none;
        display: flex;
        flex-direction: column;
    }

    /* Sticky close button */
    .modal-close {
        float: none;
        position: sticky;
        top: 0;
        top: env(safe-area-inset-top);
        z-index: 20;
        align-self: flex-end;
        margin: 12px 12px 0 12px;
        background: var(--white);
        border-radius: 50%;
        box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    }

    .modal h2 {
        font-size: 1.25rem;
        margin-top: 0;
        margin-bottom: 16px;
        padding: 0 16px;
    }

    /* Scrollable body */
    #checkoutStep1,
    #checkoutStep2 {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    /* Cart bar — more space, no overlap with float buttons */
    .cart-bar {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .cart-bar-btn {
        padding: 10px 20px;
        font-size: 0.88rem;
    }

    /* Move float buttons above cart bar when visible */
    .cart-bar.show ~ .wa-float,
    .cart-bar.show ~ .chat-toggle-btn {
        bottom: 80px;
    }

    /* Chat panel — fullscreen with safe area */
    .chat-panel {
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }
    .chat-header {
        border-radius: 0;
        padding-top: calc(16px + env(safe-area-inset-top));
    }
    .chat-input-area {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    .chat-toggle-btn {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 24px;
    }

    /* Order section */
    .order-mode {
        gap: 10px;
    }

    .order-mode-btn {
        padding: 12px 20px;
        font-size: 0.88rem;
        flex: 1;
    }

    .order-item {
        padding: 12px 14px;
    }

    .oi-left h4 {
        font-size: 0.85rem;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .oi-right {
        gap: 8px;
    }

    /* Order tabs scrollable */
    .order-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .order-tabs::-webkit-scrollbar {
        display: none;
    }

    .order-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Menu tabs scrollable */
    .menu-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .menu-tabs::-webkit-scrollbar {
        display: none;
    }

    .menu-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Unavailable item message */
    .order-item-unavailable .oi-left h4 {
        font-size: 0.83rem;
    }

    /* Section padding reduced */
    .section-pad {
        padding: 48px 0;
    }

    .section-sub {
        margin-bottom: 32px;
        font-size: 0.92rem;
    }
}

    /* Hero badge fix */
    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 16px;
        letter-spacing: 1px;
        word-break: break-word;
        line-height: 1.4;
    }


/* Fix for bottom safe area on notched phones (iPhone etc.) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cart-bar {
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
    .chat-input-area {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* =============================================
   CLOSE BUTTON FIX (cross-device)
   ============================================= */
.modal-close,
.chat-close-btn {
    position: relative;
    font-size: 0;
    width: 36px;
    height: 36px;
}

.modal-close::before,
.modal-close::after,
.chat-close-btn::before,
.chat-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2.5px;
    background: currentColor;
    border-radius: 2px;
}

.modal-close::before,
.chat-close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after,
.chat-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
