/* css for shop pages */


i {
  font-size: 20px;
  cursor: pointer;
}


/* ---------------------------------------------------------------------------------------------------------------------------------- */
/* media screen for home page */

/* Prevent horizontal scrolling */
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ensure all sections fit properly within the viewport */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .nav_actions {
    display: flex;
  }

  .choose_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .choose_image {
    order: -1;
    /* Moves the image to the top */
  }
}

@media (max-width: 600px) {
  nav {
    position: fixed;
    width: 100%;
    background-color: #000000;
    z-index: 99;
  }

  .nav_links {
    position: absolute;
    left: 0;
    top: 68px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
  }

  .header_container h1 {
    font-size: 3rem;
  }

  .offer_grid_top,
  .offer_grid_bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-inline: 1rem;
  }

  .modern_container {
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
  }

  .craft_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    justify-content: center;
  }


  .footer_bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}



/* ============================================================================================================================ */
/* product filter */

.filter-container {
  align-items: center;
  position: relative;
  margin: 20px auto;
  max-width: 900px;
  padding-top: 100px;
}

.filters {
  display: flex;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  justify-content: space-between;
}

.filters h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

.filter-section {
  display: flex;
  flex-direction: column;
  margin-right: 15px;
  width: 45%;
}

.filter-section:last-child {
  margin-right: 0;
  /* Remove margin for the last filter */
}

.filter-section label {
  font-size: 1rem;
  margin-bottom: 5px;
  display: block;
}

input[type="text"],
input[type="range"] {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  margin-top: 5px;
}

.filter-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  cursor: pointer;
  position: absolute;
  top: -10px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-icon::before {
  content: "☰";
  font-size: 20px;
  color: white;
}


#price-value {
  font-size: 1rem;
  margin-top: 10px;
  display: block;
  text-align: center;
}

/* Remove default style */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
}

/* Slider track */
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: grey;
  border-radius: 5px;
}

/* Slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  background: orangered;
  border-radius: 50%;
  margin-top: -5px;
  cursor: pointer;
}




/* ---------------------------------------------------------------------------------------------------------------------------- */

/*  carousel after search results */

/* Container width */
.productdescription {
  padding-top: 110px;
  max-width: 1000px;
  margin: auto;
}

/* Carousel image size */
.mycarousel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

/* Carousel arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: black;
  border-radius: 50%;
  padding: 18px;
}

/* Product description spacing */
.productdetails {
  padding-top: 30px;
  padding-left: 30px;
}

/* Product title */
.product-name {
  font-weight: 700;
  margin-top: 10px;
  font-size: 40px;
}

/* Price styling */
.product-price {
  font-size: 28px;
  color: #c59d5f;
  font-weight: 600;
}

/* Select dropdowns */
.sizeform {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-right: 10px;
  margin-top: 10px;
}

/* Add to cart button */
.add-to-cart button {
  margin-top: 20px;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  background: green;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.add-to-cart:hover {
  background: black;
}

/* ------------------------------------------------------------------------------------------------------------------------------------- */



/* adding items to cart */

.cartpage {
  max-width: 700px;
  /* slightly smaller */
  margin: 30px auto;
  /* reduce top/bottom spacing */
  padding: 15px 10px;
  /* less padding */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  /* slightly lighter shadow */
}

.cartpage h3 {
  text-align: center;
  font-size: 1.3rem;
  /* smaller heading */
  margin-bottom: 15px;
}

.cartpage p {
  text-align: center;
  font-size: 1rem;
  /* smaller text */
  font-weight: 600;
  margin-top: 10px;
}

.cartitem {
  background-color: rgb(228, 223, 223);
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* reduce gap between items */
}

.cart-item-content {
  display: flex;
  align-items: center;
  gap: 15px;
  /* smaller gap between image/details/button */
  border-bottom: 1px solid #ddd;
  padding: 10px;
  /* smaller padding inside each item */
}

.cart-image {
  width: 120px;
  /* smaller image */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.cart-details {
  flex: 1;
}

.cart-details h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-details p {
  font-size: 0.85rem;
  margin: 2px 0;
}

.remove-button {
  background-color: red;
  color: white;
  border: none;
  padding: 6px 10px;
  /* smaller button */
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.85rem;
  /* smaller text */
}

.remove-button:hover {
  background-color: darkred;
}

/* Buttons at bottom */
.checkout-button,
.addmorebutton {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 8px;
  margin: 5px 5px 0 5px;
  display: inline-block;
}

/* notification on cart */

.notification {
  background-color: red;
  color: white;
  font-size: 9px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: absolute;
  top: -2px;
  right: 5px;
  text-align: center;
  line-height: 15px;
}

.cart-icon-container {
  position: relative;
  display: inline-block;
}


@media (max-width: 768px) {
  .notification {
    width: 16px;
    height: 16px;
    font-size: 10px;
    top: -3px;
    /* Adjust to keep it closer */
    right: -3px;
    /* Ensure it doesn’t detach */
  }
}

@media (max-width: 480px) {
  .notification {
    width: 14px;
    height: 14px;
    font-size: 9px;
    top: -2px;
    right: -2px;
  }
}

/* -------- */


/* disables button wen cart is empty */

#checkout-button:disabled {
  background-color: grey;
  cursor: not-allowed;
  opacity: 0.5;
}


/* checkout button */

.checkout-button {
  background-color: green;
  /* Green background */
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  border-radius: 5px;
  /* Rounded corners */
  display: block;
  width: 100%;
}

.checkout-button:hover {
  background-color: #5e624e;
  /* Darker green on hover */
}



.addmorebutton {
  background-color: white;
  /* Green background */
  color: #2B3035;
  border-color: #2B3035;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  border-radius: 5px;
  /* Rounded corners */
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

.addmorebutton:hover {
  background-color: #2B3035;
  color: white;

}


/* add to cart buuton */
.addtocart {
  padding-top: 20px;
}

.addtocart button {
  padding: 15px;
  background-color: green;
  color: white;
  border-color: transparent;
  border-radius: 15px;
  width: 300px;
}

.addtocart button:hover {
  padding: 15px;
  background-color: #2B3035;
  color: white;
  border-color: transparent;
  border-radius: 15px;
  width: 300px;
}

/* -------------------------------------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .cart-item-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cart-image {
    width: 120px;
  }

  .cart-details {
    padding: 10px 0;
  }

  .remove-button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
  }
}

/* For mobile screens */
@media (max-width: 480px) {
  .cartpage {
    padding: 10px;
  }

  .cart-item-content {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .cart-image {
    width: 120px;
  }

  .remove-button {
    font-size: 14px;
    padding: 8px;
  }

  .checkout-button,
  .addmorebutton {
    font-size: 14px;
    padding: 10px;
  }
}


/* ----- */

.craft_imagej {
  position: relative;
  isolation: isolate;
  padding-top: 35px;
}

.craft_imagej::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background-color: #ebf1f1;
  border-radius: 15px;
  transition: 0.3s;
  z-index: -1;
}

.craft_imagej:hover::before {
  height: 70%;
}

.craft_image_contentj {
  padding-bottom: 10px;
  text-align: center;
  transition: 0.3s;
}


.craft_image_contentj img {
  margin-bottom: 1rem;
  max-width: 200px;
  margin: auto;
}

.craft_image_contentj p {
  font-size: 1rem;
  font-weight: 500;
  padding-top: 15px;
}

.craft_image_contentj h4 {
  font-size: 1rem;
  font-weight: 400;
  color: #212529;
  ;
}

.craft_image_contentj h5 {
  font-size: 10px;
  font-weight: 40px;
  color: var(--text-dark);
}

.craft_imagej:hover .craft_image_contentj {
  transform: translateY(-2rem);
}

.craft_imagej a {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 50%);
  padding: 5px;
  font-size: 5px;
  color: var(--white);
  background-color: teal;
  border-radius: 10%;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: 0.3s;
}

.craft_imagej:hover a {
  opacity: 1;
}

/* reduse height of carousel */
.carousel-innerj img {
  height: 400px;
  /* adjust as needed */
  object-fit: cover;
}

/* ----------------------------------------------------------------------- */

/* responsive search images o a page */

.products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Center products */
}

/* Product cards (default 4 per row) */
.products-container .col-12 {
  flex: 1 1 calc(25% - 15px);
  /* 4 items per row */
  max-width: calc(25% - 15px);
}

/* Medium screens: 2 products per row */
@media (max-width: 1024px) {
  .products-container .col-12 {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

/* Small screens: 1 product per row */
@media (max-width: 600px) {
  .products-container .col-12 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* Ensure product images are responsive */
.craft_imagej img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}


/* ---------------------------------------------------------------------- */

/* check out page */


.checkoutpage {
  padding-top: 80px;
}

form .form-label {
  font-weight: 500;
}

.card h5 {
  color: #333;
}

textarea,
input[type="text"],
input[type="tel"],
input[type="email"] {
  transition: box-shadow 0.2s;
}

textarea:focus,
input:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.paybutton {
  background-color: green;
}

.btn-outline-secondary {
  background-color: transparent;
  color: #000000;
  border-color: #18181b;
}