/* SINGLE PRODUCT PAGE  START*/
:root {
  color-scheme: dark;
}

.cs_single_product .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 100px;
}

/* Left Product Image */
.cs_single_product .product-image {
  position: sticky;
  top: 80px;
  align-self: start;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
}

.cs_single_product .product-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Right Product Details */
.cs_single_product .product-details {
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.cs_single_product .price {
  font-size: 22px;
  font-weight: bold;
  color:var(--light-white);
}

.price_title {
  font-size: 12px;
}

.sb_quantity_cartbtn {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  flex: 1;
}

h3.p3 {
  font-size: 20px;
  color: var(--light-white);
  margin-bottom: 10px;
}

/* Professional Quantity Selector */
.quantity.pro-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light-white);
  border-radius: 8px;
  width: fit-content;
  height: 100%;
}
.single-product section#related-products {
  margin-top: 80px;
  margin-bottom: 50px;
}
.single-product .cat-title{
  font-size: 40px;
  max-width: 400px;
  margin: 0 auto;
  margin-bottom: 40px;
}

/* Buttons */
.quantity.pro-ui .cs_btn {
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 600;
  border: 0px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  background: transparent;
  color: var(--light-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity.pro-ui .cs_btn.plus {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

body .quantity_wrapper div.quantity.pro-ui>* {
  height: 100%;
}

.cs_single_product .woocommerce-product-details__short-description p,
.tab-content p {
  line-height: 20px;
}
.cs_single_product .woocommerce-product-details__short-description p{
  padding-bottom: 10px;
}

.quantity.pro-ui .cs_btn:hover {
  background: var(--primary-color);
  /* professional blue */
  color: var(--secondary-color);
}

.tab-content hr {
  display: none;
}

/* Input */
.quantity.pro-ui input {
  width: 38px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  border: 0px;
  border-radius: 6px;
  background: transparent;
  color: var(--light-white);
  outline: none;
  padding: 6px;
}

.quantity.pro-ui input:focus {
  outline: none;
  box-shadow: none;
}

.description ul {
  padding-left: 26px;
  margin-bottom: 8px;
  margin-top: 8px;
}

.product_price {
  margin-top: 8px;
  margin-bottom: 8px;
}

.cs_single_product .btn {
  background: var(--green);
  color: var(--secondary-color);
  border: none;
  padding: 10px 14px;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  font-weight: bold;
}

.quantity_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
  margin-top: 20px;
}

.cs_single_product .description {
  color: var(--white);
}

.cs_single_product .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--light-white);
}

.cs_single_product .tab-buttons button {
  background: none;
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 20px;
  color: var(--white);
  position: relative;
  transition: color 0.3s ease;
}

.cs_single_product {
  margin-top: 50px;
}

.cs_single_product .tab-buttons button.active {
  color: var(--primary-color);
}

.cs_single_product .tab-buttons button.active::after {
  content: '';
  position: absolute;
  height: 2px;
  background-color: var(--primary-color);
  width: 100%;
  left: 0;
  bottom: -2px;
}

.cs_single_product .tab-content {
  display: none;
  padding-top: 20px;
  color: var(--white);
}

.tab-content .p1,
.tab-content .p3,
.tab-content .p4,
.tab-content ul {
  margin-bottom: 10px;
}

.tab-content h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--light-white);
}
.tab-content h3 {
  color: var(--light-white);
}

.tab-content ol {
  margin-left: 26px;
}

.cs_single_product .tab-content ul {
  padding-left: 20px;
  color: var(--light-white);
  font-size: 14px;
}

.cs_single_product .tab-content.active {
  display: block;
}

#description h4 {
  font-weight: 400;
}

#description .p4 b,
#description .p5 i {
  margin-left: 6px;
}

div#review_form_wrapper {
  display: none;
}

.product_title {
  color: var(--primary-color);
  line-height: 35px;
  font-size: 34px;
  margin-bottom: 20px;
}

.single_products_cat_wrap {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 16px;
  color: var(--light-white);
}

.description_title,
.variation-title,
.price_title {
  color: var(--light-white);
}

.single_products_cat_wrap a {
  color: var(--white);
  text-decoration: none;
}

span.sb-price {
  display: inline-block;
  border-left: 2px solid #333333;
  padding-left: 20px;
  margin-left: 20px;
}

.cs_single_product .variation-option {
  flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

.cs_single_product .variation-option label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--light-white);
  border-radius: 8px;
  color: var(--light-white);
  padding: 14px 10px;
  background: var(----bg-color);
  cursor: pointer;
  position: relative;
  font-weight: 400;
  transition: all 0.3s ease;
  padding-right: 52px;
  gap: 10px;
  height: 100%;
}

.cs_single_product .variation-option input[type="radio"] {
  display: none;
}

.cs_single_product .woocommerce-Reviews-title {
  font-size: 18px;
}
.cs_single_product button:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}
.cs_single_product .variation-option label::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 1px solid var(--light-white);
  border-radius: 50%;
  position: absolute;
  right: 10px;
}
.cs_single_product span.woocommerce-Price-amount.amount {
  color: var(--primary-color);
  font-size: 18px;
}
.cs_single_product .price-option span.woocommerce-Price-amount.amount{
  color: var(--light-white);
}

.cs_single_product .variation-option input[type="radio"]:checked~.woocommerce-Price-amount::after {
  content: "✔";
  position: absolute;
  right: -7px;
  width: 33px;
  height: 33px;
  background: var(--green);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: auto;
}

/** Related Products START*/
.related.products {
  margin: 50px auto;
}

.related.products .ct-module-title {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  color: var(--primary-color);
  text-transform: capitalize;
  margin-bottom: 30px;
}

/* Product Flexbox Layout */
.related.products .products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each Product Card */
.related.products .product {
  flex: 1 1 calc(25% - 25px);
  /* 4 in a row (desktop) */
  max-width: 290px;
  background: var(--bg-color);
  border-radius: 12px;
  padding: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.related.products li.meta-categories::marker {
  font-size: 0px;
}

.related.products li.meta-categories {
  display: none;
}

/* Product Image */
.related.products .product figure {
  margin: 0;
  overflow: hidden;
}

.related.products .product figure>a {
  min-height: 275px;
  display: flex;
  align-items: center;
}

.related.products .product img {
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 12px;
  aspect-ratio: auto !important;
  contain-intrinsic-size: auto 275px;
  margin: auto;
}

/* Product Title */
.related.products .woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 600;
  margin: 15px 10px 10px;
  line-height: 1.4;
}

.related.products .woocommerce-loop-product__title a {
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.related.products .ct-woo-card-actions {
  margin-bottom: 20px;
}

.related.products .woocommerce-loop-product__title a:hover {
  color: var(--primary-color);
  /* accent color */
}

/* Price */
.related.products .price {
  font-size: 15px;
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
}

.related.products .price del {
  color: #999;
  margin-right: 5px;
  font-weight: 400;
}

/* Add to Cart Button */
.related.products .ct-woo-card-actions .button {
  display: inline-block;
  background: var(--green);
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.related.products .ct-woo-card-actions .button:hover {
  background: var(--green);
}

/* SALE Badge */
.related.products .onsale,
.related.products .out-of-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-color);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  z-index: 2;
}

.related.products .out-of-stock-badge {
  background: #ff4d4f;
}

.product-add-to-cart form {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.price-option {
  display: inline-block;
  margin: 15px;
}

.price-option input[type="radio"] {
  display: none;
}

.price-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.price-option .circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #222;
  color: var(--light-white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
  transition: 0.3s;
  border: 2px solid transparent;
}

.price-option input[type="radio"]:checked+label .circle {
  border: 2px solid var(--primary-color);
}

.price-option .price {
  font-size: 16px;
  font-weight: bold;
  color: var(--light-white)
}

.price-option .per-gram {
  font-size: 14px;
  color: var(--light-white);
  margin-top: 5px;
}

.price-option hr {
  width: 50px;
  border: 0;
  border-top: 2px solid var(--light-white);
  margin: 8px 0;
}


/*---------------*/

.cs_card {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(23, 23, 23, 0.75);
  /* neutral-900-ish */
  backdrop-filter: blur(6px);
  border: 1px solid #27272a;
  /* neutral-800-ish */
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
  margin-top: 50px;
}

/* Accent top bar */
.cs_card .card__bar {
  height: 6px;
  background: var(--green);
  display: none;
}


.cs_card .card__inner {
  position: relative;
  z-index: 1;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(45deg, #0A0A2E, #0A0A2E);
  /* keep background inside */
}

/* Background image layer (zooms) */
.cs_card .card__inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("https://spacebound.club/wp-content/uploads/2025/10/bg-img.jpg")center/cover no-repeat;
  z-index: -2;
  transition: transform 1s ease;
  background-size: 48%;
  background-position: right;
}

/* Overlay gradients (static) */
.cs_card .card__inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  cursor: pointer;
  background-color: #00000042;
}

/* Zoom animation on hover */
.cs_card .card__inner:hover::before {
  transform: scale(1);
}

.cs_card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  flex-wrap: wrap;
}

.cs_card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(82, 82, 91, 0.8);
  background: rgba(39, 39, 42, 0.5);
  color: #e5e7eb;
}

.cs_card .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f43f5e;
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(244, 63, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

.cs_card .time {
  font-size: 18px;
  color: #ffffffc9;
  font-weight: bold;
  text-align: right;
}

.cs_card h1.title {
  margin: 20px 0 0 0;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

.cs_card p.subtitle {
  margin: 10px 0 0 0;
  color: #d1d5db;
  font-size: clamp(14px, 2.2vw, 18px);
}

.cs_card .cta {
  margin-top: 28px;
}

.cs_card .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px -10px rgba(232, 121, 249, 0.35);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  outline: none;
  border: none;
  cursor: pointer;
  width: auto;
}

.cs_card .btn:hover {
  transform: translateY(-1px);
}

.cs_card .btn:active {
  transform: translateY(0);
  opacity: 0.95;
}

.cs_card .btn svg {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}

.cs_card .btn:hover svg {
  transform: translateX(3px);
}

/* Deals */
#deals {
  margin-top: 24px;
}

/** products slider **/
.cs-slider {
  display: flex;
  gap: 15px;
  align-items: start;
}

/* Thumbnails */
.cs-slider .thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
}

.cs-slider .thumbnails img {
  width: 60px;
  height: 60px;
}

.cs-slider .thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: 0.3s;
}

.cs-slider .thumbnails img.active {
  border-color: cyan;
}

/* Main slider container */
.cs-slider .main {
  position: relative;
  width: 100%;
  max-width: 400px;
  /* limit on desktop */
  overflow: hidden;
  border-radius: 6px;
}

/* Inner track that slides */
.cs-slider .slides {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}

.cs-slider .slides img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* keeps square shape */
  object-fit: cover;
  flex-shrink: 0;
}

.product-image-gallery {
  position: sticky;
  top: 110px;
  height: fit-content;
}

/* Prev/Next buttons */
.cs-slider .btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  color: white;
  background-color: transparent;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
  width: auto;

}

.cs-slider .btn svg {
  filter: brightness(0) invert(1);
  width: 14px;
}

.cs-slider .btn:focus {
  outline: 0px;
}

.cs-slider #prev {
  left: 10px;
}

.cs-slider #next {
  right: 10px;
}

.variation-groups {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.variation-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  align-items: start;
}
.variation-group select {
  width: 100%;
  padding: 10px 14px;
}

/* Wrapper Group Layout */
.variation-groups .variation-options {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

/* Hide Default Radio */
.variation-groups .variation-option input {
  display: none;
}

/* Button Style */
.variation-groups .variation-option span {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  text-transform: capitalize;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: var(--secondary-color);
  transition: all 0.25s ease;
  font-weight: 600;
}

/* Hover effect */
.variation-groups .variation-option span:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--secondary-color);
}

/* When Checked → Active Button */
.variation-groups .variation-option input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: var(--secondary-color);
}
@media (max-width: 1024px) {
  .cs_single_product {
    padding-left: 15px;
    padding-right: 15px;
  }

  .related.products .product {
    flex: 1 1 calc(33.333% - 18px);
    max-width: calc(33.33% - 18px);
  }

  .related.products .products {
    justify-content: start;
  }
  .cs_single_product .variation-option {
    flex: 1 1 calc(100% - 0px);
    max-width: calc(100% - 0px);
  }
}

@media (max-width: 900px) {
  .cs_single_product .container {
    grid-template-columns: 1fr;
  }
  .cs_single_product .variation-option {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
  .cs_single_product .product-image {
    position: relative;
    top: 0;
  }

  .related.products .product figure>a {
    min-height: 220px;
    display: flex;
  }

  .related.products .product img {
    contain-intrinsic-size: auto 220px;
  }

  .product-image-gallery {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cs-slider .thumbnails {
    flex-direction: row;
    justify-content: center;
    max-height: none;
    overflow: hidden;
    margin-bottom: 15px;
  }

  .cs-slider .thumbnails img {
    width: 50px;
    height: 50px;
  }

  .cs-slider {
    align-items: start;
    flex-direction: column-reverse;
  }
}

@media (max-width: 767px) {
  .related.products .product {
    flex: 0 1 calc(50% - 18px);
    max-width: calc(50% - 18px);
  }

  .cs_single_product .tab-buttons button {
    padding: 14px 8px;
    font-size: 16px;
  }

  .cs_single_product .container {
    padding-bottom: 30px;
  }

}

@media (min-width: 640px) {

  /* Decorative soft blobs */
  .cs_card .blob {
    position: absolute;
    pointer-events: none;
    filter: blur(36px);
    opacity: 0.5;
  }

  .cs_card .blob--top {
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 260px;
    background: linear-gradient(90deg, rgba(95, 231, 58, 0.12), rgba(46, 224, 255, 0.12));
    border-radius: 999px;
  }

  .cs_card .blob--bl {
    bottom: -60px;
    left: 40px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(28px);
  }

  .cs_card .blob--br {
    bottom: -80px;
    right: 40px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(28px);
  }
}

@media (max-width: 600px) {
  .cs_single_product .variation-option {
    flex: 1 1 calc(100% - 0px);
    max-width: calc(100% - 0px);
  }

}

@media (max-width: 480px) {
  .related.products .product {
    flex: 1 1 100%;
    /* 1 per row */
    max-width: 100%;
  }
  .cs_card .time{
    font-size: 14px;
    text-align: right;
  }
}