/*
Theme Name: المذاق الرفيع
Theme URI: https://hightastefood.com/
Description: قالب WordPress لموقع مطعم المذاق الرفيع، مبني من الموقع الأصلي مع دعم RTL.
Version: 1.0.1
Author: المذاق الرفيع
Text Domain: al-mathaq-rafi
Requires at least: 5.8
Requires PHP: 7.4
*/

/* ==========================================================================
   Variables & Theme Setup
   ========================================================================== */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --accent: #10b981;
    --border: #334155;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.light {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #d97706;
    --primary-hover: #b45309;
    --accent: #059669;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Readex Pro', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    transition: var(--transition);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 80px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 76px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo span {
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Hero */
.hero {
    padding: 125px 0 65px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 45px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.hero-img-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    height: 340px;
    width: 100%;
    background: var(--bg-card);
}

.hero-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* صورة قصة المطعم + النص */
#about .hero-img-card {
    height: 320px;
    width: 100%;
}

#about .hero-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image-card {
    position: relative;
    overflow: hidden;
}

.event-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.72)
    );
    color: #fff;
    pointer-events: none;
}

.event-overlay h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.event-overlay p {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f59e0b;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Menu */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.badge-tag {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin: 10px 0;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
}

.menu-controls {
    margin-bottom: 40px;
}

.search-box {
    max-width: 500px;
    margin: 0 auto 25px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.categories-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
}

.categories-tabs::-webkit-scrollbar {
    height: 4px;
}

.categories-tabs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.dish-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    overflow: hidden;
}

.dish-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.dish-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 15px;
    display: block;
}

.dish-title {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.dish-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
}

.dish-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    font-size: 0.9rem;
    padding-top: 35px;
}

/* Booking & Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
}

/* Cart */
.cart-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100%;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.cart-drawer.open {
    left: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-info span {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    cursor: pointer;
    font-weight: bold;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: -300px;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 2000;
    transition: var(--transition);
}

.toast.show {
    right: 30px;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-col h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1000px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        min-height: 68px;
        padding: 8px 15px;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 7px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 18px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions {
        gap: 7px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .hero {
        padding: 105px 0 50px;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-img-card {
        height: 260px;
        border-radius: 16px;
    }

    #about .hero-img-card {
        height: 250px;
    }

    .event-overlay h2 {
        font-size: 1.5rem;
    }

    .event-overlay p {
        font-size: 1.05rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dish-card {
        padding: 10px;
    }

    .dish-card img {
        height: 145px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .dish-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .dish-price {
        font-size: 1rem;
    }

    .dish-footer {
        margin-top: 10px;
        padding-top: 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        height: 170px;
        border-radius: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .cart-drawer {
        width: 100%;
        left: -100%;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        left: 18px;
        bottom: 18px;
        font-size: 1.6rem;
    }

    .footer-logo {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .logo span {
        font-size: 0.95rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-img-card {
        height: 230px;
    }

    #about .hero-img-card {
        height: 220px;
    }

    .event-overlay h2 {
        font-size: 1.3rem;
    }

    .event-overlay p {
        font-size: 0.95rem;
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dish-card img {
        height: 125px;
    }

    .gallery-item {
        height: 145px;
    }

    .gallery-item span {
        font-size: 0.75rem;
        padding: 8px;
        padding-top: 30px;
    }
}


/* ==========================================================================
   Added ordering, checkout, event and category-image enhancements
   ========================================================================== */

/* Category images */
.categories-tabs .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 14px;
}

.categories-tabs .tab-btn img {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.categories-tabs .tab-btn:hover img,
.categories-tabs .tab-btn.active img {
    transform: scale(1.08);
}

/* Events */
.events-section {
    scroll-margin-top: 90px;
}

.events-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.events-card > img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center;
}

.events-content {
    padding: 20px 24px 24px;
    text-align: center;
}

.events-content h3 {
    color: var(--text-main);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.events-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Cart enhancements */
.cart-item {
    gap: 12px;
    align-items: flex-start;
}

.cart-item-info {
    min-width: 0;
    flex: 1;
}

.cart-item-info h4 {
    line-height: 1.5;
    word-break: break-word;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.remove-item-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 50%;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-item-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    transform: scale(1.05);
}

.cart-qty {
    direction: ltr;
}

.qty-display {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    padding: 4px 2px;
}

.qty-display:hover {
    color: var(--primary);
}

.qty-edit-input {
    width: 58px;
    height: 32px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    text-align: center;
    font-weight: 700;
    outline: none;
}

.cart-note {
    width: 100%;
    min-width: 150px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition);
}

.cart-note:focus {
    border-color: var(--primary);
}

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 35px 10px;
}

.order-confirm-btn {
    width: 100%;
    min-height: 48px;
    margin-bottom: 14px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-main);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
}

.order-confirm-btn:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.order-confirm-btn .confirm-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: transparent;
}

.order-confirm-btn.confirmed {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.order-confirm-btn.confirmed .confirm-icon {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

.order-confirm-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Checkout and image modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.order-modal {
    width: min(560px, 100%);
    max-height: min(90vh, 760px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.modal-header h3 {
    font-size: 1.25rem;
}

.order-form {
    padding: 20px;
}

.order-required-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: -3px 0 16px;
}

.order-submit-btn {
    width: 100%;
}

.image-lightbox {
    padding: 12px;
}

.lightbox-content {
    position: relative;
    width: min(1000px, 96vw);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.lightbox-close {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 2;
    background: var(--bg-card);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .categories-tabs .tab-btn {
        padding: 6px 10px;
        gap: 6px;
        font-size: 0.85rem;
    }

    .categories-tabs .tab-btn img {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .events-card > img {
        height: 270px;
    }

    .events-content {
        padding: 16px;
    }

    .events-content h3 {
        font-size: 1.15rem;
    }

    .cart-items {
        padding: 14px;
    }

    .cart-footer {
        padding: 14px;
    }

    .cart-item {
        gap: 8px;
    }

    .cart-note {
        min-width: 0;
    }

    .modal-overlay {
        padding: 10px;
    }

    .order-modal {
        max-height: 94vh;
        border-radius: 15px;
    }

    .order-form {
        padding: 15px;
    }

    .lightbox-close {
        top: -4px;
        left: -4px;
    }
}

@media (max-width: 480px) {
    .events-card > img {
        height: 220px;
    }

    .cart-item-info h4 {
        font-size: 0.88rem;
    }

    .cart-item-info span {
        font-size: 0.82rem;
    }

    .cart-qty {
        gap: 6px;
    }

    .qty-btn {
        width: 27px;
        height: 27px;
    }

    .cart-note {
        font-size: 0.78rem;
    }
}

/* Deposit slip attachment */
.deposit-content { padding: 20px; text-align: center; }
.deposit-message { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.deposit-optional { margin: 0 0 18px; opacity: .78; line-height: 1.7; }
.deposit-upload-label { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed currentColor; border-radius: 12px; padding: 14px; cursor: pointer; margin-bottom: 10px; }
.deposit-upload-label input { display: none; }
.deposit-file-name { min-height: 24px; margin-bottom: 16px; font-size: 14px; opacity: .85; word-break: break-word; }
.deposit-whatsapp-note { margin: 8px 0 14px; font-size: 13px; line-height: 1.8; opacity: .82; }
.deposit-preview { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; margin: 8px 0 16px; border: 1px solid rgba(255,255,255,.15); }
.deposit-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.deposit-actions .btn { flex: 1 1 180px; }
