main {
  /* background-color: #f0f1f2; */
  /* box-sizing: border-box; */
  /* padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px; */
  padding: 0;
  margin: 0;
}


body {
  padding: 0;
  margin: 0;
}

/* navbar */

body {
  padding: 0;
  margin: 0;
}

* {
  /* box-sizing: border-box; */
  margin: 0;
  padding: 0;
}

/* navbar */

/* Navbar container */
header .nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 70px;
  flex-wrap: wrap;
  /*padding: 0 10px;*/
}

/* Search bar */
header .search-bar {
  border: 2px solid #376f03;
  border-radius: 25px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
}

/* File upload button */
header .custom-file-upload {
  display: inline-block;
  padding: 10px 15px;
  background-color: transparent;
  color: #376f03;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

header .custom-file-upload i {
  margin-right: 8px;
}

/* Select dropdown */
header form select {
  padding: 5px 10px;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  border: none;
  flex-shrink: 0;
}

header form select:focus {
  outline: none;
}

/* Search input */
header .search {
  padding: 15px 10px;
  border: 0;
  border-left: 1px solid gray;
  width: 400px;
  flex-shrink: 1;
  min-width: 150px;
}

header .search:focus {
  outline: none;
}

/* Search button */
header form button {
  background-color: #376f03;
  color: white;
  border: none;
  padding: 15px;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  flex-shrink: 0;
}

header form button:hover {
  background-color: white;
  color: #376f03;
  border-left: 1px solid #376f03;
}

/* Navbar buttons */
header .buttons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  column-gap: 20px;
}

header .buttons a {
  display: flex;
  margin-top: 10px;
  text-decoration: none;
  text-align: center;
  color: black;
}

header .buttons a div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 15px;
}

header .buttons a i {
  font-size: 25px;
  margin-bottom: -25px;
}

/* Hamburger menu (mobile) */
header .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

header .hamburger div {
  width: 25px;
  height: 3px;
  background-color: #333;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  header .nav {
    flex-direction: row;
    align-items: center;
    height: auto;
    gap: 10px;
  }

  header .search-bar {
    /* width: 100%; */
    /* overflow-x: auto; */
    flex-wrap: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  header .search-bar .search {
    width: 50px;
  }

  header .search-bar form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
  }

  header form select,
  header .search,
  header .custom-file-upload,
  header form button {
    width: auto;
    flex: 0 0 auto;
  }

  header .search {
    border-left: 1px solid gray;
  }

  header .buttons {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  header .buttons.show {
    display: flex;
  }

  header .hamburger {
    display: flex;
  }
}
header 


/* after navbar part */


header {
  /* width: ; */
  background-color: white;
}

header .nav2 {
  border-top: 1px solid #e6e7eb;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 15px;
  padding-bottom: 15px;
  overflow-x: auto;
}

header .nav2 select {
  border: none;
}

header .nav2 select:focus {
  outline: none;
}

header .nav2,
.middle-part {
  justify-content: space-between;
}

header .nav2 .middle-part {
  column-gap: 100px;
  border-left: 1px solid #e6e7eb;
  border-right: 1px solid #e6e7eb;
  padding-left: 10px;
  padding-right: 30px;
}

@media screen and (max-width: 768px) {
  header .nav2 .middle-part a {
    font-size: 15px;
    color: red;
  }

  header .nav2 .middle-part {
    column-gap: 10px;
    white-space: nowrap;
  }

  header .nav2 .last-part {
    white-space: nowrap;
  }

  header .nav2 select {
    font-size: 15px;
  }
}

header .nav2 .middle-part .first-half {
  display: flex;
  column-gap: 20px;
}

header .nav2 .middle-part .first-half a {
  text-decoration: none;
  color: black;
}

header .nav2,
.categories,
.middle-part,
.rest-half {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

/* home page */

/* category section */

.home .sect-category .categories ul,
.home .sect-category li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home .sect-category .categories {
  display: flex;
  flex-direction: column;
}

.home .sect-category .categories ul {
  line-height: 3;
}

.home .sect-category .categories a {
  text-decoration: none;
  color: #7670a7;
}

.home .sect-category .col2 .main-img img {
  height: 400px;
  width: 734px;
  object-fit: cover;
}

/* .home .sect-category .col2 .cards {
  display: flex;
  column-gap: 5px;
} */

/* .home .sect-category .col2 .cards .card {
  height: 120px;
  width: 40%;
  background-color: #f0f1f2;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}

.home .sect-category .col2 .cards .card a {
  color: black;
  text-decoration: none;
} */

.home .sect-category .col2 .cards .card1 {
  /* max-width: 290px; */
}

/*.home .sect-category .col3 {*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  align-items: start;*/
/*  justify-content: start;*/
/*}*/

/*.home .sect-category .col3 .cards .card-img img {*/
/*  width: 60px;*/
/*  height: 60px;*/
/*}*/

/*.home .sect-category .col3 .cards .card {*/
/*  display: flex;*/
/*  align-items: start;*/
/*  justify-content: start;*/
/*  max-height: 80px;*/
/* width: ; */
/*  column-gap: 5px;*/
/*  margin-bottom: 10px;*/
/*}*/

.home .col3 {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

.home .col3 .cards .card-img img {
  width: 60px;
  height: 60px;
}

.home .col3 .cards .card {
  display: flex;
  align-items: start;
  justify-content: start;
  max-height: 80px;
  /* width: ; */
  column-gap: 5px;
  margin-bottom: 10px;
}

/* .home .sect-category .col3 .cards .card .txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 1px;
} */

.home .col3 {
  padding: 20px;
  background-color: white;
}

.home .col3 h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.home .sect-category .col3 .blog-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/*@media (min-width: 1440px) {*/
/*    .home .sect-category .col3 .blog-cards {*/
/*        flex-direction: row;*/
/*    }*/

/*    .home .sect-category .col3 .blog-card {*/
/*        width: 50%;*/
/*    }*/

/*    .home .sect-category .col3 .blog-card2 {*/
/*        display: none;*/
/*    }*/
/*}*/

.home .sect-category .col3 .blog-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.home .sect-category .col3 .blog-card:hover {
  transform: translateY(-5px);
}

/* .home .sect-category .col3 .blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
} */

/* .home .sect-category .col3 .blog-content {
  padding: 16px;
} */

/* .home .sect-category .col3 .blog-content h3 { */
  /* font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
}

.home .sect-category .col3 .blog-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

.home .sect-category .col3 .blog-content a {
  font-weight: bold;
  color: #376f03;
  text-decoration: none;
}

.home .sect-category .col3 .blog-content a:hover {
  text-decoration: underline;
}

.home .sect-category .col3 .view-all-link {
  text-align: center;
  margin-top: 20px;
} */

.home .products-grid .view-all-link {
  text-align: center;
  margin-top: 20px;
}
.home .sect-category .col3 .view-all-link a {
  font-size: 1rem;
  color: #376f03;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #376f03;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.home .sect-category .col3 .view-all-link a:hover {
  background-color: #376f03;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .home .sect-category {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 20px;
  }

  .home .sect-category .categories {
    width: 100%;
  }

  .home .sect-category .col2 {
    width: 100%;
  }

  .home .sect-category .col2 .main-img img {
    width: 100%;
    height: auto;
  }

  .home .sect-category .col2 .cards {
    flex-direction: column;
    gap: 10px;
  }

  .home .sect-category .col2 .cards .card {
    width: 100%;
    height: auto;
  }

  .home .sect-category .col3 {
    width: 100%;
  }
}

/* Trending Section's styling */

/* Section padding and layout */
.home .trending-section {
  padding: 40px 20px;
  background-color: white;
  /* max-width: 1200px; */
  margin: 0 auto;
  margin-top: 50px;
}

/* view all products button styling */
.home .trending-section .view-all-products {
  text-align: center;
  margin-top: 20px;
}
.home .trending-section .view-all-products a {
  font-size: 1rem;
  color: #376f03;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #376f03;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.home .trending-section .view-all-products a:hover {
  background-color: #376f03;
  color: #fff;
}

/* Title styling */
.home .section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: left;
}

/* Mobile: center align title */
@media screen and (max-width: 767px) {
  .home .section-title {
    text-align: center;
  }
}

/* Grid layout */
.home .products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Tablet */
@media screen and (min-width: 600px) {
  .home .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .home .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium Desktop */
@media screen and (min-width: 1025px) {
  .home .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Large Desktop */
@media screen and (min-width: 1281px) {
  .home .products-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Product card styling */
.home .product-card {
  background-color: #fff;
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  padding: 12px;
  text-align: center;

  transition: transform 0.2s;
}

.home .product-card img {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
}

.home .product-card:hover {
  transform: translateY(-4px);
}

.home .product-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* Sourcing Section's styling */

/* === SECTION STYLING === */
.home .sourcing-section {
  background: url("https://via.placeholder.com/1600x600") no-repeat center
    center/cover;
  color: black;
  
  overflow-x: hidden;
}

.home .sourcing-overlay {
  /* background-color: rgba(0, 0, 0, 0.5); */
  /*background-image: url(./images/Sourcing/background/easy-sourcing2.webp);*/
  background-size: cover;
  
  
  box-sizing: border-box;
}

.home .sourcing-container {
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

/* === LEFT COLUMN === */
.home .sourcing-left {
  flex: 1;
  min-width: 280px;
  box-sizing: border-box;
}

.home .sourcing-left h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.home .sourcing-desc {
  font-size: 18px;
  margin-bottom: 16px;
}

.home .sourcing-subdesc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.home .learn-more-btn {
  background-color: #376a06;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.home .learn-more-btn:hover {
  background-color: #274d05;
}

/* === RIGHT COLUMN (FORM) === */
.home .sourcing-right {
  flex: 1;
  min-width: 280px;
  background-color: #ffffff;
  color: #000;
  padding: 30px 20px;
  border-radius: 10px;
  box-sizing: border-box;
  width: 100%;
}

.home .sourcing-right h3 {
  margin-bottom: 20px;
  font-size: 22px;
}

.home .sourcing-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home .sourcing-form input,
.home .sourcing-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.home .sourcing-form textarea {
  height: 100px;
  resize: vertical;
}

.home .sourcing-form textarea:focus {
  outline: none;
}

.home .sourcing-form input:focus {
  outline: none;
}

.home .sourcing-form .half-width {
  width: 50%;
}

.home .submit-btn {
  background-color: #376a06;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  align-self: flex-start;
}

.home .submit-btn:hover {
  background-color: #274d05;
  color: white;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .home .sourcing-container {
    flex-direction: column;
    gap: 20px;
  }

  .home .sourcing-form .half-width {
    width: 100%;
  }

  .home .sourcing-left,
  .home .sourcing-right {
    padding: 0;
  }

  .home .sourcing-right {
    padding: 20px 15px; /* smaller side padding */
  }
}

@media screen and (max-width: 375px) {
  .home .sourcing-right {
    margin-left: -20px;
  }
}

@media screen and (max-width: 320px) {
  .home .sourcing-right {
    margin-left: -45px;
  }
}
/* =============================================Home page's styling ends============================================= */

/* SingleProduct page's styling */

.single-product .product-container {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  gap: 20px;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.single-product .product-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 10px;
}

.single-product .product-details {
  flex: 1;
  overflow-x: auto;
}

.single-product table {
  width: 100%;
  border-collapse: collapse;
}

.single-product th,
.single-product td {
  text-align: left;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.single-product th {
  background-color: #f3f3f3;
  width: 40%;
}

.single-product .product-container select {
  padding: 6px;
  width: 100%;
  font-size: 14px;
}

@media (max-width: 768px) {
  .single-product .product-container {
    flex-direction: column;
    align-items: center;
  }

  .single-product .product-details {
    width: 100%;
  }

  .single-product table {
    font-size: 14px;
  }
}

/* related products */

.single-product .related-products {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  margin-bottom: ;
}

.single-product .related-products h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.single-product .slider-wrapper {
  position: relative;
}

.single-product .slider-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.single-product .product-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  text-decoration: none;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 15px;
  text-align: center;
  color: #000;
  transition: transform 0.2s ease;
}

.single-product .product-card:hover {
  transform: translateY(-5px);
}

.single-product .product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-product .product-card h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #222;
}

.single-product .product-card p {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
}

/* Navigation Buttons */
.single-product .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.single-product .slider-btn:hover {
  opacity: 1;
}

.single-product .slider-btn.prev {
  left: -10px;
}

.single-product .slider-btn.next {
  right: -10px;
}

@media (max-width: 768px) {
  .single-product .slider-btn {
    display: none;
  }
}

/* Single Product Page's styling ends */

/* Product Entry Page's styling starts */

.product-entry form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.product-entry h2 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 600;
  color: #222;
}

.product-entry .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .product-entry .form-grid {
    grid-template-columns: 1fr;
  }
}

.product-entry label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.product-entry input[type="text"],
.product-entry input[type="tel"],
.product-entry select {
  width: 100%;
  padding: 10px 14px;
  border: 1.8px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.product-entry input[type="text"]:focus,
.product-entry input[type="tel"]:focus,
.product-entry select:focus {
  outline: none;
  border-color: #376f03; /* Blue ring */
  box-shadow: 0 0 5px rgba(55, 111, 3, 0.5);
}

/* Make payment method span full width */
.product-entry .full-width {
  grid-column: 1 / -1;
}

.product-entry button {
  margin-top: 24px;
  width: 100%;
  padding: 12px 0;
  background-color: #376f03;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.product-entry button:hover {
  background-color: #274d05;
}

/* Hide the default file input */
.product-entry input[type="file"] {
  display: none;
}

/* Custom styled button for file upload */
.product-entry .custom-file-upload {
  display: inline-block;
  padding: 12px 20px;
  cursor: pointer;
  background-color: #376f03;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  user-select: none;
  transition: background-color 0.3s ease;
  width: fit-content;
}

.product-entry .custom-file-upload:hover {
  background-color: #274d05;
}

/* Center the button inside the full-width grid item */
.product-entry .full-width .custom-file-upload {
  width: 30%;
  display: block;
  text-align: center;
}

/* Product Entry Page's Styling ends */

/* Login/Registration page's styling starts */

.sign .auth-container {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  padding: 30px 24px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sign {
  background-color: #eeeff0;
}

.sign .auth-form {
  display: flex;
  flex-direction: column;
}

.sign .auth-form h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #111827;
}

.sign .auth-form label {
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

.sign .auth-form input {
  padding: 10px 12px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.sign .auth-form input:focus {
  border-color: #376f03; /* Blue ring */
  outline: none;
  box-shadow: 0 0 5px rgba(55, 111, 3, 0.5);
}

.sign .auth-form button {
  margin-top: 24px;
  padding: 12px;
  background-color: #376f03;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.sign .auth-form button:hover {
  background-color: #274d05;
}

.sign .auth-form p {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  color: #4b5563;
}

.sign .auth-form a {
  color: #376f03;
  text-decoration: none;
  font-weight: 600;
}

/* Login/Registration page's styling ends */

/* Blogs page stying starts */
.blogs .title {
  /* background-color: #007bff; */
  color: black;
  padding: 30px 20px;
  text-align: center;
}

.blogs main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  border-radius: 10px;
}

.blogs h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.blogs .blog-grid {
  display: grid;
  padding-top: 25px;
  padding-bottom: 25px;
  gap: 20px;
}

.blogs .blog-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blogs .blog-card:hover {
  transform: translateY(-5px);
}

.blogs .blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blogs .blog-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blogs .blog-content h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #376f03;
}

.blogs .blog-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.blogs .blog-content a {
  color: #376f03;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.blogs .blog-content a:hover {
  text-decoration: underline;
}

/* Responsive Grid Layout */
@media (min-width: 1024px) {
  .blogs .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .blogs .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 767px) {
  .blogs .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Blogs page stying ends */

/* Detailed Blog styling starts */

.detailed-blog {
  line-height: 1.7;
  background-color: white;
  color: #333;
}

.detailed-blog main {
  max-width: 900px;
  margin: 40px auto;
  /* padding: 0 20px; */
  padding: 20px;
  border-radius: 20px;
}

.detailed-blog .blog-banner {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 25px;
}

.detailed-blog .blog-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.detailed-blog .blog-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}

.detailed-blog .blog-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 30px;
}

.detailed-blog .blog-content {
  font-size: 1rem;
  color: #444;
}

.detailed-blog .blog-content h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #376f03;
}

.detailed-blog .blog-content p {
  margin-bottom: 20px;
}

.detailed-blog .author-box {
  margin-top: 50px;
  padding: 20px;
  background-color: #f1f1f1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.detailed-blog .author-box img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.detailed-blog .author-box div {
  line-height: 1.3;
}

@media (max-width: 600px) {
  .detailed-blog .blog-title {
    font-size: 1.5rem;
  }

  .detailed-blog .blog-content h2 {
    font-size: 1.2rem;
  }

  .detailed-blog .author-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .detailed-blog .detailed-blog .author-box img {
    margin-bottom: 10px;
  }
}

/* Detailed Blog styling ends */

/* Products page styling */

.products .products-section {
  max-width: 100vw;
  margin: 0 auto;
}

.products .products-section h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #376f03;
}

.products .products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Product Card */
.products .products-section {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  background-color: white;
  border-radius: 20px;
}

.products .products-section h1 {
  text-align: center;
  font-size: 32px;
  color: #376f03;
  margin-bottom: 40px;
}

/* Responsive Grid */
.products .products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Product Card */
.products .product-card {
  width: 250px; /* fixed width */
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.products .product-card:hover {
  transform: translateY(-5px);
}

.products .product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.products .card-content {
  padding: 16px;
}

.products .card-content h3 {
  font-size: 18px;
  color: #222;
  margin-bottom: 8px;
}

.products .card-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

/* Products page styling ends */

/* footer's styling */

.footer {
  background-color: #e6e7ea;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-columns {
  display: flex;
  flex: 1 1 70%;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li {
  margin: 6px 0;
}

.footer-col ul li a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  width: 100%;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.footer-side {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.product-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #d9dadc;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
}

.co-brands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-brands img {
  background-color: #ccc;
  padding: 5px;
  border-radius: 4px;
  max-width: 100%;
}

/* Tablet: 2-column layout */
@media (max-width: 1023px) {
  .footer-container {
    flex-direction: row;
  }

  .footer-columns {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-col {
    flex: 1 1 calc(50% - 20px);
  }

  .footer-side {
    flex: 1 1 100%;
    align-items: center;
  }
}

/* Mobile: stacked layout */
@media (max-width: 767px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-columns {
    flex-direction: column;
  }

  .footer-col {
    flex: 1 1 100%;
  }

  .footer-side {
    width: 100%;
    align-items: center;
  }

  .lang-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

/* css   for   logout  button t */

.rest-half {
  padding: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcome-msg {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  color: #333;
}

.welcome-msg h3 {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.welcome-msg p {
  margin: 0;
  font-size: 14px;
}

.btn-login,
.btn-register,
.btn-logout {
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-login {
  background-color: #007bff;
  color: white;
}

.btn-login:hover {
  background-color: #0056b3;
}

.btn-register {
  background-color: #28a745;
  color: white;
}

.btn-register:hover {
  background-color: #1e7e34;
}

.btn-logout {
  color: #dc3545;
  background-color: transparent;
  border: 1px solid #dc3545;
}

.btn-logout:hover {
  background-color: #dc3545;
  color: white;
}

.user-name.seller {
  color: #376f03;
}

.user-name.buyer {
  color: #28a745;
}

/* home page */

/* category section */

.home .sect-category {
  margin-top: 10px;
  /* height: 580px; */
  background-color: white;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  justify-content: space-evenly;
  align-items: start;
}

.home .sect-category .categories ul,
.home .sect-category li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home .sect-category .categories {
  display: flex;
  flex-direction: column;
}

.home .sect-category .categories ul {
  line-height: 1.8;
}

.home .sect-category .categories a {
  text-decoration: none;
  color: #7670a7;
}

.home .sect-category .col2 .main-img {
  position: relative;
  /*height: 400px;*/
  /*width: 734px;*/
}

.home .sect-category .col2 .main-img .slider {
  /*display: flex;*/
  /* column-gap: 10px; */
  /*overflow-x: auto;*/
  scrollbar-width: none;
}

/*  .home .sect-category .col2 .main-img .prevBtn {*/
/*    position: absolute;*/
/*    bottom: 45%;*/
/*    left: 10px;*/
/*    height: 30px;*/
/*    width: 30px;*/
/*    background-color: #376a06;*/
/*    color: white;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    border-radius: 50%;*/
/*    cursor: pointer;*/
/*}*/

/*.home .sect-category .col2 .main-img .nextBtn {*/
/*    cursor: pointer;*/
/*      position: absolute;*/
/*      bottom: 45%;*/
/*      right: 10px;*/
/*      height: 30px;*/
/*      width: 30px;*/
/*      background-color: #376a06;*/
/*      color: white;*/
/*      display: flex;*/
/*      justify-content: center;*/
/*      align-items: center;*/
/*      border-radius: 50%;*/

/*  }*/

/*.home .sect-category .col2 .main-img img {*/
/*height: 400px;*/
/*width: 734px;*/
/*object-fit: cover;*/
/*}*/

.home .sect-category .col2 .cards {
  display: flex;
  column-gap: 5px;
}

.home .sect-category .col2 .cards .card {
  height: 120px;
  width: 40%;
  background-color: #f0f1f2;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}

.home .sect-category .col2 .cards .card a {
  color: black;
  text-decoration: none;
}

.home .sect-category .col2 .cards .card1 {
  /* max-width: 290px; */
}

.home .sect-category .col3 {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

.home .sect-category .col3 .cards .card-img img {
  width: 60px;
  height: 60px;
}

.home .sect-category .col3 .cards .card {
  display: flex;
  align-items: start;
  justify-content: start;
  max-height: 80px;
  /* width: ; */
  column-gap: 5px;
  margin-bottom: 10px;
}

/* .home .sect-category .col3 .cards .card .txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 1px;
  } */

.home .col3 {
  padding: 20px;
  background-color: white;
}

.home .col3 h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.home .sect-category .col3 .blog-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home .sect-category .col3 .blog-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 100%;
}

.home .sect-category .col3 .blog-card:hover {
  transform: translateY(-5px);
}

.home .sect-category .col3 .blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.home .sect-category .col3 .blog-content {
  padding: 16px;
}

.home .sect-category .col3 .blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
}

.home .sect-category .col3 .blog-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

.home .sect-category .col3 .blog-content a {
  font-weight: bold;
  color: #376f03;
  text-decoration: none;
}

.home .sect-category .col3 .blog-content a:hover {
  text-decoration: underline;
}

.home .sect-category .col3 .view-all-link {
  text-align: center;
  margin-top: 20px;
}

.home .products-grid .view-all-link {
  text-align: center;
  margin-top: 20px;
}
.home .sect-category .col3 .view-all-link a {
  font-size: 1rem;
  color: #376f03;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #376f03;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.home .sect-category .col3 .view-all-link a:hover {
  background-color: #376f03;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .home .sect-category {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 20px;
  }

  .home .sect-category .categories {
    width: 100%;
  }

  .home .sect-category .col2 {
    width: 100vw;
  }

  .home .sect-category .col2 .main-img img {
    width: 100%;
    height: auto;
  }

  .home .sect-category .col2 .cards {
    flex-direction: column;
    gap: 10px;
  }

  .home .sect-category .col2 .cards .card {
    width: 100%;
    height: auto;
  }

  .home .sect-category .col3 {
    width: 100%;
  }
}

/* Trending Section's styling */

/* Section padding and layout */
.home .trending-section {
  padding: 40px 20px;
  background-color: white;
  /* max-width: 1200px; */
  margin: 0 auto;
  margin-top: 50px;
}

/* view all products button styling */
.home .trending-section .view-all-products {
  text-align: center;
  margin-top: 20px;
}
.home .trending-section .view-all-products a {
  font-size: 1rem;
  color: #376f03;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #376f03;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.home .trending-section .view-all-products a:hover {
  background-color: #376f03;
  color: #fff;
}

/* Title styling */
.home .section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: left;
}

/* Mobile: center align title */
@media screen and (max-width: 767px) {
  .home .section-title {
    text-align: center;
  }
}

/* Grid layout */
.home .products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Tablet */
@media screen and (min-width: 600px) {
  .home .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .home .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium Desktop */
@media screen and (min-width: 1025px) {
  .home .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Large Desktop */
@media screen and (min-width: 1281px) {
  .home .products-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Product card styling */
.home .product-card {
  background-color: #fff;
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  padding: 12px;
  text-align: center;

  transition: transform 0.2s;
}

.home .product-card img {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
}

.home .product-card:hover {
  transform: translateY(-4px);
}

.home .product-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* Sourcing Section's styling */

/* === SECTION STYLING === */
.home .sourcing-section {
  background: url("https://via.placeholder.com/1600x600") no-repeat center
    center/cover;
  color: black;
  padding: 60px 20px;
  overflow-x: hidden;
}

.home .sourcing-overlay {
  /* background-color: rgba(0, 0, 0, 0.5); */
  background-image: url(./images/Sourcing/background/easy-sourcing.jpg);
  background-size: cover;
  padding: 40px;
  border-radius: 10px;
  box-sizing: border-box;
}

.home .sourcing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

/* === LEFT COLUMN === */
.home .sourcing-left {
  flex: 1;
  min-width: 280px;
  box-sizing: border-box;
}

.home .sourcing-left h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.home .sourcing-desc {
  font-size: 18px;
  margin-bottom: 16px;
}

.home .sourcing-subdesc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.home .learn-more-btn {
  background-color: #376a06;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.home .learn-more-btn:hover {
  background-color: #274d05;
}

/* === RIGHT COLUMN (FORM) === */
.home .sourcing-right {
  flex: 1;
  min-width: 280px;
  background-color: #ffffff;
  color: #000;
  padding: 30px 20px;
  border-radius: 10px;
  box-sizing: border-box;
  width: 100%;
}

.home .sourcing-right h3 {
  margin-bottom: 20px;
  font-size: 22px;
}

.home .sourcing-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home .sourcing-form input,
.home .sourcing-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.home .sourcing-form textarea {
  height: 100px;
  resize: vertical;
}

.home .sourcing-form textarea:focus {
  outline: none;
}

.home .sourcing-form input:focus {
  outline: none;
}

.home .sourcing-form .half-width {
  width: 50%;
}

.home .submit-btn {
  background-color: #376a06;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  align-self: flex-start;
}

.home .submit-btn:hover {
  background-color: #274d05;
  color: white;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .home .sourcing-container {
    flex-direction: column;
    gap: 20px;
  }

  .home .sourcing-form .half-width {
    width: 100%;
  }

  .home .sourcing-left,
  .home .sourcing-right {
    padding: 0;
  }

  .home .sourcing-right {
    padding: 20px 15px; /* smaller side padding */
  }
}

@media screen and (max-width: 375px) {
  .home .sourcing-right {
    margin-left: -20px;
  }
}

@media screen and (max-width: 320px) {
  .home .sourcing-right {
    margin-left: -45px;
  }
}
/* =============================================Home page's styling ends============================================= */

/* SingleProduct page's styling */

.single-product .product-container {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  gap: 20px;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.single-product .product-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 10px;
}

.single-product .product-details {
  flex: 1;
  overflow-x: auto;
}

.single-product table {
  width: 100%;
  border-collapse: collapse;
}

.single-product th,
.single-product td {
  text-align: left;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.single-product th {
  background-color: #f3f3f3;
  width: 40%;
}

.single-product .product-container select {
  padding: 6px;
  width: 100%;
  font-size: 14px;
}

@media (max-width: 768px) {
  .single-product .product-container {
    flex-direction: column;
    align-items: center;
  }

  .single-product .product-details {
    width: 100%;
  }

  .single-product table {
    font-size: 14px;
  }
}

/* related products */

.single-product .related-products {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  margin-bottom: ;
}

.single-product .related-products h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.single-product .slider-wrapper {
  position: relative;
}

.single-product .slider-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.single-product .product-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  text-decoration: none;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 15px;
  text-align: center;
  color: #000;
  transition: transform 0.2s ease;
}

.single-product .product-card:hover {
  transform: translateY(-5px);
}

.single-product .product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-product .product-card h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #222;
}

.single-product .product-card p {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
}

/* Navigation Buttons */
.single-product .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.single-product .slider-btn:hover {
  opacity: 1;
}

.single-product .slider-btn.prev {
  left: -10px;
}

.single-product .slider-btn.next {
  right: -10px;
}

@media (max-width: 768px) {
  .single-product .slider-btn {
    display: none;
  }
}

/* Single Product Page's styling ends */

/* Product Entry Page's styling starts */

.product-entry form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.product-entry h2 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 600;
  color: #222;
}

.product-entry .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .product-entry .form-grid {
    grid-template-columns: 1fr;
  }
}

.product-entry label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.product-entry input[type="text"],
.product-entry input[type="tel"],
.product-entry select {
  width: 100%;
  padding: 10px 14px;
  border: 1.8px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.product-entry input[type="text"]:focus,
.product-entry input[type="tel"]:focus,
.product-entry select:focus {
  outline: none;
  border-color: #376f03; /* Blue ring */
  box-shadow: 0 0 5px rgba(55, 111, 3, 0.5);
}

/* Make payment method span full width */
.product-entry .full-width {
  grid-column: 1 / -1;
}

.product-entry button {
  margin-top: 24px;
  width: 100%;
  padding: 12px 0;
  background-color: #376f03;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.product-entry button:hover {
  background-color: #274d05;
}

/* Hide the default file input */
.product-entry input[type="file"] {
  display: none;
}

/* Custom styled button for file upload */
.product-entry .custom-file-upload {
  display: inline-block;
  padding: 12px 20px;
  cursor: pointer;
  background-color: #376f03;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  user-select: none;
  transition: background-color 0.3s ease;
  width: fit-content;
}

.product-entry .custom-file-upload:hover {
  background-color: #274d05;
}

/* Center the button inside the full-width grid item */
.product-entry .full-width .custom-file-upload {
  width: 30%;
  display: block;
  text-align: center;
}

/* Product Entry Page's Styling ends */

/* Login/Registration page's styling starts */

.sign .auth-container {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  padding: 30px 24px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sign {
  background-color: #eeeff0;
}

.sign .auth-form {
  display: flex;
  flex-direction: column;
}

.sign .auth-form h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #111827;
}

.sign .auth-form label {
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

.sign .auth-form input {
  padding: 10px 12px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.sign .auth-form input:focus {
  border-color: #376f03; /* Blue ring */
  outline: none;
  box-shadow: 0 0 5px rgba(55, 111, 3, 0.5);
}

.sign .auth-form button {
  margin-top: 24px;
  padding: 12px;
  background-color: #376f03;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.sign .auth-form button:hover {
  background-color: #274d05;
}

.sign .auth-form p {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  color: #4b5563;
}

.sign .auth-form a {
  color: #376f03;
  text-decoration: none;
  font-weight: 600;
}

/* Login/Registration page's styling ends */

/* Blogs page stying starts */
.blogs .title {
  /* background-color: #007bff; */
  color: black;
  padding: 30px 20px;
  text-align: center;
}

.blogs main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  border-radius: 10px;
}

.blogs h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.blogs .blog-grid {
  display: grid;
  padding-top: 25px;
  padding-bottom: 25px;
  gap: 20px;
}

.blogs .blog-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blogs .blog-card:hover {
  transform: translateY(-5px);
}

.blogs .blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blogs .blog-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blogs .blog-content h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #376f03;
}

.blogs .blog-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.blogs .blog-content a {
  color: #376f03;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.blogs .blog-content a:hover {
  text-decoration: underline;
}

/* Responsive Grid Layout */
@media (min-width: 1024px) {
  .blogs .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .blogs .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 767px) {
  .blogs .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Blogs page stying ends */

/* Detailed Blog styling starts */

.detailed-blog {
  line-height: 1.7;
  background-color: white;
  color: #333;
}

.detailed-blog main {
  max-width: 900px;
  margin: 40px auto;
  /* padding: 0 20px; */
  padding: 20px;
  border-radius: 20px;
}

.detailed-blog .blog-banner {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 25px;
}

.detailed-blog .blog-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.detailed-blog .blog-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}

.detailed-blog .blog-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 30px;
}

.detailed-blog .blog-content {
  font-size: 1rem;
  color: #444;
}

.detailed-blog .blog-content h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #376f03;
}

.detailed-blog .blog-content p {
  margin-bottom: 20px;
}

.detailed-blog .author-box {
  margin-top: 50px;
  padding: 20px;
  background-color: #f1f1f1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.detailed-blog .author-box img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.detailed-blog .author-box div {
  line-height: 1.3;
}

@media (max-width: 600px) {
  .detailed-blog .blog-title {
    font-size: 1.5rem;
  }

  .detailed-blog .blog-content h2 {
    font-size: 1.2rem;
  }

  .detailed-blog .author-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .detailed-blog .detailed-blog .author-box img {
    margin-bottom: 10px;
  }
}

/* Detailed Blog styling ends */

/* Products page styling */

.products .products-section {
  max-width: 1200px;
  margin: 0 auto;
}

.products .products-section h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #376f03;
}

.products .products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Product Card */
.products .products-section {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  background-color: white;
  border-radius: 20px;
}

.products .products-section h1 {
  text-align: center;
  font-size: 32px;
  color: #376f03;
  margin-bottom: 40px;
}

/* Responsive Grid */
.products .products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Product Card */
.products .product-card {
  width: 250px; /* fixed width */
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.products .product-card:hover {
  transform: translateY(-5px);
}

.products .product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.products .card-content {
  padding: 16px;
}

.products .card-content h3 {
  font-size: 18px;
  color: #222;
  margin-bottom: 8px;
}

.products .card-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

/* Products page styling ends */

/* footer's styling */

.footer {
  background-color: #e6e7ea;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-columns {
  display: flex;
  flex: 1 1 70%;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li {
  margin: 6px 0;
}

.footer-col ul li a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  width: 100%;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.footer-side {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.product-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #d9dadc;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
}

.co-brands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-brands img {
  background-color: #ccc;
  padding: 5px;
  border-radius: 4px;
  max-width: 100%;
}

/* Tablet: 2-column layout */
@media (max-width: 1023px) {
  .footer-container {
    flex-direction: row;
  }

  .footer-columns {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-col {
    flex: 1 1 calc(50% - 20px);
  }

  .footer-side {
    flex: 1 1 100%;
    align-items: center;
  }
}

/* Mobile: stacked layout */
@media (max-width: 767px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-columns {
    flex-direction: column;
  }

  .footer-col {
    flex: 1 1 100%;
  }

  .footer-side {
    width: 100%;
    align-items: center;
  }

  .lang-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

/* css   for   logout  button t */

.rest-half {
  padding: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcome-msg {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  color: #333;
}

.welcome-msg h3 {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.welcome-msg p {
  margin: 0;
  font-size: 14px;
}

.btn-login,
.btn-register,
.btn-logout {
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-login {
  background-color: #007bff;
  color: white;
}

.btn-login:hover {
  background-color: #0056b3;
}

.btn-register {
  background-color: #28a745;
  color: white;
}

.btn-register:hover {
  background-color: #1e7e34;
}

.btn-logout {
  color: #dc3545;
  background-color: transparent;
  border: 1px solid #dc3545;
}

.btn-logout:hover {
  background-color: #dc3545;
  color: white;
}

.user-name.seller {
  color: #376f03;
}

.user-name.buyer {
  color: #28a745;
}
