/* Reset */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #333;
}

/* Banner */
.banner {
  background: url('../images/anti-rust-gallery-2.jpg') no-repeat center center/cover;
  height: 60vh;
  position: relative;
  text-align: center;
}
.banner-overlay {
  background: rgba(0,0,0,0.5);
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-overlay h2 {
  color: #fff;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  background: #f8f8f8;
  padding: 10px 20px;
  font-size: 14px;
}
.breadcrumb a {
  text-decoration: none;
  color: #0073e6;
}
.breadcrumb span {
  color: #555;
}

/* Layout */
.page-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 20px;
  gap: 20px;
  width: 80%;
  margin-left: 130px;
  margin-bottom: 0;
}

/* Sidebar */
.sidebar {
  flex: 0 0 250px;
  background: #f8f8f8;
  border: 1px solid #ddd;
}

.sidebar h3 a {
  padding: 8px;
  background: #0073e6;
  color: #fff;
  font-size: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
  text-decoration: none;
}

.sidebar h5 a {
  display: block;
  color: #eef1f5;
  padding: 5px 5px 5px 5px;
  background: #0073e6;
  text-decoration: none;
  margin: 2px;
  font-size: 15px;
  text-align: left;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar h3 a:hover {
  text-decoration: none;
}

.sidebar div {
  border-top: 1px solid #ddd;
}

 .about-logo {
  display: block;
  width: 290px;
  height: 250px;
  object-fit: cover;
}

.sidebar p {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
}

/* Add icons */
.sidebar p.phone::before {
content: "📞 ";
}
.sidebar p.email::before {
content: "✉️ ";
}
.sidebar p.location::before {
content: "📍 ";
}


.sidebar .categories {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .categories li {
  border-bottom: 1px solid #ddd;
}
.sidebar .cat-title {
  display: block;
  padding: 10px 15px;
  font-weight: bold;
  background: #0073e6;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar .cat-title:hover {
  background: #005bb5;
}
.sidebar .categories ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 15px;
}
.sidebar .categories ul li a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}
.sidebar .categories ul li a:hover {
  color: #0073e6;
  background: #f0f0f0;
}
.main-content{
  width: 80%;
}
/* Product List */
.product-list {
  flex: 1;

}
.product-item {
  display: flex;
  gap: 15px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  transition: box-shadow 0.3s;
}
.product-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.product-item img {
  width: 150px;
  height: auto;
  border: 1px solid #eee;
}
.product-item .info {
  flex: 1;
}
.product-item h4 {
  margin: 0 0 10px;
  font-size: 18px;
}
.product-item h4 a {
  text-decoration: none;
  color: #0073e6;
  font-weight: bold;
}
.product-item h4 a:hover {
  text-decoration: underline;
}
.product-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

    h2 {
      text-align: center;
      padding: 20px;
      color: #333;
    }

    /* Gallery grid */
    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
      padding: 20px;
      max-width: 1200px;
      margin: auto;
    }

    .gallery img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      cursor: pointer;
      border-radius: 8px;
      transition: transform 0.3s ease;
    }

    .gallery img:hover {
      transform: scale(1.05);
    }

    /* Lightbox modal */
    .lightbox {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.9);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .lightbox img {
      max-width: 90%;
      max-height: 80%;
      border-radius: 8px;
    }

    .lightbox span {
      position: absolute;
      top: 20px;
      right: 40px;
      font-size: 40px;
      color: white;
      cursor: pointer;
      font-weight: bold;
    }

    .chat_button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      padding: 10px 16px;
      background-color: #0c9;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

/* ===== Professional Pagination Styling ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 10px;
  font-family: Arial, Helvetica, sans-serif;
  flex-wrap: wrap;
}

.pagination .page {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #dcdcdc;
  background: #fff;
  color: #28a745;       /* main green theme */
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Hover effect */
.pagination .page:hover {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* Active state */
.pagination .page.active {
  background: #28a745;
  color: #fff;
  font-weight: 600;
  border-color: #28a745;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: default;
}

/* Disabled */
.pagination .page.disabled {
  color: #bbb;
  border-color: #eaeaea;
  background: #f7f7f7;
  cursor: not-allowed;
  box-shadow: none;
}

/* First/Prev/Next/Last buttons */
.pagination .first,
.pagination .prev,
.pagination .next,
.pagination .last {
  padding: 0 16px;
  min-width: auto;
  font-weight: 500;
  border-radius: 6px;
}

/* Ellipsis "…" */
.pagination .dots {
  color: #888;
  font-size: 16px;
  padding: 0 6px;
}




/* =========================
   Responsive Styles
========================= */

/* Tablet screens (≤1024px) */
@media (max-width: 1024px) {
  .page-layout {
    width: 95%;
    margin: 0 auto;
    gap: 15px;
    padding: 15px;
  }

  .sidebar {
    flex: 0 0 220px;
  }

  .main-content {
    width: 100%;
  }

  .banner-overlay h2 {
    font-size: 24px;
  }
}

/* Mobile screens (≤768px) */
@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;   /* stack vertically */
    width: 100%;
    margin: 0;
    padding: 10px;
    gap: 20px;
  }

  .sidebar {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 20px;
  }

  .main-content {
    width: 100%;
  }

  .banner {
    height: 140px;
  }
  .banner-overlay h2 {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .product-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }
  .product-item .info {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;   /* single column gallery */
  }

  .pagination {
    gap: 6px;
  }
  .pagination .page {
    min-width: 35px;
    height: 35px;
    font-size: 13px;
  }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .banner {
    height: 40vh;           /* Reduce height for small phones */
    background-position: center top;
    background-size: cover;
  }
  .banner-overlay h2 {
    font-size: 18px;
  }

  .sidebar h3 a {
    font-size: 14px;
    padding: 6px;
  }
  .sidebar h5 a {
    font-size: 13px;
    padding: 4px;
  }
  .sidebar p {
    font-size: 12px;
  }

  .product-item h4 {
    font-size: 16px;
  }
  .product-item p {
    font-size: 13px;
  }

  .feedback-form input,
  .feedback-form textarea {
    font-size: 14px;
  }

  .pagination .page {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
  }
}
/* =========================
   Sidebar - Mobile (max-width: 480px)
========================= */
@media (max-width: 480px) {

  .sidebar {
    flex: 1 1 100%;       /* Full width */
    width: 100%;
    border: none;
    padding: 10px;
    margin-bottom: 20px;
    background: #f8f8f8;
  }

  .sidebar h3 a,
  .sidebar h5 a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .sidebar .categories li {
    border-bottom: 1px solid #ccc;
  }

  .sidebar .cat-title {
    font-size: 14px;
    padding: 8px 10px;
  }

  .sidebar .categories ul li a {
    font-size: 13px;
    padding: 6px 10px;
  }

  .sidebar p {
    font-size: 12px;
    margin: 3px 0;
  }

  .about-logo {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
}
