/* Product variations wrapper */
.product-variations-wrapper {
  margin: 20px 0;
}

/* Variation swatches */
.variation-swatches {
  margin-bottom: 20px;
}

.swatch-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}

.variations-swatch-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variations-swatch-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 15px;
  font-size: 14px;
}

/* Swatch sizes */
.swatch-size-small .variations-swatch-item {
  min-width: 30px;
  height: 30px;
  font-size: 12px;
  padding: 0 10px;
}

.swatch-size-small .color-swatch {
  width: 30px;
}

.swatch-size-medium .variations-swatch-item {
  min-width: 40px;
  height: 40px;
  font-size: 14px;
  padding: 0 15px;
}

.swatch-size-medium .color-swatch {
  width: 40px;
}

.swatch-size-large .variations-swatch-item {
  min-width: 50px;
  height: 50px;
  font-size: 16px;
  padding: 0 20px;
}

.swatch-size-large .color-swatch {
  width: 50px;
}

.color-swatch {
  border-radius: 50%;
  width: 40px;
  padding: 0;
}

.variations-swatch-item:hover {
  border-color: #333;
}

.variations-swatch-item.selected {
  border: 2px solid #333;
}

.variations-swatch-item.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Quantity selector and add to cart */
.product-quantity-cart-wrapper,
.product-cart-wrapper {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  margin-right: 15px;
}

.variations-quantity-decrease,
.variations-quantity-increase {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.variations-input-quantity {
  width: 40px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  outline: none;
  -moz-appearance: textfield;
}

.variations-input-quantity::-webkit-outer-spin-button,
.variations-input-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Button styles */
.variations-add-to-cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  height: 42px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Default button style */
.variations-add-to-cart-button.button-style-default {
  background-color: #333;
  color: #fff;
}

.variations-add-to-cart-button.button-style-default:hover {
  background-color: #555;
}

/* Primary button style */
.variations-add-to-cart-button.button-style-primary {
  background-color: #0066cc;
  color: #fff;
}

.variations-add-to-cart-button.button-style-primary:hover {
  background-color: #0052a3;
}

/* Secondary button style */
.variations-add-to-cart-button.button-style-secondary {
  background-color: #fff;
  color: #333;
  border: 1px solid #333;
}

.variations-add-to-cart-button.button-style-secondary:hover {
  background-color: #f5f5f5;
}

.variations-add-to-cart-button:disabled {
  background-color: #ddd !important;
  color: #999 !important;
  border-color: #ddd !important;
  cursor: not-allowed;
}

.variations-add-to-cart-button i {
  margin-left: 10px;
}

/* Error and success messages */
.variations-error-message,
.variations-success-message {
  margin-top: 10px;
}

/* Custom HTML placeholder */
.product-variation-custom-html {
  margin: 20px 0;
}

.product-description-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-2-lines {
  -webkit-line-clamp: 2;
}


/*Size Calculator Popup Start*/
.size-calculator-popup-wrapper.hidden {
  display: none;
}

.product_detail_page size-calculator .product-attribute-accordion-item.active .product-attribute-accordion-title:before {
  rotate: 45deg !important;
}

.size-calculator-popup-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  background-color: #000000CC;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
}

.size-calculator-popup-wrapper .size-calculator-popup {
  background-color: #FFF;
  max-width: 912px;
  width: 100%;
  min-height: 755px;
  margin: 16px;
  position: relative;
}

.size-calculator-popup-wrapper .size-calculator-popup .close-popup-btn,
.size-calculator-popup-wrapper .size-calculator-popup .back-btn {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  padding: 0;
}

.size-calculator-popup-wrapper .size-calculator-popup .back-btn {
  left: 24px;
  right: unset;
}

.size-calculator-popup-wrapper .step {
  max-width: 412px;
  padding: 40px;
  margin: auto;
}

.size-calculator-popup-wrapper .step.zene-measurement-image-wrapper,
.size-calculator-popup-wrapper .step.muskarci-measurement-image-wrapper {
  max-width: 530px;
}

.size-calculator-popup-wrapper .size-calculator-popup .title {
  color: #0B0A0A;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin-bottom: 32px;
}

.size-calculator-popup-wrapper .size-calculator-popup .privacy-policy-text {
  color: #A6A3A0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 8px 0 24px;
}

.size-calculator-popup-wrapper .size-calculator-popup .description {
  color: #0B0A0A;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.size-calculator-popup-wrapper .size-calculator-popup .step-pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.size-calculator-popup-wrapper .size-calculator-popup .step-pagination,
.size-calculator-popup-wrapper .size-calculator-popup .add-to-cart-btn {
  padding: 12px 24px;
  color: #FEFEFE;
  background-color: #64615E;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .steps-container,
.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-labels {
  display: flex;
  justify-content: center;
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-one,
.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-two {
  width: 118px;
  height: 4px;
  position: relative;
  background-color: #DFEDDC;
  font-size: 0;
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-labels .step-title {
  color: #0B0A0A;
  text-align: center;
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  text-transform: uppercase;
  margin: 24px 4px 32px;
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-one {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-two {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-one.active,
.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-two.active {
  background-color: #81BA78;
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-one:after,
.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-two:after {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #DFEDDC;
  font-size: 12px;
  line-height: 30px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  color: #81BA78;
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-one:after {
  content: "1";
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-two:after {
  content: "2";
}

.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-one.active:after,
.size-calculator-popup-wrapper .size-calculator-step-wrapper .step-two.active:after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  background-color: #81BA78;
  color: #FEFEFE;
}

.size-calculator-popup-wrapper .size-calculator-popup label {
  color: #0B0A0A;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  margin-bottom: 8px;
  display: block;
}

.size-calculator-popup-wrapper .size-calculator-popup input,
.size-calculator-popup-wrapper .size-calculator-popup select {
  min-height: 38px;
  line-height: 38px;
  box-shadow: unset;
  border: 1px solid #D7D7D6;
  background: #FFF;
  color: #0B0A0A;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 16px;
}

.size-calculator-popup-wrapper .size-calculator-popup input:not([type=submit]):focus,
.size-calculator-popup-wrapper .size-calculator-popup select:focus {
  box-shadow: unset;
}

.size-calculator-popup-wrapper .size-calculator-popup .result-product-image-wrapper {
  max-width: 354px;
  margin-top: 40px;
}

.size-calculator-popup-wrapper .size-calculator-popup .result-title {
  color: #0B0A0A;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
  padding: 0;
  margin: 24px 0;
}

.size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper {
  display: flex;
  gap: 24px;
}

.size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper .change-preferences-btn,
.size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper .delete-preferences-btn {
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  padding: 10.5px;
  background-color: transparent;
}

.size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper .delete-preferences-btn {
  padding: 10.5px 0;
}

.size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper .change-preferences-btn {
  border: 1px solid #000;
}

.size-calculator-image-wrapper {
  max-width: 230px;
  margin: 24px auto;
}

.size-calculator-popup-wrapper .size-calculator-popup span[data-error],
.size-calculator-popup-wrapper .size-calculator-popup span[data-result-error] {
  color: #DC2626;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.size-calculator-popup-wrapper .size-calculator-popup span[data-result-error] {
  margin-top: 16px;
}

.size-calculator-popup-wrapper .size-calculator-popup span[data-error]:before,
.size-calculator-popup-wrapper .size-calculator-popup span[data-result-error]:before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-block;
  background-image: url('/wp-content/uploads/2025/09/exclamation-circle.svg');
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 10px;
}

.size-calculator-popup-wrapper .size-calculator-popup a[data-measurements-opener] {
  padding: 12px 10px 2px;
  border-bottom: 1px solid #64615E;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  display: block;
  width: max-content;
  margin: auto auto 24px;
}

.size-calculator-popup-wrapper .size-calculator-popup select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('/wp-content/uploads/2025/09/angle-down-small.svg');
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 32px;
}

@media only screen and (max-width: 1024px) {
  .size-calculator-popup-wrapper .size-calculator-popup {
    max-height: 100vh;
    min-height: auto;
    overflow-y: auto;
  }
}

@media only screen and (min-width: 1025px) {
  .size-calculator-popup-wrapper .step {
    padding: 72px 40px 32px;
  }

  .size-calculator-popup-wrapper .size-calculator-popup .title {
    font-size: 32px;
    line-height: 42px;
  }

  .size-calculator-popup-wrapper .size-calculator-popup .description {
    font-size: 16px;
  }

  .size-calculator-popup-wrapper .size-calculator-popup .privacy-policy-text {
    margin: 16px 0 32px;
  }

  .result-product-image-wrapper {
    margin-top: 20px;
  }

  .size-calculator-popup-wrapper .size-calculator-popup .result-title {
    font-size: 28px;
    line-height: 36px;
  }

  .size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper {
    gap: 24px;
    margin-bottom: 32px;
  }

  .size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper .change-preferences-btn,
  .size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper .delete-preferences-btn {
    font-size: 16px;
    padding: 10.5px 16px;
  }

  .size-calculator-popup-wrapper .size-calculator-popup .result-action-btn-wrapper .delete-preferences-btn {
    padding: 10.5px 0;
  }

  .size-calculator-image-wrapper {
    margin: 32px auto;
  }
}
/*Size Calculator Popup End*/


/* ========================================
   Sticky Add to Cart Bar
   ======================================== */
.sticky-add-to-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid #e5e5e5;
}

.sticky-add-to-cart-bar.visible {
  transform: translateY(0);
}

.sticky-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Left Section (Title, Price, Toggle, Variations) */
.sticky-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.sticky-bar-title-price {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
}

.sticky-bar-title {
  font-family: Red Hat Display;
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #0b0a0a;
  padding-right: 1.5rem;
  line-height: 48px;
  border-right: 1px solid #e7e2de;
  text-align: center;
}

.sticky-bar-price {
  font-family: Red Hat Display;
  font-weight: 700;
  font-size: 24px;
  line-height: 2;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #81ba78;
  padding-left: 1.5rem;
  text-align: center;
}

.sticky-bar-price del {
  color: #999;
  font-size: 24px;
  margin-right: 6px;
}

.sticky-bar-price ins {
  text-decoration: none;
  color: #dc2626;
  font-weight: 600;
}

/* Toggle Button */
.sticky-bar-toggle {
  background-color: #bad9b5;
  border: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.sticky-bar-toggle:hover,
.sticky-bar-toggle[aria-expanded="true"]:hover {
  background: #9bc896;
}

.sticky-bar-toggle i {
  font-size: 24px;
  color: #fff;
}

.sticky-bar-toggle .sticky-icon-plus {
  display: block;
}

.sticky-bar-toggle .sticky-icon-minus {
  display: none;
}

.sticky-bar-toggle[aria-expanded="true"] {
  background: #bad9b5;
}

.sticky-bar-toggle[aria-expanded="true"] .sticky-icon-plus {
  display: none;
}

.sticky-bar-toggle[aria-expanded="true"] .sticky-icon-minus {
  display: block;
}

/* Variations Panel - Inline after toggle */
.sticky-bar-variations {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Override main wrapper styles for sticky bar swatches */
.sticky-add-to-cart-bar .sticky-bar-variations .sticky-variation-swatches {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-add-to-cart-bar .sticky-variation-swatches .swatch-label {
  margin-bottom: 0;
  font-size: 12px;
  white-space: nowrap;
}

.sticky-add-to-cart-bar .sticky-swatch-container {
  gap: 6px;
}

/* Smaller swatches in sticky bar */
.sticky-add-to-cart-bar .sticky-swatch-item.variations-swatch-item {
  font-size: 12px;
  padding: 0 10px;
}

/* Actions Section */
.sticky-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sticky-quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #000;
  height: 40px;
  overflow: hidden;
}

.sticky-quantity-decrease,
.sticky-quantity-increase {
  width: 33.33%;
  font-size: 26px;
  color: #81ba78;
  background: #fff;
}

.sticky-quantity-decrease:hover,
.sticky-quantity-increase:hover {
  background: #eee;
}

.sticky-input-quantity {
  width: 44px;
  text-align: center;
  border: none;
  background: #fff !important;
  box-shadow: none !important;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  -moz-appearance: textfield;
}

.sticky-input-quantity::-webkit-outer-spin-button,
.sticky-input-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Sticky Add to Cart Button */
.sticky-add-to-cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sticky-add-to-cart-button.disabled,
.sticky-add-to-cart-button:disabled {
  background-color: #64615e !important;
  color: #fff !important;
  border-color: #64615e !important;
  opacity: 70%;
  cursor: not-allowed;
}

.sticky-add-to-cart-button {
  font-size: 14px;
  background-color: #64615e;
  height: 40px;
  color: #fff;
}

.sticky-add-to-cart-button:hover {
  background-color: #0b0a0a;
  color: #bad9b5;
}

.sticky-add-to-cart-button i {
  margin-left: 8px;
  font-size: 12px;
}

/* Responsive Styles for Sticky Bar */
@media only screen and (max-width: 1024px) {
  .sticky-bar-container {
    flex-wrap: wrap;
    gap: 24px;
  }

  .sticky-bar-left {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #e7e2de;
    flex-wrap: nowrap;
  }

  .sticky-bar-variations {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    padding-bottom: 32px;
    padding-top: 14px;
  }

  .sticky-add-to-cart-bar .sticky-bar-variations .sticky-variation-swatches {
    align-items: flex-start;
  }

  .sticky-add-to-cart-bar .sticky-variation-swatches .swatch-label {
    padding: 0;
    font-weight: 700;
  }

  .sticky-add-to-cart-bar .sticky-swatch-item.variations-swatch-item {
    padding: 0;
  }

  .product_detail_page .variations-swatch-item.text-swatch {
    display: block;
  }

  .sticky-add-to-cart-bar .sticky-bar-variations .sticky-variation-swatches {
    flex-direction: column;
  }

  .sticky-bar-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Toggle button when moved inside variations on mobile */
  .sticky-bar-variations .sticky-bar-toggle {
    margin-left: auto;
    align-self: flex-start;
  }
}

@media only screen and (max-width: 768px) {
  .sticky-bar-container {
    padding: 20px 16px;
    gap: 16px;
  }

  .sticky-bar-title-price {
    flex-direction: column;
    gap: 1rem;
  }

  .sticky-bar-title {
    font-family: Red Hat Display;
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #0b0a0a;
    border-right: none;
    line-height: 1.2;
    padding-right: 0;
    text-align: left;
  }

  .sticky-bar-price {
    font-family: Red Hat Display;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0%;
    padding-left: 0;
    text-align: left;
  }

  .sticky-bar-actions {
    gap: 8px;
  }

  .sticky-add-to-cart-button {
    padding: 0 16px;
    height: 40px;
    font-size: 14px;
  }

  .sticky-add-to-cart-bar .sticky-swatch-item.variations-swatch-item {
    min-width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .sticky-add-to-cart-bar .sticky-swatch-item.color-swatch {
    width: 24px;
    min-width: 24px;
  }
}

@media only screen and (max-width: 480px) {
  .sticky-bar-title {
    font-size: 16px;
  }

  .sticky-bar-price {
    font-size: 16px;
  }

  .sticky-bar-toggle {
    width: 32px;
    height: 32px;
  }

  .sticky-add-to-cart-button {
    padding: 0 12px;
    font-size: 14px;
  }

  .sticky-add-to-cart-button i {
    display: none;
  }

  .sticky-add-to-cart-bar .sticky-variation-swatches .swatch-label {
    font-size: 12px;
  }
}

/* ========================================
   Sticky Add to Cart Bar End
   ======================================== */