/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #1a1a2e; --secondary: #16213e; --accent: #e94560;
    --success: #00c851; --dark-green: #0d4f3c; --gold: #d4af37;
    --white: #ffffff; --gray-light: #f8f8f8; --gray: #666666;
    --text: #333333; --border: #e0e0e0; --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --radius: 8px; --transition: all 0.3s ease;
}
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--text); line-height: 1.6; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: var(--dark-green); color: var(--white); padding: 10px 0; font-size: 13px; }
.top-bar-content { display: flex; justify-content: center; gap: 40px; }
.top-bar-content span { display: flex; align-items: center; gap: 8px; }

/* Header */
.header { background: var(--white); padding: 25px 0; box-shadow: var(--shadow); }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.logo h1 { font-size: 32px; font-weight: 800; color: var(--primary); }
.logo h1 span { color: var(--accent); }
.search-box { flex: 1; max-width: 600px; display: flex; border: 2px solid var(--border); border-radius: 50px; overflow: hidden; }
.search-box input { flex: 1; border: none; padding: 12px 25px; font-size: 14px; outline: none; }
.search-box button { background: var(--primary); color: var(--white); border: none; padding: 12px 30px; cursor: pointer; transition: var(--transition); }
.search-box button:hover { background: var(--accent); }

/* Cart Button */
.btn-cart {
    background: linear-gradient(135deg, #0d4f3c 0%, #1a7a5f 100%);
    color: white; border: none; padding: 12px 24px; border-radius: 50px;
    font-size: 15px; font-weight: 600; cursor: pointer; display: flex;
    align-items: center; gap: 10px; transition: var(--transition);
    box-shadow: 0 4px 15px rgba(13, 79, 60, 0.3); position: relative;
}
.btn-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13, 79, 60, 0.4); }
.btn-cart .cart-count {
    background: #ff6b6b; color: white; font-size: 12px; font-weight: 700;
    min-width: 20px; height: 20px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; position: absolute;
    top: -8px; right: -8px; box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Navigation */
.main-nav { background: var(--primary); }
.main-nav ul { display: flex; list-style: none; }
.main-nav a {
    display: block; color: var(--white); text-decoration: none;
    padding: 18px 25px; font-size: 13px; font-weight: 600;
    transition: var(--transition); border-right: 1px solid rgba(255,255,255,0.05);
}
.main-nav a:hover, .main-nav a.active { background: var(--accent); }

/* Breadcrumb */
.breadcrumb { background: var(--gray-light); padding: 15px 0; font-size: 13px; color: var(--gray); }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Main Content */
.main-content { padding: 40px 0; }
.content-wrapper { display: flex; gap: 30px; }

/* Sidebar */
.sidebar { width: 280px; flex-shrink: 0; }
.filter-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 25px; }
.filter-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 25px; color: var(--primary); padding-bottom: 15px; border-bottom: 2px solid var(--border); }
.filter-group { margin-bottom: 25px; }
.filter-group h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--text); text-transform: uppercase; }
.filter-group label { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--gray); cursor: pointer; }
.filter-group label:hover { color: var(--accent); }

/* Products Area */
.products-area { flex: 1; }
.products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.products-header select { padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.product-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition); cursor: pointer; position: relative;
}
.product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); transform: translateY(-5px); }
.product-image-wrapper { position: relative; background: var(--gray-light); padding: 30px; text-align: center; }
.product-image { max-width: 100%; height: 280px; object-fit: contain; transition: var(--transition); }
.product-card:hover .product-image { transform: scale(1.08); }
.product-info { padding: 20px; }
.product-brand { font-size: 12px; color: var(--gray); text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 15px; line-height: 1.4; min-height: 40px; }
.product-price-box { text-align: center; }
.price-new { color: var(--primary); font-size: 24px; font-weight: 700; margin-bottom: 5px; }
.price-installments { color: var(--gray); font-size: 12px; }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.7); overflow-y: auto;
}
.modal-content {
    background: var(--white); margin: 5% auto; max-width: 900px; width: 95%;
    border-radius: var(--radius); position: relative; animation: modalFade 0.25s ease;
}
@keyframes modalFade { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.close-modal {
    position: absolute; right: 15px; top: 15px; width: 36px; height: 36px;
    background: var(--gray-light); border: none; border-radius: 50%;
    color: var(--primary); font-size: 24px; cursor: pointer; transition: var(--transition);
}
.close-modal:hover { background: var(--accent); color: white; }
.modal-body { display: flex; gap: 30px; padding: 30px; }
.modal-image { flex: 1; text-align: center; background: var(--gray-light); border-radius: var(--radius); padding: 25px; }
.modal-image img { max-width: 100%; height: 320px; object-fit: contain; }
.modal-info { flex: 1; }
.modal-brand { font-size: 12px; color: var(--gray); text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.modal-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 15px; }
.modal-price-box { background: var(--gray-light); padding: 20px; border-radius: var(--radius); margin-bottom: 20px; }
.modal-price-new { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.modal-installments { font-size: 13px; color: var(--gray); }
.quantity-box { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.quantity-controls { display: flex; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.quantity-controls button { width: 36px; height: 36px; border: none; background: var(--gray-light); cursor: pointer; }
.quantity-controls input { width: 50px; text-align: center; border: none; font-size: 14px; font-weight: 600; }
.buy-button {
    width: 100%; background: var(--success); color: white; border: none; padding: 15px;
    border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer;
    transition: var(--transition); margin-bottom: 15px; text-transform: uppercase;
}
.buy-button:hover { background: #00a843; transform: translateY(-2px); }
.shipping-box { border: 2px solid var(--border); border-radius: var(--radius); padding: 12px 15px; margin-bottom: 20px; font-size: 12px; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.benefit-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--gray-light); border-radius: var(--radius); font-size: 11px; }
.benefit-icon { width: 32px; height: 32px; background: var(--dark-green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.modal-description { margin-top: 20px; font-size: 13px; color: var(--gray); }

/* Cart Modal */
#cartModal .modal-content { max-width: 700px; }
#cartModal h2 {
    background: linear-gradient(135deg, #0d4f3c 0%, #1a7a5f 100%);
    color: white; padding: 25px 30px; margin: 0; font-size: 24px;
    display: flex; align-items: center; gap: 12px; border-radius: 12px 12px 0 0;
}
#cart-items { padding: 25px 30px; max-height: 400px; overflow-y: auto; }
.cart-item {
    display: flex; align-items: center; gap: 20px; padding: 20px;
    background: #f8f9fa; border-radius: 10px; margin-bottom: 15px;
    border: 1px solid #e9ecef; transition: var(--transition); position: relative;
}
.cart-item:hover { background: #f1f3f5; border-color: #0d4f3c; }
.cart-item img { width: 70px; height: 70px; object-fit: contain; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; color: #1a1a2e; font-size: 15px; margin-bottom: 8px; }
.cart-item-price { color: #0d4f3c; font-weight: 700; font-size: 16px; }
.cart-item-subtotal { font-weight: 700; color: #0d4f3c; font-size: 18px; min-width: 100px; text-align: right; }
.cart-item-remove {
    position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
    background: #dc3545; color: white; border: none; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.cart-item:hover .cart-item-remove { opacity: 1; }
.cart-total {
    background: linear-gradient(135deg, #0d4f3c 0%, #1a7a5f 100%);
    color: white; padding: 25px 30px; font-size: 24px; font-weight: 700;
    text-align: center; border-radius: 0 0 12px 12px; margin: 0;
}
#checkout-form { padding: 25px 30px; background: #f8f9fa; border-top: 2px solid #e9ecef; }
#checkout-form input {
    width: 100%; padding: 14px 18px; margin-bottom: 15px; border: 2px solid #dee2e6;
    border-radius: 8px; font-size: 15px; transition: var(--transition);
}
#checkout-form input:focus { outline: none; border-color: #0d4f3c; }
.btn-whatsapp, .btn-secondary {
    width: 100%; padding: 16px 24px; border: none; border-radius: 8px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: var(--transition);
    margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: white; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination button {
    padding: 10px 18px; border: 1px solid var(--border); background: var(--white);
    cursor: pointer; border-radius: var(--radius); font-size: 14px; transition: var(--transition);
}
.pagination button:hover, .pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination button.disabled { opacity: 0.5; cursor: not-allowed; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--success); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    box-shadow: 0 4px 20px rgba(0,200,81,0.4); z-index: 9999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 50px 0 30px; margin-top: 80px; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.8); text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li i { margin-right: 10px; color: var(--accent); }
.payment-icons { display: flex; gap: 10px; }
.payment-icons img { height: 35px; }

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-body { flex-direction: column; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 20px; }
    .search-box { max-width: 100%; width: 100%; }
    .main-nav ul { flex-wrap: wrap; }
    .products-grid { grid-template-columns: 1fr; }
    .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
    .footer-content { grid-template-columns: 1fr; }
    .btn-cart span:not(.cart-count) { display: none; }
}