.hidden {
  display: none;
}

body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

.bg-red-500 {
  background: red;
}

.oag-widget {
  display: flex;
  gap: 20px;
  width: 100%;
  text-transform: uppercase;
}

.oag-filter-section {
  width: 380px;
}

.oag-products-section {
  width: calc(100% - 380px);
}

.oag-sort-wrapper {
  width: 275px;
}

.oag-pagination-wrapper {
  display: flex;
  align-items: center;
  /* gap: 15px; */
  gap: 5px;
}

.oag-pagination-wrapper .page-nav {
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  color: #333 !important;
}

.oag-pagination-wrapper .page-num {
  padding: 8px 14px;
  margin: 0 2px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 4px;
  font-weight: normal;
}

.oag-pagination-wrapper .page-num.active {
  border: 1px solid #007cba;
  background: #007cba;
  color: #fff;
  font-weight: bold;
}

.oag-sort-pagination-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oag-product-grid,
.oag-loader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.oag-product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.oag-product-card-image-wrap {
  aspect-ratio: 1/1;
  background: #f4f4f4;
  margin-bottom: 10px;
  position: relative;
}

.oag-product-card-details {
  padding: 15px;
}

.oag-product-card-details__title {
  font-family: Poppins;
  font-size: 18px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: black !important;
  text-transform: none !important;
  min-height: 48px;
}

.oag-product-card-details__price {
  color: #08a652;
  font-size: 32px;
  font-weight: 600;
}

.oag-product-card-details__action {
  display: flex;
  gap: 10px;
}

.oag-product-card-details__action__qty {
  width: 80px !important;
}

.oag-product-card-details__action__atc {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: calc(100% - 80px) !important;

  color: white !important;
  background: #c60c29 !important;
  padding: 0px !important;
  border-radius: 4px !important;
}

.oag-submit__icon {
  display: none;
}

.oag-product-card-details__action__atc:disabled {
  opacity: 0.7 !important;
  pointer-events: none !important;
}

.oag-filter-options {
  display: flex;
  flex-direction: column;
}

.oag-filter-section-label {
  font-family: Poppins;
  font-weight: 700;
  font-size: 22px;
}

.oag-filters-wrapper {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.oag-filter-group {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.oag-filter-group-name {
  font-family: Poppins;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
  color: black;
  text-transform: none;
}

.oag-mobile-filter-button {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 10px 0 0 0 !important;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  cursor: pointer;
  border: 1px solid #ddd !important;
  background: #fff !important;
  color: #333 !important;
  border-radius: 4px !important;
  font-weight: normal !important;
}

.oag-mobile-filter-button:hover {
  background: #eee !important;
  color: #08a652 !important;
}

/* -------------------------------------------- */
/* filter checkbox style start */
/* -------------------------------------------- */
.oag-filter-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  color: #444;
  padding: 8px 0;
  transition: opacity 0.3s ease;
}

.oag-checkbox-wrapper {
  position: relative;
  width: 22px; /* Slightly larger for better tap target */
  height: 22px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Checkbox Styling */
.oag-filter-input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background-color: #eee;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0;
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
}

/* Hover State */
.oag-filter-input:hover {
  background-color: #ccc;
}

/* Checked State */
.oag-filter-input:checked {
  background-color: #05903f;
}

/* Checkmark (White Tick) */
.oag-filter-input:checked::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Loader Styles */
.oag-cb-loader {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #05903f;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

/* Loading State Logic */
.oag-filter-label.loading .oag-filter-input {
  opacity: 0.3; /* Fade the checkbox instead of hiding to prevent jump */
  pointer-events: none;
}

.oag-filter-label.loading .oag-cb-loader {
  opacity: 1;
  animation: oag-spin 0.8s linear infinite;
}

.oag-label-text {
  color: #333333;
  text-transform: none;
}

.oag-filter-label.loading .oag-label-text {
  opacity: 0.6;
}

@keyframes oag-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.oag-filter-count {
  margin-left: auto;
  color: #999;
}
/* -------------------------------------------- */
/* filter checkbox style end */
/* -------------------------------------------- */

/* -------------------------------------------- */
/* filter chips style start */
/* -------------------------------------------- */
.oag-filter-chip-section {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.oag-filter-chips-group-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}
.oag-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.oag-filter-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #05903f;
  border-radius: 5px;
}
.oag-filter-chip-value {
  color: white;
  font-weight: 600;
  padding: 5px 12px;
  text-transform: none;
}
.oag-filter-chip-close {
  border: none !important;
  border-left: solid 1px #029c42 !important;
  display: flex;
  align-items: center;
  padding: 5px !important;
  background: transparent !important;
  border-radius: 0px !important;
  color: #c9ffdf !important;
}
.oag-filter-chip-close:hover {
  color: white !important;
}

.oag-filter-chips-clear-all {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee !important;
  border: none !important;
  padding: 5px 12px !important;
  border-radius: 5px !important;
  color: #333333 !important;
}
.oag-filter-chips-clear-all:hover {
  background: #ccc !important;
}
/* -------------------------------------------- */
/* filter chips style end */
/* -------------------------------------------- */

/* -------------------------------------------- */
/* filter sidebar style start */
/* -------------------------------------------- */
.oag-side-filter-backdrop {
  position: fixed;
  background: rgba(0, 0, 0, 0.4);
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
}

.oag-side-filter-wrapper {
  height: 100%;
  width: calc(100% - 70px);
  background: white;
  padding: 20px 15px 20px 10px;
  overflow-y: auto;
}

.oag-side-filter-close {
  background: transparent !important;
  padding: 0px !important;
  border: none !important;
  border-radius: none !important;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* -------------------------------------------- */
/* filter sidebar style end */
/* -------------------------------------------- */

/* -------------------------------------------- */
/* added to cart style start */
/* -------------------------------------------- */
.oag-backdrop {
  position: fixed;
  background: rgba(0, 0, 0, 0.4);
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins";
  padding: 5px;
}

.aog-added-to-cart-popup {
  background: white;
  display: flex;
  flex-direction: column;
  text-transform: none;
}

.oag-atc-popup-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.oag-atc-popup-action {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ccc;
  padding: 15px;
}

.oag-atc-popup-title {
  font-size: 18px;
  text-align: center;
  font-weight: 600;
  color: #333;
  text-transform: none;
  border-bottom: 1px solid #ccc;
  padding: 15px;
}

.oag-atc-popup-action__go-to-cart {
  border-radius: none;
  border: solid 1px #c60c29;
  background: #c60c29;
  color: white !important;
  padding: 8px 16px;
  text-transform: none !important;
  text-align: center;
}

.oag-atc-popup-action__shop {
  border-radius: 0px !important;
  border: solid 1px #c60c29;
  background: white !important;
  color: #c60c29 !important;
  padding: 8px 16px !important;
  text-transform: none !important;
}

.oag-atc-popup-content__inner-wrapper {
  display: flex;
  gap: 15px;
}

.oag-atc-popup-content__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oag-atc-popup-content__img-wrapper,
.oag-atc-popup-content__img-wrapper img {
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1;
}

.oag-atc-popup-content__img-wrapper {
  background: white;
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

.oag-atc-popup-content__title-qty-price {
  width: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #333333;
}

.oag-atc-popup-content__product-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 300px;
  max-width: 300px;
}

.oag-atc-popup-content__total {
  color: #333333;
  text-align: right;
  font-weight: bold;
  font-size: 18px;
}

/* -------------------------------------------- */
/* added to cart style end */
/* -------------------------------------------- */

/* -------------------------------------------- */
/* plugin mobile, tab and desktop */
/* -------------------------------------------- */

/* mobile */
@media (max-width: 480px) {
  .aog-added-to-cart-popup {
    width: 85%;
  }
  .oag-atc-popup-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .oag-side-filter-wrapper {
    height: calc(100% - 70px);
  }
  .oag-side-filter-close {
    width: 70px;
  }
  .oag-filter-section {
    display: none;
    color: #c9ffdf;
  }

  .oag-products-section {
    width: 100%;
  }

  .oag-sort-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 10px;
  }
  .oag-product-grid,
  .oag-loader-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .oag-product-card-details {
    padding: 7px;
  }

  .oag-product-card-details__title {
    font-size: 12px !important;
  }

  .oag-product-card-details__price {
    font-size: 20px !important;
  }

  .oag-submit__label {
    display: none;
  }

  .oag-submit__icon {
    display: flex;
  }
}
/* tablet */
@media (min-width: 481px) and (max-width: 767px) {
  .oag-filter-section {
    display: none;
    color: #c9ffdf;
  }

  .oag-products-section {
    width: 100%;
  }

  .oag-side-filter-wrapper {
    width: 320px;
  }

  .oag-side-filter-close {
    width: calc(100% - 320px);
  }
}

/* mobile and tablet show side filter trigger */
@media (max-width: 767px) {
  .oag-mobile-filter-button {
    display: flex;
  }
}

/* desktop dont show filter sidebar */
@media (min-width: 768px) {
  .oag-side-filter-backdrop {
    display: none !important;
  }
}

/* product card queries */
@media (min-width: 1130px) {
  .oag-product-grid,
  .oag-loader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
}
@media (min-width: 900px) and (max-width: 1129px) {
  .oag-product-grid,
  .oag-loader-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
}
@media (min-width: 768px) and (max-width: 899px) {
  .oag-product-grid,
  .oag-loader-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
  }
}

@media (min-width: 714px) and (max-width: 767px) {
  .oag-product-grid,
  .oag-loader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
}
@media (min-width: 481px) and (max-width: 713px) {
  .oag-product-grid,
  .oag-loader-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
}
/* -------------------------------------------- */
/* plugin mobile, tab and desktop */
/* -------------------------------------------- */
