:root {
    --primary: #5e2ca5;
    --primary-dark: #3d1f71;
    --accent: #ffc300;
    --text: #1a1a1a;
    --text-light: #666;
    --bg: #f9f9f9;
    --surface: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --content-max: 1400px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.top-strip-banner {
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.free-delivery-strip {
    background: #fff4d6;
    color: #d8282a;
}

.closed-strip {
    background: #d8282a;
    color: white;
}

#cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 51, 82, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-consent-card {
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cookie-consent-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.cookie-consent-card h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--primary-dark, #0d3352);
}

.cookie-consent-card p {
    margin: 0 0 14px;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.5;
}

.cookie-consent-link {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: var(--primary, #0d3352);
    text-decoration: underline;
}

.cookie-consent-btn {
    width: 100%;
    background: var(--accent, #ffcc00);
    color: var(--primary-dark, #0d3352);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent-btn:hover {
    filter: brightness(0.95);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 16px;
    max-width: var(--content-max);
}

.logo-image {
    height: 40px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    color: var(--accent);
    letter-spacing: -1px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-links {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.account-greeting {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.account-greeting:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: underline;
}

.account-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.account-link:hover {
    background: rgba(255,255,255,0.15);
}

.account-link.primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.account-link.primary:hover {
    background: #ffcf33;
}

.location-display {
    background: transparent;
    color: var(--primary-dark);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 150px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.location-display span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-display:hover {
    background: rgba(94,44,165,0.08);
}

.eta-badge {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.eta-badge.hidden {
    display: none;
}

.cart-icon {
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-icon:hover {
    background: rgba(255,255,255,0.25);
}

.badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    border-radius: 999px;
    width: 22px;
    height: 22px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 22px;
    position: absolute;
    top: -8px;
    right: -8px;
    font-weight: 700;
}

.address-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    gap: 10px;
}

.address-bar .icon {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.address-input {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.9rem;
}

.address-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-bar {
    display: flex;
    gap: 4px;
    align-items: center;
    max-width: var(--content-max);
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 5px 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.search-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 8px 10px;
    font-size: 0.85rem;
    background: transparent;
    color: var(--text);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--accent);
    border: none;
    color: var(--primary-dark);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.search-btn:hover {
    background: #ffcf33;
    transform: scale(1.05);
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #7b3fd4 100%);
    padding: 40px 20px;
}

.hero-banner.hidden {
    display: none;
}

.hero-content {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    text-align: center;
}

.hero-logo {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-logo span {
    color: var(--primary);
}

.hero-text h1 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.hero-location-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero-location-card h3 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    color: var(--text);
}

.hero-divider {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 12px 0;
}

.locate-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.locate-btn:hover {
    background: var(--primary-dark);
}

.locate-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.locate-btn.secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.locate-btn.secondary:hover {
    background: rgba(94,44,165,0.05);
}

.locate-btn.small {
    width: auto;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.district-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 769px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2.4rem;
        max-width: 480px;
    }
}

.app-main {
    flex: 1;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 24px 0 18px;
    color: var(--text);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.category-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-card:hover {
    border-color: var(--primary);
    background: rgba(94, 44, 165, 0.05);
    transform: translateY(-2px);
}

.category-card.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    display: block;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.product-item {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.out-of-stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4757;
    transition: transform 0.15s, background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.fav-btn:hover {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4757;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 1;
}

.price-strike {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.82em;
    margin-right: 4px;
}

.discount-section .product-item {
    border-color: #ffd7db;
}

.fav-btn.active {
    background: #ff4757;
    color: white;
}

.product-info {
    padding: 12px;
}

.product-info h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.product-desc {
    margin: 0 0 10px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    flex-shrink: 0;
}

.kg-select-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.kg-select {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    background: white;
}

.add-btn:hover {
    background: var(--primary-dark);
}

.no-products {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.order-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.order-section h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.quick-order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg);
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    border-left: 4px solid;
}

.alert.success {
    background: #ecfbec;
    color: #0d7a43;
    border-color: #0d7a43;
}

.alert.error {
    background: #ffeceb;
    color: #b42318;
    border-color: #b42318;
}

.app-footer {
    background: var(--primary);
    border-top: 1px solid var(--primary-dark);
    padding: 12px 0;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
}

.nav-item {
    position: relative;
    text-align: center;
    padding: 8px 6px;
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 12px;
    background: transparent;
}

.nav-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    display: block;
}

.nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(255,255,255,0.25);
}

.nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.12);
}

.nav-item.active {
    color: white;
    background: var(--primary-dark);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 0.65rem;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
}

.site-footer {
    background: #0d3352;
    border-top: 1px solid #144a73;
    padding: 36px 16px 28px;
    margin-top: 24px;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-columns {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 260px;
    gap: 24px;
    text-align: left;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    width: fit-content;
}

.footer-col a {
    color: #c7d6e2;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-col a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-contact-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 16px;
}

.footer-contact-empty {
    color: #93a8b9;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-col-title {
        margin: 0 auto 4px;
    }
}

.footer-app-title {
    margin: 0 0 10px;
    font-weight: 700;
    color: #fff;
}

.app-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-meal-cards {
    text-align: center;
    margin-top: 8px;
}

.meal-card-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.meal-card-badge {
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #101014;
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s;
}

.app-badge:hover {
    transform: translateY(-1px);
}

.app-badge.disabled {
    opacity: 0.55;
    cursor: default;
}

.app-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.app-badge-text small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.85;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: #9fb3c4;
}

.footer-credit {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #9fb3c4;
    opacity: 0.8;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 90px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 500;
    transition: transform 0.15s;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.cart-modal.hidden {
    display: none;
}

.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    max-width: 400px;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 16px rgba(0,0,0,0.15);
}

.cart-sidebar:not(.hidden) {
    transform: translateX(0);
}

.cart-sidebar.hidden {
    pointer-events: none;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: white;
}

.cart-sidebar-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-sidebar-header .close-btn {
    color: white;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

#cart-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#checkout-view {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 0;
}

#cart-view.hidden,
#checkout-view.hidden {
    display: none;
}

.checkout-back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 0 0 14px;
    text-align: left;
    font-size: 0.9rem;
}

.checkout-back-btn:hover {
    text-decoration: underline;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.cart-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.item-details {
    flex: 1;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 6px;
    margin-right: 8px;
}

.qty-btn {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.qty-value {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.item-name {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.item-price {
    margin: 4px 0 0;
    color: var(--primary);
    font-weight: 700;
}

.item-remove {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-remove:hover {
    background: #fdecec;
    color: #c0392b;
    border-color: #f0b8b8;
}

.cart-sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    background: var(--bg);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 10px 0 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.vat-info {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-light);
    margin: -8px 0 12px;
}

.delivery-nudge {
    background: #fff4d6;
    color: #8a5a00;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.delivery-nudge.success {
    background: #ecfbec;
    color: #0d7a43;
}

.delivery-nudge.hidden {
    display: none;
}

#cart-total-price {
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

/* District Modal Styles */
.district-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: flex-end;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.district-modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.district-content {
    background: white;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 16px 16px 0 0;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}

.district-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: white;
}

.district-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.district-header .close-btn {
    color: white;
}

.district-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.district-search-input {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.district-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94,44,165,0.1);
}

.district-list {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 12px 16px;
}

.district-city {
    margin-bottom: 20px;
}

.city-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
    padding: 4px 0;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.neighborhood-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--text);
}

.neighborhood-btn:hover {
    border-color: var(--primary);
    background: rgba(94,44,165,0.05);
    color: var(--primary);
}

.neighborhood-btn:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Admin Page */
.admin-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.admin-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.admin-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    flex: 0 0 230px;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-tab-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.admin-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.admin-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.admin-menu-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-menu-overlay {
    display: none;
}

@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-content {
        width: 100%;
        min-width: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-menu-toggle {
        display: inline-flex;
    }

    .admin-tabs {
        flex-direction: column;
        flex-wrap: nowrap;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        max-height: none;
        overflow-y: auto;
        background: var(--surface);
        z-index: 2000;
        padding: 70px 16px 16px;
        margin: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 2px 0 16px rgba(0,0,0,0.2);
        border-bottom: none;
    }

    .admin-tabs.open {
        transform: translateX(0);
    }

    .admin-tab-btn {
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }

    .admin-menu-overlay.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }
}

.admin-tab-panel .section-title:first-child {
    margin-top: 0;
}

.admin-page h1 {
    margin: 0 0 4px;
    color: var(--primary);
}

.admin-page .section-title {
    margin-top: 40px;
}

.section-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: -8px 0 16px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.orders-table th,
.orders-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.orders-table th {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

@media (max-width: 900px) {
    .orders-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-yeni {
    background: #fff4d6;
    color: #8a5a00;
}

.status-yolda {
    background: #e0ecff;
    color: #1d4ed8;
}

.status-teslim-edildi {
    background: #ecfbec;
    color: #0d7a43;
}

.status-aktif {
    background: #ecfbec;
    color: #0d7a43;
}

.status-pasif {
    background: #f1f1f1;
    color: #666;
}

.coupon-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.coupon-row input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
}

.coupon-message {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.coupon-message.success {
    color: #0d7a43;
}

.coupon-message.error {
    color: #b91c1c;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-sub {
    font-size: 0.78rem;
    color: #888;
}

.payment-status-bekleniyor {
    background: #fff4d6;
    color: #8a5a00;
}

.payment-status-bildirildi {
    background: #e0ecff;
    color: #1d4ed8;
}

.payment-status-alındı,
.payment-status-onaylandı {
    background: #ecfbec;
    color: #0d7a43;
}

.inline-confirm-form {
    margin-top: 4px;
}

.kasa-form {
    max-width: 340px;
}

.eft-reminder-link {
    display: inline-block;
    margin-top: 8px;
}

/* Kurye (Courier) Portal */
.kurye-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #7b3fd4 100%);
}

.kurye-login-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.kurye-login-card h1 {
    margin: 0 0 4px;
    color: var(--primary);
}

/* Customer Auth Pages */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #7b3fd4 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    text-align: center;
}

.auth-card.wide-card {
    max-width: 640px;
    text-align: left;
}

.error-page-card {
    max-width: 440px;
}

.error-page-code {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin: 8px 0;
    -webkit-text-stroke: 2px var(--primary);
}

.error-page-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.auth-card.wide-card h1,
.auth-card.wide-card .auth-switch,
.auth-card.wide-card .logo {
    text-align: center;
    display: block;
}

.about-content {
    line-height: 1.7;
    color: var(--text);
    margin: 16px 0;
}

.auth-card .logo {
    color: var(--primary);
    font-size: 1.5rem;
}

.auth-card h1 {
    margin: 16px 0 20px;
    color: var(--text);
    font-size: 1.3rem;
}

.auth-card .quick-order-form {
    text-align: left;
}

.auth-switch {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.payment-result-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 16px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(94,44,165,0.05);
}

.payment-option input {
    accent-color: var(--primary);
}

.iban-info {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-top: -6px;
}

.iban-info p {
    margin: 4px 0;
    font-size: 0.85rem;
}

.iban-info .iban-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.iban-info.hidden {
    display: none;
}

.kurye-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.kurye-topbar h1 {
    margin: 0;
    color: var(--primary);
}

.kurye-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

a.account-back.remove-btn {
    background: var(--primary);
    text-decoration: none;
    display: inline-block;
}

a.account-back.remove-btn:hover {
    background: var(--primary-dark);
}

.kurye-order-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.kurye-order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.kurye-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kurye-order-detail {
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--text);
}

.kurye-order-detail.small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.kurye-order-detail.total {
    font-weight: 700;
    color: var(--primary);
}

.balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 480px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.balance-label {
    color: var(--text-light);
    font-weight: 600;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.loyalty-card {
    background: linear-gradient(135deg, var(--primary) 0%, #7b3fd4 100%);
    color: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(94,44,165,0.3);
    max-width: 480px;
    margin-bottom: 24px;
}

.loyalty-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.loyalty-label {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}

.loyalty-code-value {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent);
}

.loyalty-hint {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.loyalty-ring {
    --percent: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(var(--accent) calc(var(--percent) * 1%), rgba(255,255,255,0.2) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loyalty-ring-value {
    background: var(--primary-dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.loyalty-points-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.loyalty-points-big {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.loyalty-points-total {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
}

.loyalty-progress {
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.loyalty-progress-fill {
    background: var(--accent);
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.loyalty-message {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.loyalty-reward-banner {
    background: rgba(255,195,0,0.15);
    border: 1px solid var(--accent);
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.map-link {
    display: inline-block;
    margin: 6px 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
}

.kurye-status-form {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.kurye-status-form select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.orders-table tbody tr:hover {
    background: var(--bg);
}

.region-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.region-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.region-il-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 16px;
    box-shadow: var(--shadow);
}

.region-il-card summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.region-il-card summary::-webkit-details-marker {
    display: none;
}

.region-il-card summary form {
    margin: 0;
}

.ilce-count {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.85rem;
}

.ilce-list {
    list-style: none;
    margin: 0;
    padding: 0 0 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.ilce-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.ilce-list li form {
    margin: 0;
}

.add-ilce-form {
    display: flex;
    gap: 8px;
    padding-bottom: 14px;
}

.add-ilce-form input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
}

.region-admin-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.settings-form {
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

@media (min-width: 700px) {
    .settings-form {
        max-width: 900px;
    }

    form.settings-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px 24px;
        align-items: start;
    }

    form.settings-form > .form-group-inline,
    form.settings-form > .form-group:has(textarea),
    form.settings-form > .form-group:has(input[type="file"]),
    form.settings-form > h3,
    form.settings-form > hr,
    form.settings-form > p,
    form.settings-form > button[type="submit"],
    form.settings-form > #manual-payment-fields,
    form.settings-form > #iyzico-payment-fields {
        grid-column: 1 / -1;
    }

    #manual-payment-fields,
    #iyzico-payment-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px 24px;
    }

    #manual-payment-fields > .form-group-inline,
    #iyzico-payment-fields > .form-group-inline,
    #iyzico-payment-fields > p {
        grid-column: 1 / -1;
    }
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.settings-subheading {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--primary);
}

.test-send-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin-top: 16px;
}

.delete-confirm summary {
    cursor: pointer;
    list-style: none;
    display: inline-block;
}

.delete-confirm summary::-webkit-details-marker {
    display: none;
}

.delete-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    min-width: 180px;
}

.delete-confirm-form input[type="text"],
.delete-confirm-form input[type="password"] {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
}

.form-group-inline label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.order-notif-banner {
    position: fixed;
    top: 16px;
    right: 16px;
    left: 16px;
    z-index: 999;
    max-width: 520px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-weight: 600;
    animation: orderNotifSlideIn 0.3s ease-out;
}

.order-notif-banner.hidden {
    display: none;
}

.order-notif-banner button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.order-notif-banner button:hover {
    background: rgba(255, 255, 255, 0.35);
}

@keyframes orderNotifSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#manual-payment-fields.hidden,
#iyzico-payment-fields.hidden {
    display: none;
}

.form-group.hidden,
div.hidden {
    display: none;
}

.region-admin-form h3 {
    margin-top: 0;
}

.remove-btn.small,
.submit-btn.small {
    padding: 4px 10px;
    font-size: 0.8rem;
    margin-top: 0;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #ff3838;
}

@media (min-width: 769px) {
    .region-admin-grid {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }

    .region-admin-form {
        position: sticky;
        top: 20px;
    }
}

/* Desktop Layout */
@media (min-width: 769px) {
    .app-main {
        flex-direction: row;
        align-items: flex-start;
    }

    .categories-section {
        width: 200px;
        flex-shrink: 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        text-align: left;
    }

    .category-card p {
        margin: 0;
    }

    .products-section {
        flex: 1;
    }

    .products-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .order-section {
        width: 320px;
        position: sticky;
        top: 80px;
        height: fit-content;
    }

    /* Cart Sidebar Desktop Styles */
    .cart-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        max-width: 380px;
        width: 380px;
        border-left: 1px solid var(--border);
        transform: translateX(0);
    }

    .cart-sidebar.hidden {
        transform: translateX(100%);
    }

    .cart-modal {
        display: none !important;
    }

    .district-modal {
        align-items: center;
        justify-content: center;
    }

    .district-content {
        max-height: 600px;
        max-width: 600px;
        border-radius: 16px;
    }

    .app-footer {
        display: none;
    }

    .whatsapp-float {
        bottom: 24px;
    }
}

@media (max-width: 768px) {
    .app-main {
        padding: 12px;
    }

    .search-bar {
        border-radius: 14px;
        padding: 6px 8px;
        box-shadow: 0 3px 12px rgba(0,0,0,0.16);
    }

    .search-input {
        padding: 10px 10px;
        font-size: 0.95rem;
    }

    .search-btn {
        padding: 10px 14px;
        font-size: 1rem;
    }

    .location-display {
        max-width: 110px;
        font-size: 0.8rem;
    }

    .cart-icon {
        display: none;
    }

    .hero-banner {
        padding: 20px 16px;
    }

    .hero-content {
        gap: 16px;
    }

    .hero-logo {
        font-size: 1.1rem;
        padding: 6px 12px;
        margin-bottom: 8px;
    }

    .hero-text h1 {
        font-size: 1.3rem;
    }

    .hero-location-card {
        padding: 16px;
    }

    .account-link {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .categories-section .section-title {
        margin: 8px 0 10px;
    }

    .categories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
        gap: 8px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 16px;
    }

    .category-card {
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px;
        font-size: 0.72rem;
        line-height: 1.15;
        text-align: center;
    }

    .category-card p {
        margin: 0;
    }

    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .products-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .nav-item {
        font-size: 0.62rem;
        padding: 6px 4px;
    }

    .footer-nav {
        gap: 4px;
        padding: 6px;
    }
}
