

@media (max-width: 700px) {
    .d-flex.flex-column.flex-md-row.gap-2.w-100 {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}
/* Menú de perfiles horizontal */
.profile-menu-horizontal {
    flex-direction: row !important;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-card-horizontal {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
    padding: 32px 28px 22px 28px;
    min-width: 160px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
}
.profile-card-horizontal:hover, .profile-card-horizontal:focus {
    box-shadow: 0 8px 24px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.10);
    transform: translateY(-2px) scale(1.03);
}
.profile-card-horizontal .profile-icon {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 10px;
}
.profile-card-horizontal .profile-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    margin-bottom: 2px;
    text-align: center;
}
.profile-card-horizontal .profile-role {
    font-size: 0.98rem;
    color: #444;
    text-align: center;
}

@media (max-width: 700px) {
    .profile-menu-horizontal {
        flex-direction: column !important;
        gap: 1.2rem;
    }
    .profile-card-horizontal {
        min-width: 90vw;
        min-height: 120px;
        padding: 22px 10px 16px 10px;
    }
}
/* Botón menú negro con texto blanco y bordes redondeados */
.btn-black-menu {
    background: #111;
    color: #fff !important;
    border: none;
    border-radius: 16px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    box-shadow: var(--shadow);
}
.btn-black-menu:hover, .btn-black-menu:focus {
    background: #222;
    color: #fff !important;
}
:root {
    --primary-color: #5A9EAF;
    --primary-hover: #4a8a9a;
    --text-color: #1C1C1C;
    --secondary-color: #A67658;
    --secondary-hover: #95674c;
    --white: #ffffff;
    --light-bg: #f8f8f8;
    --light-gray: #e8e8e8;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
    color-scheme: light; /* Force light mode */
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--light-bg) !important;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Utilities */
.text-primary-custom { color: var(--primary-color); }
.bg-primary-custom { background-color: var(--primary-color); color: var(--white); }
.bg-secondary-custom { background-color: var(--secondary-color); color: var(--white); }
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}
.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
}
.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}
.btn-secondary-custom:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--white);
}

/* Auth Screen */
#auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Header */
.app-header {
    background-color: var(--white);
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between !important;
    align-items: center;
}
/* ... existing styles ... */

/* Combo Grouping in Cart */
.cart-combo-group {
    background-color: #fff8e1; /* Light yellow for combos */
    border: 1px solid #ffecb3;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}
.cart-combo-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f57f17;
    margin-bottom: 5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.cart-combo-header i {
    margin-right: 5px;
}
.cart-item.is-combo {
    border-bottom: 1px dashed #ffe082;
}
.cart-item.is-combo:last-child {
    border-bottom: none;
}

.app-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

/* Categories Scroll */
.categories-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.categories-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.category-pill {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}
.category-pill.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s;
}
.product-card:active {
    transform: scale(0.98);
}
.product-card-body {
    padding: 12px;
    flex-grow: 1;
}
.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Price removed from display as requested */
.add-btn-wrapper {
    padding: 10px;
    text-align: center;
}
.btn-add-cart {
    width: 44px; /* Touch friendly */
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

/* FAB Cart */
.fab-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1050;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}
.fab-cart:hover {
    background-color: var(--secondary-hover);
    transform: scale(1.05);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    border: 2px solid var(--white);
}

/* Modal Slide-up */
.modal.slide-up .modal-dialog {
    margin: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.modal.slide-up .modal-content {
    border-radius: 20px 20px 0 0;
    border: none;
    height: 85vh; /* Takes up most of the screen */
    display: flex;
    flex-direction: column;
}
.modal.slide-up .modal-body {
    overflow-y: auto;
    flex-grow: 1;
}

/* Cart Items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}
.cart-item-controls {
    display: flex;
    align-items: center;
    margin-top: 5px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--light-gray);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.qty-val {
    margin: 0 10px;
    font-weight: 600;
}

/* Loaders, Skeletons */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    height: 150px;
    width: 100%;
    border-radius: var(--border-radius);
    background-color: var(--white);
    margin-bottom: 0;
}

/* Toast */
.toast-container {
    padding: 10px;
}

/* Animations */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.combo-option-card {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}
.combo-option-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.combo-option-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(90, 158, 175, 0.1);
    box-shadow: 0 0 0 2px var(--primary-color) inset;
}

/* Hide scrollbar for category pills wrapper */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
