/* ----------------------------------------------------
   ON Coffee - Custom CSS Style Sheets
   Visual Identity: Forest Green, Champagne Gold, Creamy White
   Theme: Cozy, Modern Specialty Cafe
---------------------------------------------------- */

/* --- Design Tokens / CSS Variables --- */
:root {
    --primary: #1b3d2f;        /* Forest Green */
    --primary-light: #2c5845;  /* Lighter Forest Green */
    --primary-dark: #12291f;   /* Deepest Green */
    --secondary: #cbb279;      /* Champagne Gold */
    --secondary-dark: #b89c5f; /* Deep Champagne Gold */
    --accent: #d4a373;         /* Warm Latte Brown */
    --bg-light: #fdfbf7;       /* Almond Cream */
    --bg-white: #ffffff;
    --text-dark: #2f3632;      /* Deep Olive Charcoal */
    --text-muted: #6e7a73;     /* Muted Olive Gray */
    --border-color: #ebdcd0;   /* Creamy Beige Border */
    --shadow-sm: 0 4px 6px -1px rgba(27, 61, 47, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(27, 61, 47, 0.08), 0 4px 6px -2px rgba(27, 61, 47, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(27, 61, 47, 0.12), 0 10px 10px -5px rgba(27, 61, 47, 0.04);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Outfit', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
}

/* --- Resets & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Layout Elements --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

/* --- Typography Utilities --- */
.text-center { text-align: center; }
.accent-text { color: var(--secondary); }
.light-text { font-size: 0.85em; font-weight: normal; opacity: 0.8; }

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
    position: relative;
}
.section-subtitle {
    display: inline-block;
    font-family: var(--font-english);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 12px;
    position: relative;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 15px auto 0;
}
.title-divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- Buttons System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-light);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}
.btn-block {
    display: flex;
    width: 100%;
}

/* --- Header / Navigation Bar --- */
.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 80px;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    background-color: rgba(27, 61, 47, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* --- Logo Styling --- */
.logo {
    display: flex;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-svg {
    width: 42px;
    height: 42px;
    color: var(--secondary);
    transition: var(--transition-smooth);
}
.logo-link:hover .logo-svg {
    transform: rotate(15deg) scale(1.05);
}
.logo-text {
    font-family: var(--font-english);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--bg-light);
}


/* --- Navigation Menu --- */
.main-nav {
    display: block;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(253, 251, 247, 0.8);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary) !important;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-header:not(.scrolled) .btn-primary {
    background-color: var(--primary);
    color: var(--bg-light);
}
.main-header.scrolled .btn-primary {
    background-color: var(--secondary);
    color: var(--primary-dark);
}
.main-header.scrolled .btn-primary:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

/* --- Mobile Menu Burger --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1010;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--bg-light);
    border-radius: 2px;
    transition: var(--transition-fast);
}
.main-header.scrolled .menu-toggle span {
    background-color: var(--bg-light);
}

/* --- Mobile Drawer Menu --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-dark);
    z-index: 999;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.mobile-nav-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}
.drawer-header .logo-text {
    color: var(--bg-light);
}
.drawer-close {
    font-size: 1.5rem;
    color: var(--bg-light);
    transition: var(--transition-fast);
}
.drawer-close:hover {
    color: var(--secondary);
}

.drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
}
.drawer-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-light);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.drawer-link:hover {
    color: var(--secondary);
    padding-right: 8px;
}

.drawer-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.drawer-footer .social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(253, 251, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-light);
    font-size: 1.2rem;
}
.drawer-footer .social-icon:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
    border-color: var(--secondary);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 61, 47, 0.92) 0%, rgba(27, 61, 47, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    color: var(--bg-light);
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(253, 251, 247, 0.85);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    color: var(--bg-light);
    border-color: var(--bg-light);
}
.hero-buttons .btn-outline:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}
.hero-scroll-indicator a {
    color: var(--bg-light);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}
.hero-scroll-indicator a:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Animations Keyframes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}
.animate-fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}
.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}
.animate-fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

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

/* --- Features / Highlights Section --- */
.features-section {
    background-color: var(--bg-white);
}

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

.feature-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 50px 30px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    top: 0;
}

.feature-card:hover {
    top: -10px;
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(27, 61, 47, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--primary);
    font-size: 2.2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: var(--secondary);
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Featured card highlighted version */
.feature-card.highlighted {
    background-color: var(--primary);
    color: var(--bg-light);
    border-color: var(--primary);
}
.feature-card.highlighted .feature-icon {
    background-color: var(--secondary);
    color: var(--primary-dark);
}
.feature-card.highlighted .feature-title {
    color: var(--bg-light);
}
.feature-card.highlighted .feature-desc {
    color: rgba(253, 251, 247, 0.8);
}
.feature-card.highlighted:hover {
    border-color: var(--secondary);
}
.feature-card.highlighted:hover .feature-icon {
    background-color: var(--bg-light);
    color: var(--primary);
}

/* --- Interactive Menu Section --- */
.menu-section {
    background-color: var(--bg-light);
}

.menu-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.menu-tabs {
    display: flex;
    background-color: var(--bg-white);
    padding: 6px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.menu-tab-btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.menu-tab-btn:hover {
    color: var(--primary);
}

.menu-tab-btn.active {
    background-color: var(--primary);
    color: var(--bg-light);
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Menu Item Card */
.menu-item-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.menu-item-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background-color: var(--bg-light);
}

.menu-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.menu-item-card:hover .menu-item-img {
    transform: scale(1.1);
}

.menu-item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--secondary);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.menu-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.menu-item-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.menu-item-price {
    font-family: var(--font-english);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-dark);
    white-space: nowrap;
}

.menu-item-price span {
    font-family: var(--font-arabic);
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 3px;
}

.menu-item-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 8px 0 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-footer {
    display: flex;
    justify-content: flex-end;
}

.menu-add-btn {
    width: 36px;
    height: 36px;
    background-color: rgba(27, 61, 47, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.menu-add-btn:hover {
    background-color: var(--primary);
    color: var(--bg-light);
    transform: scale(1.1);
}

/* --- Drink Customizer Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 20px;
}

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

.modal-container {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 650px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 90vh;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--primary);
    color: var(--bg-light);
}

.modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-image-container {
    width: 100%;
    height: 250px;
    background-color: var(--primary-dark);
    position: relative;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 25px;
}

.modal-item-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-item-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

/* Form Customize Options */
.options-group {
    margin-bottom: 20px;
}
.option-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.option-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.option-btn {
    position: relative;
    display: block;
    cursor: pointer;
}

.option-btn input[type="radio"],
.option-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: var(--transition-fast);
}

.option-btn input[type="radio"]:checked + span,
.option-btn input[type="checkbox"]:checked + span {
    border-color: var(--primary);
    background-color: rgba(27, 61, 47, 0.08);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
.price-val {
    font-family: var(--font-english);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}
.price-currency {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* --- Floating Cart Trigger Button --- */
.floating-cart-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 990;
    transition: var(--transition-smooth);
    border: 2px solid var(--secondary);
}

.floating-cart-trigger:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--primary-light);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary);
    color: var(--primary-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-family: var(--font-english);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary);
}

/* --- Sliding Cart Drawer Panel --- */
.cart-panel-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1098;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.cart-panel-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-panel {
    position: fixed;
    top: 0;
    left: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 1099;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.cart-panel.open {
    left: 0;
}

.cart-panel-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    color: var(--bg-light);
}
.cart-panel-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}
.cart-total-count {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}
.cart-panel-close {
    font-size: 1.3rem;
    color: var(--bg-light);
    transition: var(--transition-fast);
}
.cart-panel-close:hover {
    color: var(--secondary);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
}

/* Empty Cart View */
.empty-cart-message {
    text-align: center;
    padding: 60px 0;
}
.empty-cart-message i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}
.empty-cart-message p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Cart Item List */
.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg-light);
}

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

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-options {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 4px 0 10px;
}

.cart-item-price-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-family: var(--font-english);
    font-weight: 800;
    color: var(--secondary-dark);
}

.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-light);
    overflow: hidden;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition-fast);
}
.cart-qty-btn:hover {
    background-color: var(--primary);
    color: var(--bg-light);
}

.cart-qty-val {
    width: 32px;
    text-align: center;
    font-family: var(--font-english);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-remove {
    position: absolute;
    top: 0;
    left: 0;
    color: #e63946;
    opacity: 0.5;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}
.cart-item-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Cart Panel Footer with Checkout form */
.cart-panel-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.02);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}
.cart-subtotal-val {
    font-family: var(--font-english);
    font-size: 1.4rem;
    font-weight: 800;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    background-color: var(--bg-white);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 61, 47, 0.1);
}

.order-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.order-type-tab {
    position: relative;
    cursor: pointer;
}
.order-type-tab input {
    position: absolute;
    opacity: 0;
}
.order-type-tab span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    background-color: var(--bg-white);
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.order-type-tab input:checked + span {
    background-color: var(--primary);
    color: var(--bg-light);
    border-color: var(--primary);
}

.checkout-btn {
    margin-top: 10px;
}

/* --- About / Story Section --- */
.story-section {
    background-color: var(--bg-white);
}

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

.story-image-wrapper {
    position: relative;
    padding-left: 20px;
    padding-bottom: 20px;
}

.story-img {
    width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.story-image-decor {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 70%;
    height: 70%;
    border: 3px solid var(--secondary);
    border-radius: var(--border-radius-md);
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: 0px;
    left: -20px;
    background-color: var(--primary);
    color: var(--bg-light);
    padding: 20px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 3;
    border-right: 4px solid var(--secondary);
    text-align: center;
}

.badge-num {
    display: block;
    font-family: var(--font-english);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}
.badge-lbl {
    font-size: 0.85rem;
    font-weight: 700;
}

.story-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.stat-item {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-english);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* --- Instagram Gallery Section --- */
.gallery-section {
    background-color: var(--bg-light);
}

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

.insta-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-white);
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.insta-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 61, 47, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.insta-item:hover img {
    transform: scale(1.08);
}
.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-link {
    color: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}
.insta-item:hover .insta-link {
    transform: translateY(0);
}
.insta-link i {
    font-size: 2rem;
    color: var(--secondary);
}

/* Grid Quote Item */
.insta-quote {
    background-color: var(--primary);
    color: var(--bg-light);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border: 1px solid var(--primary-light);
}

.quote-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary);
    opacity: 0.5;
}

.insta-quote p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.quote-author {
    font-family: var(--font-english);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--secondary);
}

.gallery-cta {
    margin-top: 40px;
}

/* --- Contact & Location Section --- */
.contact-section {
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-panel-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(27, 61, 47, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.item-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.item-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Custom Map Illustration --- */
.contact-map-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
}

.map-card-design {
    width: 100%;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-card-header {
    padding: 15px 20px;
    background-color: var(--primary);
    color: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}
.map-dot-icon {
    color: var(--secondary);
    animation: mapPulse 1.5s infinite;
}

@keyframes mapPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.map-illustration {
    flex-grow: 1;
    min-height: 300px;
    background-color: #e5e9e6;
    position: relative;
    overflow: hidden;
}

.city-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #dfdfdf 10%, transparent 11%), #e2e7e4;
    background-size: 20px 20px;
}

.street {
    position: absolute;
    background-color: #ffffff;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.h-street-1 { top: 25%; left: 0; width: 100%; height: 24px; }
.h-street-2 { top: 70%; left: 0; width: 100%; height: 20px; }
.v-street-1 { left: 30%; top: 0; width: 24px; height: 100%; }
.v-street-2 { left: 75%; top: 0; width: 18px; height: 100%; }

.landmark-park {
    position: absolute;
    top: 10%;
    left: 45%;
    width: 100px;
    height: 50px;
    background-color: #c7dbca;
    border: 1px dashed #a3c4aa;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #55755b;
}

.landmark-square {
    position: absolute;
    top: 62%;
    left: 26%;
    width: 60px;
    height: 60px;
    background-color: #d1cbc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #726b63;
    border: 3px double #ffffff;
    z-index: 5;
}

.cafe-pointer-pulse {
    position: absolute;
    top: 40%;
    left: 55%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.pulse-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--secondary);
    border-radius: 50%;
    position: absolute;
    top: -15px;
    left: -15px;
    animation: ripple 2s infinite ease-out;
    opacity: 0;
}

@keyframes ripple {
    0% { transform: scale(0.2); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.pointer-dot {
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--bg-light);
    font-size: 0.8rem;
    position: relative;
    animation: pointerFloat 3s infinite ease-in-out;
}

@keyframes pointerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.pointer-tooltip {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-dark);
    color: var(--bg-light);
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--secondary);
}

.pointer-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--primary-dark);
}

.map-card-footer {
    padding: 15px 20px;
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}
.map-card-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-english);
}
.map-link-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.map-link-btn:hover {
    color: var(--secondary-dark);
}

/* --- Footer Section --- */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(253, 251, 247, 0.7);
    padding: 80px 0 0;
    font-size: 0.92rem;
    border-top: 4px solid var(--secondary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 25px;
}
.footer-brand .logo-text {
    color: var(--bg-light);
}

.footer-tagline {
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 350px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(253, 251, 247, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-light);
    font-size: 1.1rem;
    border: 1px solid rgba(253, 251, 247, 0.1);
    transition: var(--transition-smooth);
}
.footer-socials a:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-links h3, .footer-hours h3 {
    color: var(--bg-light);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-links h3::after, .footer-hours h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a:hover {
    color: var(--secondary);
    padding-right: 5px;
}

.footer-hours p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-hours i {
    color: var(--secondary);
}
.accent-tag {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 20px;
}

.footer-bottom {
    background-color: #0b1a13;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(253, 251, 247, 0.05);
    font-size: 0.82rem;
}
.footer-bottom-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Responsive Breakpoints --- */

@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .story-image-column {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-map-panel {
        order: -1;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-description {
        font-size: 1.1rem;
    }
    
    .menu-item-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .menu-item-image-wrapper {
        width: 100%;
        height: 200px;
    }
    
    .modal-container {
        max-height: 95vh;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 600px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-panel {
        width: 100%;
    }
    
    .option-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
