* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #1a1a1a; color: #f0f0f0; padding-top: 80px; transition: background-color 0.3s ease, color 0.3s ease; }
body.light-mode { background-color: #f9f9f9; color: #333; }
.navbar { position: fixed; top: -7px; left: 0; right: 0; background: #2d2d2d; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.3); transition: transform 0.3s ease-in-out; transform: translateY(0); }
body.light-mode .navbar { background: white; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.navbar.navbar-hidden { transform: translateY(-100%); }
.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; background: linear-gradient(135deg, #ff6b6b, #ff8e8e); -webkit-background-clip: text; background-clip: text; color: transparent; display: flex; align-items: center; gap: 8px; }
.nav-buttons { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-link-custom { text-decoration: none; color: #ddd; font-weight: 500; transition: color 0.3s ease; display: flex; align-items: center; gap: 8px; }
body.light-mode .nav-link-custom { color: #555; }
.nav-link-custom:hover { color: #ff6b6b; }
.back-home-btn { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); color: white !important; border-radius: 25px; padding: 8px 20px !important; }
.back-home-btn:hover { transform: scale(1.02); color: white !important; }
.search-container { position: relative; display: inline-block; }
.search-input { padding: 8px 35px 8px 15px; border-radius: 25px; border: 1px solid #555; background: #3d3d3d; font-size: 0.9rem; outline: none; transition: all 0.3s ease; width: 200px; color: white; }
body.light-mode .search-input { background: white; border-color: #ddd; color: #333; }
.search-input:focus { border-color: #ff6b6b; box-shadow: 0 0 0 2px rgba(255,107,107,0.2); width: 250px; }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #ff6b6b; cursor: pointer; }
.theme-toggle { background: none; border: 1px solid #555; border-radius: 25px; padding: 6px 15px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; color: white; background: #3d3d3d; }
body.light-mode .theme-toggle { border-color: #ddd; color: #333; background: white; }
.cart-button { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); border: none; border-radius: 25px; padding: 6px 18px; color: white; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.2s ease; }
.cart-button:hover { transform: scale(1.05); }
.subcategories-section { margin: 20px 0 40px; display: flex; justify-content: center; width: 100%; }
.subcategories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; width: 100%; max-width: 1100px; margin: 0 auto; }
.subcategory-btn { background: #2d2d2d; border: 2px solid #ff8e8e; border-radius: 50px; padding: 10px 15px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #ff8e8e; }
body.light-mode .subcategory-btn { background: white; border-color: #ff8e8e; color: #ff6b6b; }
.subcategory-btn:hover { background: #ff6b6b; color: white; transform: scale(1.02); border-color: #ff6b6b; }
.subcategory-btn small { font-size: 0.7rem; font-weight: normal; opacity: 0.8; }
@media (max-width: 900px) { .subcategories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 600px) { .subcategories-grid { grid-template-columns: repeat(2, 1fr); } }
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.product-card { background: #2d2d2d; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
body.light-mode .product-card { background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.product-image { width: 100%; height: 280px; object-fit: cover; background: #3d3d3d; }
.product-info { padding: 20px; }
.product-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.light-mode .product-title { color: #333; }
.product-price { font-size: 1.25rem; font-weight: 700; color: #e74c3c; margin-bottom: 15px; }
.add-to-cart { width: 100%; padding: 10px; background: linear-gradient(135deg, #ff6b6b, #ff8e8e); border: none; border-radius: 25px; color: white; font-weight: 600; transition: all 0.3s ease; cursor: pointer; }
.add-to-cart:hover { transform: scale(1.02); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 40px; margin-bottom: 40px; }
.page-btn { padding: 10px 20px; background: #2d2d2d; border: 2px solid #ff8e8e; border-radius: 25px; color: #ff8e8e; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
body.light-mode .page-btn { background: white; border-color: #ff6b6b; color: #ff6b6b; }
.page-btn:hover { background: #ff6b6b; color: white; transform: scale(1.05); }
.page-info { font-size: 1rem; color: #aaa; }
body.light-mode .page-info { color: #666; }
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 380px; height: 100vh; background: #2d2d2d; box-shadow: -2px 0 10px rgba(0,0,0,0.3); z-index: 2000; transition: right 0.3s ease; display: flex; flex-direction: column; padding: 20px; color: white; }
body.light-mode .cart-sidebar { background: white; color: #333; box-shadow: -2px 0 10px rgba(0,0,0,0.1); }
.cart-sidebar.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #444; }
body.light-mode .cart-header { border-bottom-color: #ddd; }
.close-cart { background: none; border: none; font-size: 28px; cursor: pointer; color: white; }
body.light-mode .close-cart { color: #333; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #444; }
body.light-mode .cart-item { border-bottom-color: #eee; }
.cart-item-image { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: #3d3d3d; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; }
.cart-item-price { font-size: 0.85rem; color: #e74c3c; }
.cart-item-quantity { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.quantity-btn { width: 24px; height: 24px; border-radius: 50%; border: none; background: #ff6b6b; color: white; cursor: pointer; }
.quantity-btn.minus { background: #ccc; color: #333; }
.cart-item-qty { font-size: 0.9rem; font-weight: 600; min-width: 25px; text-align: center; }
.cart-item-subtotal { font-size: 0.85rem; font-weight: 700; min-width: 70px; text-align: right; }
.remove-item { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 1rem; }
.cart-empty { text-align: center; padding: 40px 20px; color: #999; }
.clear-cart-btn { background: #ff6b6b; color: white; border: none; padding: 8px 16px; border-radius: 20px; cursor: pointer; margin-bottom: 15px; }
.cart-total { font-size: 1.3rem; font-weight: bold; margin: 20px 0; padding-top: 10px; border-top: 1px solid #444; }
body.light-mode .cart-total { border-top-color: #ddd; }
.checkout-btn { width: 100%; padding: 12px; background: #25D366; border: none; border-radius: 25px; color: white; font-weight: bold; font-size: 1rem; cursor: pointer; }
.no-results { text-align: center; padding: 60px 20px; color: #999; grid-column: 1 / -1; }
.footer { background: #1a1a1a; color: white; padding: 40px 5% 20px; margin-top: 60px; }
body.light-mode .footer { background: #2c3e50; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-info { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: #ff8e8e; display: flex; align-items: center; gap: 8px; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
.copyright a { color: #ff8e8e; text-decoration: none; }
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.whatsapp-float a { margin-bottom: 95px;;display: flex; align-items: center; gap: 10px; background: #25D366; color: white; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.mundial-btn { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000 !important; font-weight: bold; border-radius: 25px; padding: 8px 20px !important; transition: transform 0.3s ease; }
.mundial-btn:hover { transform: scale(1.05); }
.navbar-spacer { display: none; }
@media (max-width: 768px) { body { padding-top: 0px; } .navbar { padding: 10px 4%; } .nav-buttons { gap: 10px; } .search-input { width: 150px; } .cart-sidebar { width: 100%; right: -100%; } .navbar-spacer { display: block; height: 30px; } }
@media (max-width: 580px) { body { padding-top: 70px; } .navbar { padding: 8px 3%; flex-direction: column; align-items: stretch; gap: 8px; } .nav-buttons { flex-direction: column; width: 100%; gap: 8px; } .search-container { width: 100%; } .search-input { width: 100%; } .search-input:focus { width: 100%; } .theme-toggle, .cart-button, .mundial-btn, .back-home-btn { width: 100%; justify-content: center; } .logo { text-align: center; justify-content: center; } .navbar-spacer { height: 50px; } }
@media (max-width: 380px) { body { padding-top: 68px; } .navbar { padding: 6px 2%; } .navbar-spacer { height: 70px; } }
@media (max-width: 320px) { body { padding-top: 65px; } .navbar { padding: 5px 1%; } .logo { font-size: 1.2rem; } .navbar-spacer { height: 75px; } .subcategories-section { margin: 10px 0 20px; } .subcategories-grid { gap: 8px; } .subcategory-btn { padding: 6px 8px; font-size: 0.7rem; } .subcategory-btn i { font-size: 0.9rem; } .subcategory-btn small { font-size: 0.6rem; } .container { padding: 0 10px; } .products-grid { gap: 15px; grid-template-columns: 1fr; } .product-card { max-width: 100%; } .product-image { height: 200px; } .product-info { padding: 12px; } .product-title { font-size: 0.85rem; } .product-price { font-size: 1rem; } .add-to-cart { padding: 8px; font-size: 0.85rem; } .pagination { gap: 8px; flex-wrap: wrap; } .page-btn { padding: 8px 12px; font-size: 0.8rem; } .page-info { font-size: 0.85rem; } .cart-sidebar { width: 100%; } .whatsapp-float { bottom: 15px; right: 15px; } .whatsapp-float a { padding: 10px 15px; font-size: 0.85rem; } }
@media (max-width: 290px) { body { padding-top: 60px; } .navbar { padding: 4px 1%; } .logo { font-size: 1rem; } .nav-buttons { gap: 5px; } .search-input { font-size: 0.75rem; padding: 6px 30px 6px 10px; } .theme-toggle, .cart-button, .mundial-btn, .back-home-btn, .nav-link-custom { font-size: 0.7rem; padding: 5px 10px !important; } .subcategories-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 5px; } .subcategory-btn { padding: 5px 4px; font-size: 0.65rem; } .subcategory-btn i { font-size: 0.75rem; } .subcategory-btn small { font-size: 0.55rem; } .products-grid { grid-template-columns: 1fr; gap: 10px; } .product-image { height: 180px; } .product-title { font-size: 0.8rem; } .product-price { font-size: 0.9rem; } .add-to-cart { font-size: 0.75rem; padding: 6px; } .page-btn { padding: 6px 10px; font-size: 0.7rem; } .page-info { font-size: 0.75rem; } .footer { padding: 20px 3% 10px; } .footer-info { gap: 15px; } .footer-logo { font-size: 1.2rem; } .copyright { font-size: 0.7rem; } .whatsapp-float a { font-size: 0.75rem; padding: 8px 12px; } }
@keyframes fadeInOut { 0% { opacity: 0; transform: translateY(20px); } 15% { opacity: 1; transform: translateY(0); } 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-20px); } }