
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: 1px solid #ddd;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.logo {
  height: 50px;
  width: 150px;
}
.location {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 5px;
}
.search-bar {
  width: 35%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.get-price {
  background-color: #2e2483;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
}
.user-menu {
  font-size: 14px;
}

/* Breadcrumb */
.breadcrumb {
  background-color: #eee;
  padding: 10px 20px;
  font-size: 14px;
  color: #555;
}

/* Main Layout */
.main-section {
  display: flex;
  padding: 20px;
  gap: 20px;
}

/* Left Panel */
.left-panel {
  width: 200px;
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.left-panel {
  position: sticky;
  top: 20px; /* Distance from top when scrolling */
  align-self: flex-start; /* Needed if you're using flex layout */
  max-height: calc(100vh - 40px); /* prevent overflow */
  overflow-y: auto; /* make it scrollable if it overflows */
  background-color: #fff; /* optional: for better visibility */
  padding: 10px;
  border: 1px solid #ddd;
}

.left-panel h3 {
  margin-bottom: 10px;
  font-size: 16px;
}
.left-panel ul {
  list-style: none;
  margin-bottom: 20px;
}
.left-panel li {
  padding: 6px 0;
  color: #2e2483;
  cursor: pointer;
}
.location a{
  text-decoration: none;
  color: #2e2483;
  font-weight: bold;
}
/* Middle Panel */
.middle-panel {
  flex: 1;
}
.middle-panel h1 {
  font-size: 22px;
  margin-bottom: 10px;
}
.middle-panel h1 span {
  font-size: 14px;
  color: #888;
}
.city-search {
  padding: 8px;
  width: 200px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.location-tags span {
  background: #e3e3ff;
  color: #2e2483;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}
.category-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.category-strip .category {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

/* Product Card */
.similar-products-section h2{
 text-align: center;
}
.product-card {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 6px;
  margin-top: 10px;
  margin-bottom: 10px;
  gap: 20px;
}
.product-card img {
  width: 180px;
  border-radius: 4px;
}
.product-info {
  flex: 2;
}
.product-info h2 {
  font-size: 18px;
  color: #2e2483;
  margin-bottom: 8px;
}
.product-info .price {
  color: #d32f2f;
  font-weight: bold;
  margin-bottom: 8px;
}
.product-info button {
  padding: 8px 4px;
  font-size: 18px;
  margin-left: 10px;
  border: 1px solid #2e2483;
  background-color: white;
  color: #2e2483;
  border-radius: 4px;
  cursor: pointer;
}
.supplier-info {
  flex: 1;
  font-size: 13px;
}
.supplier-info a {
  text-decoration: none;
}

.supplier-info p {
  margin: 4px 0;
}
.contact-btn, .supplier-btn {
  margin-top: 8px;
  padding: 6px 10px;
  width: 100%;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.contact-btn {
  background-color: #c3a023;
  color: white;
}
.supplier-btn {
  background-color: white;
  color: #2e2483;
  border: 1px solid #2e2483;
}

/* Right Panel */
.right-panel {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.right-panel {
  position: sticky;
  top: 20px; /* Distance from top when scrolling */
  align-self: flex-start; /* Needed if you're using flex layout */
  overflow-y: auto; /* make it scrollable if it overflows */
  background-color: #fff; /* optional: for better visibility */
  padding: 10px;
  border: 1px solid #ddd;
}
.best-seller, .video-section {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
}
.best-seller img, .video-thumbnail img {
  width: 100%;
  border-radius: 6px;
  margin: 10px 0;
}
.best-seller button {
  padding: 8px 12px;
  background-color: #2e2483;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.video-section h4 {
  font-size: 16px;
  margin-bottom: 10px;
}
.video-thumbnail p {
  font-size: 13px;
  margin-top: 6px;
}
/* ------- */
.mobile-number {
  background-color: #e0f7fa;
  color: #00796b;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #b2dfdb;
  font-weight: 600;
  font-size: 16px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.supplier-btn {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.supplier-btn:hover {
  background-color: #20c056;
}
/*  */
.related-category {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-category li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 8px;
  transition: background 0.3s ease;
}

.related-category li:hover {
  background: #eaeaea;
}

.related-category img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
}

.related-category a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  width: 100%;
}

.related-category span {
  font-size: 14px;
}

/* ---------------category-hover------- */
.category {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  margin-right: 10px;
  background-color: #f2f2f2;
  transition: background-color 0.3s, color 0.3s;
}

.category:hover {
  background-color: #e0e0e0;
}

.category.active-category {
  background-color: #007bff;
  color: white;
}

/* product-page-css*/
    .product-specification-page {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: space-between;
    }

    .gallery {
      flex: 1 1 100%;
      max-width: 400px;
      margin: auto;
    }

    .main-image img {
      width: 100%;
      height: 220px;
      border: 2px solid #ccc;
      border-radius: 8px;
    }

    .thumbnails {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .thumbnails img {
      width: 70px;
      height: 70px;
      cursor: pointer;
      border: 2px solid transparent;
      border-radius: 6px;
      transition: border 0.3s;
    }

    .thumbnails img.active,
    .thumbnails img:hover {
      border-color: #007bff;
    }

    .specs {
      flex: 1 1 100%;
      max-width: 600px;
    }

    .specs h1 {
      font-size: 24px;
      margin-top: 50px;
    }

    .specs .price {
      font-size: 20px;
      color: green;
      margin: 5px 0 15px;
    }

    .specs table {
      width: 100%;
      border-collapse: collapse;
    }

    .specs td {
      padding: 8px;
      border-bottom: 1px solid #eee;
    }

    .seller-info {
      flex: 1 1 100%;
      max-width: 300px;
      border-left: 1px solid #ddd;
      padding-left: 20px;
      margin-top: 50px;
      padding-right: 40px;
    }

    .seller-info h3 {
      margin-top: 0;
    }

    .contact-btn {
      display: inline-block;
      background: #007bff;
      color: #fff;
      padding: 10px 15px;
      border-radius: 5px;
      text-decoration: none;
      margin-top: 10px;
    }

    .similar-products-section {
      margin-top: 40px;
      padding: 20px;
      background: #fff;
    }

    .similar-products-section h2 {
      font-size: 22px;
      margin-bottom: 20px;
    }

    .product-list-specification {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }

    .product-card-specification {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      width: 300px;
      padding: 10px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
      transition: transform 0.2s;
    }

    .product-card-specification:hover {
      transform: translateY(-4px);
    }

    .product-card-specification img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 6px;
    }

   .product-card-specification .get-price {
      background: #d2f2eb;
      color: #008773;
      font-weight: bold;
      text-align: center; 
      padding: 8px 10px;
      border-radius: 4px;
      margin-top: 10px;
      font-size: 14px;
    }

    .product-card-specification a {
      text-decoration: none;
      color: inherit;
    }

   .product-title {
    
      font-weight: bold;
      font-size: 15px;
      margin: 8px 0 4px;
    }
    .product-info a{
      text-decoration: none;
      color: inherit;
    }

    .supplier, .location, .price {
      font-size: 14px;
      color: #555;
    }

    .view-mobile {
      font-size: 13px;
      color: #007bff;
      text-decoration: underline;
      cursor: pointer;
      display: block;
      margin: 5px 0;
    }

    .price {
      font-weight: bold;
      color: #000;
      font-size: 15px;
    }
    /* -------------------- */
       /* Button container */
    .bottom-buttons {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: space-around;
      background: transparent;
      padding: 10px;
      /* box-shadow: 0 -2px 8px rgba(0,0,0,0.1); */
      z-index: 1000;
    }

   .bottom-buttons .btn {
      flex: 1;
      margin: 0 5px;
      padding: 12px;
      font-size: 16px;
      border-radius: 25px;
      border: 2px solid #008080;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      transition: 0.3s;
    }

   .bottom-buttons .btn-call {
      background: #25D366;
      color: #fff;
    }

   .bottom-buttons .btn-call:hover {
      background: #25D366;
      color: #fff;
    }

    .bottom-buttons .btn-price {
      background: #25D366;
      color: #fff;
      border: none;
    }

    .bottom-buttons .btn-price:hover {
      background: #25D366;
    }
    /* ------ */
    .bottom-buttons .bottom-buttons {
       display: none;
      }
    .bottom-buttons a {
      text-decoration: none;
      color: inherit;
    } 
    /* -------- */
    .phone-icon {
     display: inline-block;
     animation: bounce 1.2s infinite;
    }
    /* video-specification */
    .video-specification {
      margin-top: 20px;
      padding: 20px;
      border-radius: 8px;
      text-align: center;
    }
    .videos-flex iframe{
      width: 300px;
      height: 200px;
      border-radius: 15px;
    }

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
  /* ---------- */
}

@media only screen and (max-width: 992px) {
  .main-section {
    flex-direction: column;
  }
  .left-panel,
  .right-panel {
    width: 100%;
  }
  .middle-panel {
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .top-header {
    flex-wrap: wrap;
    gap: 8px;
    background-color: #90909061;
  }
  .logo { width: 120px; }
  .search-bar { width: 100%; }
  .header-icons { font-size: 16px; }
  
  .breadcrumb {
    font-size: 12px;
    padding: 8px;
  }
   .left-panel {
    display: none;
  position: static;
}

  .location-tags span,
  .category-strip .category {
    font-size: 12px;
    padding: 4px 8px;
  }
 
  .product-card {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .product-card img {
    width: 100%;
    max-width: 250px;
  }
  .product-info, .supplier-info {
    width: 100%;
  }

  .product-info h2 { font-size: 16px; }
  .product-info .price,
  .supplier-info p {
    font-size: 14px;
  }

  .supplier-info p{
    text-align: center;
  }
  .supplier-info p strong{
    font-weight: bold;
    font-size: 18px;
    color: #2d1193;
  }
  .right-panel {
    order: 2; /* Move below middle or above? adjust per priority */
    width: 100%;
  }
  .best-seller, .video-section {
    padding: 10px;
  }
  .video-section iframe {
    width: 100%;
    height: auto;
  }
    .product-specification-page {
        flex-direction: column;
        padding: 10px;
      }

      .gallery, .specs, .seller-info {
        max-width: 100%;
        padding: 0;
        border-left: none;
      }
       .seller-info {
        margin-top: 20px;
       }
      .thumbnails img {
        width: 50px;
        height: 50px;
      }

      .seller-info {
        border-top: 1px solid #ddd;
        margin-top: 20px;
        padding-top: 10px;
        text-align: center;
      }
    .specs h1 {
    font-size: 24px;
    margin-top: 20px;
    }
    .product-card-specification {
      width: 160px;
    }
    /* .contact-btn {
      width: 200px;
    } */

    .bottom-buttons {
       display: flex;
      }

}
@media only screen and (max-width: 420px){
     .product-card-specification {
      width: 150px;
    }
}