/***** all-view-wrapper class is in customizer  *******/
.afe-category-section {
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.afe-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 20px 0 0;
  margin: 0 0 0 20px;
}

.afe-product-card {
  width: 100%;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease;
  position: relative;
}

.afe-product-card img {
  display: block;
  width: 100%;
  height: auto;
}

.afe-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  padding: 2px 14px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  font-size: 25px;
  transition: opacity 0.3s ease;
}

.afe-scroll-btn:hover,
.afe-scroll-btn:focus {
  background: white;
}

.afe-scroll-btn.left {
  left: 5px;
}

.afe-scroll-btn.right {
  right: 5px;
}

.price-box {
  padding-top: 0 !important;
}

.product-thumb {
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.product-thumb img:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

.view-all-button-wrapper {
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

a.afe-view-all {
  background: #000 !important;
  color: #fff !important;
  font-size: 14px !important;
  padding: 10px 20px;
  border-radius: 4px;
  text-align: center;
}

a.afe-view-all:hover {
  background: #000000dc !important;
  color: #fff !important;
}

.quick-view-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  border-radius: 50%;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  padding: 0;
  color: black;
  border-radius: 50%;
  background-color: rgb(255, 255, 255) !important;
  box-shadow: 0 0 4rem #21232633 !important;
}

.quick-view-btn:hover {
  animation: pulseZoom 0.9s ease-in-out infinite;
}

.quick-view-btn svg {
  width: 18px;
  height: 18px;
}

@keyframes pulseZoom {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }

  100% {
    transform: scale(1);
  }
}

.choose-options {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  transform: translateY(100%);
  transition: all 0.3s ease;
  opacity: 0;
}

.choose-options a {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff !important;
  padding: 10px 20px;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  width: 90%;
  text-align: center;
  border-radius: 0;
  font-weight: 500;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.choose-options a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  color: #fff !important;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transform: skewX(-20deg);
}

.choose-options a:hover {
  opacity: 0.85;
  color: #fff !important;
}

.choose-options a:hover::after {
  animation: shine 0.8s ease;
}

@keyframes shine {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

.afe-product-card:hover .choose-options {
  transform: translateY(0);
  opacity: 1;
}

.afe-product-card:hover .quick-view-btn {
  opacity: 1;
  transform: scale(1);
}

.product-info {
  padding-top: 4px !important;
  padding-left: 10px;
  text-align: center;
  background-color: #f4f4f4;
}

.product-title {
  font-size: 15px;
  font-weight: 400;
  margin: 8px 0 0 0;
}

.product-title a {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 5px;
  color: black;
}

.afe-product-card .old-price {
  text-decoration: none;
  color: #212326b3;
  margin-right: 6px;
  font-size: 14px;
  position: relative;
}

.afe-product-card span.old-price:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  border-bottom: 0.1rem solid #d72c0d;
  opacity: 0.7;
  transform: rotate(-15deg);
}

.afe-product-card .new-price {
  color: #d72c0d;
  font-weight: 400;
  font-size: 18px;
}

.quick-view-mobile {
  display: none !important;
}

.quickview-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
}

.quickview-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.quickview-content {
  background: transparent !important;
  width: 100%;
  margin: 0px 3rem;
  position: relative;
  z-index: 10000;
  display: flex;
  border-radius: 0;
  height: calc(100% - 6rem);
  max-height: 100rem;
  overflow-y: hidden;
}

.quickview-details {
  overflow-y: auto;
}

button.close-btn {
  background-color: white;
  box-shadow: 0 0 4rem #21232633;
  height: 3rem;
  width: 3rem;
  padding: 0;
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  font-size: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(81 83 85);
  transition: transform 0.25s ease;
  will-change: transform;
}

button.close-btn {
  transition: transform 0.25s ease;
  will-change: transform;
}

button.close-btn:hover svg {
  transform: rotate(135deg);
  transition: transform 0.25s ease;
}

.quickview-image {
  flex: 1 1 45%;
}

.quickview-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.quickview-details {
  flex: 1 1 50%;
  padding: 40px 65px;
}

.quickview-details h4.brand {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
}

/*********** Ambreen Farrukh name styling in quick modal *****************/
.afe-ambreen-farrukh {
  font-size: 10px;
  letter-spacing: 1.1px;
}

.afe-product-card .product-name {
  font-size: 26px;
  margin: 10px 0;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 5px;
}

.quickview-details .old-price {
  text-decoration: none;
  color: #212326b3;
  font-size: 15px;
  position: relative;
}

.quickview-details .old-price:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  border-bottom: 0.1rem solid #d72c0d;
  opacity: 0.7;
  transform: rotate(-15deg);
}

.quickview-details .new-price {
  color: #d72c0d;
  font-weight: 400;
  font-size: 20px;
}

.badge {
  background: #c0392b;
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 2px;
  text-transform: uppercase;
}

.shipping {
  color: black;
  font-size: 12px;
  margin-bottom: 20px;
}

.sizes h5 {
  font-size: 13px;
  margin-bottom: 10px;
}

.size-options {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.size {
  box-shadow: inset 0 0 0 0.1rem #d2d5d9;
  background: #fff;
  padding: 8px 15px;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 0px;
  border: none;
  font-size: 14px;
  color: black;
  text-transform: uppercase;
}

button.size.active {
  background: black;
  color: white;
  box-shadow: none;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.add-cart {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  height: 50px;
  border-radius: 0;
  letter-spacing: 2.8px;
  font-size: 14px;
}

.add-cart:hover {
  background: black;
  color: white;
}

.buy-now {
  background: #000;
  color: #fff;
  padding: 12px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 2.8px;
  font-size: 14px;
  height: 50px;
  border-radius: 0px;
  border: 1px solid #000;
}

.links {
  font-size: 14px;
}

a.full-details {
  padding: 15px 15px;
  color: #212326 !important;
  border-top: 1px solid #d2d5d9;
  border-bottom: 1px solid #d2d5d9;
  letter-spacing: 2.8px;
  font-size: 13px;
  display: flex !important;
  justify-content: space-between;
}

svg.icon.icon-caret {
  transform: rotate(-90deg);
  width: 10px;
}

.links a {
  text-decoration: none;
  margin-bottom: 5px;
}

svg.icon.icon-share {
  width: 20px;
}

.links a.share {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(33, 35, 38);
  margin-top: 10px;
  font-size: 16px;
}

.slider-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.slider-wrapper img {
  width: 100%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.gallery-action-buttons {
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
}

.quickview-image button {
  cursor: pointer;
  z-index: 2;
  border-radius: 0;
  padding: 0;
  width: 60px;
  color: black;
  background-color: white;
  border: none;
  padding: 10px;
}

.quickview-image button:hover {
  background-color: white;
}

.quickview-image button svg {
  width: 16px;
}

button.prev-image svg {
  transform: scaleX(-1);
}

.ambreen-loader {
  width: 25px;
  height: 25px;
  border: 2px solid #ddd;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin-top: 3px;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Base styles */
.quickview-content::before {
  width: 47.5% !important;
  content: "";
  position: absolute;
  height: 0%;
  bottom: 0;
  transition: height 0.6s ease;
  will-change: height;
  z-index: 5;
}

.quickview-content::after {
  content: "";
  position: absolute;
  width: 52.5% !important;
  height: 0%;
  bottom: 0;
  transition: height 0.6s ease;
  will-change: height;
  z-index: 5;
}

.quickview-content::before {
  left: 0;
  background-color: rgb(255, 255, 255) !important;
}

.quickview-content::after {
  right: 0;
  background-color: rgb(235, 235, 235) !important;
}

.quickview-content.loading::before,
.quickview-content.loading::after {
  height: 100%;
}

.quickview-content.loading::before {
  transition-delay: 0s !important;
}

.quickview-content.loading::after {
  transition-delay: 0.1s !important;
}

.quickview-content.loaded::before,
.quickview-content.loaded::after {
  height: 0%;
}

.quickview-content.loaded::before {
  transition-delay: 0s !important;
}

.quickview-content.loaded::after {
  transition-delay: 0.1s !important;
}

.quickview-details,
.quickview-image,
button.close-btn {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quickview-content.loaded .quickview-details,
.quickview-content.loaded .quickview-image,
.quickview-content.loaded button.close-btn {
  opacity: 1;
}

.quickview-content.loaded {
  background: #fff !important;
}

.slider-inner {
  width: 100%;
}

.afe-product-card .afe-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
}

.sale-badge,
.custom-outofstock-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 4px 10px;
  text-transform: uppercase;
  font-weight: 400;
}

.sale-badge {
  background-color: #d72c0d;
  color: #fff;
}

.custom-outofstock-badge {
  background-color: #fff;
  color: #d72c0d;
  border: 1px solid #d72c0d;
}

.badge-icon {
  display: none;
}

.custom-sale-badge {
  display: inline-block;
  border: 1px solid #000;
  padding: 4px 10px;
  font-size: 11px;
  text-transform: uppercase;
  color: #000;
  background: #fff;
}

.quick-custom-stock-badge {
  display: inline-block;
  border: 1px solid #d72c0d;
  padding: 4px 10px;
  font-size: 11px;
  text-transform: uppercase;
  color: #d72c0d;
  background: #fff;
}

@media screen and (max-width: 767px) {
  .quickview-modal {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.6) !important;
  }

  .quickview-content {
    width: 100% !important;
    height: 80vh !important;
    max-height: 80vh !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    margin: 0 !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
  }

  .quickview-details {
    overflow-y: visible;
    /* Scroll hata do */
  }

  .quickview-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: cover !important;
  }

  .quickview-details {
    padding: 20px !important;
  }

  .add-cart,
  .buy-now {
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  button.close-btn {
    top: 10px !important;
    right: 10px !important;
    position: absolute !important;
    z-index: 10 !important;
  }

  .afe-quickview-product-name {
    font-size: 26px !important;
    font-weight: 500;
    margin-top: 6px;
  }

  .product-name {
    font-size: 20px;
    margin: 10px 0;
  }

  .quick-view-btn,
  .choose-options {
    display: none !important;
  }

  .quick-view-mobile {
    display: block;
    position: absolute;
    bottom: 10px !important;
    right: 10px;
    top: auto;
    border-radius: 50%;
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
    padding: 0;
    color: #000;
    border-radius: 50%;
    background-color: #d2d5d9;
    box-shadow: 0 0 4rem #21232633;
    display: flex !important;
    opacity: 1;
  }

  .quickview-content::before {
    width: 100% !important;
  }

  .quickview-content::after {
    left: 0;
    background-color: #fff;
    width: 0% !important;
  }

  .sale-badge,
  .custom-outofstock-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
  }

  .badge-icon {
    display: inline-flex;
    font-size: 16px;
    align-items: center;
    justify-content: center;
  }

  .badge-text {
    display: none;
  }
}

@media (max-width: 768px) {
  .quickview-details {
    overflow-y: none !important;
  }

  .afe-category-title {
    font-size: 28px;
    padding: 0 15px 0 15px;
  }

  .afe-product-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 10px;
    padding: 0 10px 0 0;
    margin: 0 0 0 10px;
  }

  .afe-shop-product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between;
    overflow-x: none !important;
    padding-bottom: 10px !important;
  }

  .afe-product-card {
    flex: 0 0 auto !important;
    width: 80% !important;
    scroll-snap-align: start !important;
  }

  .view-all-button-wrapper {
    padding: 10px 15px 10px 15px !important;
    display: block;
    text-align: center;
    margin: 14px 0 0 0;
  }

  a.afe-view-all {
    width: 100% !important;
    font-size: 12px;
  }

  .afe-scroll-btn {
    display: none;
  }
}