/* Remove this css */

button.ct-header-search.ct-toggle {
  background: transparent;
}
button.ct-header-search.ct-toggle svg{
  fill: #fff;
}
/* ===== Filter Buttons ===== */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 50px;
  margin-bottom: 20px;
}

.filter-buttons a {
  border: 1px solid #cccccc69;
  background: var(--bg-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffffb3;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
  flex-direction: column;
  /* flex: 1 1 calc(11% - 10px);
  max-width: calc(11% - 10px); */
  justify-content: start;
}

.filter-buttons a:hover,
.filter-buttons a.active{
  color: var(--white);
  border-color: var(--green);
}

/* ===== Product Section ===== */
.custom-shop {
  padding-left: 16px;
  padding-right: 16px;
}
.product-card {
  position: relative;
  overflow: hidden; 
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: start;
  margin: auto;
}

.product-card {
  flex: 1 1 calc(25% - 15px);
  max-width: calc(25% - 15px);
  background: var(--bg-color);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden; 
  /* min-height: 428px;
      min-width: 228px; */
}

/* Related product section  */
#related-products .product-container {
  flex-wrap: nowrap;
  overflow-x: hidden;
}
#related-products .product-card { 
  min-width: 305px; 
}
#related-products .slider-container { 
  position: relative; 
}
#related-products .slides-wrapper { 
  width: 100%; 
}
#related-products .slides > div { 
  box-sizing: border-box; 
}
#related-products .prev, #related-products .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; fill: #fff; border: none; padding: 6px 12px;
  cursor: pointer; z-index: 10;
}
#related-products .prev { left: 10px; }
#related-products .next { right: 10px; }

.product-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  min-height: 275px;
  width: 100%;
  max-height: 275px;
  width: auto;
}

.product-card .product-title {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin-top: 0;
  text-align: left;
}

/* CATEGORY + RATING in one row */
.product-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.product-card .tag {
  color: #ffffffb3;
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
  border: 1px solid #cccccc69;
}

.product-card .pd_price {
  font-size: 16px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  border-radius: 4px;
  padding: 2px 6px;
  justify-content: center;
}

.product-card a {
  text-decoration: none;
  color: #fff;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .add-cart-btn {
  color: var(--secondary-color);
  padding: 14px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
  background-color: var(--green);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0px;
}

.cat-title {
  color: var(--primary-color);
  text-align: center;
  font-size: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Variations list */
.variation-selector {
  position: absolute;
  left: 0;
  bottom: -100%;
  background: var(--bg-color);
  transition: all 0.4s ease;
  margin: 0;
  padding: 12px;
  list-style: none;
  max-width: -webkit-fill-available;
  width: 100%;
}
body .disabled .variation,
.add-cart-btn.disabled{
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.variations .variation:hover,
.variations .variation.active {
  background: #242222e8;
}
/* Hide default radio */
.variations input[type="radio"] {
  display: none;
}

/* Label base style */
.variations .variation {
  display: inline-block;
  border-radius: 4px;
  color: var(--white);
  padding: 8px 0px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
  background: #242222;
  transition: all 0.3s ease;
  width: 100%;
  border: 1px solid #242222;
}
.variations .variation:hover {
  background:#24222294;
}
.variations .variation:has(input[type="radio"]:checked) {
  border:1px solid var(--primary-color);
}
.variations.disabled .variation:has(input[type="radio"]:checked) {
  border:1px solid #ffffff00;
}
.product-card.variations-show .variation-selector {
  bottom: 62px;
}
.variations.disabled + input + button {
  cursor: not-allowed;
  opacity: 0.5;
}
/* SALE OUT Badge */
.product-card .saleout {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff4d4f;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 0px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* SAVE UPTO Badge */
.product-card .saveupto {
  position: absolute;
  top: 0px;
  right: 0px;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

button.load-more-btn {
  text-align: center;
  width: auto;
  margin: 0 auto;
  display: flex;
  color: var(--green);
  background: transparent;
  border: 2px solid var(--green);
  width: 100%;
  max-width: 150px;
  height: 50px;
  margin-top: 50px;
}

.load-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease;
}

.post-type-archive-product section {
  border-bottom: 1px solid #cccccc26;
  padding-bottom: 100px;
  padding-top: 100px;
}

.skeleton {
  background: #e0e0e029;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.product-card.skeleton {
  min-height: 455px;
}

.skeleton.filter-placeholder {
  min-height: 40px;
}

.skeleton .image-placeholder {
  width: 100%;
  height: 100%;
  background: #e0e0e029;
  border-radius: 8px;
  margin-bottom: 12px;
}

.skeleton.placeholder-title {
  width: 214px;
  margin-left: auto;
  margin-right: auto;
}

.skeleton .title-placeholder {
  width: 70%;
  height: 20px;
  background: #e0e0e029;
  border-radius: 4px;
  margin: 8px 0;
}

.skeleton .meta-placeholder {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
}

.skeleton .tag-placeholder,
.skeleton .price-placeholder {
  width: 40%;
  height: 16px;
  background: #e0e0e029;
  border-radius: 4px;
}

.skeleton .button-placeholder {
  width: 100%;
  height: 56px;
  background: #e0e0e029;
  border-radius: 6px;
  margin-top: 10px;
}

/*  Shimmer Animation */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-150px);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Skeleton category filter buttons */
.filter-placeholder {
  width: 80px;
  height: 30px;
  border-radius: 6px;
  background: #e0e0e029;
}

.shop-tools {
  display: inline-block;
  margin: 10px 0;
}
.sort-filters {
    text-align: right;
}
.wd-shop-tools {
  display: none; /*Remove this line*/
}
.shop-tools select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-size: 14px;
  padding: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  border:0px;
  border-bottom: 1px solid var(--primary-color);
  background-color: transparent;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMCA3LjMzbDIuODI5LTIuODMgOS4xNzUgOS4zMzkgOS4xNjctOS4zMzkgMi44MjkgMi44My0xMS45OTYgMTIuMTd6Ii8+PC9zdmc+');
  background-repeat: no-repeat;
  background-position: right 10px center;
  filter: contrast(0.1);
  background-size: 12px;
  padding-right: 26px;
}
.sort-filters + section {
  padding-top: 0px;
}
.cs_circle_style .variations .variation {
  width: 50px;
  border-radius: 50px;
  height: 50px;
  line-height: 30px;
  margin: 4px;
}
.error-container {
    max-width: calc(100% - 40px);
    border-radius: 4px;
    padding: 12px;
    margin: auto;
    color: #fff;
    background-color: #842029;
    border: 1px solid #842029;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
   
    margin-left: 20px;
    padding-right: 20px;
}
.home-products .error-container{
   margin-bottom: 20px;
   margin-top: 0px;
}
.category-image {
  /* max-width: 6.5vw;
  height: 6.5vw; */
  min-width: 6.5vw;
  min-height: 6.5vw;
}
 
.category-image img {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  max-width: max-content;
}
.error-container button {
  background: transparent;
  border: 0px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}
.shop-tools select:hover {
  border-color: #999;
}

.shop-tools select:focus {
  outline: none;
}
/* body .meta .deals-badges {
  background: #d1c81b;
  color: var(--secondary-color);
} */
body .meta .ketamine-badges,
body .meta .dmt-badges,
body .meta .edibles-badges,
body .meta .lsd-2-badges,
body .meta .mdma-badges,
body .meta .mushrooms-badges,
body .meta .rewards-badges,
body .meta .tuci-badges{
  background: #ef4337;
  color: var(--secondary-color);
}
body .meta .dmt-badges {
  background: #d1c81b;
}
body .meta .edibles-badges {
  background: #8c5f1c;
}
body .meta .lsd-2-badges {
  background: #2f29d1;
}
body .meta .mdma-badges {
  background: var(--primary-color);
}
body .meta .mushrooms-badges {
  background: #8c5f1c;
}
body .meta .rewards-badges {
  background:#14e5d0;
}
div#shop-root {
    min-height: calc(100vh - 171px);
}
body .meta .tuci-badges {
  background: #d747ed;;
}
.shop_loader {
  text-align: center;
  display: flex;
  min-height: 400px;
  align-items: center;
  justify-content: center;
}

.filter-buttons a.active {
  border: 1px solid var(--green);;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: matrix(1, 0, 0, 1, 0, 0);
  color: var(--green);
}

.filter-buttons a.active .category-image::after {
  content: "✔"; /* checkmark */
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--green);;
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 20px 0px #ededed;
}

.products_btn_wrap {
  display: flex;
  gap: 10px;
}
.products_btn_wrap .cart-btn{
  flex: 80px;
}
/* Responsive tweaks */

@media screen and (min-width:1025px){
  .filter-buttons a {
    padding: 0;
    font-size: 0;
    gap: 0;
}
  .home-products .filter-buttons a {
    padding: 10px 16px;
    font-size: 16px;
  }
 
  .category-image img {
    width: 100%;
    height: 100%;
  }
}
@media (max-width: 1140px) {
.product-card {
  flex: 1 1 calc(33% - 15px);
  max-width: calc(33% - 15px);
}
}
@media screen and (max-width: 1024px) {
  .category-image {
    display: none;
  }
}
@media screen and (max-width: 980px) {
  #related-products .product-card {
    min-width: calc(100% - 15px);
  }
}

@media(max-width: 768px) {
  .product-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  .filter-buttons {
    /* flex-wrap: nowrap;
    overflow-x: scroll; */
    padding-bottom: 10px;
    justify-content: start;
    padding-top: 10px;
    padding-left: 8px;
    
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  
  .filter-buttons a {
    /* max-width: max-content; */
  }
  .product-card .price-btn{
    font-size: 16px;
  }
  .cs_single_product .tab-buttons button {
    flex: 1 1 100%;
    text-align: left;
  }
}
@media(max-width: 500px) {
  .product-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .product-card .price-btn{
    font-size: 18px;
  }
}
