:root {
    --bg: #0f172a;
    --card: rgba(30, 41, 59, 0.7);
    --primary: #6366f1;
    --accent: #fbbf24;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    padding: 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.store-status {
    margin-top: 1rem;
}

.horarios-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.open {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-badge.closed {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.horarios-details {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.horarios-details summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.horarios-details summary::-webkit-details-marker {
    display: none;
}

.horarios-details summary::before {
    content: "▸ ";
    transition: transform 0.2s;
}

.horarios-details[open] summary::before {
    transform: rotate(90deg);
}

.horarios-table {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    display: grid;
    gap: 0.25rem;
}

.horarios-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.horarios-row.today {
    color: var(--accent);
    font-weight: 600;
}

.horarios-row .dia {
    min-width: 110px;
}

.search-bar {
    position: relative;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 2rem;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-bar i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.categories-nav {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.scroll-x {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.25rem 0;
}

.scroll-x::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cat-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.btn-add {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-add:hover {
    background: #4f46e5;
}

.cart-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    z-index: 1000;
    transition: 0.3s;
}

.cart-fab:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 1rem;
    border: 2px solid var(--bg);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg);
    z-index: 2000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--border);
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.cart-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 50px;
    height: 50px;
    border-radius: 0.4rem;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
}

.cart-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.checkout-form {
    margin-bottom: 1rem;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 0.7rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: #fff;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    outline: none;
}

.checkout-form input:focus {
    border-color: var(--primary);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.85rem;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: 0.2s;
}

.checkout-btn:hover {
    background: #16a34a;
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 2rem 0;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        max-width: 100%;
    }
}