@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@900&display=swap');

:root {
    --bg-color: #f8f5f2;
    /* Warm off-white */
    --text-color: #2c2c2c;
    /* Soft black */
    --accent-color: #a67c52;
    /* Coffee brown */
    --secondary-accent: #d4a373;
    --dark-bg: #1a1a1a;
    --light-text: #f0f0f0;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Scroll Reset (Factory Defaults) */
html {
    /* Removed custom scroll behavior and forced overflows */
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    /* Standard Body Defaults */
    position: relative;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    width: 100%;
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    transition: transform 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Smart Header Hidden State */
.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    /* Center the links */
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    opacity: 0.7;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1497935586351-b67a49e012bf?ixlib=rb-1.2.1&auto=format&fit=crop&w=1951&q=80') center/cover no-repeat;
    color: white;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.2s;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.4s;
    font-weight: 300;
}

.btn {
    padding: 1rem 2.5rem;
    border: 1px solid white;
    background: transparent;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
}

.btn:hover {
    background: white;
    color: black;
}

.btn-primary {
    background: var(--text-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 4px;
    /* Slightly rounded, clean */
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    /* Soft shadow on rest */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    object-fit: cover;
    transition: var(--transition);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.product-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
}

/* Category Page Specifics */
.category-header {
    padding: 8rem 0 4rem;
    text-align: center;
}

.category-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Standardized Section Headers */
.section-title {
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 3px solid var(--text-color);
    padding-bottom: 0.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* Detailed Product Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 8rem;
}

.detail-image {
    width: 100%;
    border-radius: 8px;
    background: #eee;
}

.detail-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.price-tag {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
}

.options-group {
    margin-bottom: 2rem;
}

.options-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.color-options {
    display: flex;
    gap: 1rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.color-swatch.selected {
    border-color: var(--text-color);
    transform: scale(1.1);
}

.add-to-cart-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--text-color);
    color: white;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--accent-color);
}

/* Cart Slide-out/Modal */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Removed backdrop-filter to prevent lag */
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    /* Align to right */
    width: 400px;
    height: 100%;
    background: #ffffff;
    padding: 2rem;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    /* Use transform */
    transform: translateX(100%);
    /* Start off-screen */
    will-change: transform;
    /* Optimize */
    display: flex;
    flex-direction: column;
}

.cart-overlay.open .cart-sidebar {
    transform: translateX(0);
    /* Slide in */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Payment Page */
.payment-container {
    max-width: 600px;
    margin: 8rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.bank-details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .cart-sidebar {
        width: 100%;
    }
}

/* Quantity Controls */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.quantity-control button {
    background: #f9f9f9;
    border: none;
    padding: 0.2rem 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-control button:hover {
    background: #eee;
}

.quantity-control span {
    padding: 0 0.5rem;
    font-weight: bold;
    min-width: 1.5rem;
    text-align: center;
}

/* Small cart control */
.quantity-control.small {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    width: fit-content;
}

.quantity-control.small button {
    padding: 0.1rem 0.4rem;
}

/* Large PDP control */
.quantity-control.large {
    height: 48px;
    /* Match typical button height */
    justify-content: space-between;
    width: 100%;
    max-width: 150px;
}

.quantity-control.large button {
    width: 30%;
    height: 100%;
    font-size: 1.2rem;
}

/* Card Overlay Control */
.card-qty-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.card-qty-overlay button {
    background: var(--text-color);
    border: none;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.card-qty-overlay button:hover {
    background: var(--accent-color);
}

.card-qty-overlay span {
    margin: 0 6px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 16px;
    text-align: center;
}

/* --- Beans Expansion Styles --- */

/* New Beans Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 20px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    /* For absolute positioning of add button */
    padding-bottom: 50px;
    /* Space for the button */
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-image {
    transform: scale(1.05);
    /* Slight zoom on hover */
    transition: transform 0.3s ease;
}

.product-image {
    width: 100%;
    height: 200px;
    /* Smaller height as requested */
    object-fit: contain;
    /* Maintain aspect ratio */
    background: #f9f9f9;
    transition: transform 0.3s ease;
    /* Smooth transition back */
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    min-height: 44px;
    /* Ensure alignment */
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Detailed Description Grid inside Card */
.product-description-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack on small screens, can be 2 cols on wide */
    gap: 4px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.desc-item {
    line-height: 1.4;
    white-space: normal;
    /* Allow wrapping */
    overflow: visible;
    /* Show all text */
}

.desc-item span {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

/* Add to Cart Button - Bottom Right */
.add-to-cart-small {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    z-index: 2;
    /* Ensure clickable */
}

.add-to-cart-small:hover {
    background-color: #1a252f;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 250px;
        /* Larger images on mobile */
    }
}

/* --- Split Screen Homepage --- */
.split-container {
    display: flex;
    width: 100%;
    /* Navbar is ~60px, adjust height to fill */
    min-height: calc(100vh - 60px);
    /* Remove overflow hidden to allow scrolling if content expands */
    overflow: visible;
    position: relative;
    background: #333;
}

.split {
    position: relative;
    flex: 1;
    /* Both take 50% initially */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    /* For the whole anchor */
    color: white;
    cursor: pointer;
    overflow: hidden;
}

/* Dim overlay for text readability */
.split::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: background 0.3s ease;
    z-index: 1;
}

.split:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Hover Effect: Expand the hovered side */
.split:hover {
    flex: 1.5;
    /* Grow specific side */
}

.split-content {
    position: relative;
    /* Above overlay */
    z-index: 2;
    text-align: center;
    transition: transform 0.4s ease;
}

.split:hover .split-content {
    transform: scale(1.05);
}

.split h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Interesting Button Styling */
.btn-interesting {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: transparent;
    border: 2px solid white;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.btn-interesting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    z-index: -1;
}

/* removed split hover effects */

/* Specific Backgrounds */
.split.left {
    background-image: url('../images/coffee_split.png');
    /* Studio Ambience Coffee */
}

.split.right {
    background-image: url('../images/snack_split.png');
    /* Asian Snacks Variety */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        height: auto;
    }

    .split {
        height: 50vh;
        width: 100%;
        flex: none;
    }

    .split:hover {
        flex: none;
    }
}

/* Hide Sidebar on Mobile (since filters are in hamburger) */
@media (max-width: 900px) {

    /* Matching product-grid breakpoint or 768px? User said "Mobile Phone", usually < 600 or 768. 900 is safe. */
    .sidebar {
        display: none !important;
    }

    .content-wrapper {
        flex-direction: column;
    }
}

/* --- Hamburger Menu & Mobile Overhaul --- */

/* Hamburger Icon */
.hamburger-icon {
    display: none;
    /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
    z-index: 2001;
    color: var(--text-color);
}

/* Sidebar Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2050;
    /* Above cart */
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-sidebar {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    box-sizing: border-box;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.menu-overlay.open .menu-sidebar {
    left: 0;
}

.menu-header {
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-link {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    display: block;
}

.menu-link:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

/* Mobile Utilities */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide default nav */
    }

    .hamburger-icon {
        display: block;
        /* Show hamburger */
    }

    .navbar {
        justify-content: flex-start;
        padding: 1rem;
        /* Adjust padding */
    }

    .brand {
        margin-right: auto;
    }

    .cart-icon {
        margin-left: 1rem;
    }
}

/* Mobile 3-Column Grid Override - CHANGED TO 2 COLUMNS PER REQUEST */
/* Mobile 2-Column Grid (Tokopedia Style) */
@media (max-width: 600px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        /* Tighter gap */
        padding: 0;
        /* Let container handle edge spacing */
        width: 100%;
        /* Ensure full use of container */
        box-sizing: border-box;
    }

    .container,
    .content-wrapper,
    .navbar {
        padding-left: 8px !important;
        /* Reduced margin for wider feel */
        padding-right: 8px !important;
    }

    .product-card {
        padding-bottom: 0;
        /* Remove bottom padding used for abs button */
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        /* Squircle Look */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        /* Softer, deeper shadow */
        border: none;
        /* Cleaner look without border */
        overflow: hidden;
        /* Ensure image respects radius */
    }

    .product-image {
        height: auto !important;
        aspect-ratio: 1 / 1;
        /* Square images */
        width: 100%;
        border-bottom: none;
    }

    .product-info {
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: flex-start;
    }

    .product-title {
        font-size: 0.9rem !important;
        /* Readable size */
        font-weight: 500;
        line-height: 1.3;
        margin-bottom: 4px;
        height: auto;
        /* Allow full height */
        max-height: none;
        /* Show full title */
        overflow: visible;
        white-space: normal;
        color: #212121;
    }

    .product-price {
        font-size: 1rem !important;
        color: #F94D63;
        /* E-commerce Red/Orange */
        font-weight: 700;
        margin-bottom: 6px;
    }

    /* Show Descriptions Clearly */
    .product-description-grid {
        display: block !important;
        font-size: 0.75rem;
        color: #666;
        margin-top: 4px;
        line-height: 1.4;
        border-top: 1px solid #eee;
        padding-top: 6px;
    }

    .desc-item {
        display: block;
        margin-bottom: 2px;
    }

    .desc-item span {
        font-weight: 600;
        color: #444;
    }

    /* Add Button - Make it a block button at bottom or simple icon? 
       Tokopedia often has a small "+" or just tap to view. 
       User said "Add to Cart" ... let's make it a nice block button at the bottom of the card.
    */
    .add-to-cart-small {
        position: static;
        /* Flow naturally */
        width: 100%;
        margin-top: auto;
        /* Push to bottom */
        padding: 10px 0;
        font-size: 0.85rem;
        border-radius: 12px;
        background: var(--text-color);
        margin-top: 12px;
        font-weight: 600;
        /* Gradient or clean color? Keep clean dark */
    }

    /* Layout Adjustments */
    .container,
    .content-wrapper {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* --- Dynamic Mobile Menu Filters --- */
.mobile-filter-group {
    background: #f9f9f9;
    padding: 0.5rem 1rem;
    margin-top: 5px;
    border-left: 3px solid var(--accent-color);
}

.mobile-filter-item {
    display: block;
    padding: 8px 0;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-filter-item:hover,
.mobile-filter-item.active {
    color: var(--accent-color);
    font-weight: 500;
}

/* --- Shutter Transition --- */
#transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2c2c2c;
    /* Brand dark color */
    z-index: 9999;
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
    pointer-events: none;
}

.curtain-closed {
    transform: scaleY(1);
    pointer-events: all !important;
}

.curtain-open {
    transform: scaleY(0);
}

/* Menu Brand Font */
.menu-brand {
    font-family: 'Montserrat', sans-serif;
    /* Requested Font */
    font-weight: 900;
    /* BLACK weight */
    font-size: 1.8rem;
    /* Slightly larger */
    margin-bottom: 0.5rem;
    /* Reduced from 2rem to fix gap */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Cart Link */
.mobile-cart-link {
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

/* Scroll Locking Utility */
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    /* Force height lock to prevent rubber banding on iOS */
    touch-action: none;
    /* Disable touch scroll */
}

/* Hide Scrollbar Globally */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

/* Global Back Button */
.global-back-btn {
    position: fixed;
    top: 110px;
    /* Below navbar */
    left: 2rem;
    z-index: 990;
    /* Below Navbar (1000) but above content */
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.global-back-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .global-back-btn {
        top: 80px;
        /* Mobile header is smaller/padding adjusted */
        left: 1rem;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.9);
        /* More contrast on mobile */
    }

    /* Hide Navbar Timer on Mobile to prevent crowding */
    .nav-timer {
        display: none !important;
    }
}

/* Timer Styles */
.nav-timer {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #e74c3c;
    margin-left: 1rem;
    margin-right: auto;
    /* Push links to right if flex container allows */
}

.menu-timer {
    text-align: left;
    /* Image seemingly left aligned or centered? "under JASTIP AARON" */
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 15px 0;
    margin: 0 20px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    /* Dark lines like in image (assuming dark theme menu?) */
    /* If menu is light, use #eee */
    border-color: #ddd;
}

/* Header Timer (Shared Style) */
.header-timer {
    display: flex;
    align-items: center;
    background: #FF3B30;
    /* Bright Red */
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 20px;
    /* Space from Brand */
    margin-right: 0;
    box-shadow: 0 2px 10px rgba(255, 59, 48, 0.3);
    white-space: nowrap;
    z-index: 1001;
}

.header-timer .order-timer-text {
    color: white !important;
    margin-left: 5px;
    text-transform: uppercase;
}