/* Estilos específicos para productos */
.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.product-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.product-card:hover .product-info-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-info-btn:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.1);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--color-text);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.price-cart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: var(--color-white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(117, 2, 56, 0.4);
}

.btn-add-cart:active {
    transform: translateY(-1px);
}

.btn-add-cart:active::before {
    width: 200%;
    height: 200%;
}

.btn-add-cart:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Estilo específico para botón circular con ícono */
.btn-add-cart i.fas.fa-plus {
    font-size: 1rem;
}

.product-footer .btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    flex-shrink: 0;
}

.product-footer .btn-add-cart:hover {
    background: var(--color-accent);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 15px rgba(117, 2, 56, 0.4);
}

.add-to-cart-btn {
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(188, 12, 87, 0.3);
}

.add-to-cart-btn:hover {
    background: var(--color-accent);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 15px rgba(117, 2, 56, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Categorías */
.categories-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    min-height: 48px;
    min-width: 120px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0.1;
}

.category-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(117, 2, 56, 0.3);
}

.category-btn:active {
    transform: translateY(-1px);
}

.category-btn:active::before {
    width: 200%;
    height: 200%;
}

.category-btn.active {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(117, 2, 56, 0.4);
}

/* Estado cuando cafetería cerrada */
.cafeteria-closed .product-card {
    opacity: 0.6;
    pointer-events: none;
}

.overlay-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(235, 215, 178, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.message-content {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
}

.message-content h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.message-content p {
    margin-bottom: 1.5rem;
}

.horario-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    margin-top: 1rem;
}

.horario-info small {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hora-actual {
    color: var(--color-accent) !important;
    font-weight: 600;
    margin-top: 0.5rem;
}

.message-content small {
    color: var(--color-text);
    opacity: 0.7;
}

/* Mejoras para elementos de cantidad en productos */
.demo-quantity-btn {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.demo-quantity-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.demo-quantity-btn:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(117, 2, 56, 0.4);
}

.demo-quantity-btn:active {
    transform: scale(0.9);
    background: var(--color-accent);
}

.demo-quantity-btn:active::before {
    width: 100%;
    height: 100%;
}

.demo-quantity-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mejoras para móviles */
@media (max-width: 768px) {
    .category-btn {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
        min-height: 56px;
        min-width: 140px;
    }
    
    .btn-add-cart {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        min-height: 56px;
    }
    
    .demo-quantity-btn {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .category-btn:hover,
    .btn-add-cart:hover,
    .product-card:hover,
    .demo-quantity-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .category-btn:active {
        transform: scale(0.95);
        background: var(--color-accent);
        color: var(--color-white);
    }
    
    .btn-add-cart:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    }
    
    .product-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }
    
    .demo-quantity-btn:active {
        transform: scale(0.85);
        background: var(--color-secondary);
    }
}