/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.logo span {
    color: #f97316;
}

.logo p {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    position: relative;
}

.search-bar input {
    width: 350px;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #1e3a8a;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.cart-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.cart-btn:hover {
    background: #1e40af;
}

.cart-count {
    background: #f97316;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 8px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 16px 0;
}

.main-nav li {
    margin: 0 30px;
}

.main-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1e3a8a;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background: #f97316;
    border-radius: 2px;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8fafc;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb nav {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.breadcrumb .current {
    color: #1e3a8a;
    font-weight: 500;
}

.catalog-info {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label,
.rating-filter label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-group label:hover,
.rating-filter label:hover {
    color: #1e3a8a;
}

.filter-group input,
.rating-filter input {
    margin-right: 10px;
    accent-color: #1e3a8a;
}

.price-range {
    padding: 16px 0;
}

.price-slider {
    width: 100%;
    margin-bottom: 12px;
    accent-color: #1e3a8a;
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #1e3a8a;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f97316;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.bestseller {
    background: #059669;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 16px;
}

.product-price .original {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: none;
}

.btn-primary {
    background: #1e3a8a;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #4b5563;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin: 60px 0;
}

.promo-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.promo-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.promo-btn {
    background: #f97316;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: #f9fafb;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.stars {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    font-style: italic;
}

.customer strong {
    color: #1f2937;
    font-weight: 600;
    font-size: 16px;
}

.customer span {
    color: #6b7280;
    font-size: 14px;
    display: block;
    margin-top: 4px;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.whatsapp-btn {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 18px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section h3 span {
    color: #f97316;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e5e7eb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f97316;
}

.contact-info p {
    margin-bottom: 12px;
    color: #9ca3af;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #f97316;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .search-bar input {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: space-between;
    }
    
    .search-bar input {
        width: 100%;
        max-width: 300px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filter-sidebar {
        position: static;
        order: 2;
    }
    
    .product-section {
        order: 1;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .promo-content h2 {
        font-size: 2rem;
    }
    
    .testimonials h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .promo-content h2,
    .testimonials h2,
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: #6b7280;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header, .filter-sidebar, .promo-banner, .footer {
        display: none;
    }
    
    .product-card {
        break-inside: avoid;
    }
}