/* styles.css - Custom Branding for Babumoshai House of Stories */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,500&display=swap');

:root {
    --primary: #1E3D34;        /* Forest Green */
    --primary-hover: #122620;  /* Dark Forest Green */
    --secondary: #3B2A20;      /* Deep Brown */
    --accent: #C47A3E;         /* Clay */
    --brick: #B5442E;          /* Brick Red */
    --sand: #E7D4B4;           /* Sand */
    --background: #F8F4EC;     /* Warm Creamy Parchment */
    --surface: #FCFAF6;        /* Light Soft Cream */
    --surface-muted: #F0EAE1;  /* Muted Sand */
    --text: #3B2A20;           /* Deep Brown for high readability text */
    --text-muted: #6B5E56;     /* Soft Muted Brown */
    --border: #E3D9C9;         /* Rustic border color */
    --border-focus: #1E3D34;
    
    --shadow-sm: 0 4px 12px rgba(59, 42, 32, 0.04);
    --shadow-md: 0 10px 30px rgba(30, 61, 52, 0.08);
    --shadow-lg: 0 20px 50px rgba(59, 42, 32, 0.12);
    
    --radius-sm: 4px;          /* More structured, traditional/classic feel */
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'DM Sans', sans-serif;
    --font-body: 'Lora', serif;
}

.rupee {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    margin-right: 0.08em;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Base resets & styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.01em;
}

p {
    font-size: 1.05rem;
}

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

button, input, textarea {
    font-family: var(--font-subheading);
}

/* Header & Navigation */
header {
    background-color: rgba(248, 244, 236, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px double var(--border);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo span {
    color: var(--accent);
    font-size: 0.95rem;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cart-toggle-btn {
    background: var(--primary);
    color: var(--sand);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-subheading);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cart-toggle-btn:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
}

.cart-count {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-subheading);
}

.admin-link {
    font-family: var(--font-subheading);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-link:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #FAF6ED 0%, #F8F4EC 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.hero .subtitle {
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* Bottom Story Section */
.bottom-story {
    padding: 6rem 2rem;
    background: #FAF6ED;
    border-top: 1px solid var(--border);
    text-align: center;
}

.bottom-story .hero-stamp {
    margin-bottom: 2rem;
}

.bottom-story h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.bottom-story .subtitle {
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.bottom-story p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Storefront Grid */
.storefront-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    text-align: center;
    font-style: italic;
}

.section-title::after {
    content: '✵';
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 0.5rem;
    font-style: normal;
}

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

/* Menu Card */
.menu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(196, 122, 62, 0.15);
    pointer-events: none;
    z-index: 2;
}

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

.menu-card-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: sepia(15%) contrast(95%);
}

.menu-card:hover .menu-card-img {
    transform: scale(1.05);
    filter: sepia(0%) contrast(100%);
}

.menu-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 3;
}

.menu-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.menu-card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    flex-grow: 1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.menu-card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent);
}

.add-to-cart-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: var(--sand);
}

.card-action-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.card-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sidebar Drawer - Shopping Cart */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 2px double var(--border);
}

.cart-drawer.open {
    transform: translate3d(0, 0, 0);
}

.cart-drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-muted);
    flex-shrink: 0; /* Header never shrinks */
}

.cart-drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-style: italic;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.cart-drawer-close:hover {
    color: var(--brick);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border);
}

.cart-item-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: var(--surface-muted);
    border: 1px solid var(--border);
}

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

.cart-item-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-subheading);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--secondary);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--sand);
    border-color: var(--primary);
}

.qty-val {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--brick);
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.cart-item-remove:hover {
    text-decoration: underline;
}

/* Cart Form & Footer */
.checkout-form {
    background: var(--surface-muted);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 2rem;
    border: 1px solid var(--border);
}

.checkout-form h4 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: var(--transition);
    font-family: var(--font-body);
}

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

.cart-drawer-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
    flex-shrink: 0; /* Footer never shrinks */
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-total-label {
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.cart-total-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
}

.order-submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--sand);
    border: none;
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.order-submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.order-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 42, 32, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.cart-backdrop.open {
    display: block;
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-muted);
}

.empty-cart-state svg {
    margin-bottom: 1.25rem;
    color: var(--border);
}

/* Admin Dashboard layout */
.admin-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.admin-header {
    margin-bottom: 3rem;
    border-bottom: 2px double var(--border);
    padding-bottom: 1.5rem;
}

.admin-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    font-style: italic;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--secondary);
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--sand);
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Admin Forms & Layouts */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 3rem;
}

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

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(196, 122, 62, 0.12);
    pointer-events: none;
}

.admin-card h3 {
    margin-bottom: 1.75rem;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.75rem;
    color: var(--primary);
    font-style: italic;
    font-size: 1.6rem;
}

/* Admin Menu List Table/View */
.admin-menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
}

.admin-menu-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: var(--surface-muted);
    border: 1px solid var(--border);
}

.admin-menu-info {
    flex-grow: 1;
}

.admin-menu-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
}

.admin-menu-price {
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-subheading);
    font-size: 0.95rem;
}

.delete-btn {
    background: #FAF0EE;
    color: var(--brick);
    border: 1px solid #F5DED9;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.delete-btn:hover {
    background: var(--brick);
    color: white;
    border-color: var(--brick);
}

/* Auth Login Page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background);
    padding: 2rem;
}

.login-card {
    background: var(--surface);
    border: 2px double var(--border);
    padding: 3.5rem;
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(196, 122, 62, 0.15);
    pointer-events: none;
}

.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-btn {
    width: 100%;
    background: var(--primary);
    color: var(--sand);
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.alert {
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-subheading);
}

.alert-danger {
    background: #FAF0EE;
    color: var(--brick);
    border: 1px solid #F5DED9;
}

.alert-success {
    background: #EBF5EF;
    color: #1E3D34;
    border: 1px solid #DFEDE5;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.25rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo span {
        display: none; /* Hide subtitle text on tablets and mobiles */
    }
    
    .cart-text {
        display: none; /* Hide the word 'Cart' on smaller screens */
    }
    
    .cart-toggle-btn {
        padding: 0.6rem 0.9rem;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .storefront-container {
        margin: 2.5rem auto;
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .bottom-story {
        padding: 4rem 1.5rem;
    }

    .bottom-story h2 {
        font-size: 2.6rem;
    }

    .bottom-story p {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.85rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .cart-toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

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

    .hero .subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-column grid on mobile */
        gap: 0.75rem;
    }

    .menu-card::before {
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
    }

    .menu-card-img-container {
        height: 125px;
    }

    .menu-card-body {
        padding: 0.85rem;
    }

    .menu-card-title {
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }

    .menu-card-description {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .menu-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding-top: 0.75rem;
    }

    .menu-card-price {
        font-size: 1.1rem;
        text-align: center;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.7rem;
        text-align: center;
    }

    .card-action-container {
        width: 100%;
        justify-content: center;
    }

    .card-qty-controls {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }

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

    .cart-drawer-header {
        padding: 0.75rem 1rem;
    }
    
    .cart-drawer-header h3 {
        font-size: 1.25rem;
    }

    .cart-drawer-body {
        padding: 1rem;
    }

    .cart-drawer-footer {
        padding: 0.75rem 1rem;
    }
    
    .cart-drawer-footer .cart-total-row {
        margin-bottom: 0.35rem;
    }
    
    .cart-drawer-footer .cart-total-row:nth-child(2) {
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }
    
    .cart-total-val {
        font-size: 1.4rem;
    }
    
    .order-submit-btn {
        padding: 0.85rem;
        font-size: 0.85rem;
    }

    .checkout-form {
        padding: 0.85rem;
        margin-top: 1rem;
    }
    
    .checkout-form h4 {
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        padding-bottom: 0.25rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .form-group input, .form-group textarea {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .bottom-story h2 {
        font-size: 2.1rem;
    }

    .bottom-story p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .admin-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .admin-card {
        padding: 1.5rem;
    }

    .admin-grid {
        gap: 1.5rem;
    }

    .admin-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }
}

/* Floating Cart Button for Mobile View */
.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: var(--sand);
    border: 2px solid var(--border);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none; /* hidden by default on desktop */
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 99;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

/* Show floating cart only on mobile screens */
@media (max-width: 768px) {
    .floating-cart-btn {
        display: flex;
    }
    
    .floating-cart-btn.visible {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
}

.floating-cart-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.08);
}

.floating-cart-btn .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--surface);
}

.menu-card.out-of-stock {
    opacity: 0.6;
}

.out-of-stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brick);
    color: var(--sand);
    font-family: var(--font-subheading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

