/* Highland Productions theme 0.9.7 | Single-product polish only.
   Header currency switcher and all checkout/cart styles remain untouched. */

/* The theme's old extra switcher is no longer rendered. Hide third-party
   WCML switcher variants only inside the WooCommerce product card; NEVER the header. */
.hp-single-product .hp-product-currency-picker,
.hp-single-product .wcml_currency_switcher,
.hp-single-product .wcml-currency-switcher,
.hp-single-product .wcml-cs,
.hp-single-product .wcml-cs-list,
.hp-single-product .wcml-dropdown,
.hp-single-product .wcml-dropdown-click,
.hp-single-product .wcml-horizontal-list,
.hp-single-product .wcml-vertical-list,
.hp-single-product .currency-switcher,
.hp-single-product .currency_switcher,
.hp-single-product [class*="wcml-currency-switcher"],
.hp-single-product select[name="wcmlc"],
.hp-single-product select[name="currency_switcher"] {
  display: none !important;
}

.hp-single-detail .hp-product-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  margin: 4px 0 8px;
  border: 1px solid #bee5cb;
  border-radius: 4px;
  background: #ebf8ef;
  color: #17683a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .005em;
}
.hp-product-stock-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 100%;
  background: #26985a;
}

.hp-single-detail .hp-product-usps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 22px 0 18px;
  padding: 19px 0;
  border-top: 1px solid #e8e9ed;
  border-bottom: 1px solid #e8e9ed;
  font-size: 12.5px;
  line-height: 1.5;
}
.hp-product-usp {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
}
.hp-product-usp-icon {
  flex: 0 0 22px;
  display: flex;
  width: 22px;
  height: 23px;
  align-items: center;
  justify-content: center;
  color: #5e17eb;
}
.hp-product-usp-icon svg { display: block; }
.hp-product-usp-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  color: #3e424b;
  font-weight: 580;
  overflow-wrap: break-word;
}
@media (max-width: 1150px) and (min-width: 761px) {
  .hp-single-detail .hp-product-usps { grid-template-columns: minmax(0, 1fr); gap: 11px; }
}
@media (max-width: 440px) {
  .hp-single-detail .hp-product-usps { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 18px 0 14px; padding: 15px 0; }
}

/* The legacy 55% + 45% tracks did not account for the 36px column gap.
   Size tracks within available space to avoid tablet horizontal scrolling. */
@media (min-width: 761px) {
  .hp-single-product .hp-single-top {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  }
}


/* Highland PDP 0.9.15 — deliberate premium presentation. Locale-specific
   controls remain scoped to the product page; Woo cart/checkout stay untouched. */
.hp-single-product .hp-pdp-kicker {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
  position: relative;
  z-index: 9;
  margin: 0 0 16px;
}
.hp-single-product .hp-pdp-kicker .hp-eyebrow { margin: 0; }
.hp-single-product .hp-gift-tip {
  position: relative;
  display: inline-block;
  max-width: 100%;
  isolation: isolate;
}
.hp-single-product .hp-gift-tip > .hp-gift-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid #e8dffb;
  background: #f9f6ff;
  color: #5e2cb9;
  font-size: 12px;
  font-weight: 690;
  line-height: 1.25;
  letter-spacing: .005em;
  cursor: help;
  list-style: none;
  transition: border-color .22s ease, background-color .22s ease, transform .22s cubic-bezier(.22,1,.36,1);
}
.hp-single-product .hp-gift-chip::-webkit-details-marker { display: none; }
.hp-single-product .hp-gift-chip::marker { content: ''; }
.hp-single-product .hp-gift-chip svg { display: block; flex: 0 0 16px; }
.hp-single-product .hp-gift-tip:hover .hp-gift-chip,
.hp-single-product .hp-gift-tip[open] .hp-gift-chip,
.hp-single-product .hp-gift-chip:focus-visible {
  background: #f0eaff;
  border-color: #bfabf2;
  transform: translateY(-1px);
}
.hp-single-product .hp-gift-chip:focus-visible { outline: 2px solid #6b31de; outline-offset: 3px; }
.hp-single-product .hp-gift-tooltip {
  position: absolute;
  z-index: 15;
  top: calc(100% + 9px);
  left: 0;
  width: min(295px, calc(100vw - 44px));
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #e8e4ef;
  background: #fff;
  color: #24232b;
  font-size: 13px;
  font-weight: 480;
  line-height: 1.5;
  box-shadow: 0 12px 32px rgba(34, 26, 52, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity .18s ease, transform .22s ease, visibility .18s ease;
}
.hp-single-product .hp-gift-tip[open] .hp-gift-tooltip,
.hp-single-product .hp-gift-tip:focus-within .hp-gift-tooltip,
.hp-single-product .hp-gift-tip:hover .hp-gift-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* The original product excerpt was 14px / 1.75 in dark grey. */
.woocommerce .hp-single-detail .woocommerce-product-details__short-description {
  font-size: 16px !important;
  line-height: 1.56 !important;
  letter-spacing: -.009em;
  color: #17181c !important;
  margin: 22px 0 20px;
}
.woocommerce .hp-single-detail .woocommerce-product-details__short-description p,
.woocommerce .hp-single-detail .woocommerce-product-details__short-description span,
.woocommerce .hp-single-detail .woocommerce-product-details__short-description li,
.woocommerce .hp-single-detail .woocommerce-product-details__short-description strong {
  font-size: inherit;
  line-height: inherit;
  color: #17181c !important;
}
.woocommerce .hp-single-detail .woocommerce-product-details__short-description span[style*="font-weight: 300"] {
  font-weight: 400 !important;
}
.woocommerce .hp-single-detail .woocommerce-product-details__short-description strong {
  font-weight: 720;
}

/* Structured pre-order card; content comes from Highland MVP 0.9.27. */
.woocommerce .hp-single-detail .hp-release-notice--premium {
  box-sizing: border-box;
  display: block;
  padding: 18px 19px 17px;
  margin: 21px 0 23px;
  border: 1px solid #e5e7ec;
  border-left: 3px solid #6e31ec;
  border-radius: 0;
  background: #fafafd;
  color: #1c1d23;
  line-height: 1.5;
  font-size: 13px;
}
.hp-release-notice--premium .hp-release-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  font-size: 10px;
  font-weight: 790;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #6631cb;
}
.hp-release-notice--premium .hp-release-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7338eb;
}
.hp-release-notice--premium .hp-release-date-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 9px;
  row-gap: 2px;
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.012em;
}
.hp-release-notice--premium .hp-release-date-label { font-weight: 540; color: #34353d; }
.hp-release-notice--premium .hp-release-date { display: inline; font-size: inherit; font-weight: 780; color: #17181c; }
.hp-release-notice--premium .hp-release-dispatch {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.5;
  color: #555866;
}
.hp-release-notice--premium .hp-release-promise {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #e9e9f0;
  font-size: 12.8px;
  line-height: 1.5;
  font-weight: 650;
  color: #32244b;
}
.hp-release-notice--premium .hp-release-promise svg {
  flex: 0 0 19px;
  margin-top: 1px;
  color: #7338eb;
}

/* Ask for a real image source in WooCommerce (PHP), and show thumbnails at
   their natural colours with a calm, un-cropped 3:2 presentation. */
.woocommerce .hp-single-visual .flex-control-thumbs {
  gap: 13px;
  margin-top: 20px !important;
}
.woocommerce .hp-single-visual .flex-control-thumbs > li {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #ececf0;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
  background: #fff;
  overflow: hidden;
  transition: border-color .27s ease, box-shadow .3s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.woocommerce .hp-single-visual .flex-control-thumbs > li > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.woocommerce .hp-single-visual .flex-control-thumbs > li > img.flex-active {
  opacity: 1 !important;
}
@media (min-width: 761px) {
  .woocommerce .hp-single-visual .flex-control-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (hover: hover) and (pointer: fine) {
  .woocommerce .hp-single-visual .flex-control-thumbs > li:hover {
    border-color: #c8b2f5;
    box-shadow: 0 9px 20px rgba(43, 28, 75, .075);
    transform: translateY(-3px);
  }
  .woocommerce .hp-single-visual .flex-control-thumbs > li:hover > img {
    transform: scale(1.035);
  }
}
.woocommerce .hp-single-visual .flex-control-thumbs > li:has(img.flex-active) {
  border-color: #ac8deb;
}
.woocommerce .hp-single-visual .flex-control-thumbs > li:focus-within {
  outline: 2px solid #6b31de;
  outline-offset: 3px;
}

/* Express payment widgets stay enabled in EN, but on Polish product pages
   the only flow is Add to cart -> checkout; no changes to checkout/cart. */
body.single-product.hp-language-pl .hp-single-product #wc-stripe-express-checkout-element,
body.single-product.hp-language-pl .hp-single-product #wc-stripe-express-checkout-button-separator,
body.single-product.hp-language-pl .hp-single-product #wc-stripe-payment-request-wrapper,
body.single-product.hp-language-pl .hp-single-product #wc-stripe-payment-request-button,
body.single-product.hp-language-pl .hp-single-product #wc-stripe-payment-request-button-separator,
body.single-product.hp-language-pl .hp-single-product .wc-stripe-express-checkout-element,
body.single-product.hp-language-pl .hp-single-product .wc-stripe-express-checkout-element__container,
body.single-product.hp-language-pl .hp-single-product .wc-stripe-payment-request-wrapper,
body.single-product.hp-language-pl .hp-single-product .wc-stripe-payment-request-button-separator,
body.single-product.hp-language-pl .hp-single-product .wc-stripe-express-checkout-wrapper,
body.single-product.hp-language-pl .hp-single-product .wc-stripe-express-checkout-button-container {
  display: none !important;
}

/* Same visual entrance cadence as the home hero, never an endless animation. */
@keyframes hpPdpReveal {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hpPdpGalleryReveal {
  from { opacity: 0; transform: translateY(11px) scale(1.025); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hp-single-page .hp-single-top > .hp-single-visual,
.hp-single-page .hp-single-top > .hp-single-detail,
.hp-single-page .hp-back {
  animation: hpPdpReveal .68s cubic-bezier(.22,1,.36,1) both;
}
.hp-single-page .hp-single-top > .hp-single-visual {
  animation-name: hpPdpGalleryReveal;
  animation-delay: .06s;
}
.hp-single-page .hp-single-top > .hp-single-detail { animation-delay: .15s; }
.hp-single-page .hp-back { animation-delay: .02s; }
@media (max-width: 760px) {
  .woocommerce .hp-single-visual .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 9px;
  }
  .woocommerce .hp-single-detail .woocommerce-product-details__short-description {
    font-size: 15.5px !important;
    line-height: 1.52 !important;
  }
  .woocommerce .hp-single-detail .hp-release-notice--premium {
    padding: 15px 15px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-single-page .hp-single-top > .hp-single-visual,
  .hp-single-page .hp-single-top > .hp-single-detail,
  .hp-single-page .hp-back { animation: none !important; opacity: 1 !important; transform: none !important; }
  .woocommerce .hp-single-visual .flex-control-thumbs > li,
  .woocommerce .hp-single-visual .flex-control-thumbs > li > img,
  .hp-single-product .hp-gift-chip,
  .hp-single-product .hp-gift-tooltip { transition: none !important; }
  .woocommerce .hp-single-visual .flex-control-thumbs > li:hover,
  .woocommerce .hp-single-visual .flex-control-thumbs > li:hover > img { transform: none !important; }
}
