/* =========================================================
   AJAX WOOCOMMERCE SHOP
========================================================= */

/* =========================================================
   MAIN SHOP CONTAINER
========================================================= */

#ajax-woocommerce-shop {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0px;
  box-sizing: border-box;
}

/* =========================================================
   SHOP LAYOUT
========================================================= */

.ajax-shop-wrapper {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
}

/* =========================================================
   SIDEBAR
========================================================= */

.ajax-shop-sidebar {
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   FILTER HEADER
========================================================= */

.ajax-shop-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.ajax-shop-filter-header h3 {
  color: #0a0a0a;
  font-family: "Unbounded";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.449px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

#mobile-filter-close {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   SEARCH
========================================================= */

.ajax-shop-search input {
  width: 100% !important;
  height: 42px !important;
  box-sizing: border-box;
  border: 0 !important;
  outline: none !important;
  border-radius: 35px !important;
  background: #f3f4f6 !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  color: rgba(10, 10, 10, 0.5) !important;
  font-family: "Poppins" !important;
}
#ajax-shop-search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M7.33333 12.6667C10.2789 12.6667 12.6667 10.2789 12.6667 7.33333C12.6667 4.38781 10.2789 2 7.33333 2C4.38781 2 2 4.38781 2 7.33333C2 10.2789 4.38781 12.6667 7.33333 12.6667Z' stroke='%236A7282' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 14L11.1333 11.1334' stroke='%236A7282' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  background-size: 16px 16px !important;
  padding-left: 44px !important;
}

.ajax-shop-search input::placeholder {
  color: rgba(10, 10, 10, 0.5) !important;
}

.ajax-shop-search input:focus {
  box-shadow: 0 0 0 1px #668d68;
}

/* =========================================================
   FILTER SECTION
========================================================= */

.ajax-shop-filter-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.ajax-shop-filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  color: #56845b;
}

.ajax-shop-filter-title strong {
  font-size: 14px;
  font-weight: 600;
}

.ajax-shop-filter-title span {
  font-size: 14px;
}

/* =========================================================
   CATEGORIES
========================================================= */
.ajax-shop-category-parent {
  margin-bottom: 16px;
}

.ajax-shop-categories label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  cursor: pointer;
  color: #333;
  line-height: 1.4;
}
.ajax-shop-categories label span {
  color: #0a0a0a;
  font-family: "Poppins";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: -0.15px;
}

/* =========================================
   CATEGORY CHECKBOX
   ========================================= */

#ajax-shop-filters input.ajax-shop-category[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 3px !important;
  border: 1px solid #588157 !important;
  background: #fff !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  position: relative;
  flex: 0 0 16px;
}

#ajax-shop-filters
  .ajax-shop-category-children
  input.ajax-shop-category[type="checkbox"] {
  border: 1px solid #cdd3cf !important;
}

/* =========================================
   CHECKED STATE
   ========================================= */

#ajax-shop-filters input.ajax-shop-category[type="checkbox"]:checked {
  background: #588157 !important;
  border-color: #588157 !important;
}

/* =========================================
   CHECK MARK
   ========================================= */

#ajax-shop-filters input.ajax-shop-category[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* =========================================
   HOVER
   ========================================= */

#ajax-shop-filters input.ajax-shop-category[type="checkbox"]:hover {
  border-color: #588157 !important;
}

.ajax-shop-category-children {
  padding-left: 23px;
  margin-bottom: 12px;
}

/* =========================================================
   PRICE SLIDER
========================================================= */

/* =========================================
   PRICE SLIDER
   ========================================= */

.ajax-shop-price-slider {
  position: relative;
  width: 100%;
  height: 32px;
  margin-top: 10px;
}

/* Base gray track */
.ajax-shop-price-slider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 16px;
  background: #d5ddd5;
  border-radius: 20px;
  z-index: 1;
}

/* Active green track */
.ajax-shop-price-slider::after {
  content: "";
  position: absolute;
  left: var(--price-start, 0%);
  width: var(--price-width, 100%);
  top: 10px;
  height: 16px;
  background: #588157;
  border-radius: 20px;
  z-index: 2;
}

/* Range inputs */
.ajax-shop-price-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 26px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 3;
}

/* Chrome / Edge / Safari track */
.ajax-shop-price-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: none;
}
/* Firefox track */
.ajax-shop-price-slider input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
  border: none;
}

/* Chrome / Edge / Safari thumb */
.ajax-shop-price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 0px;
  border: none;
  border-radius: 50%;
  background: #234f3b;
  cursor: pointer;
  pointer-events: auto;
}

/* Firefox thumb */
.ajax-shop-price-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #275c46;
  cursor: pointer;
  pointer-events: auto;
}
.ajax-shop-price-values {
  display: flex;
  justify-content: space-between;
}
.ajax-shop-price-values span {
  color: #0a0a0a;
  font-family: "Poppins";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.15px;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.ajax-shop-main {
  min-width: 0;
  width: 100%;
}

/* =========================================================
   TOOLBAR
========================================================= */
.search-product-count {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 55px;
  align-items: center;
}
.ajax-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.ajax-shop-toolbar > div {
  color: #4a5565;
  font-family: "Poppins";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.312px;
}

.ajax-shop-toolbar select {
  display: flex;
  height: 34px;
  padding: 1px 14px 1px 21px;
  justify-content: flex-end;
  align-items: center;
  gap: 31px;
  border-radius: 35px;
  border: 0.5px solid #588157;
  width: 160px;
  background-color: white;
  color: #588157;
  font-family: "Poppins";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.312px;
}
/* Custom sorting select */
.ajax-shop-toolbar select#ajax-shop-sort {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  padding-right: 30px;
  background-color: #fff;
  /* Custom arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23588157' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  cursor: pointer;
  margin-bottom: 0;
}
.ajax-shop-toolbar select#ajax-shop-sort:focus-visible {
  border-color: #588157 !important;
}

/* =========================================================
   SHOP TITLE
========================================================= */

.ajax-shop-main > h2 {
  color: #1b3600;
  font-family: Unbounded;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 73.6px; /* 230% */
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.ajax-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 64px;
  width: 100%;
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.ajax-shop-product {
  position: relative;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  background: #f7fcf3;
  border-radius: 0 0 20px 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ajax-shop-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   PRODUCT CATEGORY LABEL
========================================================= */

.ajax-shop-product-category {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px 8px;
  background: #95ce00;
  color: #173600;
  font-size: 12px;
  font-family: "Unbounded";
  line-height: 20px;
  letter-spacing: -0.15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 20px 20px 0 0;
}

/* =========================================================
   PRODUCT IMAGE
========================================================= */

.ajax-shop-product-image {
  display: block;
  width: 100%;
  height: 214px;
  overflow: hidden;
  background-color: #fff;
  text-decoration: none;
  border: 1px solid #f7fbeb;
}

.ajax-shop-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.ajax-shop-product:hover .ajax-shop-product-image img {
  transform: scale(1.03);
}

/* =========================================================
   PRODUCT CONTENT
========================================================= */

.ajax-shop-product-content {
  padding: 32px 16px;
}

.ajax-shop-product h3 {
  font-family: "Unbounded";
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.439px;
  font-weight: 500;
  color: #1b3600;
}

.ajax-shop-product h3 a {
  color: #1b3600;
  text-decoration: none;
}

.ajax-shop-product h3 a:hover {
  color: #56845b;
}

/* =========================================================
   PRICE
========================================================= */

.ajax-shop-product-price {
  color: #1b3600;
  font-family: "Poppins";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 10px;
  letter-spacing: -0.439px;
}

.ajax-shop-product-price del {
  opacity: 0.55;
}

.ajax-shop-product-price ins {
  text-decoration: none;
}

/* =========================================================
   ADD TO CART
========================================================= */

.ajax-shop-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 0;
  border-radius: 18px;
  background: #56845b;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

a.ajax-shop-view-cart, a.added_to_cart.wc-forward {
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin: auto;
  border: 0;
  font-family: "Quicksand";
  font-weight: 700;
  border-radius: 18px;
  background: #56845b;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.ajax-shop-add-cart:hover {
  background: #3f7046;
  transform: translateY(-1px);
}
a.ajax-shop-view-cart:hover, a.added_to_cart.wc-forward:hover {
  background: #3f7046;
  transform: translateY(-1px);
  color: white;
}

.ajax-shop-add-cart.adding-to-cart {
  opacity: 0.7;

  cursor: wait;
}

/* =========================================================
   NO PRODUCTS
========================================================= */

.ajax-shop-no-products {
  grid-column: 1 / -1;

  width: 100%;

  padding: 50px 20px;

  text-align: center;

  background: #f8faf7;

  border-radius: 10px;

  box-sizing: border-box;
}

.ajax-shop-no-products p {
  margin: 0;

  color: #555;

  font-size: 14px;
}

/* =========================================================
   ERROR
========================================================= */

.ajax-shop-error {
  grid-column: 1 / -1;

  padding: 30px;

  text-align: center;

  background: #fff7f7;

  border: 1px solid #f0d4d4;

  border-radius: 8px;
}

.ajax-shop-error p {
  margin: 0;

  color: #a33;
}

/* =========================================================
   LOADING
========================================================= */

#ajax-shop-loading {
  width: 100%;

  padding: 15px 0;

  text-align: center;

  color: #56845b;

  font-size: 13px;
}

.ajax-shop-is-loading {
  opacity: 0.45;

  pointer-events: none;

  transition: opacity 0.15s ease;
}

/* =========================================================
   PAGINATION
========================================================= */

#ajax-shop-pagination-wrapper {
  width: 100%;
  min-height: 40px;
}

.ajax-shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 40px;
}

.ajax-shop-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #ff9a4c;
  border-radius: 50%;
  background: #fff;
  color: #ff9a4c;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.ajax-shop-page:hover {
  background: #fff3e8;
  color: #ff9a4c;
}

.ajax-shop-page.active {
  background: #ff9a4c;
  color: #fff;
}

.ajax-shop-page:focus {
  outline: none;
}
#ajax-shop-reset {
  display: none;
}

/* =========================================================
   MOBILE FILTER BUTTON
========================================================= */

#mobile-filter-button {
  display: none;
  width: 100%;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid #d6ddd6;
  border-radius: 8px;
  background: #fff;
  color: #244f2b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   MOBILE OVERLAY
========================================================= */

#ajax-shop-filter-overlay {
  display: none;
  position: fixed;
  z-index: 99998;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.35);
}

#ajax-shop-filter-overlay.active {
  display: block;
}
/* =====================================================
   FILTER ACCORDION
   ===================================================== */

#ajax-shop-filters .ajax-shop-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

#ajax-shop-filters .ajax-shop-filter-title strong {
  color: #588157;
  text-align: center;
  font-family: "Unbounded";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.312px;
}

#ajax-shop-filters .ajax-shop-filter-title span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #588157;
  font-size: 14px;
  line-height: 1;
}

#ajax-shop-filters .ajax-shop-accordion-content {
  display: block;
}

#ajax-shop-filters .ajax-shop-filter-title:hover strong,
#ajax-shop-filters .ajax-shop-filter-title:hover span {
  color: #315f38;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 992px) {
  .ajax-shop-wrapper {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
  }
  #mobile-filter-button,
  #ajax-shop-reset {
    display: block;
  }
  #mobile-filter-button {
    width: fit-content;
    background-color: white;
    border: 1px solid #588157;
    border-radius: 20px;
    padding: 16px 32px;
    font-family: "Unbounded";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .search-product-count {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ajax-shop-toolbar {
    width: 100%;
  }
  .ajax-shop-search {
    width: 100%;
    margin-top: 16px;
  }
  /* =========================================================
   RESET
========================================================= */

  #ajax-shop-reset {
    border: 0;
    padding: 0;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    background-color: #56845b;
    padding: 0px;
  }

  #ajax-shop-reset:hover {
    background-color: #244f2b;
  }
  .ajax-shop-wrapper {
    display: block;
  }
  .ajax-shop-sidebar {
    position: fixed;
    z-index: 99999;
    top: 0;
    bottom: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.12);
    transform: translateX(-105%);
    transition: transform 0.3s ease;
  }
  .ajax-shop-sidebar.mobile-filter-open {
    transform: translateX(0);
  }
  #mobile-filter-close {
    display: block;
    color: #0a0a0a;
  }
  .ajax-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #ajax-woocommerce-shop {
    padding: 80px 16px;
  }
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 767px) {
  #ajax-woocommerce-shop {
    padding: 60px 16px;
  }
  /*
     * Product grid.
     */

  .ajax-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 12px;

    row-gap: 20px;
  }

  /*
     * Toolbar.
     */

  .ajax-shop-toolbar {
    margin-bottom: 18px;
  }

  /*
     * Shop heading.
     */

  .ajax-shop-main > h1 {
    font-size: 27px;

    margin-bottom: 25px;
  }

  /*
     * Prevent body scrolling when filter is open.
     */

  body.ajax-filter-open {
    overflow: hidden;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
  .ajax-shop-product-image {
    height: 120px;
  }

  .ajax-shop-product-content {
    padding: 14px 7px 16px;
  }

  .ajax-shop-product h3 {
    font-size: 13px;
  }

  .ajax-shop-product-price {
    font-size: 12px;
  }

  .ajax-shop-add-cart {
    min-width: 75px;

    height: 27px;

    padding: 0 10px;

    font-size: 10px;
  }

  .ajax-shop-toolbar {
    align-items: flex-start;
  }

  .ajax-shop-toolbar select {
    min-width: 105px;

    height: 36px;

    padding-left: 10px;

    padding-right: 20px;

    font-size: 11px;
  }

  .ajax-shop-toolbar > div {
    font-size: 12px;
  }

  .ajax-shop-main > h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  a.ajax-shop-view-cart, a.added_to_cart.wc-forward {
    font-size: 10px !important;
    padding: 8px 14px !important;
  }
}
