/* assets/css/style.css */

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #1a1a2e;
    --success-color: #27ae60;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* Header */
.header {
    background: var(--dark-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo i {
    color: var(--primary-color);
}

.btn-cart {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s;
}

.btn-cart:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-cart .badge {
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.banner .btn {
    background: white;
    color: var(--dark-color);
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 30px;
    transition: all 0.3s;
}

.banner .btn:hover {
    transform: scale(1.05);
    background: var(--light-color);
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
    border-radius: 2px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
    margin-bottom: 25px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.badge-destaque {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-info {
    padding: 15px;
}

.product-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
}

.product-short-desc {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4rem;
}

.product-category {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Cart Modal */
.cart-items-list {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #777;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    background: #f0f0f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-qty:hover {
    background: var(--primary-color);
    color: white;
}

.qty-value {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 70px;
    text-align: right;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove-item:hover {
    color: var(--primary-color);
}

.cart-total {
    font-size: 1.2rem;
    padding: 10px 0;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark-color);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    color: var(--success-color);
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .banner h2 {
        font-size: 1.8rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .product-image {
        height: 140px;
    }
    
    .category-filter {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart-item-info {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info h5 {
        font-size: 0.85rem;
    }
}