/* ----------------------- prdocts collection display ----------------------- */
#c_products_container {
  font-family: Helvetica, "Helvetica Neue", Arial, "Lucida Grande", sans-serif;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.c_product a {
  width: 100%;
  height: 100%;
}
.c_product_img {
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.c_product .c_product_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 300ms ease-in-out;
}
.c_product_name {
  color: black;
  font-weight: 700;
  font-size: 15px;
}
.c_product_price {
  color: black;
  font-size: 16px;
}
.c_product a:hover .c_product_name {
  text-decoration: underline;
}
.c_product a:hover .c_product_img img {
  transform: scale(1.1);
  transition: 300ms ease-in-out;
}
.c_product.hidden {
  display: none;
  opacity: 0;
  transition-property: display opacity;
  transition-duration: 1s;
  transition-behavior: allow-discrete;
}
.c_product {
  display: block;
  opacity: 1;

  @starting-style {
    opacity: 0;
  }
}

.load_btn_container {
  text-align: center;
  padding-top: 25px;
  padding-bottom: 5px;
}
.load_btn_container button {
  background-color: black;
  border: 0;
  border-radius: 0;
  color: var(--site-white);
  padding: 10px 55px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.load_btn_container button:hover {
  background-color: var(--site-yellow);
  color: black;
}

/* ----------------------- prdocts collection display ----------------------- */

/* ---------------------------- shop display page --------------------------- */
.s_product {
  font-family: Helvetica, "Helvetica Neue", Arial, "Lucida Grande", sans-serif;
  width: 100%;
  height: 100%;
  max-width: 1120px;
  max-height: 450px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background-color: white;
}
.s_product_details {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
}
.s_product_img {
  max-height: inherit;
  display: flex;
  justify-content: end;
}
.s_product_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s_product > div {
  flex-basis: 50%;
}
.s_name {
  font-size: 45px;
  font-weight: 600;
}
.s_description {
  color: #4d4d4d;
}
.s_price {
  color: #4d4d4d;
  text-decoration: underline;
}
.s_product_link {
  color: black;
  border: 1px solid black;
  padding: 10px 30px;
}
/* ---------------------------- shop display page --------------------------- */

@media screen and (max-width: 1130px) {
  #c_products_container {
    grid-template-columns: repeat(3, 1fr);
  }
  .c_product a {
    max-width: 100%;
  }
  .c_product .c_product_img {
    height: 280px;
  }
  .c_product .c_product_img img {
    object-position: center top;
  }
}

@media screen and (max-width: 989px) {
  .s_product {
    max-height: 480px;
  }
}

@media screen and (max-width: 820px) {
  #c_products_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 590px) {
  #c_products_container {
    grid-template-columns: 1fr;
  }
  .c_product .c_product_img {
    height: initial;
    aspect-ratio: 2 / 3;
    max-height: 280px;
  }
  .s_product {
    flex-direction: column;
    max-height: 100%;
  }
  .s_product > div {
    flex-basis: initial;
  }
  .s_product_details {
    max-width: 100%;
    margin: auto;
  }
}

/* My Account Page */
nav.woocommerce-MyAccount-navigation {
  float: left;
  width: 20% !important;
  clear: left;
  margin-right: 2%;
  background-color: #eeeeee38;
}
.woocommerce-account .woocommerce-MyAccount-content {
  float: right;
  width: 75%;
  clear: right;
}
.woocommerce-MyAccount-navigation ul li a {
  color: #333;
  padding: 10px 15px;
  display: block;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.woocommerce-MyAccount-navigation ul li a:hover,
li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard:first-child {
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.04);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  color: #000;
  background-color: #f9db54;
  font-weight: bold;
  border-radius: 5px;
}

.woocommerce-MyAccount-content .woocommerce-info {
  border-top-color: #f9db54;
}

.woocommerce-MyAccount-content .woocommerce-info::before {
  color: #f9db54;
}
table.woocommerce-orders-table.woocommerce-MyAccount-orders.account-orders-table {
  text-align: center;
}

table.woocommerce-orders-table.woocommerce-MyAccount-orders.account-orders-table
  tr
  th,
table.woocommerce-orders-table.woocommerce-MyAccount-orders.account-orders-table
  tr
  td {
  padding: 12px !important;
}
.woocommerce table.my_account_orders .button {
  background-color: rgb(249, 219, 84);
}
.woocommerce-account .addresses .title .edit {
  float: left;
}

.woocommerce-Address
  header.woocommerce-Address-title.title
  .woocommerce-account
  .addresses
  .title
  .edit {
  float: left;
}

/* Make the left side (address fields) sticky */
.woocommerce-MyAccount-edit-address .col-1 {
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 20px; /* Adjust as needed */
  padding-right: 15px;
  z-index: 10;
  background-color: #fff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Optional, to add a shadow effect */
}

/* Make the right side (form fields) scrollable */
.woocommerce-MyAccount-edit-address .col-2 {
  max-height: 500px; /* Adjust this height as needed */
  overflow-y: auto; /* Makes the right side scrollable */
  padding-left: 15px;
}

/* .my_acc_wocommerce .woocommerce {
  display: flex;
  align-items: flex-start;
  position: relative;
} */


.my_acc_wocommerce .woocommerce .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 18%; 
  height: fit-content; 
  flex: 1;
}

.woocommerce-MyAccount-content {
  flex: 2;
  flex-basis: 33%;
  min-width: 0;
}

.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
    border: none;
    padding: 0;
    margin: 0;
}
