/* Global Styles */
:root {
    /* Rich Walnut/Espresso for branding and headers */
    --primary-color: #3d2b1f; 
    /* Deep Charcoal for high-contrast elements */
    --primary-dark: #2a1e16;
    /* Soft Linen/Off-white for sections and backgrounds */
    --primary-light: #fdfaf5;
    /* Burnished Gold/Brass for "Add to Cart" or "Sale" tags */
    --accent-yellow: #c5a059;
    
    /* Typography */
    --text-dark: #2d2d2d;
    --text-muted: #757575;
    
    /* UI Elements */
    --border-color: #eee0d5;
    --bg-light: #fcfcfc;
    --white: #ffffff;
    
    /* Elevated Shadow Profile for "floating" furniture cards */
    --shadow-sm: 0 2px 10px rgba(61, 43, 31, 0.05);
    --shadow-md: 0 10px 30px rgba(61, 43, 31, 0.08);
    --shadow-lg: 0 20px 40px rgba(61, 43, 31, 0.12);
    
    /* Smooth transition for hover effects on product images */
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 24px;
}

.logo {
    font-weight: 700;
    font-size: 28px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo i {
    color: var(--accent-yellow);
    font-size: 24px;
}

.logo span {
    color: var(--white);
    background: var(--text-dark);
    padding: 2px 8px;
    border-radius: 6px;
}

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.delivery-time i {
    color: var(--primary-color);
}

.delivery-time strong {
    color: var(--primary-color);
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.location:hover {
    color: var(--primary-color);
}

.location i:first-child {
    color: var(--primary-color);
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

#searchInput {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    font-size: 15px;
    transition: var(--transition);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-login,
.btn-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-light);
}

.btn-cart {
    background: var(--primary-color);
    color: var(--white);
    position: relative;
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-badge {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.banner-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.feature-tag i {
    font-size: 20px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 60px;
}

/* Sidebar */
.sidebar {
    background: var(--white);
    padding: 4px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
    height: 60px;
}

.sidebar-title {
    font-size: 15px;
    margin-right: 10px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.sidebar ul {
    list-style: none;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0px 20px;
    height: 100%;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.category-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.category-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.category-item:hover i {
    color: var(--primary-color);
}

.category-item.active {
    background: var(--primary-color);
    color: var(--white);
}

.category-item.active i {
    color: var(--white);
}

/* Content Section */
.content {
    min-height: 600px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 4px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.view-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-muted);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-chip.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1px;
}

.product-card {
    background: var(--white);
    padding: 0px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-yellow));
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image-container {
    position: relative;
    margin-bottom: 6px;
}

.product-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
}

.time-tag {
    display: none !important;
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.time-tag i {
    color: var(--primary-color);
}

.product-card h3 {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
    height: 15px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.unit {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.price {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: var(--white);
    overflow: hidden;
}

.btn-qty {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 2px 2px;
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    transition: var(--transition);
}

.btn-qty:hover {
    background: var(--primary-light);
}

.qty-display {
    padding: 2px 2px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    background: var(--primary-light);
    color: var(--primary-color);
}

.btn-add {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
}

.btn-add:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.drawer-header h3 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.drawer-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-cart i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-cart p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.cart-item-row:hover {
    background: var(--primary-light);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-unit {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
}

.drawer-footer {
    padding: 24px;
    border-top: 2px solid var(--border-color);
    background: var(--bg-light);
}

.bill-details {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.bill-details h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.bill-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 12px;
}

.free-tag {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(4px);
}

.overlay.active {
    display: block;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.app-buttons img {
    width: 140px;
    cursor: pointer;
    transition: var(--transition);
}

.app-buttons img:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
        padding: 6px;
    }
    
    .sidebar ul {
        display: flex;
        gap: 5px;
    }
    
    .category-item {
        white-space: nowrap;
        margin-bottom: 0;
    }
    
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .delivery-info {
        order: 3;
        width: 100%;
    }
    
    .search-container {
        order: 4;
        width: 100%;
        max-width: 100%;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 6px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo {
        font-size: 24px;
    }
    
    .btn-login,
    .btn-cart {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .btn-login span,
    .btn-cart span {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Search Styles */
.search-container {
    position: relative;
}

#clearSearch {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    display: none;
}

#clearSearch:hover {
    color: var(--text-dark);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-details {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.search-result-price {
    text-align: right;
}

.search-result-price-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.search-result-time {
    font-size: 12px;
    color: var(--text-muted);
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* Location Modal Styles */
.location-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.location-modal.active {
    display: flex;
}

.location-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.location-modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.location-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.location-modal-body {
    padding: 24px;
}

.current-location-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--primary-color);
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.current-location-btn:hover {
    background: var(--primary-light);
}

.current-location-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.saved-addresses {
    margin-bottom: 24px;
}

.saved-addresses h3 {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.address-card {
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.address-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.address-card.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.address-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.address-icon.home {
    background: #e3f2fd;
    color: #1976d2;
}

.address-icon.work {
    background: #f3e5f5;
    color: #7b1fa2;
}

.address-name {
    font-weight: 600;
    flex: 1;
}

.address-default {
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.address-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.add-address-btn {
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--border-color);
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.add-address-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Professional Search Dropdown */
.search-container {
    position: relative;
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    display: none;
    transition: color 0.3s;
    z-index: 2;
}

.search-clear:hover {
    color: #333;
}

.search-clear.active {
    display: block;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-height: 480px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.search-results-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    padding: 16px 20px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-results-header i {
    color: var(--primary-color);
}

.search-results-body {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fdf9;
    padding-left: 24px;
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.category-badge {
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.search-result-price-section {
    text-align: right;
    flex-shrink: 0;
}

.search-result-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.search-result-time {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.search-no-results {
    padding: 60px 20px;
    text-align: center;
}

.search-no-results i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 16px;
    display: block;
}

.search-no-results h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.search-no-results p {
    color: #999;
    font-size: 14px;
}

/* Location Modal Improvements */
.location-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.location-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.location-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.location-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.location-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.location-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.detect-location-btn {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 32px;
}

.detect-location-btn:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.15);
}

.detect-location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.detect-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.detect-location-btn.loading .detect-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.detect-text {
    flex: 1;
    text-align: left;
}

.detect-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.detect-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.addresses-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.address-card {
    padding: 18px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.address-card:hover {
    border-color: var(--primary-color);
    background: #f8fdf9;
    transform: translateX(4px);
}

.address-card.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.1);
}

.address-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.address-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.address-icon-box.home {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.address-icon-box.work {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.address-icon-box.other {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.address-info-box {
    flex: 1;
}

.address-name-row {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.default-badge {
    padding: 3px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.address-text-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.add-address-btn {
    width: 100%;
    padding: 18px;
    border: 2px dashed #bbb;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    margin-top: 16px;
}

.add-address-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fdf9;
}