/* 8848 FOOD STATION - Custom Styles */

:root {
    --primary-color: #d97706;
    --secondary-color: #92400e;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Mobile-Friendly Navigation */
@media (max-width: 991.98px) {
    /* Mobile Nav Links */
    .mobile-nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background-color 0.2s ease;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }
    
    .mobile-nav-link i {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }
    
    /* Mobile Dropdown */
    .dropdown-mobile .dropdown-toggle {
        position: relative;
    }
    
    .dropdown-mobile .dropdown-toggle::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    
    .dropdown-mobile .dropdown-toggle[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .dropdown-menu-mobile {
        border: none;
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.3);
        margin: 0;
        padding: 0.5rem 0;
        box-shadow: none;
    }
    
    .dropdown-item-mobile {
        padding: 0.875rem 1.25rem !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1rem;
        color: #fff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background-color 0.2s ease, padding-left 0.2s ease;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
    
    .dropdown-item-mobile:hover,
    .dropdown-item-mobile:focus {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        padding-left: 1.5rem;
    }
    
    .dropdown-item-mobile:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: scale(0.98);
    }
    
    .dropdown-item-mobile i {
        font-size: 1.1rem;
        width: 20px;
    }
    
    .dropdown-item-mobile span {
        font-size: 1.2rem;
    }
    
    .dropdown-divider {
        margin: 0.5rem 0;
        border-color: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }
    
    /* Mobile Dark Mode Toggle */
    .mobile-nav-button {
        width: 100%;
        margin: 0.5rem 1rem !important;
        padding: 0.75rem 1rem !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .mobile-nav-button:hover,
    .mobile-nav-button:focus {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    
    .mobile-nav-button i {
        font-size: 1.2rem;
    }
    
    /* Better navbar collapse animation */
    .navbar-collapse {
        transition: height 0.35s ease;
    }
    
    /* Navbar toggle button improvements */
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Prevent body scroll when menu is open */
    body.navbar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Desktop View - Hide icons on nav links */
@media (min-width: 992px) {
    .mobile-nav-link i {
        display: none;
    }
    
    .mobile-nav-button span {
        display: none;
    }
    
    .dropdown-item-mobile span {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
}

/* Mobile App Style - Hero Section */
.hero-section-app {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 60vh;
    position: relative;
    padding: 100px 0 60px;
}

.hero-section-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-content-app {
    position: relative;
    z-index: 2;
}

.hero-title-app {
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle-app {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    opacity: 0.95;
}

.hero-description-app {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions-app .btn-app-lg {
    min-height: 50px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-actions-app .btn-app-lg:active {
    transform: scale(0.95);
}

.quick-links-app {
    margin-top: 2rem;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.quick-link-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.quick-link-item:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.15);
}

.quick-link-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.quick-link-item small {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Section Titles - App Style */
.section-title-app {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.3;
}

/* Menu Items Horizontal Scroll - App Style */
.menu-items-scroll {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.menu-items-scroll::-webkit-scrollbar {
    height: 6px;
}

.menu-items-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.menu-items-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.menu-items-container {
    padding-bottom: 1rem;
    margin-bottom: -1rem;
}

.menu-item-card-app {
    width: 280px;
    max-width: 85vw;
}

.menu-item-card-app .card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu-item-card-app .card:active {
    transform: scale(0.98);
}

.menu-item-card-app .card-img-top {
    border-radius: 16px 16px 0 0;
}

/* Contact Cards - App Style */
.contact-card-app {
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-card-app:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

.contact-card-app:active {
    transform: translateY(-2px);
}

.contact-icon-app {
    width: 60px;
    height: 60px;
    background: rgba(217, 119, 6, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.contact-icon-app i {
    font-size: 1.75rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section-app {
        min-height: 50vh;
        padding: 80px 0 40px;
    }
    
    .hero-actions-app {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions-app .btn-app-lg {
        width: 100%;
    }
    
    .quick-links-app {
        margin-top: 1.5rem;
        gap: 1.5rem !important;
    }
    
    .quick-link-item {
        padding: 0.75rem;
    }
    
    .quick-link-item i {
        font-size: 1.75rem;
    }
    
    .menu-item-card-app {
        width: 260px;
    }
    
    /* Product Grid App Style */
    .product-card-app {
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .product-card-app:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.1) !important;
    }
    
    .product-card-app:active {
        transform: translateY(-1px);
    }
    
    .product-card-app .card-img-top {
        border-radius: 12px 12px 0 0;
    }
    
    /* Desktop View - 6 Items Per Row */
    @media (min-width: 768px) {
        .product-card-app .card-body {
            padding: 0.75rem !important;
        }
        
        .product-card-app .card-title {
            font-size: 0.9rem !important;
            margin-bottom: 0.5rem !important;
        }
        
        .product-card-app .card-text {
            font-size: 0.7rem !important;
            margin-bottom: 0.5rem !important;
            min-height: 2rem !important;
        }
        
        .product-card-app .btn-sm {
            padding: 0.2rem 0.4rem !important;
            font-size: 0.7rem !important;
        }
    }
    
    .contact-card-app {
        margin-bottom: 1rem;
    }
    
    .contact-icon-app {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon-app i {
        font-size: 1.5rem;
    }
    
    /* App-like mobile improvements */
    .hero-title-app {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .hero-subtitle-app {
        font-size: clamp(0.95rem, 3vw, 1.25rem);
    }
    
    /* Better card spacing on mobile */
    .menu-item-card-app .card-body {
        padding: 1rem !important;
    }
    
    /* Quick link active state */
    .quick-link-item:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.15);
    }
}

/* Utility Class */
.min-vh-50 {
    min-height: 50vh;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Dark Mode Support */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #e0e0e0;
    --bs-card-bg: #2d2d2d;
    --bs-border-color: #404040;
}

[data-bs-theme="dark"] .card {
    background-color: var(--bs-card-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2d2d2d !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #a0a0a0 !important;
}

[data-bs-theme="dark"] .navbar-dark {
    background-color: #1a1a1a !important;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(217, 119, 6, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Menu Categories */
.menu-category {
    margin-bottom: 60px;
}

.menu-category h2 {
    color: var(--primary-color);
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

/* Footer Links */
.footer-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.footer-links .bi-chevron-right {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Contact Info */
.contact-info li {
    transition: transform 0.2s ease;
}

.contact-info li:hover {
    transform: translateX(5px);
}

.contact-info .bi {
    font-size: 1.2rem;
    min-width: 24px;
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
}

.social-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.social-icon-large:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.5);
}

/* Newsletter Form */
.newsletter-form .form-control {
    border-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.newsletter-form .btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.newsletter-form .btn-warning:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Footer Bottom */
footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive Footer - Mobile Friendly */
@media (max-width: 991.98px) {
    /* Footer Section Spacing */
    footer .col-lg-3,
    footer .col-lg-2,
    footer .col-lg-4 {
        margin-bottom: 2.5rem;
    }
    
    /* Footer Section Titles */
    .footer-section-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem !important;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Footer Links - Mobile Friendly */
    .footer-link-mobile {
        display: inline-flex;
        align-items: center;
        padding: 0.625rem 0.75rem !important;
        min-height: 44px;
        font-size: 1rem !important;
        transition: all 0.2s ease;
        border-radius: 6px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
    
    .footer-link-mobile:hover,
    .footer-link-mobile:focus,
    .footer-link-mobile:active {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
        transform: translateX(4px);
    }
    
    .footer-links li {
        margin-bottom: 0.5rem !important;
    }
    
    /* Contact Info - Mobile Friendly */
    .footer-contact-item {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-contact-item:last-child {
        border-bottom: none;
    }
    
    .footer-contact-icon {
        font-size: 1.5rem;
        min-width: 32px;
        flex-shrink: 0;
    }
    
    .footer-contact-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem !important;
    }
    
    /* Social Icons - Mobile Friendly */
    .social-icon-mobile {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.3rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
    
    .social-icon-mobile:hover,
    .social-icon-mobile:focus,
    .social-icon-mobile:active {
        transform: scale(1.1);
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.2rem;
    }
    
    .social-icon-large {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    /* Newsletter Form - Mobile Friendly */
    .input-group-mobile {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-control-mobile {
        min-height: 48px;
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .btn-mobile {
        min-height: 48px;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        font-weight: 600;
    }
    
    /* Footer Bottom - Mobile */
    footer .border-top {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    /* Better spacing on mobile */
    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Newsletter text */
    .newsletter-form p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Address link button */
    .btn-outline-warning {
        min-height: 40px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
}

@media (min-width: 992px) {
    .input-group-mobile {
        flex-direction: row;
    }
    
    .btn-mobile {
        width: auto;
    }
}

/* Admin Styles */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #2d2d2d;
}

.admin-sidebar .nav-link {
    color: #e0e0e0;
    padding: 12px 20px;
    border-radius: 4px;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Image Placeholder */
.bg-secondary {
    background-color: #6c757d !important;
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(217, 119, 6, 0.1);
}

/* Status Badges */
.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Shop Page Styles */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
    border-color: var(--primary-color) !important;
}

.category-section {
    scroll-margin-top: 100px;
}

/* Mobile Cart Button */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 40px 0 !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .product-card .card-img-top {
        height: 180px !important;
    }
    
    .category-section {
        margin-bottom: 3rem !important;
    }
}

/* Offcanvas Cart */
.offcanvas-body {
    padding-bottom: 100px;
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }
    
    .btn-sm {
        min-height: 38px;
        padding: 0.375rem 0.75rem;
    }
    
    .form-control,
    .form-control-sm {
        min-height: 38px;
    }
    
    .product-card .card-body {
        padding: 1rem !important;
    }
    
    .category-section h2 {
        font-size: 1.25rem;
    }
}

/* Smooth scrolling for category links */
html {
    scroll-behavior: smooth;
}

/* Delivery Notice Styles */
.alert-info .bi-truck,
.alert-warning .bi-truck {
    flex-shrink: 0;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.alert-sm .small {
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .alert {
        font-size: 0.9rem;
    }
    
    .alert .bi {
        font-size: 1.25rem;
    }
}

/* Mobile Cart and Checkout Improvements */
@media (max-width: 991.98px) {
    /* Fixed bottom cart button styling */
    .fixed-bottom {
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    }
    
    /* Add padding to body when fixed buttons are visible */
    body.has-fixed-bottom {
        padding-bottom: 90px;
    }
    
    /* Shop page: Add padding bottom when cart has items */
    .container.pb-5 {
        padding-bottom: 6rem !important;
    }
    
    /* Checkout: Order summary appears first on mobile */
    .checkout-order-summary {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2rem;
    }
    
    /* Checkout cart items scrollable */
    .checkout-cart-items {
        max-height: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Checkout form inputs larger on mobile */
    .checkout-order-summary .form-control-lg {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for checkout cards */
    .checkout-order-summary .card-header {
        font-size: 1.1rem;
    }
    
    /* Improved offcanvas cart */
    .offcanvas-end {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Checkout button in offcanvas - ensure it's clickable */
    .checkout-actions-mobile {
        position: sticky;
        bottom: 0;
        z-index: 5;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .checkout-link-mobile {
        cursor: pointer !important;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: rgba(217, 119, 6, 0.3);
        touch-action: manipulation;
    }
    
    /* Fixed bottom button safe area for iOS */
    .fixed-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Mobile specific improvements for checkout */
@media (max-width: 768px) {
    /* Checkout form spacing */
    .checkout-order-summary .card-body {
        padding: 1rem;
    }
    
    /* Order summary sticky bottom on mobile */
    .checkout-cart-items + hr {
        margin-top: 0;
        margin-bottom: 1rem;
    }
    
    /* Better label styling on mobile */
    .form-label.fw-semibold {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    /* Larger form inputs for easier tapping */
    .form-control-lg {
        font-size: 16px;
        padding: 0.75rem 1rem;
    }
    
    /* Fixed button z-index higher than offcanvas */
    .fixed-bottom {
        z-index: 1060 !important;
    }
    
    /* Improved cart offcanvas header */
    .offcanvas-header {
        padding: 1rem;
    }
    
    /* Cart offcanvas body padding */
    .offcanvas-body {
        padding: 1rem;
        padding-bottom: 120px; /* Space for fixed button */
    }
}

/* Improved cart button badge positioning */
.position-relative .badge {
    right: -8px;
    top: -8px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 0.7rem;
}

/* Better touch targets for mobile */
@media (max-width: 991.98px) {
    button, a.btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Cart quantity inputs */
    input[type="number"] {
        min-width: 60px;
        text-align: center;
    }
    
    /* Product card buttons */
    .product-card .btn {
        min-height: 40px;
        font-size: 0.9rem;
    }
}

/* Smooth animations for fixed buttons */
.fixed-bottom {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Prevent body scroll when offcanvas is open on mobile */
@media (max-width: 991.98px) {
    body.offcanvas-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Add bottom padding when fixed buttons are present */
    body:has(.mobile-cart-button),
    body:has(.checkout-submit-button) {
        padding-bottom: 90px;
    }
    
    /* Fallback for browsers that don't support :has() */
    .has-fixed-bottom {
        padding-bottom: 90px;
    }
    
    /* Make sure checkout page has bottom padding on mobile */
    .checkout-submit-button ~ * {
        margin-bottom: 90px;
    }
}

