* { 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: 0; 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, #ad2020, #cc4444); -webkit-background-clip: text; background-clip: text; color: transparent; display: flex; align-items: center; gap: 8px; }
.logo img { height: 40px; width: auto; }

.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; cursor: pointer; }
body.light-mode .nav-link-custom { color: #555; }
.nav-link-custom:hover { color: #ad2020; }

.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; }

.navbar-spacer { display: none; }

.subcategories-section { margin: 20px 0 40px; display: flex; justify-content: center; width: 100%; }
.subcategories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; width: 100%; max-width: 1200px; margin: 0 auto; }
.subcategory-btn { background: #2d2d2d; border: 2px solid #ad2020; border-radius: 50px; padding: 10px 15px; font-size: 0.85rem; font-weight: 600; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #ad2020; cursor: pointer; }
body.light-mode .subcategory-btn { background: white; border-color: #ad2020; color: #ad2020; }
.subcategory-btn:hover { background: #ad2020; color: white; transform: scale(1.02); border-color: #ad2020; }
.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; cursor: pointer; }
.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; }
.contact-btn { width: 100%; padding: 10px; background: linear-gradient(135deg, #ad2020, #cc4444); border: none; border-radius: 25px; color: white; font-weight: 600; transition: all 0.3s ease; cursor: pointer; }
.contact-btn: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 #ad2020; border-radius: 25px; color: #ad2020; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
body.light-mode .page-btn { background: white; border-color: #ad2020; color: #ad2020; }
.page-btn:hover { background: #ad2020; color: white; transform: scale(1.05); }
.page-info { font-size: 1rem; color: #aaa; }
body.light-mode .page-info { color: #666; }

.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: #ad2020; display: flex; align-items: center; gap: 8px; }
.footer-logo img { height: 50px; width: auto; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
.copyright a { color: #ad2020; text-decoration: none; }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.whatsapp-float a { 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); }

.contact-section { background: #2d2d2d; border-radius: 16px; padding: 40px; margin-top: 40px; }
body.light-mode .contact-section { background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.contact-info { margin-bottom: 30px; }
.contact-info i { color: #ad2020; margin-right: 15px; font-size: 24px; }
.contact-info a { color: #ad2020; text-decoration: none; }

@media (max-width: 768px) { 
    body { padding-top: 80px; } 
    .navbar { padding: 10px 4%; flex-direction: column; align-items: stretch; gap: 10px; }
    .nav-buttons { flex-direction: column; width: 100%; gap: 10px; }
    .theme-toggle { width: 100%; justify-content: center; }
    .logo { text-align: center; justify-content: center; }
    .subcategories-grid { grid-template-columns: repeat(2, 1fr); }
}

@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); } 
}

.chatbox { background: #3d3d3d; padding: 20px; border-radius: 16px; margin-top: 20px; }
body.light-mode .chatbox { background: #f5f5f5; }
.chatbox input { background: #2d2d2d; border: 1px solid #ad2020; color: white; padding: 10px; margin: 10px 0; width: 100%; border-radius: 8px; }
body.light-mode .chatbox input { background: white; color: #333; }
.chatbox button { background: #ad2020; color: white; padding: 12px 24px; border: none; border-radius: 25px; cursor: pointer; font-weight: 600; width: 100%; }
.chatbox button:hover { background: #cc4444; }

html {
    scroll-behavior: smooth;
}