/* ==================== MODERN DELIVERY APP DESIGN SYSTEM ==================== */
/* Shopify-inspired professional design with FoodPanda/Grab UX patterns */

:root {
    /* Primary Colors - Professional Green (Trust/Action) */
    --primary: #00b14f;
    --primary-hover: #00a047;
    --primary-light: rgba(0, 177, 79, 0.1);
    --primary-lighter: rgba(0, 177, 79, 0.05);
    
    /* Neutral Colors */
    --black: #1a1a1a;
    --gray-900: #2d3436;
    --gray-800: #4a5568;
    --gray-700: #636e72;
    --gray-600: #74838f;
    --gray-500: #a0aec0;
    --gray-400: #b2bec3;
    --gray-300: #dfe6e9;
    --gray-200: #ecf0f1;
    --gray-100: #f5f7fa;
    --gray-50: #f8f9fa;
    --white: #ffffff;
    
    /* Semantic Colors */
    --success: #00b14f;
    --warning: #ff9500;
    --danger: #ff3b30;
    --info: #0095ff;
    
    /* Status Colors */
    --open: #00b14f;
    --closed: #ff3b30;
    --busy: #ff9500;
    
    /* Shadows - Subtle and Professional */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing (8px grid system - Compact) */
    --space-xs: 4px;
    --space-sm: 6px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-notification: 600;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== LAYOUT CONTAINER ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* ==================== HEADER & HERO ==================== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 15px;
    transition: var(--transition-base);
    outline: none;
}

.search-input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
}

/* Cart Button in Header */
.header-cart {
    position: relative;
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
}

.header-cart:hover {
    background: var(--gray-100);
}

.header-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* Hero Section - Compact */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    display: none; /* Removed for cleaner look */
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.shop-hero-info {
    flex: 1;
}

.shop-logo-large {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
}

.shop-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.shop-title {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.shop-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

/* Shop Badges */
.shop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
}

.shop-badge-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -2px;
}

/* ==================== CATEGORIES - Compact ==================== */
.categories-section {
    background: var(--white);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 55px;
    z-index: calc(var(--z-sticky) - 1);
    box-shadow: var(--shadow-xs);
    margin-top: -1px; /* Desktop: Remove any gap */
}

.categories-scroll {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding: var(--space-xs) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    background: var(--gray-50);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.category-pill:hover {
    background: var(--gray-100);
}

.category-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.category-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -2px;
}

.category-count {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    font-size: 12px;
    margin-left: var(--space-xs);
}

/* ==================== PRODUCTS GRID - Compact ==================== */
.products-section {
    padding: var(--space-lg) 0;
    min-height: 60vh;
    background: var(--gray-50);
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.products-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
}

.products-count {
    color: var(--gray-600);
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
}

/* Product Card - Shopify Style */
.product-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Square Aspect Ratio */
    background: var(--gray-100);
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.product-badge {
    padding: 4px 8px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.product-badge.new {
    background: var(--info);
    color: var(--white);
}

.product-badge.bestseller {
    background: var(--warning);
    color: var(--white);
}

.product-badge.promo {
    background: var(--danger);
    color: var(--white);
}

/* Product Info - Compact */
.product-info {
    padding: var(--space-sm) var(--space-md);
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
    line-height: 1.3;
}

.product-description {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Footer - Compact */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-md) var(--space-sm);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.price-original {
    font-size: 16px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.price-discount {
    font-size: 12px;
    font-weight: 600;
    color: var(--danger);
    background: var(--danger);
    background: rgba(255, 59, 48, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* Quick Add Button - Compact */
.quick-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.quick-add-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.quick-add-btn:active {
    transform: scale(0.95);
}

/* Quantity Selector (FoodPanda Style) */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-base);
}

.quantity-btn:hover {
    background: var(--gray-200);
}

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

.quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-900);
}

/* ==================== LIST VIEW ==================== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.product-list-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-card);
    display: flex;
    gap: var(--space-md);
    transition: var(--transition-base);
}

.product-list-item:hover {
    box-shadow: var(--shadow-hover);
}

.product-list-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.product-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-list-header {
    flex: 1;
}

.product-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-sm);
}

/* ==================== CART DRAWER ==================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: var(--transition-slow);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
    z-index: var(--z-modal-backdrop);
}

.cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.cart-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-base);
}

.cart-close:hover {
    background: var(--gray-200);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

.cart-empty-text {
    color: var(--gray-600);
    font-size: 16px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-content {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.cart-summary-label {
    font-size: 16px;
    color: var(--gray-600);
}

.cart-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.checkout-btn {
    width: 100%;
    padding: 14px var(--space-lg);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.checkout-btn:hover {
    background: var(--primary-hover);
}

.checkout-btn:active {
    transform: scale(0.98);
}

/* ==================== FLOATING CART BUTTON ==================== */
.floating-cart {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: var(--transition-base);
    z-index: var(--z-fixed);
}

.floating-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.floating-cart-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.floating-cart-badge {
    background: var(--white);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.floating-cart-total {
    font-size: 16px;
    font-weight: 600;
}

/* ==================== MOBILE BOTTOM NAVIGATION ==================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    z-index: var(--z-fixed);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    padding: var(--space-xs) 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-xs) var(--space-md);
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 500;
}

.mobile-nav-badge {
    position: absolute;
    top: 0;
    right: 12px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    padding: 2px 4px;
    border-radius: var(--radius-full);
    min-width: 16px;
    text-align: center;
}

/* ==================== LOADING STATES ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.product-skeleton {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.skeleton-image {
    padding-top: 75%;
    background: var(--gray-200);
}

.skeleton-content {
    padding: var(--space-md);
}

.skeleton-line {
    height: 16px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.skeleton-line.short {
    width: 60%;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.scale-in {
    animation: scaleIn 0.3s ease;
}

/* ==================== MOBILE HEADER ==================== */
.header-mobile {
    display: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-only {
    display: none;
}

.mobile-search-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.mobile-search-bar {
    position: relative;
    flex: 1;
}

.mobile-search-bar .search-input {
    width: 100%;
    padding: 7px 12px 7px 36px;
    background: var(--gray-50);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    font-size: 14px;
    transition: var(--transition-base);
    outline: none;
}

.mobile-search-bar .search-input:focus {
    background: var(--white);
    border-color: var(--primary);
}

.mobile-search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
}

.mobile-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.mobile-cart-btn:active {
    transform: scale(0.95);
}

.mobile-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    display: none;
}

.desktop-only {
    display: block;
}

/* ==================== MINIMAL FOOTER ==================== */
.footer-minimal {
    background: var(--white);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.footer-minimal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-contact {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-contact a,
.footer-contact div {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-powered {
    font-size: 13px;
}

.footer-powered a {
    color: var(--gray-500);
    text-decoration: none;
}

.footer-powered a:hover {
    color: var(--primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .header-mobile {
        display: block;
    }
    
    .header {
        box-shadow: none; /* Remove shadow on mobile */
    }
    
    /* Mobile nav removed for cleaner experience */
    .mobile-nav {
        display: none;
    }
    
    /* Show footer on mobile */
    .footer-minimal {
        margin-bottom: 0; /* No bottom nav anymore */
        padding: var(--space-md) 0;
    }
    
    .footer-minimal-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    /* Floating cart only on desktop */
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    
    .hero-section {
        padding: var(--space-xl) 0 var(--space-lg);
    }
    
    .shop-title {
        font-size: 28px;
    }
    
    .shop-description {
        font-size: 16px;
    }
    
    .categories-section {
        top: 55px; /* Mobile: stick below header */
        margin-top: 0; /* Remove desktop negative margin */
    }
    
    .product-card {
        border-radius: var(--radius-md);
    }
    
    .product-info {
        padding: var(--space-sm);
    }
    
    .product-footer {
        padding: 0 var(--space-sm) var(--space-sm);
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-description {
        font-size: 13px;
    }
    
    .price-current {
        font-size: 18px;
    }
    
    .quick-add-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - search already in mobile header */
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 14px;
}

.text-xs {
    font-size: 12px;
}

.text-gray {
    color: var(--gray-600);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .header,
    .categories-section,
    .floating-cart,
    .mobile-nav,
    .cart-drawer {
        display: none !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== MODAL STYLES ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Checkout Form Styles */
.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition-base);
}

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

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.checkout-summary {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.checkout-summary h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 600;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

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

.btn-full {
    width: 100%;
}

/* Success Modal */
.modal-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.order-number {
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin: 20px 0;
}

.success-message {
    color: var(--text-secondary);
    margin: 20px 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}