/* ==========================================================================
   Breadcrumb
   ========================================================================== */

body[data-page-type="product"] .block-breadcrumb {
  gap: 8px;
}

body[data-page-type="product"] .block-breadcrumb li {
  font-family: "Futura Std", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}

body[data-page-type="product"] .block-breadcrumb span {
  font-weight: 400 !important;
}

/* ==========================================================================
   Title
   ========================================================================== */

body[data-page-type="product"] .product-detail__title {
  text-transform: uppercase;
}

/* ==========================================================================
   Media Gallery
   ========================================================================== */

body[data-page-type="product"] .product-detail__media-gallery .media-gallery__thumbnail::after {
  box-shadow: inset 0 0 0 var(--border-thickness, 0) rgb(var(--color-entry-line));
}

body[data-page-type="product"] .product-detail__media-group .st-whats-included {
  display: none;
}

/* ==========================================================================
   Variant Picker
   ========================================================================== */

body[data-page-type="product"] .color-palette-attr-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page-type="product"] .variant-picker__group-label {
  display: none;
}

body[data-page-type="product"] .color-palette-attr-value {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
  width: 82px !important;
  height: 107px !important;
  padding: 12px 8px 10px;
  background: #fff !important;
  border: 1px solid #dddddd;
  border-radius: 0;
  box-shadow: none !important;
  overflow: hidden;
  text-indent: -9999px;
}

body[data-page-type="product"] .color-palette-attr-value::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 60px;
  border-radius: 999px;
  background: var(--st-pdp-swatch-bg, transparent);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body[data-page-type="product"] .color-palette-attr-value::after {
  content: attr(data-origin-name);
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  color: #111111;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-indent: 0;
  white-space: normal;
}

body[data-page-type="product"] .color-palette-attr-value.active {
  border-color: rgb(var(--color-entry-line)) !important;
  border-width: 3px !important;
}

body[data-page-type="product"] .color-palette-attr-value[data-origin-name=""]::after,
body[data-page-type="product"] .color-palette-attr-value:not([data-origin-name])::after {
  content: attr(data-name);
}

body[data-page-type="product"] .color-palette-attr-value.color-palette-value-bg::before {
  background-size: cover;
}

body[data-page-type="product"] .color-palette-attr-value:not(.st-pdp-swatch-enhanced)::before,
body[data-page-type="product"] .color-palette-attr-value:not(.st-pdp-swatch-enhanced)::after {
  display: none;
}

/* ==========================================================================
   Product Add-ons
   ========================================================================== */

body[data-page-type="product"] [id*="shopline-block-template--product__main-product-info___main___info"]:has(.sales-bundle-addons__app-block) {
  width: 100%;
}

body[data-page-type="product"] .bundle-addons-items {
  gap: 12px;
}

body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_productItem"] {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 157px;
  column-gap: 0px;
  width: 100%;
  min-width: 0;
  padding: 12px 12px 12px 21px;
  box-sizing: border-box;
  margin-bottom: 0px !important;
  border: 1px solid #B4B4B4;
  border-radius: 0px;
}

body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_productItem"] [class*="_title"] {
  font-size: 18px;
}

body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_control"] {
  margin-top: 12px;
}

body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_priceInfo"] .sales-currency-object {
  font-size: 30px;
  color: black;
}

body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_checkboxCon"] {
  order: 1;
}

body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_checkboxCon"] svg path {
  stroke: white;
}

body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_info"] {
  order: 2;
  min-width: 0;
}

body[data-page-type="product"] .sales-bundle-addons__app-block .addons_item [class*="_image"] {
  order: 3;
}

body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-checkbox {
  position: unset;
  display: flex;
  transform: unset;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid black;
  margin-top: 5px;
}

body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-quantity {
  border: 1px solid #B4B4B4;
}

body[data-page-type="product"] .sales-bundle-addons__app-block .addons_item [class*="_image"],
body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-image,
body[data-page-type="product"] .sales-bundle-addons__app-block .plugin-bundle-product-image-container {
  width: 157px !important;
  min-width: 157px !important;
  max-width: 157px !important;
}

body[data-page-type="product"] .sales-bundle-addons__app-block .plugin-bundle-product-image-container {
  height: 157px !important;
  padding-bottom: 0 !important;
}

body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-buy {
  display: none;
}

body[data-page-type="product"] .sales-bundle-addons__app-block:has(.bundle-addons-item-checkbox input:checked) .bundle-addons-buy {
  display: flex;
  justify-content: center;
  font-weight: 600;
  padding: 10px 19px;
}

body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons {
  padding-top: 37px;
}

/* ==========================================================================
   Subscription Block
   ========================================================================== */

body[data-page-type="product"] .isv-subscription-block-container {
  margin-top: 24px;
}

body[data-page-type="product"] .isv-subscription-block-container [class*="_label"] {
  padding: 20px 18px;
}

body[data-page-type="product"] .isv-subscription-block-container [class*="_columnsLabel"] {
  padding: 24px 19px;
}

body[data-page-type="product"] .isv-subscription-block-container [class*="_save"] {
  font-size: 21px;
}

body[data-page-type="product"] .isv-subscription-block-container [class*="_lineThrough"] {
  display: none;
}

body[data-page-type="product"] .isv-subscription-block-container :is([class*="_text"], [class*="_subDiscountTag"]) {
  font-size: 16px;
  border: none;
}

body[data-page-type="product"] .isv-subscription-block-container [class*="_select"] {
  position: relative;
  height: 47px;
  border-radius: 5px !important;
  margin-top: 30px !important;
  margin-left: 0 !important;
  padding-right: 28px;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16' fill='none'%3E%3Cpath d='M1 5L5 1L9 5M9 11L5 15L1 11' stroke='%23545F71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 16px;
}

body[data-page-type="product"] .isv-subscription-block-container [class*="_select"]::-ms-expand {
  display: none;
}

body[data-page-type="product"] .isv-subscription-block-container [class*="_sellingTitle"] {
  display: none;
}

/* ==========================================================================
   Sticky Buy Button
   ========================================================================== */

/* Custom elements default to inline — make it block + full width so it fills its container */
body[data-page-type="product"] theme-sticky-position[data-enforce="false"] {
  display: block;
  width: 100%;
}

body[data-page-type="product"] .block-product-buy-button-group theme-product-form {
  display: block;
}

body[data-page-type="product"] .block-product-buy-button-group theme-product-form form,
body[data-page-type="product"] .block-product-buy-button-group .block-product-buy-button {
  width: 100%;
}

/* ==========================================================================
   Misc
   ========================================================================== */

body[data-page-type="product"] .typography-default:has(span:empty) {
  display: none;
}

body[data-page-type="product"] .product-plugin-comment-rate-star {
  margin: 0 !important;
  padding-top: 8px !important;
}

body[data-page-type="product"] .j-shopline-ShipCalculate {
  display: none;
}

/* Product Reviews */
body[data-page-type="product"] #plugin-product-comment {
  padding: 40px 0 24px;
}

body[data-page-type="product"] .plugin-product-comment-list-wrap {
  margin: 0;
}

body[data-page-type="product"] .plugin-product-comment-select-buttons-item {
  border-radius: 0;
}

body[data-page-type="product"] .plugin-product-comment-select-buttons-warp .plugin-product-comment-select-entry,
body[data-page-type="product"] .plugin-product-comment-select-buttons-item-button,
body[data-page-type="product"] .isv-web-btn {
  font-family: var(--sort-body-font);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1.5;
  padding: 10px 19px;
  border-radius: 0;
}

body[data-page-type="product"] .plugin-product-comment-MobileListModalList
.plugin-product-comment-select-entry,
.plugin-product-comment-MobileListModalList .plugin-product-comment-select-buttons-item-button,
.plugin-product-comment-MobileListModalList .plugin-product-comment-select-buttons-item {
  font-size: 12px !important;
}

body[data-page-type="product"] .plugin-product-comment-title {
  font-size: 22px;
}


/* ==========================================================================
   Mobile (max-width: 959px)
   ========================================================================== */

@media (max-width: 959px) {
  /* Info panel reorder: unwrap so blocks can be individually ordered */
  body[data-page-type="product"] .product-detail__info {
    display: contents;
  }
  
  body[data-page-type="product"] theme-st-selling-fast    { order: -5; width: 100%; }
  body[data-page-type="product"] theme-st-discount-badge  { order: -4; width: 100%; }
  body[data-page-type="product"] .product-detail__title   { order: -3; width: 100%; font-size: 44px; }
  body[data-page-type="product"] .st-product-headline     { order: -2; width: 100%; }
  body[data-page-type="product"] theme-st-product-reviews { order: -1; width: 100%; }

  /* Add-ons */
  body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_productItem"] {
    grid-template-columns: 28px minmax(0, 1fr) 96px;
    column-gap: 14px;
    padding: 12px !important;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block .addons_item [class*="_image"],
  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-image,
  body[data-page-type="product"] .sales-bundle-addons__app-block .plugin-bundle-product-image-container {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block .plugin-bundle-product-image-container {
    height: 96px !important;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-title {
    margin-bottom: 16px;
    font-size: 24px !important;
    font-weight: 600 !important;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item {
    column-gap: 14px;
    padding: 12px 0;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block ._image_1bcw2_28,
  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-image {
    width: 76px;
    min-width: 76px;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-title {
    font-size: 18px;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-price,
  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-item-price object {
    font-size: 14px;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons-buy {
    margin-top: 20px;
    font-size: 16px;
  }

  body[data-page-type="product"] .product-detail__media-group {
    padding-top: 36px;
  }
}

/* ==========================================================================
   Small Mobile (max-width: 375px)
   ========================================================================== */

@media (max-width: 375px) {
  body[data-page-type="product"] .product-detail__title {
    font-size: 36px;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_priceInfo"] .sales-currency-object {
    font-size: 20px;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block [class*="_productItem"] [class*="_title"] {
    font-size: 16px;
  }
}

/* ==========================================================================
   Tablet (960px – 1280px)
   ========================================================================== */

@media (min-width: 960px) and (max-width: 1280px) {
  body[data-page-type="product"] .product-detail {
    padding: 0;
  }

  body[data-page-type="product"] .product-detail__main .product-detail__media-group {
    --detail-col-width: 50% !important;
  }

  body[data-page-type="product"] .product-detail__main .product-detail__info {
    --detail-col-width: 50% !important;
  }

  body[data-page-type="product"] .isv-subscription-block-container [class*="_text"] {
    font-size: 14px;
  }

  body[data-page-type="product"] .plugin-product-comment {
    padding: 0;
  }

  body[data-page-type="product"] #plugin-product-comment {
    padding: 60px 0 !important;
  }
}

/* ==========================================================================
   Desktop (min-width: 960px)
   ========================================================================== */

@media (min-width: 960px) {
  body[data-page-type="product"] .block-breadcrumb {
    padding-bottom: 42px;
  }
  /* Subscription Block */
  body[data-page-type="product"] .isv-subscription-block-container [class*="_save"] {
    font-size: 36px;
  }

  body[data-page-type="product"] .isv-subscription-block-container [class*="_text"] span {
    margin-right: 0px !important;
  }

  body[data-page-type="product"] .isv-subscription-block-container :is([class*="_text"], [class*="_subDiscountTag"]) {
    font-size: 18px;
  }

  body[data-page-type="product"] .sales-bundle-addons__app-block .bundle-addons {
    padding-top: 37px;
  } 

  /* What's Included */
  body[data-page-type="product"] .product-detail__info .st-whats-included  {
    display: none;
  }

  body[data-page-type="product"] .product-detail__media-group .st-whats-included {
    display: flex;
  }

  body[data-page-type="product"] #plugin-product-comment {
    padding: 60px 57px 40px;
  }

  body[data-page-type="product"] .plugin-product-comment-select-buttons-warp .plugin-product-comment-select-entry,
  body[data-page-type="product"] .plugin-product-comment-select-buttons-item,
  body[data-page-type="product"] .isv-web-btn {
    font-size: 18px;
  }

  body[data-page-type="product"] .plugin-product-comment-title {
    font-size: 24px;
  }

  body[data-page-type="product"] .plugin-product-comment-select-buttons-item,
  body[data-page-type="product"] .plugin-product-comment-select-entry {
    height: auto;
  }
}
