/* Products Page CSS - products.css */

/* ========================================
   HERO SECTION
   ======================================== */
.products-hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(52, 73, 94, 0.85)),
                url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 65px;
}

.products-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.products-hero .hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a.active {
    color: #3498db;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3498db;
}

/* Scrolled Navbar State */
#navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
    padding: 0.5rem;
}

/* ========================================
   ENHANCED FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-about {
    max-width: 350px;
}

/* Footer logo with text */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact-info {
    margin-top: 1.5rem;
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.footer-phone {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: #e74c3c;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e74c3c;
    transform: translateY(-3px);
}


/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    font-size: 2rem;
    padding: 0.75rem 1rem;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background: #20b954;
    transform: scale(1.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   RESPONSIVE NAVBAR
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 65px;
        right: -100%;
        height: calc(100vh - 65px);
        width: 250px;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 0;
    }
    
    .nav-links.mobile-open {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}

/* ========================================
   FILTERS SECTION
   ======================================== */
.filters-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filters-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.filter-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2c3e50;
}

.reset-btn {
    padding: 0.75rem 2rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reset-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.results-info {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-top: 1rem;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */
.products-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.product-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.material-type {
    background: #e8f4f8;
    color: #2c3e50;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.benefit-tag {
    background: #e8f5e9;
    color: #27ae60;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-details-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-2px);
}

/* ========================================
   NO RESULTS
   ======================================== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 3% auto;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.modal-image {
    background: #f8f9fa;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

.modal-info {
    padding: 2rem 2rem 2rem 0;
    overflow-y: auto;
    max-height: 600px;
}

.modal-info h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.material-badge {
    background: #3498db;
    color: white;
}

.origin-badge {
    background: #27ae60;
    color: white;
}

.modal-section {
    margin: 1.5rem 0;
}

.modal-section h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.modal-section p {
    color: #666;
    line-height: 1.6;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #e8f4f8;
    color: #2c3e50;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-benefits li {
    padding: 0.5rem 0;
    color: #27ae60;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #25d366;
    color: white;
}

.btn-primary:hover {
    background: #20b954;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2c3e50;
    color: white;
}

.btn-secondary:hover {
    background: #34495e;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        border-radius: 20px 20px 0 0;
    }
    
    .modal-image img {
        min-height: 300px;
    }
    
    .modal-info {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .products-hero {
        height: 50vh;
        margin-top: 55px;
    }
    
    .products-hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .filters-container {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-info {
        padding: 1.25rem;
    }
}