/*
 * V16.2 WooCommerce single-product precision polish.
 * Loaded only on singular WooCommerce and catalogue product pages.
 */

/* --------------------------------------------------------------------------
   Medium-desktop header stability
   -------------------------------------------------------------------------- */
@media (min-width: 1181px) and (max-width: 1380px) {
  .als-v16-header__inner {
    gap: 14px;
    grid-template-columns: 138px minmax(350px, 1fr) minmax(125px, 155px) auto;
  }
  .als-v16-brand,
  .als-v16-brand img { width: 138px; }
  .als-v16-main-nav__list,
  .als-v16-main-nav .nav-menu { gap: clamp(11px, 1.1vw, 18px); }
  .als-v16-main-nav a { font-size: 12.5px; }
  .als-v16-header__actions { gap: 8px; }
  .als-v16-action-item { min-width: 34px; }
  .als-v16-header__visit { font-size: 12.5px; padding-inline: 14px; }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .als-v16-header__inner {
    gap: 14px;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    padding-inline: 30px;
  }
  .als-v16-brand,
  .als-v16-brand img { width: 132px; }
  .als-v16-header-search { display: none !important; }
  .als-v16-main-nav__list,
  .als-v16-main-nav .nav-menu { gap: 12px; }
  .als-v16-main-nav a { font-size: 12px; }
  .als-v16-header__actions { gap: 7px; }
  .als-v16-action-item { min-width: 32px; }
  .als-v16-action-item__label { display: none; }
  .als-v16-header__visit { font-size: 12px; min-height: 40px; padding: 10px 13px; }
}

/* --------------------------------------------------------------------------
   Product hero
   -------------------------------------------------------------------------- */
.als-wc-product-page {
  --als-sp-cream: #f7f3ea;
  --als-sp-surface: #f3efe5;
  --als-sp-border: rgba(0, 78, 41, .14);
  background: #f7f3ea;
}

.als-wc-product-page .als-sp-hero {
  background: #fff;
  border-bottom: 1px solid rgba(0, 78, 41, .09);
  grid-template-columns: minmax(0, .96fr) minmax(470px, 1.04fr);
  max-height: none;
  min-height: 690px;
}

.als-wc-product-page .als-sp-gallery {
  background:
    radial-gradient(circle at 18% 18%, rgba(232, 189, 84, .16), transparent 26%),
    radial-gradient(circle at 82% 76%, rgba(8, 104, 58, .16), transparent 32%),
    linear-gradient(145deg, #07502f, #063a24 74%);
  min-height: 690px;
  padding: clamp(20px, 2.6vw, 38px);
}

.als-wc-product-page .als-sp-gallery::before,
.als-wc-product-page .als-sp-gallery::after {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  position: absolute;
}
.als-wc-product-page .als-sp-gallery::before {
  height: 420px;
  inset-inline-start: -245px;
  top: -145px;
  width: 420px;
}
.als-wc-product-page .als-sp-gallery::after {
  bottom: -215px;
  height: 510px;
  inset-inline-end: -250px;
  width: 510px;
}

.als-wc-product-page .als-sp-gallery-stage {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 28, 17, .28);
  inset: clamp(20px, 2.6vw, 38px);
  overflow: hidden;
}

.als-wc-product-page .als-sp-gallery-main {
  background: #fff;
  object-fit: contain;
  opacity: 1;
  padding: clamp(18px, 3.5vw, 54px);
}

.als-wc-product-page .als-sp-gallery-overlay {
  background: linear-gradient(180deg, transparent 64%, rgba(0, 50, 29, .12));
}

.als-wc-product-page .als-sp-gallery.has-single-image .als-sp-gallery-thumbs,
.als-wc-product-page .als-sp-gallery.has-single-image .als-sp-gallery-counter { display: none; }

.als-wc-product-page .als-sp-gallery-badge {
  background: #e8bd54;
  color: #182319;
  inset-inline-end: 22px;
  inset-inline-start: auto;
  right: auto;
  top: 22px;
}

.als-wc-product-page .als-sp-gallery-thumbs {
  bottom: 20px;
  gap: 8px;
  inset-inline-start: 20px;
  inset-inline-end: auto;
  right: auto;
}

.als-wc-product-page .als-sp-gallery-thumb {
  background: #fff;
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .13);
}

.als-wc-product-page .als-sp-gallery-counter {
  background: rgba(0, 50, 29, .72);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  bottom: 22px;
  color: #fff;
  inset-inline-end: 22px;
  inset-inline-start: auto;
  left: auto;
  padding: 5px 11px;
}

.als-wc-product-page .als-sp-gallery-arrow {
  background: rgba(0, 78, 41, .88);
  border-color: rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------------------------
   Product summary
   -------------------------------------------------------------------------- */
.als-wc-product-page .als-sp-summary {
  background: #fff;
  overflow: visible;
}

.als-wc-product-page .als-sp-summary-inner {
  justify-content: center;
  max-width: 760px;
  padding: 42px clamp(34px, 4.3vw, 70px) 44px;
  width: 100%;
}

.als-wc-product-page .als-sp-breadcrumb {
  color: #708077;
  font-size: 12px;
  margin-bottom: 16px;
}

.als-wc-product-page .als-sp-category-tag {
  background: rgba(0, 78, 41, .07);
  color: #08683a;
  margin-bottom: 12px;
}

.als-wc-product-page .als-sp-title {
  color: #17261d;
  font-size: clamp(31px, 3.2vw, 46px);
  line-height: 1.25;
  margin-bottom: 10px;
}

.als-wc-product-page .als-sp-price {
  align-items: baseline;
  color: #08683a;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 800;
  gap: 8px;
  line-height: 1.25;
  margin: 3px 0 12px;
}
.als-wc-product-page .als-sp-price del {
  color: #8b958f;
  font-size: .62em;
  font-weight: 500;
  opacity: 1;
}
.als-wc-product-page .als-sp-price ins { text-decoration: none; }

.als-wc-product-page .als-sp-lead {
  color: #53655b;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 10px;
}
.als-wc-product-page .als-sp-lead p { margin: 0; }

.als-wc-product-page .als-sp-stock {
  color: #08683a;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.als-wc-product-page .als-sp-stock:empty { display: none; }

.als-wc-product-page .als-sp-paths-label {
  color: #415248;
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.als-wc-product-page .als-sp-paths {
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-bottom: 12px;
}

.als-wc-product-page .als-sp-path-card {
  align-items: center;
  background: #fff;
  border: 1.5px solid rgba(0, 78, 41, .15);
  border-radius: 14px;
  flex-direction: row;
  gap: 10px;
  min-height: 78px;
  padding: 12px 13px;
  text-align: start;
}

.als-wc-product-page .als-sp-path-card:hover,
.als-wc-product-page .als-sp-path-card:focus-visible {
  border-color: #08683a;
  box-shadow: 0 10px 26px rgba(0, 78, 41, .1);
  transform: translateY(-1px);
}

.als-wc-product-page .als-sp-path-card.is-selected {
  background: rgba(8, 104, 58, .055);
  border-color: #08683a;
  box-shadow: inset 0 0 0 1px rgba(8, 104, 58, .04);
}

.als-wc-product-page .als-sp-path-check {
  inset-inline-end: 8px;
  inset-inline-start: auto;
  left: auto;
  top: 8px;
}

.als-wc-product-page .als-sp-path-icon {
  border-radius: 10px;
  box-shadow: none;
  flex: 0 0 38px;
  height: 38px;
  margin: 0;
  width: 38px;
}

.als-wc-product-page .als-sp-path-copy { gap: 1px; }
.als-wc-product-page .als-sp-path-copy strong { font-size: 12.5px; }
.als-wc-product-page .als-sp-path-copy small { display: block; font-size: 10.5px; }

.als-wc-product-page .als-wc-path-copy {
  background: #f4f0e6;
  border: 1px solid rgba(0, 78, 41, .1);
  border-radius: 13px;
  color: #42544a;
  margin-top: 0;
  padding: 12px 14px;
}
.als-wc-product-page .als-wc-path-copy strong { font-size: 12px; }
.als-wc-product-page .als-wc-path-copy .btn { width: 100%; }

/* --------------------------------------------------------------------------
   WooCommerce native controls
   -------------------------------------------------------------------------- */
.als-wc-product-page .als-wc-native-cart { margin-top: 12px; }
.als-wc-product-page .als-wc-native-cart form.cart { gap: 10px; margin: 0; }
.als-wc-product-page .als-wc-native-cart form.cart::after { clear: both; content: ""; display: table; }

.als-wc-product-page .variations {
  border: 0;
  border-collapse: separate;
  border-spacing: 0 9px;
  margin: 0;
  width: 100%;
}
.als-wc-product-page .variations th,
.als-wc-product-page .variations td {
  background: transparent;
  border: 0;
  display: block;
  padding: 0;
  text-align: start;
  width: 100%;
}
.als-wc-product-page .variations th { margin-bottom: 5px; }
.als-wc-product-page .variations label {
  color: #34483c;
  font-size: 12px;
  font-weight: 700;
}
.als-wc-product-page .variations select,
.als-wc-product-page .als-wc-native-cart select,
.als-wc-product-page .als-wc-native-cart input[type="number"] {
  appearance: none;
  background: #fff;
  border: 1px solid #cad4cb;
  border-radius: 10px;
  color: #17261d;
  font: inherit;
  min-height: 46px;
  outline: 0;
  padding: 9px 12px;
  width: 100%;
}
.als-wc-product-page .variations select:focus,
.als-wc-product-page .als-wc-native-cart input[type="number"]:focus {
  border-color: #08683a;
  box-shadow: 0 0 0 3px rgba(8, 104, 58, .09);
}
.als-wc-product-page .reset_variations {
  color: #08683a;
  display: inline-flex !important;
  font-size: 11px;
  font-weight: 700;
  margin-top: 5px;
}
.als-wc-product-page .single_variation_wrap { margin-top: 2px; }
.als-wc-product-page .woocommerce-variation-price { margin-bottom: 8px; }
.als-wc-product-page .woocommerce-variation-description { color: #596b61; font-size: 12px; }

.als-wc-product-page .als-wc-native-cart .woocommerce-variation-add-to-cart,
.als-wc-product-page .als-wc-native-cart form.cart:not(.variations_form) {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(0, 1fr);
}

.als-wc-product-page .als-wc-native-cart .quantity {
  float: none;
  margin: 0;
  width: 100%;
}
.als-wc-product-page .als-wc-native-cart .quantity input {
  text-align: center;
}
.als-wc-product-page .als-wc-native-cart .single_add_to_cart_button {
  align-items: center;
  background: #08683a !important;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(8, 104, 58, .22);
  color: #fff !important;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  transition: background-color .2s, transform .2s, box-shadow .2s;
  width: 100%;
}
.als-wc-product-page .als-wc-native-cart .single_add_to_cart_button:hover {
  background: #064f2c !important;
  box-shadow: 0 12px 28px rgba(8, 104, 58, .28);
  transform: translateY(-1px);
}
.als-wc-product-page .als-wc-native-cart .single_add_to_cart_button.disabled,
.als-wc-product-page .als-wc-native-cart .single_add_to_cart_button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.als-wc-product-page .als-wc-installation-fields {
  background: #f7f3e9;
  border-color: rgba(0, 78, 41, .13);
  border-radius: 12px;
  margin-top: 8px;
}

.als-wc-product-page .als-sp-quick-actions {
  border-top: 1px solid rgba(0, 78, 41, .1);
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
  padding-top: 15px;
}
.als-wc-product-page .als-sp-quick-actions .btn {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  min-height: 43px;
}

/* --------------------------------------------------------------------------
   Content and sidebar
   -------------------------------------------------------------------------- */
.als-wc-product-page .als-sp-main {
  background: #f7f3ea;
  padding: clamp(58px, 6vw, 90px) 0;
}
.als-wc-product-page .als-sp-main > div,
.als-wc-product-page .als-sp-main-layout {
  width: min(1240px, calc(100% - 48px));
}
.als-wc-product-page .als-sp-content > section {
  background: #fff;
  border: 1px solid rgba(0, 78, 41, .09);
  border-radius: 20px;
  box-shadow: 0 9px 28px rgba(22, 42, 30, .055);
  padding: clamp(22px, 2.6vw, 34px);
}
.als-wc-product-page .als-sp-content > section + section { margin-top: 18px; }
.als-wc-product-page .als-sp-content h2 {
  color: #17261d;
  font-size: clamp(24px, 2vw, 31px);
  margin: 4px 0 17px;
}
.als-wc-product-page .als-sp-description {
  color: #53655b;
  font-size: 15px;
  line-height: 1.95;
}
.als-wc-product-page .als-sp-description > :first-child { margin-top: 0; }
.als-wc-product-page .als-sp-description > :last-child { margin-bottom: 0; }
.als-wc-product-page .als-sp-description ul,
.als-wc-product-page .als-sp-description ol { padding-inline-start: 20px; }

.als-wc-product-page table.woocommerce-product-attributes {
  border: 1px solid rgba(0, 78, 41, .1);
  border-radius: 13px;
  overflow: hidden;
}
.als-wc-product-page table.woocommerce-product-attributes th {
  background: #f4f0e6;
  color: #274234;
  font-size: 12px;
  width: 34%;
}
.als-wc-product-page table.woocommerce-product-attributes td { color: #52645a; font-size: 13px; }

.als-wc-product-page .als-sp-features-grid { gap: 11px; }
.als-wc-product-page .als-sp-features-grid article {
  border-color: rgba(0, 78, 41, .1);
  border-radius: 13px;
  padding: 16px;
}
.als-wc-product-page .als-sp-features-grid article > span {
  align-items: center;
  background: rgba(8, 104, 58, .09);
  border-radius: 9px;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}
.als-wc-product-page .als-sp-features-grid h3 { color: #20392b; font-size: 14px; }
.als-wc-product-page .als-sp-features-grid p { line-height: 1.65; }

.als-wc-product-page .als-sp-applications span {
  background: #f4f0e6;
  border-color: rgba(0, 78, 41, .1);
  color: #3e5246;
}

.als-wc-product-page .als-faq-list details {
  background: #fff;
  border: 1px solid rgba(0, 78, 41, .11);
  border-radius: 12px;
  overflow: hidden;
}
.als-wc-product-page .als-faq-list details + details { margin-top: 9px; }
.als-wc-product-page .als-faq-list summary {
  color: #223b2d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  padding: 16px 18px;
}
.als-wc-product-page .als-faq-list summary::-webkit-details-marker { display: none; }
.als-wc-product-page .als-faq-list details p {
  border-top: 1px solid rgba(0, 78, 41, .08);
  color: #596b61;
  margin: 0;
  padding: 14px 18px 17px;
}

.als-wc-product-page .als-sp-sidebar { top: 116px; }
.als-wc-product-page .als-sp-sidebar-card {
  border-color: rgba(0, 78, 41, .11);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(21, 43, 29, .08);
  padding: 24px;
}
.als-wc-product-page .als-sp-sidebar-card h3 { color: #183224; font-size: 19px; margin: 0 0 7px; }
.als-wc-product-page .als-sp-sidebar-card p { color: #607168; font-size: 13px; line-height: 1.75; margin: 0 0 15px; }
.als-wc-product-page .als-sp-sidebar-card .btn { border-radius: 10px; display: flex; justify-content: center; margin-top: 8px; min-height: 44px; width: 100%; }
.als-wc-product-page .als-sp-trust {
  background: #fff;
  border: 1px solid rgba(0, 78, 41, .1);
  border-radius: 14px;
  color: #53655b;
  display: grid;
  font-size: 11px;
  gap: 8px;
  padding: 15px;
}
.als-wc-product-page .als-sp-trust span { color: #466055; }

.als-wc-product-page .als-sp-related {
  background: #fff;
  border-top: 1px solid rgba(0, 78, 41, .08);
  margin-top: 0;
  padding-block: clamp(58px, 6vw, 84px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .als-wc-product-page .als-sp-gallery-stage { height: auto; position: absolute; }
  .als-wc-product-page .als-sp-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .als-wc-product-page .als-sp-gallery {
    height: clamp(420px, 62vw, 620px);
    min-height: 0;
    order: 1;
  }
  .als-wc-product-page .als-sp-summary { order: 2; }
  .als-wc-product-page .als-sp-summary-inner { max-width: 820px; padding: 34px 32px 42px; }
}

@media (max-width: 767px) {
  .als-wc-product-page .als-sp-gallery {
    height: min(88vw, 440px);
    padding: 12px;
  }
  .als-wc-product-page .als-sp-gallery-stage {
    border-radius: 17px;
    inset: 12px;
  }
  .als-wc-product-page .als-sp-gallery-main { padding: 16px; }
  .als-wc-product-page .als-sp-gallery-badge { inset-inline-end: 13px; top: 13px; }
  .als-wc-product-page .als-sp-gallery-thumbs { bottom: 12px; inset-inline-start: 12px; }
  .als-wc-product-page .als-sp-gallery-counter { bottom: 13px; inset-inline-end: 13px; }
  .als-wc-product-page .als-sp-summary-inner { padding: 27px 20px 34px; }
  .als-wc-product-page .als-sp-title { font-size: 29px; }
  .als-wc-product-page .als-sp-price { font-size: 26px; }
  .als-wc-product-page .als-sp-paths { grid-template-columns: 1fr; }
  .als-wc-product-page .als-sp-path-card { min-height: 70px; }
  .als-wc-product-page .als-wc-native-cart .woocommerce-variation-add-to-cart,
  .als-wc-product-page .als-wc-native-cart form.cart:not(.variations_form) { grid-template-columns: 82px minmax(0, 1fr); }
  .als-wc-product-page .als-sp-main { padding: 42px 0 65px; }
  .als-wc-product-page .als-sp-main > div,
  .als-wc-product-page .als-sp-main-layout { width: min(100% - 28px, 720px); }
  .als-wc-product-page .als-sp-content > section { border-radius: 15px; padding: 20px 17px; }
  .als-wc-product-page .als-sp-content h2 { font-size: 24px; }
  .als-wc-product-page .als-sp-description { font-size: 14px; }
  .als-wc-product-page .als-sp-features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .als-wc-product-page .als-sp-gallery { height: 96vw; max-height: 390px; }
  .als-wc-product-page .als-sp-quick-actions { grid-template-columns: 1fr; }
  .als-wc-product-page .als-wc-native-cart .woocommerce-variation-add-to-cart,
  .als-wc-product-page .als-wc-native-cart form.cart:not(.variations_form) { grid-template-columns: 74px minmax(0, 1fr); }
  .als-wc-product-page .als-wc-native-cart .single_add_to_cart_button { font-size: 12.5px; padding-inline: 12px; }
}
