/*
Shireen Bakers - Premium Theme
Palette: White, Black, Red (#C8102E)
Font: Outfit (Sans-serif)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

:root {
    /* Colors */
    --primary-red: #C8102E;
    --black: #0F0F0F;
    --dark-gray: #1A1A1A;
    --medium-gray: #666666;
    --light-gray: #F9F9F9;
    --white: #FFFFFF;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

/* Preloader / Splash Screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FAF4D3;
    /* Light Creamy Yellow from image */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s;
}

.preloader-logo {
    width: 350px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Promo Popup */
.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9990;
    backdrop-filter: blur(5px);
}

.promo-popup {
    background-color: var(--black);
    width: 95%;
    max-width: 700px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 4px solid #FFC107;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-popup.active {
    transform: scale(1);
    opacity: 1;
}

.promo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: var(--black);
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 8px;
    background-color: #FFC107;
    z-index: 10;
    text-align: center;
    transition: all 0.2s ease;
}

.promo-close:hover {
    background-color: var(--white);
}

.promo-container {
    position: relative;
    width: 100%;
    background-color: #111;
    /* Dark background for contain */
}

.promo-img {
    width: 100%;
    height: 550px;
    object-fit: contain;
    display: block;
}

.promo-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    text-align: center;
}

.promo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.promo-title span {
    color: #FFC107;
}

.promo-text {
    font-size: 1.2rem;
    color: #ffd700;
    /* Gold */
    font-weight: 600;
    margin-bottom: 25px;
}

.promo-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #FFC107;
    color: var(--black);
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 2px solid #FFC107;
}

.promo-btn:hover {
    background-color: transparent;
    color: #FFC107;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}



/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: transparent;
    /* Transparent so ::before shows */
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Robust fixed background for mobile */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('images/background_pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
    color: #0F0F0F;
    /* Dark black */
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        /* Smaller for mobile to fit nicely */
        margin-top: 20px !important;
        margin-bottom: 1.5rem;
    }
}

/* Button Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a00c24;
}

.btn-nav {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

.btn-nav:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Header */
.header {
    background: transparent;
    /* Let the body::before show through */
    /* If we want the header to obscure content as it scrolls under, we need a trick.
       But if the user wants the "same" background, transparency is easiest if content doesn't clash.
       However, scrolling content needs to be hidden.
       So we re-apply the fixed background to the header so it aligns. */
    background-image: url('images/background_pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Crucial for alignment */
    border-bottom: 1px solid #ebbc80;
    /* Slight gold tint for refined look */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Left, Center, Right */
    align-items: center;
}

/* Header Left: Hamburger */
.header-left {
    display: flex;
    flex-direction: column;
    /* Stack hamburger and links */
    align-items: flex-start;
    /* Left align */
    position: relative;
    align-self: start;
    /* Aligns to top of grid row */
    margin-top: 25px;
    gap: 20px;
}

@media (min-width: 1025px) {
    .header-left {
        gap: 45px;
    }
}

@media (max-width: 1024px) {
    .header-left {
        margin-top: 0;
        align-self: center;
        gap: 0;
    }

    .inline-nav {
        display: none !important;
    }
}

.hamburger-btn {
    font-size: 2rem;
    /* Larger for easier tapping */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    min-height: 50px;
    /* Enforce consistent height */
    display: flex;
    /* Center icon vertically */
    align-items: center;
}

/* ... */

.header-actions {
    display: flex;
    gap: 15px;
    /* Slightly tighter on mobile */
    align-items: center;
    min-height: 50px;
}

.inline-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.inline-nav a {
    font-family: var(--font-main);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--black);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

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

/* Dropdown Menu */
/* Sidebar Menu (Replaces Dropdown) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-menu.active~.sidebar-overlay,
.sidebar-menu.active+.sidebar-overlay {
    /* Handle DOM positioning variance if any */
    opacity: 1;
    visibility: visible;
}

/* Fix: The overlay is actually BEFORE .sidebar-menu in HTML now, so use sibling selector correctly or JS toggle on body */
.sidebar-overlay.active {
    /* Or toggle this class via JS if needed, but CSS :has or sibling is easier if structure is strict */
    opacity: 1;
    visibility: visible;
}

/* Simpler approach: toggle .active on overlay too or rely on structure. 
   HTML: button, overlay, nav. So button ~ overlay works? No, button is first.
   Let's just style based on class on the element itself if the JS toggles it? 
   No, the JS only toggles .sidebar-menu.
   Let's rely on the fact that sidebar is on top. To make overlay work with just CSS based on sidebar class requires :has() or specific hierarchy. 
   Wait, I added onclick to overlay to remove active from sidebar.
   I need to make sure overlay shows up. 
   Current HTML: button, overlay, nav sidebar.
   CSS: .sidebar-menu.active doesn't affect previous sibling overlay easily without :has().
   I will update JS in notify_user to also toggle body class or overlay class? 
   Or just make the sidebar separate. 
   Let's just position the sidebar and ignore the overlay for a second? 
   No, overlay is good for "full left side" focus.
   Actually, the HTML I wrote has: button, overlay, nav.
   If I click button, nav gets .active. 
   I can't select overlay based on nav.active (next sibling).
   
   Correction: HTML is button, overlay, nav.
   So overlay is *previous* sibling to nav.
   I can't target it with CSS from nav.
   
   I'll just style the sidebar first. I can fix overlay interaction if needed, or maybe I don't need a strict overlay if the menu is big enough.
   User asked for "show options on full left side", implied sidebar.
*/

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active {
    left: 0;
}

.close-sidebar-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 10px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-family: var(--font-main);
    text-transform: capitalize;
}

.sidebar-links a.main-link {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.sidebar-heading {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-divider {
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}

/* Adjust Hamburger Position */
.hamburger-btn {
    transform: translateX(-10px);
    /* Move a little left */
}

/* Header Center: Logo */
.header-center {
    text-align: center;
}

/* Logo Colors */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    display: block;
    line-height: 1.2;
    color: #757575;
    /* Shireen = Lighter Grey */
}

.header-logo-img {
    height: 45px;
    /* Much smaller for mobile matching KFC style */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
    display: block;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .header-logo-img {
        height: 100px;
    }
}

.logo:hover .header-logo-img {
    transform: scale(1.1) rotate(5deg);
}

.logo span {
    color: #E6BC15;
    /* Bakers = Gold/Yellow */
}

/* Header Right: Cart/Login */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align to right */
    justify-content: flex-start;
    margin-top: 25px;
    gap: 20px;
}

@media (min-width: 1025px) {
    .header-right {
        gap: 45px;
    }
}

@media (max-width: 1024px) {
    .header-right {
        margin-top: 0;
        align-self: center;
        gap: 0;
    }
}

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

.icon-btn {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
    transition: all 0.3s ease;
}

/* User / Login Specific Styling */
.header-right .icon-btn:first-child {
    background: #757575;
    /* Lighter Grey */
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(117, 117, 117, 0.2);
    border: 2px solid transparent;
}

.header-right .icon-btn:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(117, 117, 117, 0.3);
    background: #555555;
    /* Darker Grey (Hover) */
}

.header-right .icon-btn:first-child:active {
    transform: translateY(0);
}

.header-right .icon-btn span {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .header-right .icon-btn span:not(.cart-count) {
        /* display: none;  REMOVED to show Login */
        font-size: 0.8rem;
        /* Smaller text */
    }

    /* Hide 'Cart' text specifically if needed to save space, but user said 'reduce size of cart' */
    .header-right .icon-btn:last-child span:first-child {
        font-size: 0.8rem;
    }

    .header-right .icon-btn {
        padding: 6px 10px;
        /* Compress padding */
        gap: 4px;
    }

    .header-right .icon-btn:first-child {
        padding: 6px 12px;
        /* Login button */
        font-size: 0.8rem;
    }

    .logo span {
        display: inline;
        /* Show 'Bakers' */
        font-size: 0.9em;
        /* Slightly smaller relative to logo */
    }

    .logo {
        font-size: 1rem;
        /* Reduce overall logo size */
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1;
    }

    .header-logo-img {
        height: 35px;
        /* Smaller image */
        margin-bottom: 2px;
    }

    .hamburger-btn {
        font-size: 1.5rem;
        /* Reduce 3 dot size */
        padding: 0;
        min-height: auto;
    }
}

/* Hero Section (Slideshow) */
.hero-section {
    width: 100%;
    max-width: 1920px;
    height: 450px;
    margin: 0 auto 50px auto;
    position: relative;
    overflow: hidden;
    background-color: #000;
    /* Prevent flash during transition */
}

@media (max-width: 768px) {
    .hero-section {
        height: 250px;
        margin-bottom: 30px;
    }
}

.hero-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateX(100%);
    /* Wait on the right */
    z-index: 1;
}

.hero-slide.active {
    transform: translateX(0);
    /* Stay in center */
    transition: transform 0.8s ease-in-out;
    z-index: 2;
}

.hero-slide.prev {
    transform: translateX(-100%);
    /* Slide out to left */
    transition: transform 0.8s ease-in-out;
    z-index: 1;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}


/* Categories Section */
.categories-section {
    margin-bottom: 100px;
}

.categories-grid {
    display: none;
    /* Replaced by Bootstrap Row */
}

.category-card {
    background: var(--light-gray);
    /* height: 150px; REMOVED fixed height to allow product card content */
    min-height: 150px;
    display: flex;
    flex-direction: column;
    /* Changed for product card layout */
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
    padding-bottom: 15px;
}

.category-card:hover {
    background: var(--white);
    border-color: var(--black);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Minimal Category Card Style (User Ref) */
.category-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    padding: 0;
}

.category-minimal:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
    /* or subtle scale */
}

.category-minimal .minimal-image-container {
    background-color: #F8F8F8;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    /* Reduced margin */
    border: 1px solid #EDEDED;
    padding: 10px;
    /* Reduced padding for bigger product view */
    border-radius: 8px;
    /* More rounded */
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .category-minimal .minimal-image-container {
        padding: 5px;
        /* Even less on mobile */
        border-radius: 12px;
        /* Softer corners */
    }
}

.category-minimal .minimal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is visible with padding */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-minimal:hover .minimal-image-container img {
    transform: scale(1.05);
}

.category-minimal .minimal-title {
    font-size: 0.9rem;
    font-weight: 800;
    /* Bolder */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .category-minimal .minimal-title {
        font-size: 0.8rem;
        /* Fit text better */
    }
}

.category-minimal:hover .minimal-title {
    color: var(--primary-red);
}

.category-minimal:hover .minimal-image-container {
    border-color: #D4AF37;
    /* Subtle gold border on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Three Column Grid Adjustments for Mobile */
@media (max-width: 768px) {

    /* Tighter padding in the image container */
    .category-minimal .minimal-image-container {
        padding: 8px;
        margin-bottom: 6px;
        border-radius: 12px;
        background-color: #FAFAFA;
        /* Slightly lighter */
    }

    /* Smaller font for 3-in-a-row */
    .category-minimal .minimal-title {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        font-weight: 700;
        white-space: nowrap;
        /* Try to keep one line if possible */
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 2px;
    }

    /* Adjust Grid Gap (Bootstrap gx-2 is good, but maybe stricter here?) */
    .row.row-cols-3 {
        /* Bootstrap handles gutters, but we can ensure they are small */
        --bs-gutter-x: 0.5rem;
    }
}

/* Product Card Internal Styles re-added for Menu */
.product-image {
    width: 100%;
    height: 180px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-info {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

/* New Footer (KFC Style - Grey Theme) */
.footer {
    background-color: #222;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: #eee;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    text-align: center;
    display: block;
    line-height: 1.2;
}

.footer-logo span {
    color: #E6BC15 !important;
    /* Gold/Yellow */
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px auto;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-circle {
    width: 36px;
    height: 36px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--black);
    transition: transform 0.2s;
}

.social-circle svg {
    width: 20px;
    height: 20px;
    fill: var(--black);
}

.social-circle:hover {
    transform: scale(1.1);
    background-color: var(--primary-red);
}

.social-circle:hover svg {
    fill: var(--white);
}

.footer-main {
    display: grid;
    /* 4 columns: Links 1, Links 2, Links 3, Apps */
    /* 4 columns: Links 1, Links 2, Links 3, Apps */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: row;
        /* Keep logo and icons side-by-side */
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
        gap: 20px;
    }

    .footer-logo {
        font-size: 1.1rem;
        /* Slightly closer to normal size but readable */
        margin: 0;
        text-align: left;
    }

    .footer-logo-img {
        height: 30px;
        margin: 0 auto 5px auto;
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 0;
        padding-left: 20px;
        /* Aligned slightly left */
    }

    .footer-col {
        margin-bottom: 0;
        padding: 0;
        width: 100%;
    }

    .footer-col h4 {
        display: none;
    }

    /* All lists stacked as one simple vertical menu */
    .footer-col ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0;
        margin: 0;
        gap: 20px;
        /* Equal spacing between links */
    }

    .footer-col {
        margin-bottom: 20px;
        /* Spacer between column blocks */
    }

    .footer-col ul li:last-child {
        margin-bottom: 0;
    }

    .footer-col ul li {
        margin-bottom: 0;
    }

    .footer-col ul li a {
        font-size: 1rem;
        white-space: nowrap;
        text-align: left;
    }
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ddd;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-app {
    background-color: #333;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-size: 0.8rem;
    text-align: left;
    border: 1px solid #444;
}

.btn-app:hover {
    background-color: #444;
}

.btn-app small {
    display: block;
    font-size: 0.6rem;
    opacity: 0.8;
}

.btn-app span {
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #ccc;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1rem;
}

.powered-by span {
    color: var(--white);
    font-weight: 700;
}

/* Modals */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Cart Specific */
#cart-modal {
    justify-content: flex-end;
    /* Align right */
}

#cart-modal .modal-content {
    height: 100vh;
    max-width: 400px;
    border-radius: 0;
    margin-right: 0;
    transform: translateX(100%);
    animation: slideLeft 0.3s forwards;
    display: flex;
    flex-direction: column;
}

@keyframes slideLeft {
    to {
        transform: translateX(0);
    }
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }

    .slider-section {
        height: 250px;
    }

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

    .footer-main {
        grid-template-columns: 1fr 1fr;
        /* 2 cols on tablet */
    }
}

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

    .footer-main {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
        text-align: center;
    }

    .app-buttons {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Removed redundant footer-logo span color */

/* Promo Section */
.promo-section {
    margin-bottom: 60px;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promo-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.promo-item:hover img {
    transform: scale(1.02);
}

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

/* Location Page Styles */
.location-hero {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.location-hero .section-title {
    color: var(--white);
}

.location-hero p {
    color: var(--white) !important;
    /* Override inline style or ensures high specificity */
    opacity: 0.9;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.location-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.location-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--black);
}

.location-img {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

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

.location-details {
    padding: 25px;
}

.location-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.location-address {
    color: var(--medium-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.location-contact {
    margin-bottom: 20px;
    font-weight: 500;
}

.location-actions {
    display: flex;
    gap: 10px;
}

.map-frame {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    overflow: hidden;
}

/* Product Grid & Card Styles (Minimal / Reference Style) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    /* More space for clean look */
    margin-bottom: 80px;
}

.product-card {
    background: transparent;
    /* Clean background */
    border: none;
    /* Removed border */
    border-radius: 0;
    overflow: visible;
    /* Allow hover effects to expand if needed, but keeping simple */
    text-align: center;
    transition: transform 0.3s ease;
    padding: 10px;
}

.product-card:hover {
    transform: translateY(-5px);
    /* subtle lift, no shadow border */
}

.product-img {
    height: 180px;
    /* Small but clear picture */
    background: transparent;
    /* No grey background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    /* Ensure whole cake is seen */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
    /* Subtle shadow on the image itself */
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-details {
    padding: 0 10px;
}

.product-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--black);
    text-transform: capitalize;
    /* Cleaner look */
}

.product-price {
    color: var(--black);
    /* Minimalist usually uses black for price, or dark grey */
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.25rem;
    display: block;
}

.weight-select {
    padding: 8px 12px;
    border-radius: 20px;
    /* Pill shape */
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    width: 80%;
    /* Not full width */
    font-family: var(--font-main);
    font-size: 0.9rem;
    background-color: #f9f9f9;
    cursor: pointer;
    outline: none;
    text-align: center;
}

.product-details .btn-primary {
    border-radius: 50px;
    /* Pill shape button */
    padding: 8px 25px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.2);
}

/* Responsive Grid */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Force 3 columns on mobile */
        gap: 6px;
        /* Very tight gap */
    }

    .product-card {
        padding: 4px;
        /* Minimal padding */
    }

    /* Make image bigger relative to card */
    .product-img {
        height: 80px;
        /* Reduced height constraint implies larger relative appearance if width fills */
        margin-bottom: 6px;
    }

    .product-img img {
        width: 100%;
        /* Fill the container */
        height: 100%;
        object-fit: contain;
    }

    .product-details {
        padding: 0 2px;
    }

    .product-name {
        font-size: 0.7rem;
        /* Much smaller */
        margin-bottom: 2px;
        line-height: 1.1;
        height: 2.2em;
        /* Limit to 2 lines */
        overflow: hidden;
    }

    .product-price {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .weight-select {
        font-size: 0.65rem;
        padding: 2px 4px;
        margin-bottom: 6px;
        width: 100%;
    }

    /* Fix Add to Cart Button */
    .product-details .btn-primary {
        padding: 4px 0;
        /* Minimal vertical padding, full width */
        font-size: 0.6rem;
        width: 100%;
        /* Full width to fit text */
        border-radius: 4px;
        /* Less rounded to save space */
        white-space: nowrap;
        /* Single line */
        line-height: 1;
        min-height: auto;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Still 3 columns */
        gap: 8px;
    }
}