@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;0,800;1,600&display=swap');

:root {
    --primary-accent: #FFC16C; /* A vibrant orange-yellow for main highlights, buttons, prices. */
    --primary-dark: #4A3C6B; /* A deep, rich blue-purple for main text, headings, and strong elements. */
    --secondary-text: #6B5A8F; /* A slightly lighter blue-purple for secondary text and softer details. */
    --page-background: #AE0C00; /* The red specified for page background */
    --card-background: #FFF5EE; /* A prominent lighter orange-yellow for content cards (dishes, menu items, FAQ boxes). */
    --accent-button-bg: #FF8C00; /* A deeper, more saturated orange for specific accent buttons (e.g., "Code" button, "Previous Orders"). */
    --white-background: #FFFFFF; /* Explicit white for elements that should be pure white (e.g., header, input fields). */
    --light-border: rgba(0,0,0,.1); /* A light border color for consistency. */
    --box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1); /* Softer, larger shadow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s ease-in-out; /* Smoother, cutesy transitions */
}

body {
    font-family: 'Fraunces', serif;

    /* Pattern background for cutesy vibe */
    background-image: url('https://c8.alamy.com/comp/2MP12XE/filipino-folk-art-yakan-cloth-inspired-vector-seamless-pattern-retro-textile-or-fabric-print-design-from-philippines-in-red-orange-and-green-2MP12XE.jpg'); /* Your traditional Filipino pattern image */
    background-repeat: repeat;
    background-size: 100px; /* Smaller for a delicate, subtle pattern */
    background-attachment: fixed; /* Keeps the pattern fixed behind the content as you scroll */
    position: relative; /* Needed for z-index context with the pseudo-element */
    z-index: 0; /* Ensures content layers on top of the background */
}

/* Pseudo-element for a semi-transparent overlay over the background pattern */
body::before {
    content: '';
    position: fixed; /* Covers the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(174, 12, 0, 0.93); /* Your --page-background color with slightly higher opacity for vibrancy */
    z-index: -1; /* Puts this overlay behind all other content */
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 5.5rem;
    scroll-behavior: smooth;
}

/* Section Defaults - Softened and rounded */
section {
    padding: 10rem 7%;
    margin-top: 5.5rem;
    background: var(--card-background);
    border-bottom: 1px solid var(--light-border);
    border-top-left-radius: 2.5rem; /* Rounded tops for sections */
    border-top-right-radius: 2.5rem; /* Rounded tops for sections */
    position: relative; /* For any future absolute positioning within sections */
    z-index: 1; /* Ensures sections are above the body overlay */
}

/* New class to hide sections */
.hidden-section {
    display: none !important;
}

.sub-heading {
    text-align: center;
    color: var(--primary-accent);
    font-size: 2.2rem; /* Slightly larger */
    padding-top: 1rem;
    font-weight: 600;
    letter-spacing: 0.05rem; /* Subtle spacing */
    font-style: italic; /* Whimsical touch */
}

.heading {
    text-align: center;
    color: var(--primary-dark);
    font-size: 4rem; /* Larger and more impactful */
    padding-bottom: 2.5rem; /* More space below */
    text-transform: uppercase;
    text-shadow: 0.2rem 0.2rem 0.5rem rgba(0,0,0,0.05); /* Soft text shadow */
}

/* Buttons - Cutesy and squishy */
.btn {
    margin-top: 1.5rem; /* More space */
    display: inline-block;
    font-size: 1.8rem; /* Slightly larger text */
    color: var(--primary-dark);
    background: var(--primary-accent);
    border-radius: 1.5rem; /* More rounded, squishy look */
    cursor: pointer;
    padding: 1rem 3.5rem; /* More padding */
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15); /* Pronounced shadow */
    transform: translateY(0);
}

.btn:hover {
    background: var(--primary-dark);
    color: var(--white-background);
    letter-spacing: 0.15rem; /* More subtle letter spacing change */
    box-shadow: 0 0.8rem 1.5rem rgba(0,0,0,0.25); /* Lifted shadow */
    transform: translateY(-0.5rem); /* Bouncy lift */
}

/* Header - Clean and inviting */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white-background);
    padding: 1.2rem 7%; /* Slightly more vertical padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

header .logo {
    color: var(--primary-dark);
    font-size: 2.8rem; /* Slightly larger logo */
    font-weight: 800; /* Extra bold */
    letter-spacing: -0.05rem; /* Tighter for a compact look */
}

header .logo i {
    color: var(--primary-accent);
    font-size: 3rem; /* Larger icon */
}

header .navbar {
    flex-grow: 1; /* Allow navbar to take available space */
    display: flex;
    justify-content: center; /* Center navigation links */
}

header .navbar a {
    font-size: 1.8rem; /* Slightly larger links */
    border-radius: 1.5rem; /* More rounded */
    padding: 1.2rem 1.8rem; /* More padding */
    color: var(--secondary-text);
}

header .navbar .active,
header .navbar a:hover {
    color: var(--primary-dark);
    background: var(--primary-accent);
    transform: translateY(-0.2rem); /* Subtle lift on hover */
    box-shadow: 0 0.3rem 0.8rem rgba(0,0,0,0.1);
}

header .icons {
    position: relative; /* Needed for cart count positioning */
    display: flex; /* Use flexbox for icon alignment */
    align-items: center;
    gap: 0.8rem; /* Space between icons */
}

header .icons i,
header .icons a {
    cursor: pointer;
    /* margin-left: 0.8rem; Removed as gap handles spacing */
    height: 4.8rem; /* Slightly larger icons */
    line-height: 4.8rem;
    width: 4.8rem;
    text-align: center;
    font-size: 2rem; /* Larger icon font */
    color: var(--primary-dark);
    background: var(--card-background);
    border-radius: 50%;
    box-shadow: 0 0.3rem 0.8rem rgba(0,0,0,0.08); /* Softer shadow */
    position: relative; /* Needed for nested cart-count */
}

header .icons i:hover,
header .icons a:hover {
    color: var(--primary-dark);
    background: var(--primary-accent);
    transform: scale(1.1) rotate(10deg); /* Playful scale and slight rotate */
    box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.15);
}

header .icons #menu-bars {
    display: none;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -0.5rem; /* Adjust as needed */
    right: -0.5rem; /* Adjust as needed, relative to the cart icon */
    background-color: var(--primary-accent); /* Use accent color for badge */
    color: var(--primary-dark); /* Dark text on accent background */
    font-size: 1.2rem; /* Smaller font for badge */
    font-weight: bold;
    border-radius: 50%;
    padding: 0.3rem 0.6rem; /* Small padding */
    min-width: 2rem; /* Ensure it's round even with single digit */
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0); /* Start hidden */
    opacity: 0; /* Start invisible */
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease-in-out; /* Bouncy transition */
    z-index: 1001; /* Ensure it's above other header elements */
}

.cart-count.active {
    transform: scale(1); /* Pop into view */
    opacity: 1;
}


/* Search Form */
#search-form {
    position: fixed;
    top: -110%;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1004;
    background: rgba(74, 60, 107, 0.9); /* Slightly more opaque overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncier transition */
}

#search-form.active {
    top: 0;
}

#search-form #search-box {
    width: 60rem; /* Slightly wider */
    border-bottom: 0.3rem solid var(--white-background);
    padding: 1.2rem 0; /* More padding */
    color: var(--white-background);
    font-size: 3.5rem; /* Larger font */
    text-transform: none;
    background: none;
    text-align: center; /* Center placeholder text */
}

#search-form #search-box::placeholder {
    color: rgba(255,255,255,0.7); /* Lighter placeholder */
}

#search-form #search-box::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

#search-form label {
    color: var(--white-background);
    cursor: pointer;
    font-size: 3.5rem; /* Larger icon */
    transform: translateY(0);
}

#search-form label:hover {
    color: var(--primary-accent);
    transform: translateY(-0.5rem); /* Lift on hover */
}

#search-form #close {
    position: absolute;
    color: var(--white-background);
    cursor: pointer;
    top: 2.5rem; /* Slightly lower */
    right: 3.5rem; /* Slightly inward */
    font-size: 5.5rem; /* Larger close icon */
    transform: rotate(0deg);
}

#search-form #close:hover {
    transform: rotate(180deg); /* Spin on close */
    color: var(--primary-accent);
}

/* Home Section */
.home .home-slider .slide {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem; /* More gap */
    padding-top: 10rem; /* More padding from header */
}

.home .home-slider .slide .content {
    flex: 1 1 45rem;
    padding: 2rem; /* Added padding for content box */
    background: var(--white-background); /* White background for content */
    border-radius: 1.5rem;
    box-shadow: var(--box-shadow);
}

.home .home-slider .slide .image {
    flex: 1 1 45rem;
}

.home .home-slider .slide .image img {
    width: 100%;
    border-radius: 1.5rem; /* Rounded image */
    box-shadow: var(--box-shadow);
}

.home .home-slider .slide .content span {
    color: var(--primary-accent);
    font-size: 2.8rem; /* Larger */
    font-weight: 700;
}

.home .home-slider .slide .content h3 {
    color: var(--primary-dark);
    font-size: 6rem; /* Slightly smaller for balance, but still prominent */
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0.1rem 0.1rem 0.3rem rgba(0,0,0,0.05);
}

.home .home-slider .slide .content p {
    color: var(--secondary-text);
    font-size: 2rem; /* Slightly smaller for readability */
    padding: 0.8rem 0; /* More padding */
    line-height: 1.7; /* Increased line height */
}

.swiper-pagination-bullet-active {
    background: var(--primary-accent);
    transform: scale(1.2); /* Active bullet stands out more */
}

/* Dishes Section - Playful cards */
.dishes .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); /* Slightly wider min-width */
    gap: 2rem; /* More space between cards */
}

.dishes .box-container .box {
    padding: 3rem; /* More padding */
    background: var(--card-background);
    border-radius: 1.5rem; /* More rounded for cute style */
    border: 0.1rem solid rgba(0,0,0,0.08); /* Softer border */
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dishes .box-container .box:hover {
    transform: translateY(-1rem); /* Lift on hover */
    box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.15); /* More pronounced shadow on hover */
}

.dishes .box-container .box .fa-heart,
.dishes .box-container .box .fa-eye {
    position: absolute;
    top: 2rem; /* Slightly lower */
    background: var(--white-background);
    border-radius: 50%;
    height: 5.5rem; /* Larger icons */
    width: 5.5rem;
    line-height: 5.5rem;
    font-size: 2.2rem; /* Larger icon font */
    color: var(--primary-dark);
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.08);
}

.dishes .box-container .box .fa-heart:hover,
.dishes .box-container .box .fa-eye:hover {
    background: var(--primary-accent);
    color: var(--primary-dark);
    transform: scale(1.1); /* Slight pop */
}

.dishes .box-container .box .fa-heart {
    right: -18rem; /* Further out */
}

.dishes .box-container .box .fa-eye {
    left: -18rem; /* Further out */
}

.dishes .box-container .box:hover .fa-heart {
    right: 2rem; /* Consistent positioning */
}

.dishes .box-container .box:hover .fa-eye {
    left: 2rem; /* Consistent positioning */
}

.dishes .box-container .box img {
    height: 18rem; /* Slightly larger image */
    margin: 1.5rem 0; /* More margin */
    object-fit: contain; /* Ensure image fits well */
}

.dishes .box-container .box h3 {
    color: var(--primary-dark);
    font-size: 2.8rem; /* Larger text for dish names */
    margin-bottom: 0.8rem;
}

.dishes .box-container .box .stars {
    padding: 1.2rem 0; /* More padding */
}

.dishes .box-container .box .stars i {
    font-size: 1.9rem; /* Slightly larger stars */
    color: var(--primary-accent);
}

.dishes .box-container .box span { /* Price */
    color: var(--primary-accent);
    font-weight: 700; /* Bolder price */
    margin-right: 1.5rem; /* More spacing */
    font-size: 2.8rem; /* Larger price */
}

/* About Section */
.about .row {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem; /* More gap */
    align-items: center;
    background: none;
}

.about .row .image {
    flex: 1 1 45rem;
}

.about .row .image img {
    width: 100%; /* Ensure image fills container */
    border-radius: 1.5rem; /* Rounded corners for image */
    box-shadow: var(--box-shadow);
}

.about .row .content {
    flex: 1 1 45rem; /* Adjust flex basis */
    background: var(--white-background); /* White background for content */
    padding: 3rem; /* More padding */
    border-radius: 1.5rem;
    box-shadow: var(--box-shadow);
}

.about .row .content h3 {
    color: var(--primary-dark);
    font-size: 4.5rem; /* Larger heading */
    padding: 0.8rem 0;
    line-height: 1.2;
}

.about .row .content p {
    color: var(--secondary-text);
    font-size: 1.7rem; /* Slightly larger text */
    padding: 0.8rem 0;
    line-height: 2.2; /* More line height for readability */
}

.about .row .content .icons-container {
    display: flex;
    gap: 1.5rem; /* More gap */
    flex-wrap: wrap;
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.about .row .content .icons-container .icons {
    background: var(--card-background);
    border-radius: 1.2rem; /* More rounded */
    border: 0.1rem solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem; /* More gap */
    flex: 1 1 18rem; /* Slightly larger flex basis */
    padding: 1.8rem 1.2rem; /* More padding */
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08); /* Softer shadow */
    transition: transform 0.2s ease;
}
.about .row .content .icons-container .icons:hover {
    transform: translateY(-0.5rem); /* Subtle lift on hover */
}

.about .row .content .icons-container .icons i {
    font-size: 2.8rem; /* Larger icon */
    color: var(--primary-accent);
}

.about .row .content .icons-container .icons span {
    font-size: 1.6rem; /* Slightly larger text */
    color: var(--primary-dark);
    font-weight: 600;
}

/* Menu Section - Organized and appealing */
.menu .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr)); /* Slightly wider cards */
    gap: 2rem;
}

.menu .box-container .box {
    background: var(--card-background);
    border: 0.1rem solid rgba(0,0,0,0.08);
    border-radius: 1.5rem; /* More rounded */
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu .box-container .box:hover {
    transform: translateY(-1rem); /* Lift on hover */
    box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.15);
}

.menu .box-container .box .image {
    height: 28rem; /* Taller image area */
    width: 100%;
    padding: 1.8rem; /* More padding */
    overflow: hidden;
    position: relative;
}

.menu .box-container .box .image img {
    height: 100%;
    width: 100%;
    border-radius: 1rem; /* Rounded image inside box */
    object-fit: cover;
}

.menu .box-container .box .image .fa-heart {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    height: 5.5rem; /* Larger heart */
    width: 5.5rem;
    line-height: 5.5rem;
    text-align: center;
    font-size: 2.2rem; /* Larger icon */
    background: var(--white-background);
    border-radius: 50%;
    color: var(--primary-dark);
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.08);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu .box-container .box .image .fa-heart:hover {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    transform: scale(1.1); /* Pop on hover */
}

.menu .box-container .box .content {
    padding: 2rem; /* More padding */
    padding-top: 0;
}

.menu .box-container .box .content .stars {
    padding-bottom: 1.2rem;
}

.menu .box-container .box .content .stars i {
    font-size: 1.9rem; /* Larger stars */
    color: var(--primary-accent);
}

.menu .box-container .box .content h3 {
    color: var(--primary-dark);
    font-size: 2.8rem; /* Larger text */
    margin-bottom: 0.8rem;
}

.menu .box-container .box .content p {
    color: var(--secondary-text);
    font-size: 1.7rem; /* Slightly larger */
    padding: 0.8rem 0;
    line-height: 1.8; /* Increased line height */
}

.menu .box-container .box .content .price {
    color: var(--primary-accent);
    font-weight: 700;
    margin-left: 1.5rem;
    font-size: 2.8rem; /* Larger price */
}

/* Order Section / Checkout Form - Cozy and clear */
.order form {
    max-width: 90rem;
    border-radius: 1.5rem; /* More rounded */
    box-shadow: var(--box-shadow);
    border: 0.1rem solid rgba(0,0,0,0.08);
    background: var(--card-background); /* Card background for the entire form container */
    padding: 3.5rem; /* More spacious feel */
    margin: 0 auto;
    position: relative;
    z-index: 1; /* Ensure form is above any potential background elements */
    /* Added for centering content within the form */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    text-align: center; /* Centers text within the form */
}

.order form .inputBox {
    display: flex;
    flex-wrap: wrap;
    /* Changed to center the input pairs */
    justify-content: center;
    gap: 2.5rem; /* More gap */
    width: 100%; /* Ensure inputBox takes full width to allow centering */
}

.order form .inputBox .input {
    width: 100%; /* Default to full width for mobile */
    max-width: 40rem; /* Max width for single input on larger screens */
    flex: 1 1 calc(50% - 1.25rem); /* Allows two columns on wider screens */
    /* MODIFIED: Changed to flexbox for centering content within each input div */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers span and input/textarea horizontally */
    text-align: center; /* Centers text within input and span */
}

.order form .inputBox .input span {
    display: block;
    padding: 0.8rem 0; /* More padding */
    font-size: 1.6rem; /* Slightly larger text */
    color: var(--primary-dark);
    font-weight: 600; /* Bolder labels */
    width: 100%; /* Ensure span takes full width to center its text */
}

.order form .inputBox .input input,
.order form .inputBox .input textarea {
    background: var(--white-background);
    border-radius: 1rem; /* More rounded inputs */
    padding: 1.2rem; /* More padding */
    font-size: 1.7rem; /* Slightly larger text */
    color: var(--primary-dark);
    text-transform: none;
    margin-bottom: 1.5rem; /* More margin below inputs */
    width: 100%;
    border: 0.1rem solid rgba(0,0,0,0.05); /* Softer default border */
    box-shadow: inset 0 0.2rem 0.5rem rgba(0,0,0,0.08); /* Subtle inner shadow for depth */
}

.order form .inputBox .input input:focus,
.order form .inputBox .input textarea:focus {
    border: 0.2rem solid var(--primary-accent); /* Thicker accent border on focus */
    outline: none;
    box-shadow: 0 0 0.8rem rgba(255,193,108,0.6); /* Stronger, softer glowing shadow */
}

.order form .inputBox .input textarea {
    height: 22rem; /* Taller textarea */
    resize: vertical; /* Allow vertical resizing */
}

.order form .btn {
    margin-top: 3rem; /* More space above button */
    width: 100%;
}

/* "Order Summary" box specifically within the checkout form */
/* This class seems to be for the content inside the order-summary div */
.order .order-summary-box {
    background: var(--white-background);
    border: 0.1rem solid rgba(0,0,0,0.08);
    border-radius: 1.2rem; /* More rounded */
    padding: 2.5rem; /* Increased padding */
    margin-top: 3rem; /* More space */
    box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.1); /* Softer shadow */
}
.order .order-summary-box h3 {
    color: var(--primary-dark);
    font-size: 2.5rem; /* Larger heading */
    margin-bottom: 1.2rem;
    text-align: center;
    text-shadow: 0.1rem 0.1rem 0.3rem rgba(0,0,0,0.03);
}
.order .order-summary-box .summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.7rem; /* Slightly larger */
    color: var(--secondary-text);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem dotted rgba(0,0,0,0.05); /* Dotted line for a cute separator */
}
.order .order-summary-box .summary-total {
    border-top: 0.1rem solid var(--primary-accent); /* Accent colored top border for total */
    padding-top: 2rem; /* More padding */
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 2.4rem; /* Larger total text */
    font-weight: 700;
    color: var(--primary-dark);
}
.order .order-summary-box .summary-total span {
    color: var(--primary-accent);
}

/* Admin Dashboard Specific styles (placeholders) */
.admin-sidebar {
    background: var(--primary-dark);
    color: var(--white-background);
    border-top-right-radius: 2rem; /* Rounded sidebar corner */
    border-bottom-right-radius: 2rem;
    padding: 2rem;
}

.cod-code-card,
.admin-product-card,
.admin-order-card {
    background: var(--card-background);
    padding: 2.5rem; /* More padding */
    border-radius: 1.5rem; /* More rounded */
    box-shadow: 0 0.8rem 1.5rem rgba(0,0,0,0.1);
    margin-bottom: 2.5rem; /* More margin */
    border: 0.1rem solid rgba(0,0,0,0.08);
}
.cod-code-card h3, .admin-product-card h3, .admin-order-card h3 {
    color: var(--primary-dark);
    font-size: 2.5rem; /* Larger heading */
    margin-bottom: 1.2rem;
    text-shadow: 0.1rem 0.1rem 0.3rem rgba(0,0,0,0.03);
}
.cod-code-card p, .admin-product-card p, .admin-order-card p {
    color: var(--secondary-text);
    font-size: 1.7rem; /* Slightly larger */
    line-height: 1.8;
}
.cod-code-card .input, .admin-product-card .input, .admin-order-card .input {
    margin-top: 1.5rem;
}
.cod-code-card input {
    background: var(--white-background);
    border: 0.1rem solid rgba(0,0,0,0.08);
    border-radius: 1rem; /* More rounded */
    padding: 1.2rem; /* More padding */
    font-size: 1.7rem; /* Slightly larger */
    color: var(--primary-dark);
    width: 100%;
    box-shadow: inset 0 0.1rem 0.3rem rgba(0,0,0,0.05);
}
.cod-code-card input:focus {
    border-color: var(--primary-accent);
    box-shadow: inset 0 0.1rem 0.3rem rgba(0,0,0,0.08), 0 0 0.5rem rgba(255,193,108,0.4);
}

/* FAQ Section - Interactive and friendly */
.faq {
    background: var(--card-background);
    padding: 10rem 7%;
}

.faq .faq-item {
    background: var(--white-background);
    border: 0.1rem solid rgba(0,0,0,0.08);
    border-radius: 1.5rem; /* More rounded */
    box-shadow: 0 0.8rem 1.5rem rgba(0,0,0,0.1);
    margin-bottom: 2rem; /* More space between items */
    padding: 2rem 3rem; /* Increased padding */
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq .faq-item:hover, .faq .faq-item.active {
    transform: translateY(-0.8rem); /* Lift on hover/active */
    box-shadow: 0 1.2rem 2.2rem rgba(0,0,0,0.15);
}

.faq .faq-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.2rem; /* Larger question text */
    color: var(--primary-dark);
    font-weight: 600;
}

.faq .faq-item h3 i {
    color: var(--primary-accent);
    font-size: 2.5rem; /* Larger icon */
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.faq .faq-item.active h3 i {
    transform: rotate(180deg); /* Rotate icon when active */
}

.faq .faq-item .answer {
    font-size: 1.7rem; /* Slightly larger answer text */
    color: var(--secondary-text);
    padding-top: 1.5rem; /* More padding */
    line-height: 2; /* Increased line height for readability */
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.faq .faq-item.active .answer {
    display: block;
    opacity: 1; /* Fade in answer */
}

/* --- Footer Section Styles - Wavy and inviting --- */
.footer {
    background: #FFC16C; /* Reverted to page-background (red) */
    text-align: center;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 7%;
}

.footer .box-container .box h3 {
    color: var(--page-background);
    font-size: 2.5rem;
    padding: 1rem 0;
}

.footer .box-container .box a {
    display: block;
    color: #000000;
    font-size: 1.7rem;

    padding: 1rem 0;
}

.footer .box-container .box a i {
    color: var(--primary-accent);
    padding-right: .5rem;
}

.footer .box-container .box a:hover i {
    padding-right: 2rem;
}

.footer .credit {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--page-background);
    border-top: .1rem solid rgba(255, 255, 255, .2);
    padding: 2rem;
    padding-top: 2.5rem;
    margin-top: 1.5rem;
}

.footer .credit span {
    color: var(--page-background);
}

/* --- Cart Pop-up Styles --- */

.cart-popup-container,
.order-popup-container,
.admin-login-container,
.modal-overlay { /* Apply common overlay styles, added .modal-overlay */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out; /* Slower fade */
}

.cart-popup-container.active,
.order-popup-container.active,
.admin-login-container.active,
.modal-overlay.active { /* Added .modal-overlay.active */
    opacity: 1;
    pointer-events: all;
}

.cart-popup,
.order-popup,
.admin-login-popup,
.modal-content { /* Apply common modal styles, added .modal-content */
    background: var(--white-background);
    border-radius: 1.5rem; /* More rounded for cute style */
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.25); /* Stronger shadow */
    padding: 4rem; /* Increased padding */
    position: relative;
    width: 90%;
    max-width: 60rem; /* Wider max-width */
    max-height: 90vh; /* Ensure it doesn't exceed viewport height */
    overflow-y: auto; /* Enable scrolling if content overflows vertically */
    transform: translateY(-80px) scale(0.9); /* Starts higher and smaller */
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease-in-out; /* Bouncier and slower animation */
}

.cart-popup-container.active .cart-popup,
.order-popup-container.active .order-popup,
.admin-login-container.active .admin-login-popup,
.modal-overlay.active .modal-content { /* Added .modal-overlay.active .modal-content */
    transform: translateY(0) scale(1); /* Bounces into place */
    opacity: 1;
}

.cart-popup #close-cart-btn,
.order-popup #close-order-btn,
.admin-login-popup #close-admin-login-btn,
.modal-content #close-modal-btn { /* Added #close-modal-btn for consistency */
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 3.5rem; /* Larger close button */
    color: var(--primary-dark);
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s ease;
}

.cart-popup #close-cart-btn:hover,
.order-popup #close-order-btn:hover,
.admin-login-popup #close-admin-login-btn:hover,
.modal-content #close-modal-btn:hover { /* Added #close-modal-btn */
    color: var(--primary-accent);
    transform: rotate(180deg); /* Playful rotate on hover */
}

.cart-popup .heading,
.order-popup .heading,
.admin-login-popup .heading,
.modal-content h3 { /* Added .modal-content h3 */
    text-align: center;
    color: var(--primary-dark);
    font-size: 4rem; /* Larger heading */
    padding-bottom: 2.5rem;
    text-transform: uppercase;
    margin-top: 2rem;
    text-shadow: 0.1rem 0.1rem 0.3rem rgba(0,0,0,0.05);
}

/* Specific centering for popup content */
.order-popup .order-popup,
.admin-login-popup .admin-login-popup {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally within the popup */
    text-align: center; /* Centers text within the popup */
}

.cart-popup .cart-items-container {
    max-height: 50vh; /* Taller scrollable area */
    overflow-y: auto;
    margin-bottom: 3rem; /* More space below items */
    padding-right: 1.5rem; /* More space for scrollbar */
}

/* Individual Cart Item Style */
.cart-item {
    display: flex;
    align-items: center;
    gap: 2rem; /* Larger gap */
    margin-bottom: 2rem;
    padding: 1.5rem; /* Increased padding */
    border: 0.1rem solid rgba(0,0,0,0.08);
    border-radius: 1rem; /* More rounded */
    background: var(--card-background);
    box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.08); /* Subtle shadow */
}

.cart-item img {
    height: 10rem; /* Larger image */
    width: 10rem;
    object-fit: cover;
    border-radius: 1rem; /* More rounded */
}

.cart-item .content {
    flex-grow: 1;
}

.cart-item .content h3 {
    font-size: 2.2rem; /* Larger item name */
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.cart-item .content .price {
    font-size: 2rem; /* Larger price */
    color: var(--primary-accent);
    font-weight: 700;
}

.cart-item .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cart-item .quantity-controls button {
    background: var(--primary-accent); /* Use accent color for quantity buttons */
    color: var(--primary-dark); /* Dark text on accent */
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem; /* Slightly rounded */
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.1);
}

.cart-item .quantity-controls button:hover {
    background-color: var(--primary-dark); /* Darker on hover */
    color: var(--white-background);
    transform: translateY(-0.2rem);
}

.cart-item .quantity-controls span {
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.cart-item .remove-item-btn {
    font-size: 2.8rem; /* Larger remove button */
    color: var(--secondary-text); /* Softer initial color */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.8rem; /* Make clickable area larger */
    transition: color 0.2s ease, transform 0.2s ease;
}

.cart-item .remove-item-btn:hover {
    color: var(--primary-dark); /* Darker color on hover */
    transform: scale(1.1) rotate(5deg); /* Slight grow and rotate on hover */
}

.cart-popup .cart-total {
    text-align: right;
    padding-top: 2.5rem; /* More padding */
    border-top: 0.1rem solid var(--light-border);
}

.cart-popup .cart-total h3 {
    font-size: 3rem; /* Larger total text */
    color: var(--primary-dark);
    font-weight: 700;
}

.cart-popup .cart-total #cart-total-price {
    color: var(--primary-accent);
}

.cart-popup .proceed-to-checkout-btn {
    width: 100%;
    text-align: center;
    margin-top: 4rem; /* More space above button */
    padding: 1.2rem 3.5rem; /* More padding */
    font-size: 2rem; /* Larger text */
}

/* Order Form Specific Styles (within the order-popup) */
.order-popup form {
    width: 100%; /* Ensure form takes full width of its parent popup */
    max-width: 90rem; /* Keep existing max-width for the form */
    margin: 0 auto; /* Center the form within the popup */
}

.order-popup form .inputBox .input {
    width: calc(50% - 1.25rem); /* Adjust for larger gap */
    /* MODIFIED: Changed to flexbox for centering content within each input div */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers span and input/textarea horizontally */
    /* Removed text-align: left; from here */
}

.order-popup form .inputBox .input span {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.6rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-align: center; /* Centered the label text */
    width: 100%; /* Ensure span takes full width to center its text */
}

.order-popup form .inputBox .input input,
.order-popup form .inputBox .input textarea {
    background: var(--white-background);
    border-radius: 1rem;
    padding: 1.2rem;
    font-size: 1.7rem;
    color: var(--primary-dark);
    text-transform: none;
    margin-bottom: 1.5rem;
    width: 100%;
    border: 0.1rem solid rgba(0,0,0,0.05);
    box-shadow: inset 0 0.2rem 0.5rem rgba(0,0,0,0.08);
    text-align: center; /* Centered the input text */
}

.order-popup form .inputBox .input input:focus,
.order-popup form .inputBox .input textarea:focus {
    border: 0.2rem solid var(--primary-accent);
    outline: none;
    box-shadow: 0 0 0.8rem rgba(255,193,108,0.6);
}

.order-popup form .inputBox .input textarea {
    height: 12rem; /* Adjusted height for better fit on smaller screens */
    resize: vertical;
}

.order-popup .order-summary {
    background: var(--card-background); /* Use card background for summary box */
    border: 0.1rem solid var(--light-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
    max-height: 20vh; /* Make summary scrollable if many items */
    overflow-y: auto;
    width: 100%; /* Ensure it takes full width of parent */
    max-width: 60rem; /* Limit width for readability */
    margin-left: auto; /* Center it */
    margin-right: auto; /* Center it */
}

.order-popup .order-summary p {
    font-size: 1.6rem;
    color: var(--secondary-text);
    line-height: 1.8;
}

.order-popup .order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.6rem;
    color: var(--primary-dark); /* Changed to primary-dark for better contrast */
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem dotted rgba(0,0,0,0.05); /* Dotted line for a cute separator */
}

/* Add styling for the order message box */
.order-message-box {
    background: var(--card-background);
    border: 0.1rem solid var(--primary-accent); /* Accent border */
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: var(--box-shadow);
    text-align: center; /* Center text inside the box */
    width: 100%; /* Ensure it takes full width of parent */
    max-width: 60rem; /* Limit width for readability */
    margin-left: auto; /* Center it */
    margin-right: auto; /* Center it */
}

.order-message-box p {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.order-message-box textarea {
    width: 100%;
    height: 15rem; /* Fixed height for the textarea */
    padding: 1.5rem;
    font-size: 1.6rem;
    border: 0.1rem solid var(--light-border);
    border-radius: 1rem;
    background: var(--white-background);
    resize: none; /* Prevent resizing */
    font-family: monospace; /* Monospace font for code/details */
    color: var(--primary-dark);
    box-shadow: inset 0 0.2rem 0.5rem rgba(0,0,0,0.08);
}

.order-message-box .btn {
    margin-top: 2rem;
    width: auto; /* Allow button to size naturally */
    padding: 1rem 3rem;
    font-size: 1.8rem;
}

/* Admin Login Popup Specific Styles */
.admin-login-popup .admin-login-popup { /* This targets the actual popup modal */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally within the popup */
    text-align: center; /* Centers text within the popup */
}

.admin-login-popup form {
    /* Make the form itself a flex container to center its children */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers children (inputBox, button) */
    width: 100%; /* Take full width of its parent popup */
    max-width: 40rem; /* Limit form width for better appearance */
    margin: 0 auto; /* Center the form within the popup */
}

.admin-login-popup form .inputBox {
    display: flex;
    flex-direction: column; /* Stack username and password fields */
    gap: 1.5rem; /* Space between username and password fields */
    width: 100%; /* Ensure inputBox takes full width */
    align-items: center; /* Center the input rows */
}

.admin-login-popup form .inputBox .input {
    display: flex; /* Make label and input flex items */
    flex-direction: column; /* Stack label and input vertically */
    align-items: center; /* Center label and input horizontally */
    gap: 0.5rem; /* Space between label and input */
    width: 100%; /* Take full width of inputBox */
    /* Removed justify-content: center; as align-items handles centering for column flex */
}

.admin-login-popup form .inputBox .input span {
    /* Removed min-width: 8rem; as it's no longer needed for alignment */
    text-align: center; /* Center label text */
    font-size: 1.6rem; /* Adjust font size if needed */
    color: var(--primary-dark);
    font-weight: 600;
    width: 100%; /* Ensure span takes full width to center its text */
}

.admin-login-popup form .inputBox .input input {
    flex-grow: 1; /* Allow input to take remaining space */
    max-width: 25rem; /* Limit input width for better aesthetics */
    border-radius: 1rem;
    padding: 1rem;
    font-size: 1.6rem;
    text-align: center; /* Center input text */
}

.admin-login-popup .btn {
    margin-top: 2rem; /* Space above the login button */
    width: auto; /* Allow button to size naturally */
    padding: 1.2rem 4rem; /* More padding for a larger button */
}

/* Admin Dashboard Section Styles */
.admin-dashboard-section {
    /* Removed display: none; from here, now controlled by .hidden-section */
    padding: 10rem 7%; /* Consistent section padding */
    background: var(--card-background);
    border-top-left-radius: 2.5rem;
    border-top-right-radius: 2.5rem;
    position: relative;
    z-index: 1;
    text-align: center; /* Center headings */
}

.admin-tabs {
    display: flex;
    justify-content: center; /* Center the tab buttons */
    margin-bottom: 3rem;
    gap: 1.5rem; /* Space between tabs */
}

.admin-tab-btn {
    background: var(--secondary-text); /* Different color for tabs */
    color: var(--white-background);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.8rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.admin-tab-btn:hover,
.admin-tab-btn.active {
    background: var(--primary-accent);
    color: var(--primary-dark);
    transform: translateY(-0.3rem);
    box-shadow: 0 0.8rem 1.5rem rgba(0,0,0,0.15);
}

.admin-content {
    width: 100%;
    max-width: 100rem; /* Max width for admin content area */
    margin: 0 auto; /* Center the content area */
    text-align: left; /* Reset text alignment for content inside */
}

.admin-tab-content {
    display: none; /* Hidden by default */
    padding: 2.5rem;
    background: var(--white-background); /* White background for tab content */
    border-radius: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 0.1rem solid rgba(0,0,0,0.08);
}

.admin-tab-content.active {
    display: block; /* Show active tab content */
}

.admin-tab-content h2 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
}

/* Orders List Styling */
.orders-list-container,
.products-list-container {
    margin-top: 2rem;
}

.order-item,
.product-item {
    background: var(--card-background);
    border: 0.1rem solid var(--light-border);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.order-item .order-details,
.product-item .product-info {
    flex: 1 1 60%; /* Take more space */
}

.order-item h4,
.product-item h4 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.order-item p,
.product-item p {
    font-size: 1.6rem;
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.order-item .order-items-list ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.order-item .order-items-list li {
    font-size: 1.5rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.order-item .order-total,
.product-item .product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-top: 1.5rem;
}

.order-item .order-actions {
    flex: 1 1 30%; /* Take less space */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* Center buttons vertically */
}

.order-item .status-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--white-background);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.order-item .status-pending { background-color: #FFC16C; color: var(--primary-dark); } /* Orange-yellow */
.order-item .status-confirmed { background-color: #4CAF50; } /* Green */
.order-item .status-completed { background-color: #2196F3; } /* Blue */
.order-item .status-cancelled { background-color: #F44336; } /* Red */

.order-item .btn {
    width: 100%;
    margin-top: 0;
    padding: 0.8rem 1.5rem;
    font-size: 1.6rem;
}

/* Product Item Styling */
.product-item img {
    height: 10rem;
    width: 10rem;
    object-fit: cover;
    border-radius: 1rem;
    margin-right: 1.5rem;
}

.product-item .product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center; /* Center buttons horizontally */
    width: 100%; /* Take full width on smaller screens */
}

.product-item .btn {
    margin-top: 0;
    padding: 0.8rem 1.5rem;
    font-size: 1.6rem;
}

/* Product Form Styling */
.product-form-container {
    background: var(--white-background);
    border: 0.1rem solid var(--light-border);
    border-radius: 1.5rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
    text-align: center; /* Center content within the form container */
}

.product-form-container h3 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 3rem;
    margin-bottom: 2.5rem;
}

.product-form-container form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center form elements */
    width: 100%;
    max-width: 60rem; /* Limit form width */
    margin: 0 auto; /* Center the form itself */
}

.product-form-container form .inputBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center input pairs */
    gap: 2rem;
    width: 100%;
}

.product-form-container form .inputBox .input {
    width: 100%; /* Default to full width for mobile */
    max-width: 28rem; /* Max width for single input on larger screens */
    flex: 1 1 calc(50% - 1rem); /* Two columns on wider screens */
    text-align: left;
}

.product-form-container form .inputBox .input span {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.6rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.product-form-container form .inputBox .input input,
.product-form-container form .inputBox .input textarea {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.2rem;
    font-size: 1.7rem;
    color: var(--primary-dark);
    text-transform: none;
    margin-bottom: 1.5rem;
    width: 100%;
    border: 0.1rem solid rgba(0,0,0,0.05);
    box-shadow: inset 0 0.2rem 0.5rem rgba(0,0,0,0.08);
}

.product-form-container form .inputBox .input input:focus,
.product-form-container form .inputBox .input textarea:focus {
    border: 0.2rem solid var(--primary-accent);
    outline: none;
    box-shadow: 0 0 0.8rem rgba(255,193,108,0.6);
}

.product-form-container form textarea {
    height: 10rem;
    resize: vertical;
}

.product-form-container form .btn {
    margin-top: 2rem;
    width: auto;
    padding: 1rem 3rem;
    font-size: 1.8rem;
}

.product-form-container form .cancel-edit-btn {
    display: none; /* Hidden by default */
    background: #ccc;
    color: var(--primary-dark);
    margin-left: 1.5rem; /* Space from save button */
}

.product-form-container form .cancel-edit-btn:hover {
    background: #aaa;
    color: var(--primary-dark);
}

/* Empty list messages */
.empty-list-message {
    text-align: center;
    font-size: 1.8rem;
    color: var(--secondary-text);
    padding: 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    margin-top: 2rem;
    box-shadow: 0 0.3rem 0.8rem rgba(0,0,0,0.05);
}

/* Custom Message Box Styles */
.custom-message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Start slightly smaller */
    background: var(--white-background);
    border: 0.1rem solid var(--primary-accent);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.3);
    z-index: 3000; /* Above all other popups */
    text-align: center;
    max-width: 45rem;
    width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy transition */
}

.custom-message-box.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1); /* Pop into place */
}

.custom-message-box h3 {
    color: var(--primary-dark);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.custom-message-box p {
    color: var(--secondary-text);
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.custom-message-box .btn {
    width: auto;
    padding: 0.8rem 2.5rem;
    font-size: 1.6rem;
    margin-top: 0; /* Override default btn margin-top */
}

/* Responsive Media Queries */
@media (max-width:991px) {
    html {
        font-size: 55%;
    }
    header {
        padding: 1.2rem 3%;
    }
    section {
        padding: 10rem 3%;
    }
}

@media (max-width:768px) {
    header .icons #menu-bars {
        display: inline-block;
    }
    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white-background);
        border-top: 0.1rem solid rgba(0,0,0,0.1);
        border-bottom: 0.1rem solid rgba(0,0,0,0.1);
        padding: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    header .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    header .navbar a {
        display: block;
        padding: 1.5rem;
        margin: 1rem;
        font-size: 2rem;
        background: var(--card-background);
    }
    #search-form #search-box {
        width: 90%;
        margin: 0 1rem;
    }
    .home .home-slider .slide .content h3 {
        font-size: 5rem;
    }
    .order form .inputBox .input {
        width: 100%; /* Stack inputs on smaller screens */
        max-width: none; /* Remove max-width constraint */
    }
    .admin-login-popup form .inputBox .input {
        flex-direction: column; /* Stack label and input vertically */
        align-items: flex-start; /* Align stacked items to the left */
        gap: 0.5rem;
    }
    .admin-login-popup form .inputBox .input span {
        text-align: left;
        min-width: unset; /* Remove min-width for labels */
    }
    .admin-login-popup form .inputBox .input input {
        max-width: none; /* Allow input to take full width */
    }
    .product-form-container form .inputBox .input {
        width: 100%; /* Stack inputs on smaller screens */
        max-width: none; /* Remove max-width constraint */
    }
    .order-item,
    .product-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .order-item .order-details,
    .product-item .product-info {
        flex: auto;
        width: 100%;
    }
    .order-item .order-actions,
    .product-item .product-actions {
        width: 100%;
        flex-direction: row; /* Keep buttons in a row if space allows */
        justify-content: center;
    }
    .order-item .status-badge {
        margin-bottom: 1.5rem; /* More space below status badge */
    }
}

@media (max-width:450px) {
    html {
        font-size: 50%;
    }
    .dishes .box-container {
        grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }
    .menu .box-container {
        grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }
    .footer .box-container {
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    }
    .cart-popup,
    .order-popup,
    .admin-login-popup,
    .modal-content { /* Added .modal-content */
        padding: 2.5rem; /* Less padding on very small screens */
    }
    .cart-popup .heading,
    .order-popup .heading,
    .admin-login-popup .heading,
    .modal-content h3 { /* Added .modal-content h3 */
        font-size: 3rem;
    }
    .cart-popup #close-cart-btn,
    .order-popup #close-order-btn,
    .admin-login-popup #close-admin-login-btn,
    .modal-content #close-modal-btn { /* Added #close-modal-btn */
        font-size: 3rem;
        top: 1.5rem;
        right: 2rem;
    }
    .modal-content h3 {
        font-size: 2.5rem;
    }
    .modal-content p {
        font-size: 1.6rem;
    }
}
