/* Styles: Yuu Electronics */
*{box-sizing:border-box}
:root{
  --bg:#ffffff; --panel:#ffffff; --muted:#6b7280; --accent:#0ea5e9; --text:#0f172a;
}
body{margin:0;font-family:Inter,system-ui,Segoe UI,Roboto,Arial;background:#f8fafc;color:var(--text)}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid #e6eef7;background:#0b1220;color:#fff}
.topbar .left{display:flex;gap:12px;align-items:center}
.logo{width:56px;height:56px;border-radius:8px;background:#fff;padding:6px;object-fit:contain}
.brand h1{margin:0;font-size:20px}
.tagline{font-size:12px;color:#9ca3af}
.topbar .right{display:flex;align-items:center;gap:12px}
.contact a{color:var(--accent);text-decoration:none}
.btn{padding:8px 12px;border-radius:8px;border:1px solid rgba(0,0,0,.06);background:#fff;cursor:pointer}
.btn.primary{background:var(--accent);color:#042028;border:none;font-weight:700}
.nav{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;background:#fff;border-bottom:1px solid #e6eef7}
.nav-actions{display:flex;gap:8px;align-items:center}
.nav-actions input, .nav-actions select{padding:8px;border-radius:8px;border:1px solid #e6eef7}
.container{display:flex;gap:20px;max-width:1100px;margin:20px auto;padding:0 12px}
.sidebar{width:260px;background:#fff;border-radius:12px;padding:16px;border:1px solid #e6eef7;height:fit-content}

/* Improved product grid for better layout */
.product-grid{
  display:grid;

  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
  align-items:stretch;
  justify-items:center;
  margin-bottom:32px;
}
.card{
  background:#fff;
  border-radius:12px;
  padding:16px;
  border:1px solid #e6eef7;
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
 

  box-shadow:0 2px 8px rgba(2,6,23,0.04);
  transition:transform 0.15s;
}
.card:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 6px 24px rgba(2,6,23,0.10);
}
.card img{
  width:100%;
  height:180px;
  object-fit:contain;
  border-radius:8px;
  background:#f3f4f6;
}
.card h3{margin:0;font-size:17px}
.row{display:flex;justify-content:space-between;align-items:center}
.price{font-weight:700}
.small{font-size:13px;color:var(--muted)}
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(2,6,23,0.6);z-index:200}
.modal-content{width:90%;max-width:900px;background:#fff;border-radius:12px;padding:18px;position:relative}
.modal-close{position:absolute;right:12px;top:12px;border:none;background:transparent;font-size:20px;cursor:pointer}
.drawer{position:fixed;right:0;top:0;height:100vh;width:360px;background:#fff;border-left:1px solid #e6eef7;box-shadow:-10px 0 30px rgba(2,6,23,.08);z-index:150;display:flex;flex-direction:column}
.drawer.hidden,.modal.hidden{display:none}
.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #eef2f7}
.cart-items{padding:12px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:8px}
.cart-line{display:grid;grid-template-columns:64px 1fr auto;gap:8px;align-items:center;border:1px solid #eef2f7;padding:8px;border-radius:8px;background:#fafafa}
.drawer-footer{padding:12px;border-top:1px solid #eef2f7}
.site-footer{padding:18px;background:#fff;border-top:1px solid #eef2f7;margin-top:30px}
@media (max-width:900px){
  .container{flex-direction:column}
  .sidebar{width:100%}
  .product-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;}
  .card{max-width:100%;}
}

.shop {
  flex: 1;
  width: 100%;
}

.highlight-icon {
  width: 32px;          /* Even smaller */
  height: 32px;
  background: #10b981;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 16px;          /* Smaller SVG */
  height: 16px;
  color: white;
}




/* Footer Styles */
.service-highlights {
  background: #f8fafc;
  padding: 40px 0;
  border-top: 1px solid #e2e8f0;
}

.highlights-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: #10b981;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.highlight-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-content p {
  color: #6b7280;
  font-size: 14px;
}

.main-footer {
  background: #ffffff;
  padding: 60px 0 40px;
  border-top: 1px solid #e2e8f0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

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

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

.footer-column ul li a {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: #0ea5e9;
}

.company-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #10b981;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.company-info p {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-item .label {
  color: #1f2937;
  font-weight: 600;
}

.contact-item .value {
  color: #0ea5e9;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s;
  text-decoration: none;
}

.social-links a:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .highlights-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.policy-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.policy-content h2 {
    color: #1f2937;
    margin-bottom: 20px;
}

.policy-content h3 {
    color: #374151;
    margin: 20px 0 10px 0;
}

.policy-content ul {
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}


.terms-content {
    padding: 20px;
    line-height: 1.6;
    color: #374151;
}

.terms-content h2 {
    color: #1f2937;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

.terms-content h3 {
    color: #374151;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 8px;
}

.terms-highlight {
    background: #fef3c7;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin: 20px 0;
}

.terms-contact {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin: 30px 0;
}

.terms-content strong {
    color: #1f2937;
}

/* Modal adjustments for terms */
.modal-content {
    position: relative;
}

.modal-close {
    position: sticky;
    top: 0;
    right: 12px;
    z-index: 10;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
    margin-bottom: 10px;
}

.modal-close:hover {
    background: #f3f4f6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .terms-content {
        padding: 15px;
    }
    
    .terms-content h1 {
        font-size: 24px;
    }
    
    .terms-content h2 {
        font-size: 18px;
    }
}

.warranty-content {
    padding: 20px;
    line-height: 1.6;
    color: #374151;
}

.warranty-content h2 {
    color: #1f2937;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

.warranty-content h3 {
    color: #374151;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.warranty-content h4 {
    color: #059669;
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 8px;
}

.warranty-content ul, .warranty-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.warranty-content li {
    margin-bottom: 8px;
}

.warranty-highlight {
    background: #ecfdf5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #059669;
    margin: 20px 0;
}

.warranty-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.warranty-plan {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s;
}

.warranty-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.warranty-plan h4 {
    color: #0ea5e9;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.warranty-exclusions {
    background: #fef2f2;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    margin: 20px 0;
}

.service-centers {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.service-location {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e0f2fe;
}

.warranty-pricing {
    background: #fefce8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #eab308;
    margin: 20px 0;
}

.warranty-contact {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin: 30px 0;
}

.warranty-content strong {
    color: #1f2937;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .warranty-plans {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .warranty-plan {
        padding: 15px;
    }
    
    .warranty-content {
        padding: 15px;
    }
    
    .warranty-content h1 {
        font-size: 24px;
    }
    
    .warranty-content h2 {
        font-size: 18px;
    }
}

.privacy-content {
    padding: 20px;
    line-height: 1.6;
    color: #374151;
}

.privacy-content h2 {
    color: #1f2937;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

.privacy-content h3 {
    color: #374151;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-content ul, .privacy-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 8px;
}

.privacy-highlight {
    background: #ecfdf5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #059669;
    margin: 20px 0;
}

.privacy-purposes {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.legal-basis {
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin: 20px 0;
}

.privacy-assurance {
    background: #dbeafe;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin: 20px 0;
    font-weight: 500;
}

.privacy-rights {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #bae6fd;
}

.privacy-rights h3 {
    color: #0369a1;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.privacy-contact {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin: 30px 0;
}

.privacy-contact h3 {
    color: #1e40af;
    margin-top: 15px;
    margin-bottom: 10px;
}

.privacy-content strong {
    color: #1f2937;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .privacy-content {
        padding: 15px;
    }
    
    .privacy-content h1 {
        font-size: 24px;
    }
    
    .privacy-content h2 {
        font-size: 18px;
    }
    
    .privacy-purposes,
    .legal-basis,
    .privacy-rights {
        padding: 15px;
    }
}

.privacy-content {
    padding: 20px;
    line-height: 1.6;
    color: #374151;
}

.privacy-content h2 {
    color: #1f2937;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

.privacy-content h3 {
    color: #374151;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-content ul, .privacy-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 8px;
}

.privacy-highlight {
    background: #ecfdf5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #059669;
    margin: 20px 0;
}

.privacy-purposes {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.legal-basis {
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin: 20px 0;
}

.privacy-assurance {
    background: #dbeafe;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin: 20px 0;
    font-weight: 500;
}

.privacy-rights {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #bae6fd;
}

.privacy-rights h3 {
    color: #0369a1;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.privacy-contact {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin: 30px 0;
}

.privacy-contact h3 {
    color: #1e40af;
    margin-top: 15px;
    margin-bottom: 10px;
}

.privacy-content strong {
    color: #1f2937;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .privacy-content {
        padding: 15px;
    }
    
    .privacy-content h1 {
        font-size: 24px;
    }
    
    .privacy-content h2 {
        font-size: 18px;
    }
    
    .privacy-purposes,
    .legal-basis,
    .privacy-rights {
        padding: 15px;
    }
}



.modal-content {
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            background: #fff;
            border-radius: 12px;
            padding: 18px;
            position: relative;
        }


 /* About Us Styles */
        .about-content {
            padding: 20px;
            line-height: 1.6;
            color: #374151;
        }
        
        .about-content h1 {
            color: #1f2937;
            text-align: center;
            margin-bottom: 10px;
            font-size: 28px;
        }
        
        .about-content h2 {
            color: #1f2937;
            font-size: 20px;
            margin-top: 30px;
            margin-bottom: 15px;
            border-bottom: 2px solid #e5e7eb;
            padding-bottom: 5px;
        }
        
        .about-content h3 {
            color: #374151;
            font-size: 16px;
            margin-top: 20px;
            margin-bottom: 10px;
        }
        
        .about-highlight {
            background: #ecfdf5;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #059669;
            margin: 20px 0;
        }
        
        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }
        
        .value-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: transform 0.2s;
        }
        
        .value-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        
        .value-icon {
            width: 48px;
            height: 48px;
            background: #0ea5e9;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: white;
            font-size: 24px;
        }
        
        /* Contact Us Styles */
        .contact-content {
            padding: 20px;
            line-height: 1.6;
            color: #374151;
        }
        
        .contact-content h1 {
            color: #1f2937;
            text-align: center;
            margin-bottom: 10px;
            font-size: 28px;
        }
        
        .contact-content h2 {
            color: #1f2937;
            font-size: 20px;
            margin-top: 30px;
            margin-bottom: 15px;
            border-bottom: 2px solid #e5e7eb;
            padding-bottom: 5px;
        }
        
        .contact-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }
        
        .contact-method {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
        }
        
        .contact-icon {
            width: 48px;
            height: 48px;
            background: #10b981;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: white;
            font-size: 24px;
        }
        
        .location-card {
            background: #eff6ff;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #3b82f6;
            margin: 20px 0;
        }
        
        .hours-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
        
        .hours-card {
            background: #fef3c7;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #f59e0b;
        }

/* the side bar hidden */
.sidebar {
  display: none;
}

.shop {
  flex: 1;
  width: 100%;
}

/* it ends here*/

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Chat Button */
.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.chat-button svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Notification Badge */
.chat-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Chat Window */
.chat-window {
    position: fixed; /* Changed from absolute to fixed */
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    max-width: calc(100vw - 40px); /* Prevent overflow */
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
    z-index: 1001;
}


.chat-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.chat-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Chat Messages */
.chat-messages {
    height: 360px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.support {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.user {
    align-self: flex-end;
    background: #25d366;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

/* Chat Input */
.chat-input {
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    background: white;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-field {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-field:focus {
    border-color: #25d366;
}

.chat-send-btn {
    background: #25d366;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #128c7e;
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
    color: white;
}

/* Typing Indicator */
.typing-indicator {
    align-self: flex-start;
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typingPulse 1.5s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.welcome-message h4 {
    color: #1565c0;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.welcome-message p {
    color: #1976d2;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 90px;
        right: 20px;
        left: auto; /* Remove conflicting left positioning */
        max-height: 500px;
    }
    
    .chat-widget {
        right: 20px;
        bottom: 20px;
    }
}

/* Offline Indicator */
.offline-indicator {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.quick-action {
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.quick-action:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    background: #f0f0f0;
    border-radius: 15px;
    max-width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.message.system {
    color: #f44336;
    font-style: italic;
    text-align: center;
}
.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

.social-links .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links .icon svg {
  width: 24px;
  height: 24px;
}

.social-links .icon svg path {
  fill: white; /* Ensures the logo is visible */
}

/* Brand colors */
.social-links .facebook { background-color: #1877f2; }
.social-links .instagram { background-color: #e1306c; }
.social-links .tiktok { background-color: #000000; }
.social-links .youtube { background-color: #ff0000; }
.social-links .x { background-color: #111111; }

/* Hover effect */
.social-links .icon:hover {
  transform: scale(1.1);
  opacity: 0.85;
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #fafafa;
        }

        

        /* Main Header */
        .main-header {
            background: white;
            border-bottom: 1px solid #e5e7eb;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 15px 0;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo {
            width: 80px;
            height: 80px;
            border-radius: 8px;
        }

        .brand-text h1 {
            font-size: 24px;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 2px;
        }

        .brand-text .tagline {
            font-size: 12px;
            color: #6b7280;
            font-weight: 500;
        }

        /* Search Section */
        .search-section {
            flex: 1;
            max-width: 500px;
            margin: 0 30px;
            position: relative;
        }

        .search-bar {
            display: flex;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            overflow: hidden;
            background: white;
            transition: border-color 0.3s;
        }

        .search-bar:focus-within {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .category-select {
            border: none;
            padding: 12px 15px;
            background: #f8fafc;
            border-right: 1px solid #e5e7eb;
            color: #374151;
            font-size: 14px;
            cursor: pointer;
            outline: none;
        }

        .search-input {
            flex: 1;
            border: none;
            padding: 12px 15px;
            font-size: 14px;
            outline: none;
            color: #374151;
        }

        .search-input::placeholder {
            color: #9ca3af;
        }

        .search-button {
            background: #059669;
            color: white;
            border: none;
            padding: 12px 20px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: background-color 0.3s;
        }

        .search-button:hover {
            background: #047857;
        }

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

        .help-section {
            text-align: center;
            color: #6b7280;
            font-size: 12px;
        }

        .help-number {
            color: #059669;
            font-weight: 600;
            font-size: 14px;
        }

        .account-section {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #374151;
            text-decoration: none;
            font-size: 14px;
        }

        .cart-section {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #fef3c7;
            color: #92400e;
            padding: 8px 12px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            position: relative;
            cursor: pointer;
        }

        .cart-count {
            background: #dc2626;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            position: absolute;
            top: -5px;
            right: -5px;
        }

        /* Navigation Bar */
        .navigation {
            background: white;
            border-bottom: 1px solid #e5e7eb;
            padding: 0;
            position: sticky;
            top: 0;
            z-index: 50;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .nav-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: center;
        }

        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            color: #374151;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
        }

        .nav-link:hover {
            color: #059669;
            background-color: #f0fdf4;
            border-bottom-color: #059669;
        }

        .nav-link.active {
            color: #059669;
            border-bottom-color: #059669;
        }

        /* Main Content */
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px 20px;
        }

        /* Welcome Banner */
        .welcome-banner {
            background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
            color: white;
            padding: 40px;
            border-radius: 12px;
            margin-bottom: 30px;
            text-align: center;
        }

        .welcome-banner h2 {
            font-size: 32px;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .welcome-banner p {
            font-size: 16px;
            opacity: 0.9;
        }

.welcome-banner {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.8), rgba(5, 150, 105, 0.8)),
                url('logo.png') center/cover no-repeat;
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}



        /* Filters and Sort */
        .filters-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .filter-group {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .filter-select {
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            background: white;
            color: #374151;
            font-size: 14px;
            cursor: pointer;
        }

        .sort-section {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #6b7280;
        }

        /* Product Grid */
        /* .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 25px; */
            .product-grid {
    display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* space between products */
    padding: 20px;
        }

        .product-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: all 0.3s;
            border: 1px solid #f3f4f6;
        }

        .product-card:hover {
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }

        .product-card.out-of-stock {
            opacity: 0.7;
        }
        .product-card {
  height: 100px;              /* set a fixed height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


        .product-image {
            width: 100%;
            height: 180px;
            object-fit: contain;
            background: #f8fafc;
            padding: 20px;
        }

        .product-info {
            padding: 20px;
        }

        .product-category {
            color: #059669;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

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

        .product-description {
            color: #6b7280;
            font-size: 14px;
            margin-bottom: 15px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .product-price {
            color: #059669;
            font-size: 18px;
            font-weight: 700;
        }

        .stock-status {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            font-weight: 500;
        }

        .stock-status.in-stock {
            color: #059669;
        }

        .stock-status.out-of-stock {
            color: #dc2626;
        }

        .stock-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .stock-indicator.in-stock {
            background: #059669;
        }

        .stock-indicator.out-of-stock {
            background: #dc2626;
        }

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

        .btn {
            padding: 10px 15px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-primary {
            background: #059669;
            color: white;
        }

        .btn-primary:hover {
            background: #047857;
        }

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

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

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn:disabled:hover {
            background: #6b7280;
        }

        /* Loading State */
        .loading {
            text-align: center;
            padding: 60px;
            color: #6b7280;
        }

        .loading i {
            font-size: 2rem;
            margin-bottom: 1rem;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Footer Styles */
        .main-footer {
            background: #1f2937;
            color: white;
            padding: 50px 0 30px;
            margin-top: 60px;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }

        .footer-column h3 {
            margin-bottom: 20px;
            color: white;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

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

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column ul li a {
            color: #d1d5db;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-column ul li a:hover {
            color: white;
        }

        .company-info p {
            margin-bottom: 8px;
            color: #d1d5db;
        }

        .contact-info .contact-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            padding: 5px 0;
        }

        .contact-item .label {
            color: #d1d5db;
        }

        .contact-item .value {
            color: white;
            font-weight: 500;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            color: #d1d5db;
            transition: color 0.3s;
        }

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

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

        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal.show, .modal:not(.hidden) {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            padding: 40px;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #6b7280;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.3s;
        }

        .modal-close:hover {
            background: #f3f4f6;
        }

        .about-highlight, .privacy-highlight, .terms-highlight, .warranty-highlight {
            background: #f0f9ff;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #0ea5e9;
            margin: 20px 0;
        }

        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .value-card {
            text-align: center;
            padding: 20px;
            background: #f8fafc;
            border-radius: 8px;
        }

        .value-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .contact-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin: 20px 0;
        }

        .contact-method {
            background: #f8fafc;
            padding: 20px;
            border-radius: 8px;
        }

        .contact-icon {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        /* Cart Drawer */
        .cart-drawer {
            position: fixed;
            top: 0;
            right: -400px;
            width: 400px;
            height: 100vh;
            background: white;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transition: right 0.3s;
            z-index: 1000;
            display: flex;
            flex-direction: column;
        }

        .cart-drawer.open {
            right: 0;
        }

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

        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .cart-footer {
            padding: 20px;
            border-top: 1px solid #e5e7eb;
            background: #f9fafb;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.3);
            z-index: 999;
            display: none;
        }

        .overlay.show {
            display: block;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .top-header {
                display: none;
            }
            
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            
            .search-section {
                order: 3;
                margin: 0;
                max-width: 100%;
            }
            
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .nav-link {
                padding: 12px 15px;
                font-size: 13px;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 20px;
            }
            
            .filters-section {
                flex-direction: column;
                gap: 15px;
            }
            
            .filter-group {
                flex-wrap: wrap;
            }

            .cart-drawer {
                width: 100vw;
                right: -100vw;
            }

            .footer-container {
                grid-template-columns: 1fr;
                gap: 30px;
            }
        }

        /*@media (max-width: 480px) {*/
        /*    .product-grid {*/
        /*        grid-template-columns: 1fr;*/
        /*    }*/
        @media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }
  
  .card {
    padding: 12px;
  }
  
  .card img {
    height: 140px;
  }
}
            
            .welcome-banner {
                padding: 30px 20px;
            }
            
            .welcome-banner h2 {
                font-size: 24px;
            }

            .modal-content {
                padding: 20px;
                margin: 10px;
            }
        }
    #cartBtn {
  font-size: 20px; /* Increase this value to make the cart bigger */
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f8fafc;
        }

        /* Header Styles */
        .header {
            background: white;
            padding: 16px 20px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #059669;
        }

        .account-section {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #374151;
            text-decoration: none;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 8px;
            transition: background-color 0.2s;
        }

        .account-section:hover {
            background: #f3f4f6;
        }

        .account-section i {
            font-size: 20px;
        }

        /* Modal Overlay */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Auth Modal */
        .auth-modal {
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            overflow: hidden;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            min-height: 600px;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .auth-modal {
            transform: scale(1);
        }

        .auth-visual {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: white;
            padding: 40px;
            text-align: center;
        }

        .auth-visual h2 {
            font-size: 28px;
            margin-bottom: 16px;
            font-weight: 700;
        }

        .auth-visual p {
            font-size: 16px;
            opacity: 0.9;
            line-height: 1.6;
        }

        .auth-visual .logo {
            width: 80px;
            height: 80px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            margin-bottom: 24px;
            color: white;
        }

        .auth-form {
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
        }

        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 24px;
            color: #6b7280;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .close-btn:hover {
            background: #f3f4f6;
            color: #374151;
        }

        .form-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .form-header h3 {
            font-size: 24px;
            color: #1f2937;
            margin-bottom: 8px;
        }

        .form-header p {
            color: #6b7280;
            font-size: 14px;
        }

        .form-tabs {
            display: flex;
            border-bottom: 1px solid #e5e7eb;
            margin-bottom: 32px;
        }

        .form-tab {
            flex: 1;
            padding: 16px;
            text-align: center;
            background: none;
            border: none;
            color: #6b7280;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            border-bottom: 2px solid transparent;
        }

        .form-tab.active {
            color: #059669;
            border-bottom-color: #059669;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            color: #374151;
            font-weight: 500;
            font-size: 14px;
        }

        .form-control {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: #059669;
            box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-group input[type="checkbox"] {
            width: 16px;
            height: 16px;
        }

        .checkbox-group label {
            margin: 0;
            font-weight: 400;
            font-size: 13px;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: #059669;
            color: white;
        }

        .btn-primary:hover {
            background: #047857;
        }

        .btn-primary:disabled {
            background: #9ca3af;
            cursor: not-allowed;
        }

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

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

        .error-message {
            background: #fef2f2;
            color: #dc2626;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 20px;
            border: 1px solid #fecaca;
        }

        .success-message {
            background: #f0fdf4;
            color: #059669;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 20px;
            border: 1px solid #bbf7d0;
        }

        .form-footer {
            text-align: center;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid #e5e7eb;
        }

        .form-footer p {
            color: #6b7280;
            font-size: 14px;
        }

        .form-footer a {
            color: #059669;
            text-decoration: none;
            font-weight: 500;
        }

        .form-footer a:hover {
            text-decoration: underline;
        }

        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .hidden {
            display: none !important;
        }

        /* User dropdown */
        .user-dropdown {
            position: relative;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #059669, #047857);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            cursor: pointer;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            min-width: 200px;
            margin-top: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
        }
@media (max-width: 768px) {
    .dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important;
    }
}
        .dropdown-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: #374151;
            text-decoration: none;
            transition: background-color 0.2s;
            border-bottom: 1px solid #f3f4f6;
        }

        .dropdown-item:hover {
            background: #f9fafb;
        }

        .dropdown-item:last-child {
            border-bottom: none;
        }

        .user-info {
            padding: 16px;
            border-bottom: 1px solid #e5e7eb;
        }

        .user-name {
            font-weight: 600;
            color: #1f2937;
        }

        .user-email {
            font-size: 12px;
            color: #6b7280;
        }

        /* Online indicator */
        .online-indicator {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 12px;
            height: 12px;
            background: #10b981;
            border: 2px solid white;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

        /* Toast notifications */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            padding: 16px;
            min-width: 300px;
            z-index: 2000;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .toast.show {
            transform: translateX(0);
        }

        .toast.success {
            border-left: 4px solid #10b981;
        }

        .toast.error {
            border-left: 4px solid #ef4444;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .auth-modal {
                grid-template-columns: 1fr;
                max-width: 400px;
                margin: 20px;
            }

            .auth-visual {
                display: none;
            }

            .form-row {
                grid-template-columns: 1fr;
            }
        } 

        .stock-status {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  text-align: center;
}

.in-stock {
  background: #d1fae5;
  color: #065f46;
}

.out-of-stock {
  background: #fee2e2;
  color: #991b1b;
}

/* Wrapper for input + button */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 500px;
}

/* Input styling */
#search {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

#search:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  outline: none;
}

/* Button styling */
#searchBtn {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#searchBtn:hover {
  background: #0284c7; /* slightly darker blue */
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}
/* Modern Cart Button */
.cart-btn {
  position: relative;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.cart-btn:hover {
  background: #0284c7; /* darker accent */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.4);
}

/* Cart count badge */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444; /* red badge */
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* Main Header / Navbar */
nav {
  background: linear-gradient(135deg, #0d47a1, #1976d2, #42a5f5);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 12px 12px; /* slight curve at bottom */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin-right: 20px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffeb3b; /* golden hover effect */
}

.nav-actions input,
.nav-actions select {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  margin-left: 10px;
}

.nav-actions input:focus,
.nav-actions select:focus {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .nav-actions input,
  .nav-actions select {
    width: 100%;
    margin: 5px 0;
  }
}
.nav {
  background: linear-gradient(135deg, #0d47a1, #1976d2, #42a5f5);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color:black;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: black;
}

 /* WhatsApp Button in Header */
        .whatsapp-contact {
            position: relative;
        }

        .whatsapp-button {
            background: #25D366;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
            position: relative;
            overflow: hidden;
        }

        .whatsapp-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }

        .whatsapp-button:hover::before {
            width: 60px;
            height: 60px;
        }

        .whatsapp-button:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
        }

        /* Floating WhatsApp Button - REMOVED */

        /* WhatsApp Modal */
        .whatsapp-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            backdrop-filter: blur(5px);
        }

        .whatsapp-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .whatsapp-modal-content {
            background: white;
            width: 90%;
            max-width: 400px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from { transform: translateY(-50px) scale(0.9); opacity: 0; }
            to { transform: translateY(0) scale(1); opacity: 1; }
        }

        .whatsapp-header {
            background: #25D366;
            color: white;
            padding: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .whatsapp-profile {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .whatsapp-avatar {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .whatsapp-info h3 {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
        }

        .whatsapp-info p {
            margin: 0;
            font-size: 0.8rem;
            opacity: 0.9;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: background 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .whatsapp-body {
            padding: 1.5rem;
            max-height: 300px;
            overflow-y: auto;
            background: #f0f0f0;
        }

        .message-bubble {
            background: white;
            padding: 1rem;
            border-radius: 12px;
            border-bottom-left-radius: 4px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .message-bubble::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: -8px;
            width: 0;
            height: 0;
            border: 8px solid transparent;
            border-right-color: white;
            border-bottom-color: white;
        }

        .message-content p {
            margin: 0 0 0.5rem 0;
            color: #333;
            line-height: 1.4;
        }

        .message-content ul {
            margin: 0.5rem 0;
            padding-left: 1.2rem;
        }

        .message-content li {
            margin: 0.3rem 0;
            color: #555;
        }

        .message-time {
            font-size: 0.7rem;
            color: #888;
            text-align: right;
            margin-top: 0.5rem;
        }

        .whatsapp-footer {
            padding: 1rem;
            background: white;
            border-top: 1px solid #eee;
        }

        .message-input-container {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .message-input {
            flex: 1;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 20px;
            outline: none;
            font-size: 0.9rem;
        }

        .message-input:focus {
            border-color: #25D366;
        }

        .send-btn {
            background: #25D366;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .send-btn:hover {
            background: #128C7E;
            transform: translateY(-1px);
        }

        .privacy-note {
            font-size: 0.7rem;
            color: #888;
            text-align: center;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .whatsapp-modal-content {
                width: 95%;
                margin: 1rem;
            }
        }


        @media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}


@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Reduce gap from default 20px */
  }
}
        
        /* Dropdown Styles */
        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 200px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 200;
            border: 1px solid #e5e7eb;
        }
        
        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-item {
            display: block;
            padding: 0.75rem 1.5rem;
            color: #374151;
            text-decoration: none;
            transition: all 0.2s ease;
            border-radius: 8px;
            margin: 0.5rem;
        }
        
        .dropdown-item:hover {
            background: #f3f4f6;
            color: #059669;
        }
        
        .dropdown-item:first-child {
            margin-top: 0.5rem;
        }
        
        .dropdown-item:last-child {
            margin-bottom: 0.5rem;
        }


 /* Pagination Styles */
        .pagination-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            margin: 3rem 0;
            padding: 2rem;
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        
        .pagination button {
            padding: 0.75rem 1rem;
            border: 2px solid #e5e7eb;
            background: white;
            color: #6b7280;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            min-width: 44px;
        }
        
        .pagination button:hover:not(:disabled) {
            border-color: #059669;
            color: #059669;
            background: #f0fdf4;
        }
        
        .pagination button.active {
            background: #059669;
            color: white;
            border-color: #059669;
        }
        
        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .pagination-info {
            color: #6b7280;
            font-size: 0.9rem;
            text-align: center;
        }
        
        .pagination-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        
        .items-per-page {
            padding: 0.5rem;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            background: white;
        }
        
        /* Footer Styles - Improved */
        .main-footer {
            background: #1f2937;
            color: #e5e7eb;
            padding: 3rem 0 2rem 0;
            margin-top: 4rem;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 3rem;
        }
        
        .footer-column h3 {
            color: white;
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
        }
        
        .company-info {
            margin-bottom: 2rem;
        }
        
        .company-info h3 {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        
        .company-info p {
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }
        
        .company-info a {
            color: #10b981;
            text-decoration: none;
        }
        
        .company-info a:hover {
            color: #34d399;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: #374151;
            color: #e5e7eb;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background: #10b981;
            color: white;
            transform: translateY(-2px);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 0.75rem;
        }
        
        .footer-column ul li a {
            color: #d1d5db;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-column ul li a:hover {
            color: #10b981;
        }
        
        /* Bottom Footer */
        .site-footer {
            background: #111827;
            color: #9ca3af;
            text-align: center;
            padding: 1.5rem 0;
            border-top: 1px solid #374151;
        }
        
        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.75);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(4px);
        }
        
        .modal.hidden {
            display: none;
        }
        
        .modal-content {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            max-width: 90vw;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }
        
        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: #f3f4f6;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
                padding: 1rem;
            }
            
            .main-nav {
                order: 3;
                width: 100%;
            }
            
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .search-filters {
                order: 2;
                margin: 0;
                max-width: 100%;
            }
            
            .header-actions {
                order: 1;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 1rem;
            }
            
            .footer-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .pagination {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .slide-title {
                font-size: 2rem;
            }
            
            .slide-subtitle {
                font-size: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            .main-content {
                padding: 1rem;
            }
            
            .hero-carousel {
                height: 300px;
                margin: 1rem;
            }
            
            .product-grid {
                grid-template-columns: 1fr;
            }
        }
       /* Pagination Styles */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-controls label {
    font-size: 0.9rem;
    color: #374151;
}

.items-per-page {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.items-per-page:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    justify-content: center;
}

.pagination-btn:hover:not(.disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.pagination-btn.active {
    background: #059669;
    color: white;
    border-color: #059669;
}

.pagination-btn.active:hover {
    background: #047857;
    border-color: #047857;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .pagination-info {
        text-align: center;
        order: -1;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        min-width: 2.2rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Hide some page numbers on very small screens */
    .pagination-ellipsis {
        display: none;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        min-width: 2rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Only show prev/next and current page on very small screens */
    /*.pagination-btn:not(.active):not([onclick*="currentPage"]):not([onclick*="goToPage(1)"]):not([onclick*="totalPagesCount"]) {*/
    /*    display: none;*/
    /*}*/
    
        .pagination-btn:not(.prev-page):not(.next-page):not(.active):not(:first-child):not(:last-child) {
        display: none;
    }
    
    /* Make sure prev/next buttons are visible */
    .pagination-btn.prev-page,
    .pagination-btn.next-page {
        display: inline-flex !important;
    }
}
/* the end is nigh */
/* Enhanced Modal Styles - Add these to your existing styles.css */

/* Modal Improvements */
.modal {
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1) translateY(0);
}

/* Tab Animation */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

/* Enhanced Button Hover Effects */
.btn.primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn.secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Tab Button Hover Effects */
.tab-button:hover:not(.active) {
    color: #475569;
    background: rgba(0, 0, 0, 0.02);
}

/* Product Image Hover Effect */
.product-image-hover {
    transition: transform 0.3s ease;
}

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

/* Similar Product Cards */
.similar-product-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.similar-product-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Spec Categories */
.spec-category {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #0ea5e9;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.spec-list li:last-child {
    border-bottom: none;
}

/* Delivery Info Enhancement */
.delivery-info-enhanced {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.out-of-stock-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        max-height: 95vh !important;
        margin: 0 !important;
    }
    
    /* Stack layout on mobile */
    .modal-content > div[style*="grid-template-columns"] {
        display: block !important;
    }
    
    .modal-content .image-section {
        min-height: 250px !important;
        padding: 20px !important;
    }
    
    .modal-content .details-section {
        padding: 20px !important;
    }
    
    /* Mobile tab buttons */
    .tab-button {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    /* Mobile specs grid */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile action buttons */
    div[style*="display: flex; gap: 12px"] {
        flex-direction: column !important;
    }
}

/* Loading Animation for Images */
.product-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced Modal Close Button */
.modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    border: none !important;
    background: rgba(15, 23, 42, 0.1) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    color: #64748b !important;
    font-size: 18px !important;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    transform: scale(1.05) !important;
}

/* Smooth Scrolling for Tab Content */
.tab-content {
    scroll-behavior: smooth;
}

/* Enhanced Typography */
.product-title-enhanced {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-price-enhanced {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* Tab Content Spacing */
.tab-content p {
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 24px;
}

/* Quick Specs Grid */
.quick-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.quick-spec-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #0ea5e9;
}

.quick-spec-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.quick-spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* Featured Products Section Styles */
        .featured-products-section {
            margin: 3rem auto 2rem;
            max-width: 1200px;
            padding: 0 1rem;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            position: relative;
        }

        .featured-header {
            text-align: center;
            padding: 2.5rem 2rem 1.5rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .featured-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: rotate(45deg);
            animation: shine 3s ease-in-out infinite;
        }

        @keyframes shine {
            0%, 100% { transform: translateX(-100%) rotate(45deg); }
            50% { transform: translateX(100%) rotate(45deg); }
        }

        .featured-title {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 2;
        }

        .featured-subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 0;
            position: relative;
            z-index: 2;
        }

        .featured-carousel-container {
            position: relative;
            padding: 2rem;
            background: white;
        }

        .featured-carousel {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
        }

        .featured-slides-wrapper {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .featured-slide {
            min-width: 100%;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            padding: 1rem;
        }

        .featured-product-card {
            position: relative;
            height: 400px;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        .featured-product-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
        }

        .featured-product-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .featured-product-card:hover .featured-product-image {
            transform: scale(1.1);
        }

        .featured-product-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                135deg,
                rgba(0, 0, 0, 0.4) 0%,
                rgba(0, 0, 0, 0.2) 50%,
                rgba(0, 0, 0, 0.6) 100%
            );
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 1.5rem;
            color: white;
        }

        .featured-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            padding: 6px 16px;
            border-radius: 25px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
            z-index: 2;
        }

        .featured-product-content {
            display: flex;
            flex-direction: column;
            height: 100%;
            justify-content: space-between;
        }

        .featured-product-top {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            padding: 2rem 0;
        }

        .featured-product-name {
            font-size: 2rem;
            font-weight: 800;
            color: white;
            margin-bottom: 0.5rem;
            line-height: 1.2;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .featured-product-category {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .featured-product-price {
            font-size: 2.5rem;
            font-weight: 900;
            color: #10b981;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .featured-product-description {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 2rem;
            line-height: 1.5;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .featured-product-bottom {
            text-align: center;
        }

        .featured-product-button {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border: none;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .featured-product-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }

        .featured-product-button:hover::before {
            left: 100%;
        }

        .featured-product-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
            border-color: rgba(255, 255, 255, 0.6);
        }

        /* Carousel Navigation */
        .featured-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            color: #374151;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            z-index: 10;
            backdrop-filter: blur(10px);
        }

        .featured-nav-btn:hover {
            background: white;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
            color: #10b981;
        }

        .featured-nav-btn.prev {
            left: 1rem;
        }

        .featured-nav-btn.next {
            right: 1rem;
        }

        /* Carousel Indicators */
        .featured-indicators {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }

        .featured-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #cbd5e0;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .featured-indicator.active {
            background: #10b981;
            transform: scale(1.2);
        }

        .featured-indicator:hover {
            background: #94a3b8;
            transform: scale(1.1);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .featured-products-section {
                margin: 2rem 0.5rem 1.5rem;
            }

            .featured-header {
                padding: 2rem 1rem 1rem;
            }

            .featured-title {
                font-size: 1.5rem;
            }

            .featured-subtitle {
                font-size: 1rem;
            }

            .featured-carousel-container {
                padding: 1rem;
            }

            .featured-slide {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .featured-product-card {
                height: 350px;
            }

            .featured-product-overlay {
                padding: 1rem;
            }

            .featured-product-name {
                font-size: 1.5rem;
            }

            .featured-product-price {
                font-size: 2rem;
            }

            .featured-product-description {
                font-size: 1rem;
            }

            .featured-product-button {
                padding: 0.8rem 2rem;
                font-size: 0.9rem;
            }

            .featured-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .featured-nav-btn.prev {
                left: 0.5rem;
            }

            .featured-nav-btn.next {
                right: 0.5rem;
            }
        }

        @media (max-width: 480px) {
            .featured-product-card {
                height: 320px;
            }

            .featured-product-name {
                font-size: 1.3rem;
            }

            .featured-product-price {
                font-size: 1.8rem;
            }

            .featured-product-description {
                font-size: 0.9rem;
                margin-bottom: 1.5rem;
            }

            .featured-product-button {
                padding: 0.7rem 1.8rem;
                font-size: 0.8rem;
            }
        }

        /* Loading Animation */
        .featured-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3rem;
            color: #64748b;
        }

        .featured-loading i {
            font-size: 2rem;
            margin-right: 1rem;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Integration with existing pagination */
        .pagination-container {
            margin-top: 2rem;
        }




        /* this is trial and error */
        @media (max-width: 768px) {
    .nav {
        padding: 8px 10px !important;
    }
    
    .nav-links a {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    
    .hero-carousel {
        height: 180px !important;
        margin: 0.5rem !important;
    }
}



/*this one  comes to override stuff*/

/* Mobile Product Grid - No Horizontal Overflow */

@media (max-width: 768px) {
  /* Ensure container doesn't overflow */
  .container {
    padding: 0 8px; /* Reduce side padding */
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .shop {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Product grid with proper sizing */
  .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactly 2 columns */
    gap: 8px; /* Smaller gap */
    padding: 8px; /* Minimal padding */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Product cards */
  .card, .product-card {
    width: 100%; /* Full width of grid cell */
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px; /* Reduce internal padding */
    margin: 0; /* Remove any margins */
  }
  
  .card img, .product-image {
    width: 100%;
    height: 120px; /* Smaller height for mobile */
    object-fit: contain;
    box-sizing: border-box;
  }
  
  /* Text adjustments */
  .card h3, .product-name {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  
  .price, .product-price {
    font-size: 14px;
    font-weight: 700;
  }
  
  .small, .product-description {
    font-size: 11px;
  }
  
  /* Button adjustments */
  .btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .product-actions {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 6px;
  }
  
  .product-grid {
    gap: 6px;
    padding: 6px;
  }
  
  .card, .product-card {
    padding: 6px;
  }
  
  .card img, .product-image {
    height: 100px;
  }
  
  .card h3, .product-name {
    font-size: 12px;
  }
  
  .price, .product-price {
    font-size: 13px;
  }
  
  .btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* Ensure no element causes horizontal scroll */
@media (max-width: 768px) {
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  body {
    overflow-x: hidden;
  }
  
  /* Fix any potential overflow from main content */
  .main-content {
    padding: 15px 8px;
    max-width: 100vw;
    box-sizing: border-box;
  }
}


/*so far so very good*/
/* Mobile Modal Fixes - Add to your CSS */

/* Base modal improvements */
.modal {
    padding: 10px; /* Add padding around modal */
}

.modal-content {
    width: 95% !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    margin: 0 !important;
    padding: 15px !important;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Mobile specific modal adjustments */
@media (max-width: 768px) {
    .modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        width: 98% !important;
        max-width: 98vw !important;
        max-height: 95vh !important;
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 8px !important;
        font-size: 14px;
    }
    
    /* Modal close button */
    .modal-close {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
        padding: 0 !important;
    }
    
    /* Product details in modal */
    .modal-content h1,
    .modal-content h2,
    .modal-content h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
        line-height: 1.3;
    }
    
    .modal-content p {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 12px !important;
    }
    
    /* Product image in modal */
    .modal-content img {
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: contain !important;
        margin-bottom: 15px !important;
    }
    
    /* Buttons in modal */
    .modal-content .btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        margin: 5px 2px !important;
        width: calc(50% - 4px) !important;
        box-sizing: border-box;
    }
    
    /* If you have a grid layout in modal */
    .modal-content [style*="grid-template-columns"] {
        display: block !important;
    }
    
    /* Modal content sections */
    .modal-content > div {
        margin-bottom: 15px !important;
    }
    
    /* Price display in modal */
    .modal-content .price {
        font-size: 20px !important;
        margin: 10px 0 !important;
    }
    
    /* Tabs if you have them in modal */
    .modal-content .tab-button {
        padding: 8px 12px !important;
        font-size: 12px !important;
        margin: 2px !important;
    }
    
    /* Product specifications or details list */
    .modal-content ul,
    .modal-content ol {
        font-size: 13px !important;
        padding-left: 20px !important;
    }
    
    .modal-content li {
        margin-bottom: 5px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 2px;
        padding-top: 10px;
    }
    
    .modal-content {
        width: 99% !important;
        max-width: 99vw !important;
        max-height: 98vh !important;
        padding: 10px !important;
        border-radius: 4px !important;
    }
    
    .modal-content h1,
    .modal-content h2,
    .modal-content h3 {
        font-size: 16px !important;
    }
    
    .modal-content p {
        font-size: 13px !important;
    }
    
    .modal-content .btn {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
    
    .modal-content .price {
        font-size: 18px !important;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Ensure modal scrolls properly */
.modal-content {
    -webkit-overflow-scrolling: touch;
}

/* If you have backdrop blur */
.modal {
    backdrop-filter: blur(2px);
}


/*well well surprise surprise         so far so super good and well*/


