@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #eee;
}

.goog-te-gadget .goog-te-combo {
  background-color: transparent;
}

::selection {
  background-color: #7a54c8;
  color: #fff;
}

.header-container {
  background-color: #8ec5fc;
  background-image: linear-gradient(62deg, #8ec5fc 0%, #e0c3fc 100%);
}

.navbar {
  display: flex;
  align-items: center;
  padding: 20px;
}

.navbar img {
  cursor: pointer;
}

.cart-container {
  position: relative;
}

.cart-container span {
  position: absolute;
  top: -10px;
  right: -7px;
  color: white;
  /* padding: 0 4px; */
  border-radius: 100%;
  background: #7a54c8;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  flex: 1;
  text-align: right;
}

nav ul {
  display: inline-block;
  list-style-type: none;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

a {
  text-decoration: none;
  color: #555;
  position: relative;
}

a:hover {
  color: #7a54c8;
}

#MenuItems a:hover::after {
  content: "";
  position: absolute;
  top: 21px;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: #7a54c8;
}

p {
  color: #555;
}

.container {
  max-width: 1300px;
  margin: auto;
  padding-left: 25px;
  padding-right: 25px;
}

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
}

.col-2 {
  flex-basis: 35%;
  min-width: 300px;
}

.col-2 img {
  max-width: 70%;
  padding: 50px 0;
}

.col-2 h1 {
  font-size: 35px;
  line-height: 44px;
  margin: 16px 0;
}

.btn {
  display: inline-block;
  background-color: #7a54c8;
  color: #fff;
  padding: 8px 30px;
  margin: 30px 0;
  border-radius: 30px;
  transition: background 0.5s;
}

.btn:hover {
  background-color: #563434;
}

.header .row {
  margin-top: 30px;
}

/* Featured categories */
.categories {
  margin: 70px 0;
}

.col-3 {
  flex-basis: 30%;
  min-width: 250px;
  margin-bottom: 30px;
}

.col-3 img {
  width: 100%;
}

.small-container {
  max-width: 1080px;
  margin: 50px auto;
  padding-left: 25px;
  padding-right: 25px;
}
/* Featured products */
.col-4 {
  flex-basis: 25%;
  padding: 10px;
  min-width: 200px;
  margin-bottom: 50px;
  transition: transform 0.5s;
}

.col-4 img {
  width: 100%;
  height: 350px;
  object-fit: contain;
}

.col-4 a {
  cursor: pointer;
}

.title {
  text-align: center;
  margin: 0 auto 80px;
  position: relative;
  line-height: 60px;
  color: #555;
}

.title::after {
  content: "";
  background-color: #7a54c8;
  width: 80px;
  height: 5px;
  border-radius: 5px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

h4 {
  color: #555;
  font-weight: normal;
}

.col-4 p {
  font-size: 14px;
}

.rating .fa-solid,
.rating .fa-regular {
  color: #7a54c8;
}

.col-4:hover {
  transform: translateY(-5px);
}

/* Offer */
.offer {
  background-color: #8ec5fc;
  background-image: linear-gradient(62deg, #8ec5fc 0%, #e0c3fc 100%);
  margin-top: 80px;
  padding: 30px 0;
}

small {
  display: block;
  color: #555;
}

/* <!-- Testimonial  --> */
.testimonial {
  padding-top: 100px;
}

.testimonial .col-3 {
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.5s;
}

.testimonial .col-3 img {
  width: 50px;
  margin-top: 20px;
  border-radius: 50%;
}

.testimonial .col-3:hover {
  transform: translateY(-10px);
}

.fa-solid.fa-quote-left {
  font-size: 34px;
  color: #7a54c8;
}

.col-3 p {
  font-size: 12px;
  margin: 12px 0;
  color: #777;
}

.testimonial .col-3 h3 {
  font-weight: 600;
  color: #555;
  font-size: 16px;
}

/* footer */
.footer {
  background-color: #000;
  color: #8a8a8a;
  font-size: 14px;
  padding: 60px 0 20px;
}

.footer p {
  color: #8a8a8a;
}

.footer h3 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-col-1,
.footer-col-2,
.footer-col-3 {
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-col-1 {
  flex: 1;
  text-align: center;
}

.footer-col-1 img {
  width: 180px;
  margin-bottom: 20px;
}

.footer-col-2,
.footer-col-3 {
  flex-basis: 12%;
  text-align: center;
}

ul {
  list-style-type: none;
}

.footer hr {
  border: none;
  background-color: #b5b5b5;
  height: 1px;
  margin: 20px 0;
}

.copyright {
  text-align: center;
}

/* Menu icon */
.menu-icon {
  width: 28px;
  margin-left: 20px;
  display: none;
}

/* Scroll bar */
::-webkit-scrollbar {
  width: 5px; /* Width of the scrollbar */
  background-color: #f1f1f1; /* Background color of the scrollbar */
}

::-webkit-scrollbar-thumb {
  background-color: #7a54c8; /* Color of the scrollbar handle */
  border-radius: 6px; /* Roundness of the scrollbar handle */
}

/* Media query for menu */
@media only screen and (max-width: 800px) {
  nav ul {
    position: absolute;
    top: 150px;
    left: 0;
    background-color: #333;
    width: 100%;
    overflow: hidden;
    transition: max-height 0.2s;
  }

  nav ul li {
    display: block;
    margin-right: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  nav ul li a {
    color: #fff;
  }

  .menu-icon {
    display: block;
    cursor: pointer;
  }
}

/* All Products page */
.row-2 {
  justify-content: space-between;
  margin: 100px auto 15px;
}

select {
  border: 2px solid #7a54c8;
  padding: 5px;
}

select:focus {
  outline: none;
}

.page-btn {
  margin: 0 auto 80px;
}

.page-btn span {
  display: inline-block;
  border: 1px solid #7a54c8;
  margin-left: 10px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
}

.page-btn span:hover {
  background-color: #7a54c8;
  color: white;
}

.page-number.active {
  background-color: #7a54c8; /* Set the background color */
  color: #fff; /* Optional: Set text color for better visibility */
  border-radius: 4px; /* Optional: Add a little border-radius */
  padding: 5px 10px; /* Optional: Add some padding */
}

.filters-and-products {
  display: flex;
  align-items: start;
  justify-content: space-evenly;
}

aside {
  position: sticky;
  top: 70px;
  min-width: 270px;
  background-color: #f1f1f1;
  padding: 20px 10px;
  margin-bottom: 70px;
}

.categories-filters p {
  margin-bottom: 10px;
}

.row-3 {
  display: none;
  margin-bottom: 20px;
}

.fa-chevron-right {
  font-size: 18px;
  margin-left: 10px;
}

.filters-btn {
  width: 150px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  background-color: #fff;
  outline: 2px solid #7a54c8;
}

/* Media query for filter button  */
@media only screen and (max-width: 800px) {
  .row-3 {
    display: block;
  }

  aside {
    display: none;
  }
}

/* Single product details  */

.single-product {
  margin-top: 80px;
}

.single-product .col-2 img {
  padding: 0;
}

.single-product .col-2 {
  padding: 20px;
}

.single-product .col-2 h1 {
  font-size: 30px;
  line-height: 40px;
  margin: 10px 0;
}

.single-product h4 {
  font-size: 22px;
  font-weight: bold;
}

.single-product select {
  display: block;
  padding: 10px;
  margin-top: 10px;
}

.single-product input {
  width: 50px;
  height: 40px;
  padding-left: 10px;
  font-size: 20px;
  margin-right: 10px;
  border: 1px solid #7a54c8;
}

.single-product input:focus {
  outline: none;
}

.add-to-cart {
  margin: 20px 0 30px 0;
}

.related-products {
  margin-top: 70px;
}

.single-product .fa-indent {
  color: #7a54c8;
}

.small-img-row {
  margin-top: 30px;
  display: flex;
  justify-content: start;
}

.small-img-col {
  flex-basis: 24%;
  cursor: pointer;
}

/* cart items details  */
.cart-page {
  margin: 80px auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.cart-info {
  display: flex;
  flex-wrap: wrap;
}

th {
  text-align: left;
  padding: 5px;
  color: #fff;
  background-color: #7a54c8;
  font-weight: normal;
}

td {
  padding: 10px 5px;
}

td input {
  width: 40px;
  height: 30px;
  padding: 5px;
}

td a {
  color: #7a54c8;
  font-size: 12px;
}

td img {
  width: 80px;
  height: 80px;
  margin-right: 10px;
  object-fit: contain;
}

.total-price {
  display: flex;
  justify-content: flex-end;
}

.total-price table {
  border-top: 3px solid #7a54c8;
  width: 100%;
  max-width: 400px;
}

td:last-child {
  text-align: right;
}

th:last-child {
  text-align: right;
}

/* Checkout button */
.checkout-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.checkout-container button {
  border: none;
  cursor: pointer;
}

/* Loading overlay */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it appears above other content */
  opacity: 0;
  transition: opacity 0.3s ease; /* Smooth fade effect */
  pointer-events: none; /* Prevent interaction */
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto; /* Allow interaction when active */
}

.spinner {
  border: 8px solid #7a54c8;
  border-top: 8px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Order form CSS */

.order-form {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  /* border: 1px solid #7A54C8; */
  padding: 20px;
  /* border-radius: 8px; */
  /* background-color: #8EC5FC;
    background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%); */
  /* max-width: 800px; */
  /* margin: 50px auto; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

#order-details {
  flex: 1;
  margin-right: 20px;
}

#order-details h2 {
  color: #7a54c8;
  margin-bottom: 15px;
}

#order-details span {
  display: block;
  margin: 5px 0;
}

.form-container {
  flex: 2;
}

.form-container h2 {
  color: #7a54c8;
  margin-bottom: 15px;
}

.form-container label {
  margin: 10px 0 5px;
  font-weight: bold;
  color: #333;
}

.form-container input,
.form-container textarea {
  width: 50%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background: transparent;
  border: 2px solid #7a54c8;
  caret-color: #7a54c8;
}

.form-container input:focus,
.form-container textarea:focus {
  outline: none;
}

.form-container input::placeholder,
.form-container textarea::placeholder {
  color: #555;
}

.form-container button {
  background-color: #7a54c8;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.form-container button:hover {
  background-color: #6a47b2; /* Darker shade on hover */
}

hr {
  border: none;
  height: 1px;
  background-color: #7a54c8;
  margin: 10px 0;
}

.order-details {
  height: 400px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 10px 5px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Media query for less than 600 screen size */
@media only screen and (max-width: 600px) {
  .row {
    text-align: center;
  }

  .col-2,
  .col-3,
  .col-4 {
    flex-basis: 100%;
  }

  .filters-btn {
    width: 100px;
    height: 25px;
    font-size: 14px;
    gap: 0;
  }

  .filters-btn i {
    font-size: 14px;
  }

  .single-product .row {
    text-align: left;
  }

  .single-product .col-2 {
    padding: 20px 0;
  }

  .cart-info p {
    display: none;
  }

  .order-form {
    flex-direction: column-reverse;
  }

  .form-container {
    width: 95%;
    margin: 20px auto;
  }

  .form-container textarea {
    width: 100%;
  }

  .order-form input {
    width: 100%;
  }

  .order-details {
    width: 100%;
  }
}
