/* ===== MENÚ ===== */
.gfw-menu {
    max-width: 1140px;
    margin: auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.gfw-menu h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #27ae60;
    display: inline-block;
    padding-bottom: 5px;
}

.gfw-menu-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gfw-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.gfw-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.gfw-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gfw-item-content {
    padding: 15px;
    flex: 1;
}

.gfw-item-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.gfw-item-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #27ae60;
}

.gfw-add-to-cart {
    margin-top: auto;
    background: #27ae60;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.gfw-add-to-cart:hover {
    background: #219150;
}

/* ===== MODAL ===== */
#gfw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gfw-modal-content {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    position: relative;
}

.gfw-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== CARRITO LATERAL ===== */
#gfw-side-cart {
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.gfw-side-cart-header {
    padding: 15px;
    background: #27ae60;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gfw-side-cart-items {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.gfw-side-cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.gfw-side-cart-footer .button {
    display: block;
    text-align: center;
    padding: 10px;
    background: #27ae60;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.gfw-side-cart-footer .button:hover {
    background: #219150;
}

/* ===== ICONO FLOTANTE ===== */
#gfw-cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-family: 'Poppins', sans-serif;
    z-index: 10000;
    transition: background 0.3s ease;
}

#gfw-cart-float:hover {
    background: #219150;
}

.gfw-cart-icon {
    font-size: 1.2rem;
    position: relative;
    margin-right: 8px;
}

.gfw-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
}

.gfw-cart-total-mini {
    font-weight: bold;
    font-size: 0.9rem;
}

/* ===== ANIMACIONES ===== */
@keyframes gfw-shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-2px, 0) rotate(-5deg); }
    40% { transform: translate(2px, 0) rotate(5deg); }
    60% { transform: translate(-2px, 0) rotate(-5deg); }
    80% { transform: translate(2px, 0) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.gfw-shake {
    animation: gfw-shake 0.5s ease;
}

@keyframes gfw-bubble-pop {
    0% { transform: scale(1); }
    20% { transform: scale(1.3); }
    40% { transform: scale(0.9); }
    60% { transform: scale(1.1); }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.gfw-bubble-animate {
    animation: gfw-bubble-pop 0.4s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gfw-menu-category {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gfw-menu-category {
        grid-template-columns: 1fr;
    }
}
