/* =================================================================== */
/* PRODUCT PAGE SPECIFIC STYLES                                       */
/* =================================================================== */

.productContent {
  padding: 60px 0px;
  background: #ffffff;
  min-height: calc(100vh - 600px);
}

.productContainer {
  margin: 0 auto;
  max-width: calc(100% - 11vw);
}

.productGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* =================================================================== */
/* PRODUCT DETAILS COLUMN (RIGHT)                                     */
/* =================================================================== */

.productDetailsColumn {
  order: 1;
}

.pdpDetails {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-right: 0px;
}

.productHeader {
  margin: 0;
}

.productCode {
  display: block;
  margin-bottom: 10px;
  color: #818181;
  text-align: right;

/* רץ */
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 166.667% */
}

.productTitle {
  margin: 0 0 15px 0;
  color: #2B2A29;
  text-align: right;

/* כותרת */
  font-family: Heebo;
  font-size: 53px;
  font-style: normal;
  font-weight: 200;
  line-height: 70px; /* 120.69% */
}

.productSubtitle {
  margin: 0;
  color: #2B2A29;
  text-align: right;

/* רץ */
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 166.667% */
}

.productPrice {
  /* background: #f8f8f8; */
  padding: 0;
  border-radius: 8px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
}

.priceLabel {
  color: #2B2A29;
  text-align: right;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 166.667% */
}

.priceAmount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-direction: row-reverse;
}

.currency {
  font-size: 20px;
  color: #333;
}

.amount {
  font-size: 32px;
  font-weight: 600;
  color: #333;
}

/* Variation price display styles */
.price-range {
  font-size: 32px;
  font-weight: 600;
  color: #333;
}

.price-range-original {
  font-size: 20px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.single-variation-price {
  font-size: 32px;
  font-weight: 600;
  color: #333;
}

.single-variation-original {
  font-size: 20px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.originalAmount {
  font-size: 20px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.vat {
  font-size: 14px;
  color: #999;
}

/* Option Groups */
.productOptions {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.optionGroup {
  margin: 0;
}

.optionLabel {
  display: block;
  margin-bottom: 12px;
  color: #A7A7A7;
  text-align: right;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px; /* 166.667% */
}

/* Color Options */
.pdpColorOptions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pdpColorOption {
  min-width: 143px;
  height: 50px;
  border-radius: 100px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 3px 5px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.pdpColorOption.selected {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.pdpColorOption:hover {
  transform: scale(1.1);
}

.pdpColorSwatch {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.pdpColorSwatch:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid #BABABA;
  right: -5px;
  bottom: -5px;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: none;
}

.pdpColorText {
  color: #2B2A29;
  text-align: right;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; 
}



.pdpColorOption img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Size Options */
.sizeOptions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.sizeOption {
  padding: 9px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  color: #2B2A29;
  text-align: center;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 166.667% */
}

.sizeOption.selected {
  border-color: #333;
  background: #f8f8f8;
}

.sizeOption:hover {
  border-color: #999;
}

.sizeLabel {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 0px;
}

.sizeDimensions {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.sizePrice {
  display: block;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Additional Options */
.additionalOptions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* WooCommerce Addon Fields Styling */
.addon-fields-container {
    height: fit-content;
    min-height: 0px;
    margin-bottom: -30px;
}

.addon-fields-container .wapf {
  margin: 0;
}

.addon-fields-container .wapf-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.addon-fields-container .wapf-field-group {
  margin-bottom: 0;
}

.addon-fields-container .wapf-field-row {
  margin-bottom: 20px;
}

.addon-fields-container .wapf-field-label {
  margin-bottom: 12px;
}

.addon-fields-container .wapf-field-label label {
  color: #A7A7A7;
  text-align: right;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px;
  display: block;
}

.addon-fields-container .wapf-field-input select {
  width: 100%;
  min-width: 200px;
  height: 50px;
  border: 2px solid #e0e0e0;
  border-radius: 100px;
  padding: 9px 20px;
  font-family: Heebo;
  font-size: 18px;
  font-weight: 500;
  color: #2B2A29;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  direction: rtl;
}

.addon-fields-container .wapf-field-input select:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.addon-fields-container .wapf-field-input select:hover {
  border-color: #999;
}

/* Style the product totals section if needed */
.addon-fields-container .wapf-product-totals {
  margin-top: 15px;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 8px;
  font-family: Heebo;
  direction: rtl;
}

.addon-fields-container .wapf-product-totals .wapf--inner > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 16px;
}

.addon-fields-container .wapf-product-totals .wapf--inner > div:last-child {
  font-weight: 600;
  border-top: 1px solid #ddd;
  padding-top: 8px;
  margin-top: 8px;
}

.additionalOption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.additionalOption.selected {
  border-color: #333;
  background: #f8f8f8;
}

.additionalOption:hover {
  border-color: #999;
}

.optionColor {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.optionName {
  color: #2B2A29;
  text-align: center;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 166.667% */
}

/* Quantity Selector */
.quantitySelector {
  display: flex;
  align-items: center;
  gap: 0px;
}

.quantityBtn {
  width: 36px;
  height: 36px;
  /* border: 2px solid #e0e0e0; */
  border-bottom-left-radius: 50%;
  border-top-left-radius: 50%;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantityBtn.minus {
border-bottom-left-radius: 0%;
  border-top-left-radius: 0%;
  border-bottom-right-radius: 50%;
  border-top-right-radius: 50%;
}

.quantityBtn:hover:not(:disabled) {
  border-color: #333;
  background: #f8f8f8;
}

.quantityBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantityInput {
  width: 49px;
  height: 36px;
  text-align: center;
  border: 0px solid #e0e0e0;
  background: #f8f8f8;
  border-radius: 0px;
  font-size: 16px;
  font-weight: 500;
}

/* For Chrome, Safari, Edge, and Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; /* Important to remove any default margin added by the spin buttons */
}

/* For Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.quantityLabel {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
  display: none;
}

/* Action Buttons */
.productActions {
  display: flex;
  gap: 15px;
  margin: 0;
  margin-top: 30px;
}

.pdpShopNowBtn {
  flex: 1;
  padding: 16px 32px;
  background: #333;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Rubik', 'Heebo', sans-serif;
}

.pdpShopNowBtn:hover {
  background: #000;
  transform: translateY(-2px);
}

.addToCartBtn {
  flex: 1;
  padding: 16px 32px;
  background: white;
  color: #333;
  border: 2px solid #333;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Rubik', 'Heebo', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.addToCartBtn svg {
  width: 20px;
  height: 17px;
  flex-shrink: 0;
  }

.addToCartBtn:hover {
  background: #333;
  color: white;
}

/* Accordion */
.productAccordion {
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

.accordionItem {
  border-bottom: 1px solid #e0e0e0;
}

.accordionHeader {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: #2B2A29;
  text-align: right;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px; /* 166.667% */
}

.accordionHeader::-webkit-details-marker {
  display: none;
}

.accordionIcon {
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

details[open] .accordionIcon {
  transform: rotate(180deg);
}

.accordionContent {
  padding: 0 0 20px 0;
  color: #2B2A29;
  text-align: right;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
}

/* =================================================================== */
/* PRODUCT GALLERY COLUMN (LEFT)                                      */
/* =================================================================== */

.productGalleryColumn {
  order: 2;
  position: sticky;
  top: 120px;
}

.productGallery {
  width: 100%;
}

.galleryMain {
  position: relative;
  width: 100%;
  height: 500px;
  background: transparent;
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E4E2;
}

.galleryImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
}

.home .galleryImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0px;
}

.galleryVideo {
  width: 100%;
  height: 100%;
  position: relative;
}

.videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.videoOverlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galleryVideo:hover .videoOverlay {
  opacity: 1;
}

.playIcon {
  color: white;
  font-size: 30px;
  margin-right: -4px;
}

/* Gallery Navigation */
.galleryNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.galleryNav:hover {
  background: #f8f8f8;
  transform: translateY(-50%) scale(1.1);
}

.galleryNavPrev {
  right: 15px;
}

.galleryNavNext {
  left: 15px;
}

/* Gallery Thumbnails */
.galleryThumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px;
}

.thumbnailItem {
  flex: 0 0 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f8f8;
  padding: 0;
}

.thumbnailItem.active {
  border-color: #333;
}

.thumbnailItem:hover {
  border-color: #999;
}

.thumbnailItem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.thumbnailVideo {
  position: relative;
  width: 100%;
  height: 100%;
}

.videoIndicator {
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-indicator {
  display: none;
}

.wapf-field-input {
  width: fit-content;
}

.productsSection  .title {
  margin: auto;
  padding-bottom: 50px;
  text-align: center;
}

/* =================================================================== */
/* RESPONSIVE DESIGN                                                  */
/* =================================================================== */

@media (max-width: 1200px) {
  .productGrid {
    gap: 40px;
  }
  
  .galleryMain {
    height: 400px;
  }
}

@media (max-width: 992px) {
  .productGrid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .productGalleryColumn {
    order: 1;
    position: static;
  }
  
  .productDetailsColumn {
    order: 2;
  }
  
  .galleryMain {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .productContent {
    padding: 40px 15px;
  }
  
  .pdpDetails {
    padding: 0;
  }
  
  .productTitle {
    font-size: 24px;
  }
  
  .amount {
    font-size: 28px;
  }
  
  .sizeOptions {
    flex-direction: column;
  }
  
  .sizeOption {
    width: 100%;
  }
  
  .productActions {
    flex-direction: column;
  }
  
  .galleryMain {
    height: 300px;
  }
  
  .thumbnailItem {
    flex: 0 0 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .pdpColorOption {
    width: 40px;
    height: 40px;
  }
  
  .galleryMain {
    height: 250px;
    border-radius: 8px;
  }
  
  .galleryImage {
    padding: 20px;
  }
}


.woocommerce-error {
  padding: 20px;
  color: #2B2A29;
  text-align: right;
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px;
  border: 2px solid red !important; 
  margin-bottom: 20px;
}


.wapf-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path d='M16.9997 9.17C16.8123 8.98375 16.5589 8.87921 16.2947 8.87921C16.0305 8.87921 15.7771 8.98375 15.5897 9.17L11.9997 12.71L8.4597 9.17C8.27234 8.98375 8.01889 8.87921 7.7547 8.87921C7.49052 8.87921 7.23707 8.98375 7.0497 9.17C6.95598 9.26297 6.88158 9.37357 6.83081 9.49543C6.78004 9.61729 6.75391 9.74799 6.75391 9.88C6.75391 10.012 6.78004 10.1427 6.83081 10.2646C6.88158 10.3864 6.95598 10.497 7.0497 10.59L11.2897 14.83C11.3827 14.9237 11.4933 14.9981 11.6151 15.0489C11.737 15.0997 11.8677 15.1258 11.9997 15.1258C12.1317 15.1258 12.2624 15.0997 12.3843 15.0489C12.5061 14.9981 12.6167 14.9237 12.7097 14.83L16.9997 10.59C17.0934 10.497 17.1678 10.3864 17.2186 10.2646C17.2694 10.1427 17.2955 10.012 17.2955 9.88C17.2955 9.74799 17.2694 9.61729 17.2186 9.49543C17.1678 9.37357 17.0934 9.26297 16.9997 9.17Z' fill='%232B2A29'/></svg>") no-repeat !important;
  background-position: left 12px center !important; 
  background-size: 20px 20px;

  padding-right: 40px; /* prevent text overlapping arrow */
  line-height: 1.4;
}

