/* ============================================================
   Product Section — product-section.css (Slick version)
   ============================================================ */

/* --- Layout ------------------------------------------------ */
.ps-wrap {
  /*display: grid;
  grid-template-columns: 1fr 1fr;*/
  display: flex;
  gap: 60px;
  align-items: start;
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 0px;
}

/* --- Gallery container ------------------------------------ */
.cartLeft {
  width: calc(58% - 30px);
}
.ps-gallery {
  display: flex;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto;
  gap: 12px;
  position: relative;
  /* thumbs col | main col */
}

/* Arrows sit on top of the main image, spanning both columns */
.ps-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #292d2d;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: background 0.15s ease;
  z-index: 10;
  /* Position inside the main image area (right column starts at 92px) */
}

.ps-arrow--prev {
  left: 104px;
} /* 80px thumbs + 12px gap + 12px inset */
.ps-arrow--next {
  right: 12px;
}

.ps-gallery .productTag {
  z-index: 1;
  background: #f8f5f3;
  left: 100px;
  top: 20px;
}

/* --- Thumbnail Slick strip -------------------------------- */
.ps-thumbs-slick {
  /* Column 1 */
  grid-column: 1;
  grid-row: 1;
  width: 64px;
}

/* Each thumbnail slide */
.ps-thumb-slide {
  padding: 3px;
  cursor: pointer;
  outline: none;
}

.ps-thumb-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  display: block;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.ps-thumb-slide:hover img,
/*.ps-thumb-slide.slick-current img,*/
.ps-thumb-slide--active img {
  border-color: #1a3d5c;
  transform: scale(1.04);
}

/* Override Slick's default white arrow buttons on thumbs (we hide them) */
.ps-thumbs-slick .slick-prev,
.ps-thumbs-slick .slick-next {
  display: none !important;
}

/* --- Main image Slick slider ------------------------------ */
.ps-main-slick {
  grid-column: 2;
  grid-row: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #e8eff5;
  width: calc(100% - 76px);
}

.ps-main-slide {
  outline: none;
}

.ps-main-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Slick fade transition — prevent flash */
.ps-main-slick .slick-slide {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ps-main-slick .slick-slide.slick-active {
  opacity: 1;
}

/* Hide Slick's default generated dots/arrows since we use custom */
.ps-main-slick .slick-dots,
.ps-main-slick .slick-prev,
.ps-main-slick .slick-next {
  display: none !important;
}

/* --- Product Info ----------------------------------------- */
.ps-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: calc(42% - 30px);
}

/* Stars */
.ps-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ps-star {
  font-size: 18px;
  color: #1a3d5c;
}
.ps-star--empty {
  color: #d0d0cc;
}
.ps-star--half {
  position: relative;
  color: #d0d0cc;
}
.ps-star--half::after {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #1a3d5c;
}

.ps-review-count {
  margin-left: 6px;
  font-size: 14px;
  color: #555;
}

/* Title */
.ps-title {
  font-size: 36px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
  margin: 0 !important;
  letter-spacing: 0;
  text-align: left !important;
}

/* Description */
.ps-desc {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
}
.ps-desc p:not(:last-child) {
  margin-bottom: 12px;
}
.ps-desc strong {
  font-weight: 600;
}

/* --- Pricing options -------------------------------------- */
.ps-pricing-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-pricing-heading {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--dark);
  margin: 0;
  text-transform: uppercase;
}
.subscription-details{
display: none;
}
.ps-option {
  display: flex;
  align-items: flex-start;
  border: 1.5px solid #0e4f7033;
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease;
  background: #fff;
  user-select: none;
}

.ps-option:hover {
  border-color: var(--teal);
}
.ps-option--selected {
  border-color: var(--teal);
}

.ps-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  outline: 1px solid var(--dark);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.ps-radio:checked {
  border: 3px solid var(--white);
  background: var(--dark);
}

.ps-option__content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-left: 12px;
}

.ps-option__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: calc(100% - 142px);
      align-items: flex-start;
}
.ps-option__name {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
}
.ps-option__note {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  margin-left: -30px;
}
.ps-option__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 138px;
  justify-content: flex-end;
}
.ps-option__price {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  white-space: nowrap;
}

/* Badges */
.ps-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: uppercase;
}
.ps-badge--green {
  background: var(--green-pill);
  color: var(--dark);
}
.ps-badge--blue {
  background: var(--teal);
  color: #fff;
}

/* --- Add to Cart ------------------------------------------ */
.ps-atc-wrap {
  position: relative;
}

.ps-atc-wrap a {
  width: 100% !important;
}

/* --- Trust bar -------------------------------------------- */
.ps-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.ps-trust__item {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ps-trust__item::before {
  content: '';
  height: 24px;
  width: 24px;
  background-position: center;
  background-repeat: no-repeat;
}
.ps-trust__item:first-child:before {
  background-image: url(/wp-content/uploads/2026/06/Vector-1.svg);
}
.ps-trust__item:last-child:before {
  background-image: url(/wp-content/uploads/2026/06/np_return_5553981_000000-1.svg);
}

/* --- Upsell box ------------------------------------------- */
.ps-upsell {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--strip-bg);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
  border: 1.5px solid transparent;
}
.ps-upsell__imgs {
  display: flex;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}
.ps-upsell__imgs::after {
  content: '';
  width: 74px;
  height: 74px;
  background: var(--green-pill);
  filter: blur(40px);
  position: absolute;
  left: -10px;
  top: 10px;
  z-index: 0;
}

.ps-upsell__imgs img {
  width: 48px;
  height: 88px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.ps-upsell__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.ps-upsell__title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  color: #111;
  margin: 0;
  font-family: 'DM Mono';
}
.ps-upsell__desc {
  font-size: 14px;
  color: var(--dark);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .ps-wrap {
    /*grid-template-columns: 1fr;*/
    flex-direction: column;
    gap: 32px;
    padding: 32px 0px;
  }

  /* On mobile thumbs go below, arrows sit over full-width main */
  .cartLeft {
    width: 100%;
  }
  .ps-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .ps-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 12px 0;
    flex-direction: column;
  }
  .ps-arrow {
    margin-top: -33px;
  }
  .ps-arrow--prev {
    left: 12px;
  }
  .ps-arrow--next {
    right: 12px;
  }
  .ps-thumbs-slick {
    order: 2;
    /*display: none;*/
    width: 100%;
  }
  .ps-main-slick {
    order: 1;
    width: 100%;
  }
  .ps-trust {
    gap: 15px;
  }
  .ps-trust__item {
    font-size: 10px;
  }
  .ps-trust__item::before {
    height: 20px;
    width: 20px;
  }
  .ps-gallery .productTag {
    left: 20px;
  }
  .ps-option__left {
    width: calc(100% - 92px);
  }
  .ps-option__right {
    width: 80px;
    flex-direction: column-reverse;
  }
}

.ps-atc-btn {
    position: relative;
    transition: opacity 0.2s ease;
}
 
.ps-atc-btn.ps-atc-loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}
 
/* WooCommerce adds this class automatically during the AJAX call too */
.ps-atc-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}
.ps-atc-wrap .added_to_cart.wc-forward{
  display: none;
}