/* ==================== */
/* CSS Variables */
/* ==================== */
:root {
    --primary: #f97316;
    --primary-light: #fdba74;
    --primary-dark: #ea580c;
    --secondary: #fef3e2;
    --background: #fffbf5;
    --foreground: #1a1a1a;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --border: #e5e5e5;
    --success: #22c55e;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ==================== */
/* Reset & Base */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

input {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ==================== */
/* Header */
/* ==================== */
.header {
    background: var(--card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-highlight {
    color: var(--primary);
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.location i {
    color: var(--primary);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

/* ── BILLETERA NAVBAR ── */
.wallet-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff7ed;
    border: 2px solid #f97316;
    color: #ea580c;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    cursor: default;
    transition: all .2s;
}
.wallet-btn:hover { background: #ffedd5; }
.wallet-saldo { font-size: .88rem; font-weight: 900; }

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    background: var(--secondary);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 50px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    max-width: 400px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== */
/* Categories Section */
/* ==================== */
.categories {
    padding: 40px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.categories-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-card:hover,
.category-card.active {
    border-color: var(--primary);
    background: var(--secondary);
}

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

.category-icon {
    font-size: 2rem;
}

.category-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==================== */
/* Restaurants Section */
/* ==================== */
.restaurants {
    padding: 20px 0 60px;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.restaurant-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.restaurant-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.restaurant-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-open {
    background: var(--success);
    color: white;
}

.status-closed {
    background: var(--error);
    color: white;
}

.restaurant-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.restaurant-rating i {
    color: #fbbf24;
}

.restaurant-content {
    padding: 20px;
}

.restaurant-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.restaurant-category {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.restaurant-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.restaurant-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurant-meta i {
    color: var(--primary);
}

/* ==================== */
/* Restaurant Detail Page */
/* ==================== */
.restaurant-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.restaurant-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, var(--background));
}

.restaurant-info {
    padding: 0 20px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.restaurant-info .container {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.restaurant-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.restaurant-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.restaurant-info-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--secondary);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.restaurant-info-rating i {
    color: #fbbf24;
}

.restaurant-info-details {
    display: flex;
    gap: 25px;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.restaurant-info-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.restaurant-info-details i {
    color: var(--primary);
}

/* Product Categories */
.product-categories {
    padding: 30px 0 20px;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

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

.category-pill {
    padding: 10px 20px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

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

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

/* Products Grid */
.products {
    padding: 20px 0 100px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 160px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-content {
    padding: 15px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-description {
    color: var(--muted-foreground);
    font-size: 0.85rem;
    margin-bottom: 15px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;   /* ← Esto faltaba */
}


.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.add-to-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.add-to-cart-btn:disabled {
    background: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
    transform: none;
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.floating-cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.floating-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.floating-cart-count {
    background: white;
    color: var(--primary);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* ==================== */
/* Auth Modal */
/* ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 22px;
    border: 2.5px solid #f97316;
    box-shadow: 0 0 0 5px rgba(249,115,22,.10), 0 24px 64px rgba(0,0,0,.22);
    padding: 36px 32px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(24px);
    transition: var(--transition);
    scrollbar-width: thin;
    scrollbar-color: #f97316 #f1f5f9;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    color: var(--muted-foreground);
    transition: var(--transition);
}

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

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.form-group input.error {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
}

.hint {
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.btn-primary {
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

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

.btn-full {
    width: 100%;
}

.auth-switch {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ==================== */
/* Toast */
/* ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--foreground);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 300;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    background: var(--card);
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* ==================== */
/* Responsive */
/* ==================== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        max-width: 100%;
        margin-top: 10px;
    }

    .location {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-image {
        max-width: 280px;
    }

    .login-btn span {
        display: none;
    }

    .login-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }

    .restaurants-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .modal {
        margin: 20px;
        padding: 30px 20px;
    }
}

/* ==================== */
/* No Results */
/* ==================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-foreground);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--border);
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--foreground);
}
/* Estilos para botón de usuario logueado */
.login-btn.user-logged-in {
    background: var(--secondary);
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

.login-btn.user-logged-in:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Dropdown de usuario (opcional) */
.user-dropdown {
    position: relative;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.user-menu.active {
    display: block;
}

.user-menu-item {
    display: block;
    padding: 12px 20px;
    color: var(--foreground);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.user-menu-item:hover {
    background: var(--muted);
}

.user-menu-item:last-child {
    border-bottom: none;
    color: var(--error);
}
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-content hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #eee;
}
/* ==================== */
/* NAVBAR - USER DROPDOWN */
/* ==================== */

/* Contenedor del dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Botón de usuario logueado */
.login-btn.user-logged-in {
    background: var(--secondary);
    color: var(--primary);
    border: 2px solid var(--primary-light);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.login-btn.user-logged-in:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Flecha del dropdown */
.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.user-menu.active ~ #userToggleBtn .dropdown-arrow,
#userToggleBtn .dropdown-arrow {
    transition: transform 0.3s ease;
}

/* Menú desplegable */
.user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    z-index: 9999;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.user-menu.active {
    display: block;
}

/* Animación de entrada */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Información del usuario */
.user-info {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--background) 100%);
    border-bottom: 2px solid var(--border);
}

.user-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}

.user-info small {
    display: block;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Separador */
.user-menu hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* Items del menú */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--foreground);
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.user-menu-item:hover {
    background: var(--muted);
    color: var(--primary);
}

.user-menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--primary);
    transition: var(--transition);
}

.user-menu-item:hover i {
    transform: scale(1.1);
}

/* Botón de logout especial */
.logout-btn {
    color: var(--error);
}

.logout-btn i {
    color: var(--error);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.logout-btn:hover i {
    color: var(--error);
}

/* Asegurar que el username se vea bien */
#username-display {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Estado activo del botón cuando el menú está abierto */
.user-menu.active ~ #userToggleBtn,
#userToggleBtn:has(~ .user-menu.active) {
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .user-menu {
        min-width: 200px;
        right: -10px;
    }
    
    #username-display {
        display: none;
    }
    
    .login-btn.user-logged-in {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .login-btn.user-logged-in .dropdown-arrow {
        display: none;
    }
    
    .user-info strong {
        font-size: 0.85rem;
    }
    
    .user-info small {
        font-size: 0.75rem;
    }
    
    .user-menu-item {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Overlay para cerrar el menú en mobile */
@media (max-width: 768px) {
    .user-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        z-index: -1;
    }
}

/* Mejoras visuales adicionales */
.user-dropdown {
    z-index: 1000;
}

/* Efecto hover en el icono de persona */
.login-btn.user-logged-in .bi-person {
    transition: transform 0.3s ease;
}

.login-btn.user-logged-in:hover .bi-person {
    transform: scale(1.1);
}

/* Estado de focus para accesibilidad */
.login-btn.user-logged-in:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.user-menu-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background: var(--muted);
}

/* Animación sutil de la flecha cuando se abre el menú */
.user-menu.active {
    animation: slideDown 0.3s ease;
}

.user-menu.active ~ #userToggleBtn .dropdown-arrow {
    transform: rotate(180deg);
}

/* Sombra más pronunciada cuando el menú está activo */
.user-menu.active {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Efecto de ripple al hacer click (opcional) */
.user-menu-item {
    position: relative;
    overflow: hidden;
}

.user-menu-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.user-menu-item:active::after {
    width: 200px;
    height: 200px;
}

/* Indicador de estado activo en la página actual */
.user-menu-item.active {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.user-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}
/* ==================== */
/* PROFILE PAGE */
/* ==================== */

.profile-container {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.profile-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

/* Profile Card */
.profile-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.profile-avatar {
    position: relative;
    width: fit-content;
    margin: 0 auto 20px;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: 3px solid var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-edit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-info {
    text-align: center;
    margin-bottom: 25px;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 25px;
    border-top: 2px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-item strong {
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

/* Profile Sections */
.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-section {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.section-header i {
    color: var(--primary);
}

.edit-btn,
.link-btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.edit-btn {
    background: var(--secondary);
    color: var(--primary);
}

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

.link-btn {
    color: var(--primary);
}

.link-btn:hover {
    text-decoration: underline;
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--foreground);
}

.form-input {
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input:read-only {
    background: var(--muted);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--muted);
    color: var(--foreground);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-foreground);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--border);
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Preferences */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--muted);
    border-radius: var(--radius);
}

.preference-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preference-info i {
    font-size: 1.5rem;
    color: var(--primary);
}

.preference-info strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.preference-info p {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: var(--transition);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Account Actions */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--muted);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: left;
}

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

.action-btn.danger {
    color: var(--error);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.action-btn i {
    font-size: 1.2rem;
}

/* ==================== */
/* CART PAGE */
/* ==================== */

.cart-container {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.clear-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--error);
    color: white;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.clear-cart-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Cart Items */
.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.cart-item-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--muted);
    color: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

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

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

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

.quantity-btn:disabled {
    background: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Cart Summary */
.cart-summary-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-summary {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.cart-summary h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-details {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.2rem;
    margin-top: 15px;
}

.summary-row .discount {
    color: var(--success);
}

.summary-details hr {
    margin: 15px 0;
    border: none;
    border-top: 2px solid var(--border);
}

/* Delivery & Payment Options */
.delivery-options,
.payment-method {
    margin-bottom: 25px;
}

.delivery-options h4,
.payment-method h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-option:hover {
    border-color: var(--primary-light);
    background: var(--secondary);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.radio-option input[type="radio"]:checked ~ .radio-content {
    color: var(--primary);
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.radio-content i {
    font-size: 1.5rem;
    color: var(--primary);
}

.radio-content strong {
    display: block;
    font-size: 0.95rem;
}

.radio-content p {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

/* Order Notes */
.order-notes {
    margin-bottom: 25px;
}

.order-notes label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.order-notes textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.order-notes textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-bottom: 15px;
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cart-info {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Empty Cart */
.empty-cart {
    padding: 100px 0;
}

.empty-cart-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 6rem;
    color: var(--border);
    margin-bottom: 30px;
}

.empty-cart-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.empty-cart-content p {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        position: static;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
}
/* Estilos para los campos en fila (grado y grupo) */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1rem;
    background-color: white;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.form-control:invalid {
    border-color: #e74c3c;
}

/* Estilo para los select */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    border: 2px solid #f97316;
    border-radius: 14px;
    color: #374151;
    font-size: 0.95rem;
    cursor: pointer;
}

select.form-control:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

/* Modal de registro: mismo estilo flotante */
#authModal .modal {
    max-width: 460px;
    width: 92%;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 15px;
    }
}
/* search.css - Estilos para el buscador */
.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: #4a6fa5;
    background-color: white;
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
}

/* Resultados de búsqueda */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.search-results-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.search-results-header span {
    font-weight: 600;
    color: #334155;
}

.search-results-header small {
    color: #64748b;
    font-size: 12px;
}

.search-results-list {
    padding: 10px;
}

/* Item de resultado */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.result-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #94a3b8;
    font-size: 24px;
}

.result-item-info {
    flex: 1;
    min-width: 0;
}

.result-item-title {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-item-title .highlight {
    background: #fffbeb;
    color: #d97706;
    padding: 0 2px;
    border-radius: 3px;
}

.result-item-description {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.result-item-description .highlight {
    background: #f0f9ff;
    color: #0369a1;
    padding: 0 2px;
    border-radius: 3px;
}

.result-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-item-price {
    font-weight: 700;
    color: #059669;
    font-size: 14px;
}

.result-item-category {
    font-size: 12px;
    color: #f1b163;
    background: #eef2ff;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Botón agregar */
.result-item-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #4a6fa5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    flex-shrink: 0;
}

.result-item-add:hover {
    background: #3a5a85;
}

.result-item-add:active {
    transform: scale(0.98);
}

.result-item-add i {
    font-size: 12px;
}

/* Estados de carga y sin resultados */
.search-loading {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top-color: #4a6fa5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}

.no-results i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.no-results p {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.no-results small {
    font-size: 14px;
    color: #94a3b8;
}

.search-error {
    padding: 40px 20px;
    text-align: center;
    color: #dc2626;
}

.search-error i {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Notificaciones rápidas */
.quick-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

.quick-notification-success {
    background: #10b981;
}

.quick-notification-error {
    background: #ef4444;
}

.quick-notification-warning {
    background: #f59e0b;
}

/* Animaciones */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .search-results {
        position: fixed;
        left: 20px;
        right: 20px;
        top: 100px;
        max-height: 70vh;
    }
    
    .search-result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .result-item-image {
        margin: 0 auto 10px;
    }
    
    .result-item-add {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}
/* Estilos mejorados para resultados de búsqueda */
.result-item-image {
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1;
}

.result-item-restaurant {
    margin: 3px 0 5px 0;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-item-restaurant i {
    font-size: 11px;
}

.result-item-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-item-original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
}

.price-discount {
    color: #ef4444;
    font-weight: bold;
}

.result-item-stock {
    font-size: 11px;
    color: #10b981;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.result-item-stock i {
    font-size: 10px;
}

.result-item-type {
    font-size: 12px;
    color: #f6a95c;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.result-item-view {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f6b85c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    flex-shrink: 0;
}

.result-item-view:hover {
    background: #edab3a;
}

.result-item-add.added {
    background: #10b981;
}

.result-item-add.added:hover {
    background: #10b981;
}

.result-item-add:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Para productos no disponibles */
.result-item-add:disabled span {
    opacity: 0.7;
}

/* Estilo para restaurantes */
.result-restaurant {
    border-left: 4px solid #f6b85c;
}

/* Animación al agregar */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.result-item-add:not(:disabled):active {
    animation: pulse 0.2s ease;
}

/* ===== BOTÓN OWNER ===== */
.owner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f97316, #c8590a);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 6px -1px rgba(246, 169, 92, 0.549);
}

.owner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ed933a, #d98c28);
    transition: left 0.3s ease;
    z-index: -1;
}

.owner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(246, 166, 92, 0.3);
}

.owner-btn:hover::before {
    left: 0;
}

.owner-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(246, 154, 92, 0.2);
}

.owner-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.owner-btn:hover i {
    transform: scale(1.1);
}

/* Variante secundaria */
.owner-btn.secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.owner-btn.secondary::before {
    background: linear-gradient(135deg, #059669, #047857);
}

.owner-btn.secondary:hover {
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* Variante outline */
.owner-btn.outline {
    background: transparent;
    color: #ea580c;
    border: 2px solid #ea580c;
    box-shadow: none;
}

.owner-btn.outline::before {
    background: linear-gradient(135deg, #f97316, #d15d0a);
}

.owner-btn.outline:hover {
    color: white;
    box-shadow: 0 10px 15px -3px rgba(243, 142, 10, 0.878);
}

/* Tamaños */
.owner-btn.small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.owner-btn.large {
    padding: 12px 24px;
    font-size: 1rem;
}

.owner-btn.xlarge {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Estado disabled */
.owner-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.owner-btn:disabled:hover::before {
    left: -100%;
}

/* Efecto de onda al hacer clic */
.owner-btn::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.owner-btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
/* ===== IMAGEN DEL RESTAURANTE ===== */
.restaurant-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--muted);
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* CAPA OSCURA SUPERIOR PARA LEGIBILIDAD */
.restaurant-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
    z-index: 1;
    pointer-events: none;
}

/* ===== RATING PEQUEÑO EN ESQUINA SUPERIOR DERECHA ===== */
.restaurant-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(4px);
}

.restaurant-rating i {
    color: #fbbf24;
    font-size: 0.7rem;
}

/* ===== ESTADO PEQUEÑO EN ESQUINA SUPERIOR IZQUIERDA ===== */
.restaurant-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--foreground);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(4px);
}

.status-open {
    color: var(--success);
}

.status-closed {
    color: var(--error);
}

.restaurant-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-open .restaurant-status::before {
    background: var(--success);
}

.status-closed .restaurant-status::before {
    background: var(--error);
}

/* ===== FONDO BLANCO PARA LAS TARJETAS ===== */
.restaurant-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

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

/* ===== CONTENIDO DE LA TARJETA ===== */
.restaurant-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--card); /* Fondo blanco */
}

.restaurant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 6px;
    line-height: 1.3;
}

.restaurant-description {
    color: var(--muted-foreground);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* ===== CATEGORÍA (MUY DISCRETA) ===== */
.restaurant-category {
    display: inline-block;
    background: var(--muted);
    color: var(--muted-foreground);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ===== META INFO ===== */
.restaurant-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.restaurant-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.restaurant-meta i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .restaurant-image {
        height: 160px;
    }
    
    .restaurant-rating {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .restaurant-status {
        top: 8px;
        left: 8px;
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .restaurant-rating i {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .restaurant-rating,
    .restaurant-status {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
    
    .restaurant-rating i {
        font-size: 0.6rem;
    }
}


/* ====================================
   CARRUSEL DE IMÁGENES EN PRODUCTOS
   ==================================== */
.product-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f5f5f5;
    height: 180px;
}
.carousel-track {
    position: relative;
    height: 100%;
}
.carousel-slide {
    display: none;
    width: 100%;
    height: 180px;
}
.carousel-slide.active {
    display: block;
}
.carousel-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    font-size: 20px;
    border-radius: 50%;
    z-index: 2;
    line-height: 1;
    transition: background .2s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.7); }
.carousel-btn.prev { left: 6px; }
.carousel-btn.next { right: 6px; }
.carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background .2s;
}
.carousel-dot.active { background: white; }


/* ============== HERO LOGO ============== */
.hero-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.hero-logo {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.hero-brand {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}
.hero-brand-hi {
    color: #ffbb33;
}


/* ═══════════════════════════════════════════
   PERFIL — mini pedidos recientes
═══════════════════════════════════════════ */
.perfil-order-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}
.perfil-order-mini:last-child { border-bottom: none; }

.pom-left  { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pom-img   { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

.pom-info  { min-width: 0; }
.pom-tienda{ font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pom-items { font-size: .78rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pom-fecha { font-size: .74rem; color: #aaa; margin-top: 2px; }

.pom-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

.pom-badge {
    font-size: .74rem; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
    white-space: nowrap;
}
.pom-total { font-size: .95rem; font-weight: 700; color: #f97316; }

.pom-rate-btn {
    background: #fff7ed; color: #f97316;
    border: 1px solid #fed7aa;
    border-radius: 20px; padding: 4px 12px;
    font-size: .75rem; font-weight: 700;
    cursor: pointer; transition: background .15s;
    white-space: nowrap;
}
.pom-rate-btn:hover { background: #ffedd5; }

.pom-rated { font-size: .74rem; color: #10b981; font-weight: 600; }

/* ═══════════════════════════════════════════
   PEDIDOS — diseño mejorado v2
═══════════════════════════════════════════ */
.orders-page-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}
.orders-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.orders-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.orders-page-title h1 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.orders-page-title .back-btn { background: #f5f5f5; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: .95rem; }

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    color: #aaa;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all .15s;
}
.refresh-indicator:hover { background: #fff7ed; color: #f97316; border-color: #fed7aa; }
.refresh-indicator i { color: #f97316; }
.refresh-indicator.spinning i { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.orders-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
}
.orders-filter-bar::-webkit-scrollbar { display: none; }

.ofilter-btn {
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    background: white;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    color: #555;
}
.ofilter-btn.active {
    background: #f97316;
    border-color: #f97316;
    color: white;
}

/* Order card v2 */
.order-card-v2 {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    margin-bottom: 14px;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s;
    cursor: pointer;
}
.order-card-v2:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.ocv2-header {
    display: flex;
    align-items: center;
    padding: 14px 16px 10px;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.ocv2-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.ocv2-title { flex: 1; min-width: 0; }
.ocv2-tienda { font-weight: 700; font-size: .95rem; }
.ocv2-fecha  { font-size: .76rem; color: #aaa; margin-top: 1px; }
.ocv2-badge  {
    font-size: .76rem; font-weight: 700;
    padding: 4px 11px; border-radius: 20px;
    white-space: nowrap;
}

.ocv2-body {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ocv2-items {
    flex: 1;
    font-size: .82rem;
    color: #666;
}
.ocv2-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f97316;
    flex-shrink: 0;
}

/* Timeline steps */
.ocv2-timeline {
    display: flex;
    align-items: center;
    padding: 8px 16px 12px;
    gap: 0;
}
.ocv2-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.ocv2-step::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.ocv2-step:last-child::after { display: none; }
.ocv2-step.done::after { background: #f97316; }

.ocv2-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem;
    color: white;
    position: relative; z-index: 1;
    transition: background .3s;
}
.ocv2-step.done   .ocv2-dot { background: #f97316; }
.ocv2-step.active .ocv2-dot { background: #f97316; box-shadow: 0 0 0 4px rgba(249,115,22,.2); animation: pulse 1.5s infinite; }
.ocv2-step.cancel .ocv2-dot { background: #ef4444; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 4px rgba(249,115,22,.2)}50%{box-shadow:0 0 0 8px rgba(249,115,22,.05)} }

.ocv2-step-lbl { font-size: .65rem; color: #aaa; margin-top: 4px; text-align: center; }
.ocv2-step.done .ocv2-step-lbl,
.ocv2-step.active .ocv2-step-lbl { color: #f97316; font-weight: 600; }

.ocv2-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px 12px;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-detail-v2 {
    padding: 7px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    color: #444;
    transition: background .15s;
}
.btn-detail-v2:hover { background: #ebebeb; }
.btn-rate-v2 {
    padding: 7px 16px;
    background: #fff7ed;
    color: #f97316;
    border: 1.5px solid #fed7aa;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    display: flex; align-items: center; gap: 5px;
}
.btn-rate-v2:hover { background: #ffedd5; }

.orders-empty-v2 {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.orders-empty-v2 i { font-size: 3rem; display: block; margin-bottom: 14px; opacity: .3; }
.orders-empty-v2 h3 { font-size: 1.1rem; color: #555; margin-bottom: 6px; }


/* ═══════════════════════════════════════════
   TOP PRODUCTS — Lo más comprado
═══════════════════════════════════════════ */
.top-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
}
.top-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.top-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,.13);
}
.top-card-img {
  position: relative;
  height: 130px;
  overflow: hidden;
  background: #f8f9fa;
}
.top-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.top-card:hover .top-card-img img { transform: scale(1.05); }
.top-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #f97316;
  color: #fff;
  font-size: .63rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .03em;
}
.new-badge { background: #22c55e; }
.top-card-body { padding: 10px 12px 12px; }
.top-card-name {
  font-weight: 700;
  font-size: .82rem;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.top-card-store {
  font-size: .68rem;
  color: #94a3b8;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-card-price {
  font-weight: 900;
  color: #f97316;
  font-size: .9rem;
}
.top-card-avail {
  font-size: .62rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
}
.avail-ok { background: #f0fdf4; color: #16a34a; }
.avail-no { background: #fef2f2; color: #dc2626; }

/* ═══════════════════════════════════════════
   CATEGORY BUTTONS — nueva versión compacta
═══════════════════════════════════════════ */
.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid #e4e4e7;
  border-radius: 30px;
  background: #fff;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: #52525b;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
  flex-shrink: 0;
}
.category-btn:hover {
  border-color: #f97316;
  color: #f97316;
  background: #fff8f3;
}
.category-btn.active {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
  box-shadow: 0 3px 12px rgba(249,115,22,.3);
}
.cat-ic { font-size: 1rem; }
.cat-lbl { font-size: .8rem; }
.cat-cnt {
  font-size: .65rem;
  background: rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 1px 6px;
}
.category-btn.active .cat-cnt { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════════
   SKELETONS — loading state
═══════════════════════════════════════════ */
.skel {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 6px;
}
.skel-img  { width: 100%; height: 160px; border-radius: 10px 10px 0 0; }
.skel-line { display: block; }
.rest-skeleton {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════
   CARRITO — grupos por tienda
═══════════════════════════════════════════ */
.store-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 8px;
  margin-bottom: 4px;
  border-bottom: 2px solid #f97316;
}
.store-group-name {
  font-size: .88rem;
  font-weight: 800;
  color: #111;
}
.store-group-count {
  font-size: .7rem;
  background: #fff3e8;
  color: #f97316;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 700;
  margin-left: 8px;
}

/* Nota del item */
.item-nota {
  font-size: .74rem;
  color: #f97316;
  font-style: italic;
  margin-top: 2px;
}

/* Caja de comentario por tienda */
.store-nota-box {
  background: #fafafa;
  border: 1.5px dashed #f97316;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0 16px;
}
.store-nota-input {
  width: 100%;
  border: 1.5px solid #e4e4e7;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .82rem;
  font-family: inherit;
  resize: none;
  outline: none;
  background: #fff;
  color: #374151;
  transition: border-color .18s;
  box-sizing: border-box;
}
.store-nota-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.store-nota-input::placeholder { color: #94a3b8; }

/* ── Registro: todos los inputs/selects iguales al login ── */
#tReg input, #tReg select,
#signupForm input, #signupForm select {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    box-sizing: border-box;
}
#tReg input:focus, #tReg select:focus,
#signupForm input:focus, #signupForm select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
#tReg select, #signupForm select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 38px;
    cursor: pointer;
}
#tReg .frow, #signupForm .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
