/**
Theme Name:   wholemall-Child
Theme URI:      https://themeforest.net/item/wholemall-minimal-woocommerce-wordpress-theme/24204259
Author:         RadiusTheme
Author URI:     https://www.radiustheme.com
Description:    wholemall is a clean and modern WordPress Theme for Ecommerce and Online Store. This theme comes with all necessary features and pages for a Ecommerce website.
Version: 1.0.0
Template: wholemall
Text Domain: wholemallchild

*/
/* Product Grid Layout */
.products.rdtheme-archive-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-left: 0px !important;
  padding-right: 0px !important;
}
.products.rdtheme-archive-products .product.type-product {
  max-width: 100%;
  min-width: 100%;
  width: 100%;
  padding-right: 0px;
  padding-left: 0px;
}
.products.rdtheme-archive-products.grid-show-1 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.products.rdtheme-archive-products.grid-show-2 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.products.rdtheme-archive-products.grid-show-3 {
  grid-template-columns: repeat(4, 1fr) !important;
}
.products.rdtheme-archive-products.grid-show-0 {
  grid-template-columns: repeat(1, 1fr) !important;
}
.product-show-0 {
  display: none;
}
.archive .rt-product-block.rt-product-block-1 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin-bottom: 0px !important;
}

/* Product Block Styles */
.rt-product-block-1 {
  position: relative;
}

/* Thumbnail Wrapper */
.rtin-thumb-wrapper {
  border-radius: 0px !important;
  position: relative;
  overflow: hidden;
}

.rtin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Area */
.rt-product-block-1 .rtin-title,
.rtin-cat,
.rtin-price.price {
  padding: 0px !important;
}
.rtin-title {
  font-weight: 700;
  font-size: 15px;
  margin: 10px 0 5px;
}
.rtin-title a {
  color: #333;
  text-decoration: none;
}

.rtin-title a:hover {
  color: #000;
}

/* Price Area */

.rtin-price {
  display: flex;
}
.rtin-price bdi {
  line-height: 20px !important;
  margin: 0px 5px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
.rtin-price .color-name {
  line-height: 20px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1f1919 !important;
}
.rtin-price del bdi {
  line-height: 20px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
.rtin-price .sale-price,
.rtin-price .regular-price {
  line-height: 0px !important;
}
.rtin-price .sale-price bdi {
  line-height: 20px !important;
  margin: 0px 5px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-decoration: none;
  color: #e31837 !important;
}

/* Gallery Slider */
.product-gallery-slider {
  margin-bottom: 0px !important;
  position: relative;
}
.rdtheme-loadmore-btn-area {
  margin-top: 0px !important;
}

.rt-product-block-1 .gallery-images img {
  width: 100%;
  object-fit: cover;
  border-radius: 0px !important;
}

.rt-product-block-1 .gallery-images {
  position: relative;
  background: #f8f8f8;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}
.gallery-images .gallery-image {
  /* display: none; */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease-in-out;
  left: 0;
}

.gallery-images .gallery-image:first-child {
  display: block;
  position: relative;
}
.gallery-image.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.gallery-nav {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.rt-product-block-1:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav span {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-nav span::before {
  content: "";
  border: solid #000;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
}

.gallery-nav .prev::before {
  transform: rotate(135deg);
  margin-left: 3px;
}

.gallery-nav .next::before {
  transform: rotate(-45deg);
  margin-right: 3px;
}

.swatch-count {
  min-height: 51px;
  text-transform: uppercase;
  font-size: 12px;
  color: #424242;
  margin-top: 4px;
  font-weight: 400;
}
.rt-product-block-1:hover .swatch-count {
  display: none;
}
.rt-product-block-1:hover .variation-swatches {
  display: flex;
}

.swatch-image {
  padding: 3px;
  min-width: 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  cursor: pointer;
}
.swatch-image.image_activation {
  border: 2px solid black;
}

.swatch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons Area */
.rtin-buttons-area {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: #fff;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.rt-product-block-1:hover .rtin-buttons-area {
  opacity: 1;
  transform: translateY(0);
}

.rtin-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.rt-product-block-1 .rtin-title {
  margin: 10px 0px 0px 0px !important;
  padding: 0px !important;
  line-height: 0px !important;
  min-height: auto;
}
.rt-product-block-1 .rtin-title a {
  margin-bottom: 3px;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 22px;
  color: #1f1919 !important;
}
.rt-product-block-1 .rtin-title a:hover {
  text-decoration: none;
}
/* Fix image alignment and layout */

/* Progress line animation */
/* Container for slider progress lines */
.slider-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 10;
  pointer-events: none;
}
.onsale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffffff;
  color: #424242;
  font-size: 12px;
  line-height: 18px;
  padding: 5px 10px;
  z-index: 9;
  word-spacing: 4px;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  opacity: 1;
  transition: opacity 0.5s ease;
}
/* Static background line (gray) */
.slider-lines {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 2px;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 20;
  pointer-events: none;
}

.slider-line {
  opacity: 0;
  position: relative;
  flex: 1;
  height: 2px;
  background: #ccc;
  margin: 0 0.8px;
  overflow: hidden;
  border-radius: 2px;
  transition: opacity 0.5s ease;
  display: block; /* keep it block so it doesn’t break layout */
}
.rt-product-block-1 .rtin-thumb-wrapper:hover .onsale-badge {
  opacity: 0;
  pointer-events: none;
  margin-bottom: 0px;
}

.rt-product-block-1 .rtin-thumb-wrapper:hover .slider-line {
  opacity: 1;
}
.slider-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #fff;
  transition: none;
  animation: none;
}

.slider-line.animate::before {
  animation: lineFill 2s linear forwards;
}

.slider-line.filled::before {
  width: 100%;
}

@keyframes lineFill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Hide scrollbar by default */
.variation-swatches {
  padding-bottom: 5px;
  width: 100%;
  display: none;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.variation-swatches::-webkit-scrollbar {
  display: none;
}
.variation-swatches:hover {
  scrollbar-width: auto; /* Firefox */
}
.variation-swatches:hover::-webkit-scrollbar {
  display: block;
  height: 4px;
}
.variation-swatches:hover::-webkit-scrollbar-track {
  background: transparent;
}
.variation-swatches:hover::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

/* ======================filter =================== */
.shop-layout-wrapper {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.shop-wrapper {
  display: flex;
  transition: all 0.3s ease;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

/* Sidebar Default */
.shop-sidebar {
  width: 20%;
  transition: all 0.4s ease;
  opacity: 1;
  overflow: hidden;
}

/* Sidebar Hidden */
.shop-sidebar.hide-sidebar {
  width: 0 !important;
  opacity: 0;
  padding: 0;
  margin: 0;
  visibility: hidden;
}

/* Product Section */
.shop-products {
  width: 77%;
  transition: all 0.4s ease;
}

/* When sidebar hidden */
.shop-products.full-width {
  width: 100% !important;
}

/* Price Dropdown */

#woocommerce-price-widget .filter-head,
.filter-head {
  padding: 12px 12px 0px 0px;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}

#woocommerce-price-widget .filter-head::after,
.filter-head::after {
  font-size: 22px;
  content: "▾";
  position: absolute;
  right: 0px;
  top: 45%;
  transform: translateY(-50%);
}

#woocommerce-price-widget .filter-body,
.filter-body {
  padding: 12px 12px 12px 0px;
  display: block;
}

/* 💸 Range Slider Styling */
#woocommerce-price-widget .price_slider_wrapper {
  margin-top: 20px;
}

#woocommerce-price-widget .ui-slider-horizontal {
  width: 94%;
  margin: auto;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background-color: #424242 !important;
}
#woocommerce-price-widget .ui-slider-handle {
  border: 2px solid white !important;
  width: 18px;
  height: 18px;
  background: #424242;
  border-radius: 50%;
  top: -6px;
  border: none;
  cursor: grab;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background-color: #424242;
}

/* From/To Inputs */
#woocommerce-price-widget .price_slider_amount {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

#woocommerce-price-widget .price_slider_amount input {
  width: 100%;
  padding: 6px 10px 6px 20px; /* padding-left for £ icon space */
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  font-size: 14px;
  appearance: none;
  -moz-appearance: textfield;
  text-align: right; /* ✅ Value aligned right */
  position: relative;
  background: transparent;
}
#custom-min-price::before,
#custom-max-price::before {
  content: "£";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #444;
  font-size: 14px;
}

#woocommerce-price-widget .price_slider_amount input:focus {
  border-color: #000;
}

#woocommerce-price-widget .price_slider_amount .button {
  display: none;
}

/* Category & Color Filters */
.cat-item,
.color-item {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
  gap: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.cat-name {
  flex: 1;
  font-size: 14px;
}

.cat-checkbox,
.color-item input {
  display: none;
}

.checkmark {
  width: 15px;
  height: 15px;
  display: inline-block;
  background-color: #fff;
  box-shadow: 0 0 0 2px #aaa;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.checkmark:hover {
  border: 3px solid white;
  background-color: #f2f2f2;
}

.cat-checkbox:checked + .checkmark {
  border: 3px solid white;
  background-color: black;
  box-shadow: 0 0 0 2px #222, 0 0 0 7px #fff;
}

.cat-checkbox:checked + .checkmark + .cat-name {
  font-weight: 600;
}

.color-box {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  margin-left: auto;
  cursor: pointer;
}

.color-item input:checked + .color-box {
  border: 2px solid white;
  box-shadow: 0 0 0 2px #222, 0 0 0 7px #fff;
}

.color-container {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-left: 2px;
}
.woocommerce .price_slider_amount .price_label {
  display: none !important;
}


/* Rename placeholders */
/* Optional clean-up */
.price_slider_amount {
  position: relative;
  display: flex;
  gap: 10px;
}

#custom-min-price,
#custom-max-price {
  position: relative;
}
.woocommerce .price_slider_amount input {
  width: 100px;
  padding: 6px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  font-size: 14px;
  appearance: none;
}
.price-range-inputs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.price-range-inputs input {
  width: 100px;
  padding: 6px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  font-size: 14px;
  outline: none;
}
.input-wrapper {
  width: 42%;
  position: relative;
}

.input-wrapper input {
  padding-left: 20px;
  text-align: right;
}

.input-wrapper .pound-symbol {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #444;
  font-size: 14px;
  pointer-events: none;
}
#ajax-products {
  height: 100%;
}
#ajax-products.loading {
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

#ajax-products.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  background: url("https://i.gifer.com/ZZ5H.gif") no-repeat center center;
  background-size: contain;
  transform: translate(-50%, -50%);
  z-index: 9;
}
#product-loader {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.custom-spinner {
  width: 35px;
  height: 35px;
  border: 4px solid #ccc;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* shop filter */
.custom-shop-toolbar {
  margin: 20px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e4e4e4;
  flex-wrap: wrap;
  gap: 20px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-filters {
  color: #7b7b7b;
  font-size: 12px;
  padding: 7px 15px;
  border-right: 0.1px solid #7b7b7b;
  text-transform: uppercase;
  font-weight: 300;
}

.toolbar-filters svg,
.toolbar-featured svg {
  width: 18px;
  height: 18px;
  stroke: #333;
  fill: none;
  margin-left: 5px;
}

.icon-dropdown {
  width: 14px;
  height: 14px;
  fill: #333;
}

.toolbar-right {
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.grid-switch {
  background: transparent;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.grid-switch:hover {
  background: #ffffff;
}
.grid-switch svg {
  width: 16px;
  height: 16px;
  fill: #7b7b7b;
}
.active_product svg {
  fill: #000 !important;
}
.toolbar-featured-dropdown {
  padding: 7px 0px;
  border-right: 0.1px solid #7b7b7b;
  position: relative;
  display: inline-block;
}

.custom-sort-dropdown {
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  text-transform: uppercase;
  color: #7b7b7b;
  margin-left: 10px;
}

.dropdown-selected {
  position: relative;
  padding-right: 35px;
  margin-right: 5px; /* add space for the icon */
}

.dropdown-options {
  width: 155px;
  list-style: none;
  position: absolute;
  top: 123%;
  left: -11px;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 999;
  margin: 0;
  padding: 0;
  display: none;
}

.dropdown-options li {
  padding: 2px 12px;
  font-size: 12px;
  text-transform: uppercase;
  color: #7b7b7b;
}

.dropdown-options li:hover,
.dropdown-options li.active {
  background-color: #f0f0f0;
}

.dropdown-selected svg {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 18px;
  color: #7b7b7b;
  pointer-events: none;
}

.home .site-content .content-area {
  padding: 0px 0px 40px 0px !important;
}
.prodoct_shop_width {
  width: 100% !important;
}
.offcanvas-header {
  padding-bottom: 10px;
  display: none;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  background: #fff;
  padding-bottom: 20px;
}

.offcanvas-header h2 {
  font-size: 14px;
  margin: 0;
  color: #424242;
  font-weight: 500;
}
.offcanvas-close {
  background-color: white;
  padding: 0px;
}
.offcanvas-close {
  background-color: white;
}
.offcanvas-close svg {
  fill: none;
  stroke: #424242;
  stroke-miterlimit: 10;
  stroke-width: 2;
  width: 20px;
}

.disabled-color {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.disabled-color::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    width: 87%;
    height: 2px;
    background: #a1a1a1;
    transform: rotate(317deg);
}
.shop-products .rdtheme-loadmore-btn{
  min-width: 300px;
  border-radius: 4px;
}
@media (max-width: 1025px) {
#site-header {
      display: block !important;
    }
}
@media (max-width: 1024px) {
    #site-header {
      display: none !important;
    }
  .container,
  .container-sm {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .container .col-sm-12 {
    padding: 0px !important;
  }
  .shop-sidebar {
    width: 28%;
  }
  .shop-products {
    width: 70%;
  }
  .product-show-3 {
    display: none;
  }
  .products.rdtheme-archive-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .product-show-0 {
    display: block;
  }
  .input-wrapper {
    width: 40%;
  }
}
@media (max-width: 768px) {
  .rt-product-block-1 .rtin-title a {
    font-size: 13px !important;
  }
  .rtin-price .color-name {
    font-size: 12px !important;
  }
  .rtin-price .sale-price bdi {
    font-size: 12px !important;
  }
  .rtin-price del bdi {
    font-size: 12px !important;
  }
  .swatch-image {
    padding: 2px;
    min-width: 30px;
    width: 30px;
    height: 30px;
  }
  .offcanvas-header {
    display: flex;
  }
  .input-wrapper {
    width: 46%;
  }
  .toolbar-filters {
    padding: 5px;
  }
  .toolbar-featured-dropdown {
    padding: 5px;
  }
  .toolbar-right {
    margin-right: 5px;
  }
  .grid-switch {
    padding: 2px;
  }
  .custom-sort-dropdown {
    width: auto;
  }
  .toolbar-filters svg,
  .toolbar-featured svg {
    margin-left: 2px;
  }
  .custom-shop-toolbar {
    gap: 7px;
  }
  .toolbar-right {
    gap: 5px;
  }
  .product-show-2 {
    display: none;
  }
  .products.rdtheme-archive-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
  }
  .shop-products {
    width: 100%;
  }
  .shop-sidebar.show-offcanvas {
    width: 65%;
    transform: translateX(0);
    overflow: auto;
    padding: 30px;
    z-index: 9999999;
  }

  #sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 999999;
    display: none;
    transition: 0.3s ease;
  }
  #sidebar-overlay.active {
    display: block;
  }
  #woocommerce-price-widget .filter-head,
  .filter-head {
    border-bottom: 1px solid #cccccc;
    padding-bottom: 5px;
  }
}
