/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.modal-close:hover {
    background: #fee;
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
}

.modal-product-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-category {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-product-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

.modal-product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #667eea;
}

.modal-product-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.modal-features h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 0.5rem 0;
    padding-left: 3rem;
    position: relative;
    color: #4b5563;
    line-height: 1.5;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0.25rem;
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-add-cart,
.btn-whatsapp-product {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-whatsapp-product {
    background: #25d366;
    color: white;
}

.btn-whatsapp-product:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ===== SHOPPING CART ===== */
.cart-float-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
}

.cart-modal-content {
    max-width: 600px;
}

.cart-modal-content h2 {
    padding: 2rem;
    padding-bottom: 1rem;
    margin: 0;
    font-size: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.cart-items {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.cart-item-category {
    font-size: 0.75rem;
    color: #6b7280;
}

.cart-item-remove {
    background: #fee;
    border: none;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.cart-item-remove:hover {
    background: #ef4444;
    color: white;
}

.cart-empty {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.btn-quote-whatsapp {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-quote-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .cart-float-btn {
        top: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: 1rem;
        gap: 1rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .modal-image-section {
        padding: 1rem;
        min-height: 200px;
    }

    .modal-product-image {
        max-height: 200px;
    }

    .modal-product-name {
        font-size: 1.25rem;
    }

    .modal-product-price {
        font-size: 1.25rem;
    }

    .modal-product-description {
        font-size: 0.9375rem;
    }

    .modal-features h3 {
        font-size: 1rem;
    }

    .modal-features li {
        font-size: 0.9375rem;
        padding: 0.375rem 0;
    }

    .btn-add-cart,
    .btn-whatsapp-product {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }

    .cart-float-btn {
        width: 52px;
        height: 52px;
        bottom: 70px;
    }

    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.6875rem;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-item-name {
        font-size: 0.9375rem;
    }

    .cart-item-category {
        font-size: 0.6875rem;
    }

    .cart-modal-content h2 {
        font-size: 1.125rem;
        padding: 1.25rem;
    }

    .cart-items {
        padding: 0.75rem;
    }

    .cart-item {
        padding: 0.625rem;
        gap: 0.75rem;
    }
}