/*-------------------- GLOBAL RESET --------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    padding-top: 80px;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    flex: 0 0 auto;
}

.logo {
    height: 45px; /* Adjust logo size */
    width: auto;
    object-fit: contain;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-right {
    flex: 0 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links .inquiry-btn {
    display: none;
}

.nav-links a:hover {
    color: #ff3700;
}

.inquiry-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.inquiry-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
.active-link a{
    color: #ff3700;
}
/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        position: relative;
    }

    .hamburger {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 20px;
    }

    .nav-right {
        display: none;
        /* Hide desktop inquiry button on mobile */
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: left;
        padding-top: 20px;
        gap: 10px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        position: fixed;
        transform: none;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 18px;
        display: block;
        text-align: left;
        width: 100%;
        padding: 15px 25px;
    }

    .nav-links li a:hover {
        color: #0056b3;
        background-color: rgb(233, 233, 233);
    }

    .nav-links .inquiry-btn {
        display: inline-block;
        /* Show inquiry button in mobile menu */
        padding: 15px 30px;
        /* Reduced padding for smaller width */
        font-size: 18px;
        /* Slightly smaller font */
        color: #fff;
        margin: 0 20px;
        text-align: center;
    }

    .nav-links li:last-child {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}


/*-------------------- SECTION HEADER --------------------*/
.section-header {
    text-align: center;
    margin-bottom: 60px;
    color: #2d3748;
}

.section-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/*-------------------- PRODUCTS GRID --------------------*/
.products-grid {
    display: grid;
    /* Force 3 columns on large screens */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    margin-bottom: 60px;
    padding: 0 18px; /* 18px left/right padding */
}

@media (max-width: 1024px) {
    .products-grid {
        /* Fallback to auto-fit on medium screens */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/*-------------------- MOBILE ADJUSTMENTS FOR SEARCH BAR --------------------*/
@media (max-width: 768px) {
  #productSearch {
    max-width: 100%;       /* allow full width on mobile */
    width: 100%;           /* fill its parent container */
    margin: 12px 0;        /* top/bottom margin, remove left/right */
    padding: 10px;
    font-size: 0.95rem;    /* slightly smaller font on mobile */
  }
  
  .section-header {
    padding: 0 18px;       /* ensure some horizontal padding */
  }
}




/*-------------------- PRODUCT CARD (Desktop) --------------------*/
.product-card {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 18px; /* 18px margin + subtle border */
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image container */
.product-image {
    width: auto;
    height: auto;
    background: #f1f5f9; /* light-gray if image doesn't fill */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content area */
.product-content {
    padding: 20px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
}

.product-description {
    color: #718096;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.95rem;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.product-features li {
    padding: 5px 0;
    color: #4a5568;
    font-size: 0.9rem;
    position: relative;
    padding-left: 30px;   /* increased space for the checkmark */
    line-height: 1.4;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;              /* place checkmark at very left */
    color: #48bb78;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 6px;    /* small gap between checkmark and text */
}

/* Price */
.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    margin-bottom: 20px;
}

/* Learn More button */
.learn-more {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.learn-more::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;
}

.learn-more:hover::before {
    left: 100%;
}

.learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/*-------------------- DETAILED VIEW --------------------*/
.product-detail {
    margin-bottom: 60px;
}

.hidden {
    display: none;
}

/* Back button */
.back-button {
    background-color: #667eea;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 18px; /* 18px left margin */
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #5259d9;
}

/* Container for image + details */
.detail-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 0 18px;
}

/* Image & thumbnail wrapper */
.detail-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 45%;        /* increased: take 45% of container */
    max-width: 45%;       /* take up to 45% width */
    margin: 18px;         /* 18px margin + border */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background-color: #ffffff;
}

.detail-image {
    width: 100%;
    height: 400px;        /* increased height for larger container */
    background: #f1f5f9;  /* light-gray background */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: #e2e8f0; /* slightly darker gray */
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #667eea; /* highlight color */
}

/* Textual detail section */
.detail-content {
    flex: 1 1 45%;        /* increased: take 45% of container */
    max-width: 45%;       /* take up to 45% width */
    margin: 18px;         /* 18px margin + border */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background-color: #ffffff;
}

.detail-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
    text-align: center;
}

.detail-content p {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

.detail-features {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.detail-features li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 0.95rem;
    position: relative;
    padding-left: 32px;   /* increased from 25px to 32px for extra space */
    line-height: 1.5;
}

.detail-features li::before {
    content: '✓';
    position: absolute;
    left: 0;              /* keep at left edge */
    color: #48bb78;
    font-weight: bold;
    font-size: 1rem;
}

/* Price */
.detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
}

/* CTA Button */
.detail-cta-btn {
    display: block;       /* make block to center via margin auto */
    margin: 0 auto;       /* center horizontally */
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.detail-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/*-------------------- RELATED PRODUCTS --------------------*/
.related-section {
    margin-top: 40px;
    padding: 0 18px;
}

.related-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3748;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-grid .product-card {
    margin-right: 18px; /* 18px right margin */
}

/*-------------------- MEDIA QUERIES: TABLET (≤1024px) --------------------*/
@media (max-width: 1024px) {
    /* Stack detail-container vertically */
    .detail-container {
        flex-direction: column;
        align-items: center;
    }
    .detail-image-wrapper,
    .detail-content {
        max-width: 100%;
        flex: 1 1 100%;
    }

    /* Make related products grid auto-fit */
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* Slightly reduce margins on product cards */
    .product-card {
        margin: 12px;
    }
}

/*-------------------- MEDIA QUERIES: MOBILE (≤768px) --------------------*/
@media (max-width: 768px) {
    /* Make related products a single column */
    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce padding & font-sizes for mobile readability */
    .product-content {
        padding: 12px;
    }
    .product-title {
        font-size: 1.15rem;
    }
    .product-description {
        font-size: 0.9rem;
    }
    .product-price {
        font-size: 1.2rem;
    }
    .learn-more {
        padding: 10px 20px;
        font-size: 0.9rem;
        
    }

    /* Stack products-grid into one column (if you have .products-grid elsewhere) */
    .products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 18px;
    }

    /* Adjust detail-content & image-wrapper to be full width */
    .detail-image-wrapper,
    .detail-content {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 12px;
    }

    /* Reduce detail-image height */
    .detail-image {
        height: 250px;
    }

    /* Further reduce detail-content padding and typography */
    .detail-content {
        padding: 12px;
    }
    .detail-content h2 {
        font-size: 1.6rem;
    }
    .detail-content p {
        font-size: 0.9rem;
    }
    .detail-features li {
        font-size: 0.85rem;
        padding: 6px 0;
        padding-left: 28px; /* slightly narrower for small screens */
    }
    .detail-price {
        font-size: 1.5rem;
    }

    /* Adjust back-button margin/padding */
    .back-button {
        margin-left: 0;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Adjust related-section title */
    .related-section h3 {
        font-size: 1.3rem;
    }
}

/*-------------------- MEDIA QUERIES: SMALL MOBILE (≤480px) --------------------*/
@media (max-width: 480px) {
    /* Shrink detail-content heading a bit more */
    .detail-content h2 {
        font-size: 1.4rem;
    }
    .detail-content p {
        font-size: 0.85rem;
    }
    .back-button {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .related-section h3 {
        font-size: 1.2rem;
    }
    /* On very small screens, ensure checkmarks do not overlap */
    .detail-features li {
        padding-left: 30px;  /* slight extra space for icon */
    }
}

/*-------------------- FOOTER --------------------*/

/*Footer*/

.footer {
    background: #3E8F88;
    color: white;
    padding: 40px 80px;
    position: relative;
    margin:0 auto;
    min-height: 75vh;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    justify-content: space-between;
  }
  
  .footer-section {
    flex: 1 1 220px;
    margin: 20px;
  }
  .about{
    line-height: 1.3;
    font-size: 1rem;
    color: rgb(225, 225, 225);
  }
  .footer-section h4 {
    margin-bottom: 15px;
    font-style: bold;
    font-size: 1.3rem;
    color: #ffffff;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li a {
    color: rgb(225, 225, 225);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
  }
  
 
  .footer-section .logo {
    height: 40px;
    margin-bottom: 10px;
  }
  

  .footer-section ul li a:hover {
    color: #f3ff10;
  }
  
   .footer-contact{
    font-size: 14px;
  }
  .footer-contact a{
    text-decoration:none;
    color: rgb(225, 225, 225);
  }
  .footer-contact a:hover{
    color: #f3ff10;
  }
  .footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 18px;
    border-top: 1px solid #333;
    padding-top: 15px;
  }
  .footer-bottom p{
    margin-top: 20px;
  }
  .scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    display: none;
    transition: all 0.3s ease;
  }
  
  .scroll-top:hover {
    background-color: #0056b3;
  }
  @media screen and (max-width: 768px) {
    .footer {
      padding: 30px 40px;
      min-height: auto;
    }
  
    .footer-container {
      align-items: flex-start;
      padding: 10px;
    }
  
    .footer-section {
      margin: 20px 0;
      width: 100%;
    }
  
    .footer-bottom {
      font-size: 0.9rem;
      padding-top: 10px;
      margin-top: 20px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .footer {
      padding: 20px;
    }
    .about{
      margin-top: 50px;
    }
    .footer-section .logo {
      display: block;
    }
    
  }
  