/* =========================
 * RESET / CONTAINER
 * ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

img,
iframe,
video {
  max-width: 100%;
  height: auto;
}

/* Main wrapper */
.asd-product-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  width: 100%;
  overflow-x: hidden;
}

.asd-description-tabs,
.asd-tabs,
.asd-sidebar {
  max-width: 100%;
}

/* =========================
 * HERO (gallery + summary)
 * ========================= */
.asd-hero {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch; /* make columns equal height */
  gap: 3rem;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  margin: 0 0 3rem;
}

@media (max-width: 900px) {
  .asd-hero {
    flex-direction: column !important;
  }
}

.asd-gallery,
.asd-product-summary {
  flex: 1 1 0;
  min-width: 0;
  float: none !important;
  width: auto !important;
}

/* =========================
 * BREADCRUMBS
 * (PHP: nav moved above .asd-hero)
 * ========================= */
/* --- BREADCRUMBS --- */
/* Outer container – aligns with product width */
.asd-breadcrumbs {
  max-width: 1400px;
  margin: 0 auto;
}

/* Actual Woo nav inside */
.asd-breadcrumbs .woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: #2d2d2d;
  font-weight: 400;
}

.asd-breadcrumbs .woocommerce-breadcrumb a {
  color: #c40000; /* ASD red */
  text-decoration: none;
  font-weight: 600;
}

.asd-breadcrumbs .woocommerce-breadcrumb a:hover {
  color: #8b0000;
  text-decoration: underline;
}

.asd-breadcrumbs .woocommerce-breadcrumb .delimiter {
  margin: 0 6px;
  color: #aaa;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* MOBILE: centered breadcrumb chip */
@media (max-width: 768px) {
  /* outer container spans full width */
  .asd-breadcrumbs {
    max-width: 100%;
    margin: 0.4rem 0;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
  }

  /* inner Woo nav: make it a centered flex row */
  .asd-breadcrumbs .woocommerce-breadcrumb {
    padding: 0.45rem 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    text-align: center;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .asd-breadcrumbs .woocommerce-breadcrumb a {
    font-weight: 500;
  }

  .asd-breadcrumbs .woocommerce-breadcrumb .delimiter {
    margin: 0 6px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
}

/* =========================
 * UNIVERSAL PRODUCT GALLERY
 * One markup for desktop + mobile (scroll-snap). No device-width JS.
 * ========================= */
.asd-gallery.asd-unigallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*
 * Universal gallery viewport.
 * We avoid relying on overflow scrolling for older iOS Safari; JS translates the inner strip.
 */
.asd-unigallery-track {
  width: 100%;
  max-width: 760px;
  height: 420px;
  overflow: hidden;
  position: relative;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background: #f0f0f0;
}

.asd-unigallery-inner {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
  transition: transform 280ms ease;
}

/* Hide scrollbars (best-effort) */
.asd-unigallery-track::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.asd-unigallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  position: relative; /* harden centering against theme overrides */
  overflow: hidden;
}

/* Main gallery image
   Some themes apply aggressive rules to product images (e.g. object-fit: cover,
   width/height:100%) which can crop the featured image. Use higher specificity
   and !important to keep images centered and fully visible. */
.asd-gallery.asd-unigallery img.asd-unigallery-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  cursor: zoom-in;
  margin: auto !important;
}

/* Some optimization/WebP plugins rewrite <img> into a <picture> wrapper and
   move classes onto <picture>. Make sure the wrapper itself doesn't get "img"
   rules and that the nested <img> is centered and constrained. */
.asd-gallery.asd-unigallery picture.asd-unigallery-img,
.asd-gallery.asd-unigallery picture.asd-unigallery-picture {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.asd-gallery.asd-unigallery picture.asd-unigallery-img > img,
.asd-gallery.asd-unigallery picture.asd-unigallery-picture > img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: auto !important;
}

.asd-unigallery-controls {
  width: 100%;
  max-width: 640px;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Flex gap fallback (iOS < 14.1 doesn’t support gap for flex) */
@supports not (gap: 1rem) {
  .asd-unigallery-controls > * {
    margin: 0 0.5rem;
  }
  .asd-unigallery-thumbs {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
  .asd-unigallery-thumbs .asd-thumb-btn {
    margin: 0.25rem;
  }
}

.asd-unigallery-controls button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.asd-unigallery-counter {
  min-width: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Thumbs */
.asd-unigallery-thumbs {
  width: 100%;
  max-width: 640px;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.75rem;
}

.asd-thumb-btn {
  padding: 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  line-height: 0;
}

.asd-thumb-btn img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.asd-thumb-btn:hover,
.asd-thumb-btn.active {
  transform: scale(1.03);
  border-color: #c4001d;
}

/* Mobile: let the gallery grow naturally and hide thumbs by default */
@media (max-width: 900px) {
  /*
   * Old iOS Safari does NOT support aspect-ratio; never rely on it for height.
   * Use a viewport-based height instead.
   */
  .asd-unigallery-track {
    max-width: 100%;
    height: 72vw;
    min-height: 260px;
    max-height: 520px;
  }

  .asd-unigallery-thumbs {
    display: none;
  }
}

/* Extra-defensive version */
.asd-gallery > p:empty,
.asd-gallery > p:only-child {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Refined mobile hero look */
@media (max-width: 768px) {
  .asd-product-wrapper {
    padding-top: 0.15rem;
    padding-bottom: 1.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .asd-hero {
    padding: 0;
    margin-top: 0.25rem;
    margin-bottom: 1.75rem;
    border-radius: 0;
    box-shadow: none;
    gap: 1.25rem;
  }

  .asd-unigallery-track {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }

  .asd-unigallery-img {
    border-radius: 0;
    box-shadow: none;
  }

  .asd-unigallery-controls {
    padding: 0.2rem 0 0.5rem;
  }

  .asd-product-summary {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 0.9rem 1.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  }

  .asd-description-tabs {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .asd-product-wrapper {
    padding-top: 0.35rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    padding-bottom: 1.5rem;
  }
}

/* =========================
 * SUMMARY / HEADING
 * ========================= */
.asd-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

/* =========================
 * PRICE + STOCK
 * ========================= */
.asd-variation-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 1rem;
}

.asd-price {
  font-size: 15px;
  font-weight: 700;
  color: #c4001d;
  margin: 0;
}

.asdpt-price-override {
  margin: 0;
  font-weight: 700;
}

/* Stock status pill */
.asd-stock-status {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
  background: #f9f9f9;
  color: #000;
  border-left: 4px solid #999;
}

.asd-stock-status.in {
  border-left-color: #28a745;
}

.asd-stock-status.low,
.asd-stock-status.backordered {
  border-left-color: #f0ad4e;
}

.asd-stock-status.out {
  border-left-color: #dc3545;
}

/* Qty breaks inline */
.asd-qb-inline {
  margin: 0.25rem 0 1rem;
}

.asd-qb-inline > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #111;
  font-weight: 600;
}

.asd-qb-inline[open] > summary {
  background: #e7eef9;
}

.asd-qb-inline table {
  margin-top: 0.5rem;
  border-collapse: collapse;
  width: auto;
  min-width: 260px;
}

.asd-qb-inline th,
.asd-qb-inline td {
  padding: 0.35rem 0.6rem;
  border: 1px solid #e5e7eb;
  font-size: 0.92rem;
}

/* =========================
 * VARIATION FORM / SELECTS
 * ========================= */

/* 1) Don't treat the *whole* variations form like the simple-cart form */
.asd-product-summary form.variations_form.cart {
  display: block;
  width: 100%;
}

/* Keep the options table full width and tidy */
.asd-product-summary table.variations {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* Label above select, nice spacing */
.asd-product-summary .variations td.label label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Add a little breathing room between the variation select and the "Clear" link */
.asd-product-summary .variations .reset_variations {
  margin-left: 0.5rem;
  display: inline-block;
}

/* 2) Keep qty + button nicely inline */
.asd-product-summary .variations_button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 0.5rem;
}

.asd-product-summary .variations_button .quantity {
  flex: 0 0 auto;
}

.asd-product-summary .variations_button .single_add_to_cart_button {
  flex: 1 1 auto;
  width: auto;
}

/* 3) Mobile: stack qty + button cleanly */
@media (max-width: 600px) {
  .asd-product-summary .variations_button {
    flex-wrap: wrap;
  }

  .asd-product-summary .variations_button .quantity {
    flex: 0 0 40%;
  }

  .asd-product-summary .variations_button .single_add_to_cart_button {
    flex: 0 0 100%;
    margin-top: 0.5rem;
  }
}

/* =========================
 * INLINE QTY + ADD TO CART
 * ========================= */
.asd-product-summary form.cart,
.asd-product-summary .variations_button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  width: 100%;
}

.asd-product-summary form.cart .quantity,
.asd-product-summary .variations_button .quantity {
  flex: 0 0 auto;
}

.asd-product-summary form.cart .single_add_to_cart_button,
.asd-product-summary .variations_button .single_add_to_cart_button {
  flex: 1 1 auto;
  width: auto;
}

/* Nicer native number input arrows */
.asd-product-summary .quantity input.qty {
  appearance: textfield;
  -moz-appearance: textfield;
  width: 120px;
  padding: 0.55rem 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 6px;
  text-align: center;
}

/* Chrome/Edge arrow styling */
.asd-product-summary .quantity input.qty::-webkit-inner-spin-button,
.asd-product-summary .quantity input.qty::-webkit-outer-spin-button {
  opacity: 0.4;
  margin: 0;
}

/* Focus polish */
.asd-product-summary .quantity input.qty:focus {
  outline: none;
  border-color: #c4001d;
  box-shadow: 0 0 0 1px rgba(196, 0, 29, 0.25);
  background: #fff;
}

/* Mobile: stack nicely – qty on first line, full-width button below */
@media (max-width: 600px) {
  .asd-product-summary form.cart,
  .asd-product-summary .variations_button {
    flex-wrap: wrap;
  }

  .asd-product-summary form.cart .quantity,
  .asd-product-summary .variations_button .quantity {
    flex: 0 0 40%;
  }

  .asd-product-summary form.cart .single_add_to_cart_button,
  .asd-product-summary .variations_button .single_add_to_cart_button {
    flex: 0 0 100%;
    margin-top: 0.5rem;
  }
}

/* =========================
 * BUTTONS
 * ========================= */
.single_add_to_cart_button {
  height: 42px;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #e6001c;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.single_add_to_cart_button:hover {
  background: #c4001a;
}

/* =========================
 * CLEAN UP STRAY <p> / <br> IN SUMMARY CARD
 * ========================= */
.asd-product-summary p:empty {
  margin: 0;
  padding: 0;
}

.asd-product-summary p > br:only-child {
  display: none;
}

.asd-product-summary > br:last-child {
  display: none;
}

.asd-product-summary > *:last-child {
  margin-bottom: 0;
}

/* =========================
 * TRUST BADGES
 * ========================= */
.asd-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.asd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #222;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
}

/* =========================
 * TABS + SIDEBAR
 * ========================= */
.asd-description-tabs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1146px) {
  .asd-description-tabs {
    grid-template-columns: 1fr;
  }
}

.asd-tabs,
.asd-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

/* Tab navigation */
.asd-tab-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  flex-wrap: nowrap;
}

.asd-tab-nav button {
  background: none;
  border: 0;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}

.asd-tab-nav button.active {
  border-color: #c4001d;
  color: #c4001d;
}

/* Tab nav mobile tweaks */
@media (max-width: 768px) {
  .asd-tab-nav {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    border-bottom: 1px solid #ddd;
  }

  .asd-tab-nav button {
    padding: 0.4rem 0.4rem;
    font-size: 0.9rem;
  }
}

.asd-tab-content > .tab-panel {
  display: none;
}

.asd-tab-content > .tab-panel.active {
  display: block;
}

/* Reviews anchor spacing */
#asd-reviews {
  scroll-margin-top: 120px;
}

/* Restock banner */
.asd-restock-banner {
  background: #fff7f7;
  border-left: 4px solid #dc3545;
  color: #222;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin: 0.75rem 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Back-in-stock email notification (waitlist) */
.asd-waitlist {
  margin-top: 12px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
}
.asd-waitlist-title {
  margin: 0 0 4px 0;
  font-weight: 600;
}
.asd-waitlist-desc {
  margin: 0 0 8px 0;
}
.asd-waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.asd-waitlist-form input[type="text"],
.asd-waitlist-form input[type="email"] {
  flex: 1 1 160px;
  min-width: 140px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.asd-waitlist-form button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
}
.asd-waitlist-msg {
  flex: 1 1 100%;
  margin-top: 4px;
  font-size: 0.95em;
}

.asd-waitlist-msg.is-success { color: #0f6b2c; }
.asd-waitlist-msg.is-error { color: #b42318; }

@media (max-width: 520px) {
  .asd-waitlist-form input[type="text"],
  .asd-waitlist-form input[type="email"],
  .asd-waitlist-form button {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Woo notices polish */
.woocommerce-notices-wrapper > div,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  background: #f9f9f9;
  border-left: 4px solid #c4001d;
  color: #333;
  padding: 1rem 1.5rem 1rem 2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
  font-size: 0.95rem;
  line-height: 1.4;
}

.woocommerce-message {
  border-left-color: #28a745;
}

.woocommerce-info {
  border-left-color: #007acc;
}

/* =========================
 * RATINGS
 * ========================= */
.asd-ratingline {
  display: flex;
  flex-direction: row;
}

.asd-stars-link {
  display: flex;
  margin-right: 0.5rem;
}

.asd-rating-count {
  max-height: 18px;
  font-size: 13px;
  text-decoration: none;
}

.asd-ratingline .asd-stars-wrap {
  --star-size: 18px;
  --gap: 2px;
  position: relative;
  display: inline-block;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}

.asd-ratingline .asd-stars-wrap .stars-bg,
.asd-ratingline .asd-stars-wrap .stars-fill {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--star-size);
  align-items: center;
}

.asd-ratingline .asd-stars-wrap svg {
  width: var(--star-size);
  height: var(--star-size);
  display: block;
}

.asd-ratingline .asd-stars-wrap .stars-bg svg:not(:last-child),
.asd-ratingline .asd-stars-wrap .stars-fill svg:not(:last-child) {
  margin-right: var(--gap);
}

.asd-ratingline .asd-stars-wrap .stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  pointer-events: none;
}

.asd-ratingline .stars-bg svg {
  fill: #e5e7eb;
}

.asd-ratingline .stars-fill svg {
  fill: #f59e0b;
}

.asd-ratingline .asd-stars-wrap br {
  display: none !important;
}

/* =========================
 * SIDEBAR CONTENT
 * ========================= */
.asd-sidebar h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.asd-sidebar .install-links {
  margin-bottom: 0.5rem;
}

/* When Installation Help is entered as plain text/links, wpautop outputs <p> */
.asd-sidebar .install-links p {
  margin: 0 0 0.35rem;
}
.asd-sidebar .install-links p:last-child {
  margin-bottom: 0;
}

.asd-sidebar .install-links ul {
  padding-left: 1.25rem;
  margin: 0 0 0.75rem 0;
}

.asd-sidebar .install-links li {
  margin-bottom: 0.25rem;
}

/* Share icons row */
.asd-sidebar .share-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.asd-sidebar .share-icons a,
.asd-sidebar .share-icons .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
}

.asd-sidebar .share-icons .copy-btn {
  padding: 0;
}

.asd-sidebar .share-icons .copy-btn.copied {
  border-color: #16a34a;
  background: #ecfdf3;
}

/* =========================
 * CROSS-SELLS
 * ========================= */
.asd-cross-sells {
  margin-top: 1.5rem;
}

.asd-cross-sells-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.asd-cross-sells-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asd-cross-sell-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.asd-cross-sell-tile .tile-thumb {
  display: block;
}

.asd-cross-sell-tile img {
  display: block !important;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  min-height: 80px !important;
  object-fit: cover;
  border-radius: 6px;
}

.asd-cross-sell-tile .tile-meta {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.asd-cross-sell-tile .tile-title {
  margin: 0 0 4px;
}

.asd-cross-sell-tile .tile-title a {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
  color: inherit;
}

.asd-cross-sell-tile .tile-title a:hover {
  text-decoration: underline;
}

.asd-cross-sell-tile h4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.asd-cross-sell-tile .tile-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4001d;
  margin: 3px 0 8px;
}

.asd-cross-sell-tile .tile-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.asd-cross-sell-tile .button {
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: 0.15s ease;
  width: auto;
  align-self: flex-start;
  text-decoration: none;
}

.asd-cross-sell-tile .asd-suggested-add.button {
  background: #e6001c;
  color: #fff;
}

.asd-cross-sell-tile .asd-suggested-add.button:hover,
.asd-cross-sell-tile .asd-suggested-add.button:focus {
  background: #c10018;
}

.asd-cross-sell-tile .view-product-button {
  background: #fff;
  color: #e6001c;
  border: 1px solid #e6001c;
}

.asd-cross-sell-tile .view-product-button:hover,
.asd-cross-sell-tile .view-product-button:focus {
  background: #e6001c;
  color: #fff;
}

.asd-cross-sell-tile .button.is-adding {
  opacity: 0.7;
  pointer-events: none;
}

.asd-cross-sell-tile .button.is-added {
  background: #2e7d32;
  border-color: #2e7d32;
}

@media (max-width: 480px) {
  .asd-cross-sell-tile {
    flex-direction: row;
  }

  .asd-cross-sell-tile img {
    width: 70px !important;
    height: 70px !important;
  }
}

/* SIDEBAR / TABS MOBILE PADDING (kept light) */
@media (max-width: 768px) {
  .asd-tabs,
  .asd-sidebar {
    padding: 1.25rem;
  }

  .asd-cross-sell-tile {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .asd-tabs,
  .asd-sidebar {
    padding: 1rem;
  }
}

/* Tighten the mobile hero so the gallery sits right at the top */
@media (max-width: 768px) {
  .asd-hero {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
    align-items: stretch;
  }

  .asd-gallery {
    margin: 0;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
  }

  .asd-unigallery-track {
    margin: 0;
    padding: 0;
  }

  .asd-unigallery-track > * {
    margin-top: 0;
    margin-bottom: 0;
  }

  .asd-unigallery-controls {
    margin-top: 0.2rem;
  }
}

/* Hero behaves as a single card (gallery + summary together) */
@media (max-width: 768px) {
  .asd-hero {
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 0.75rem 0.75rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 1.5rem;
  }

  .asd-unigallery-track {
    box-shadow: none;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
  }

  .asd-product-summary {
    margin-top: 0;
    padding-top: 0.75rem;
    background: transparent;
    box-shadow: none;
  }
}

/* MOBILE: tighter, smaller carousel controls */
@media (max-width: 768px) {
  .asd-unigallery-controls {
    margin-top: 0.25rem;
    padding: 0.15rem 0 0.35rem;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .asd-unigallery-controls button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.9rem;
    padding: 0;
  }

  .asd-unigallery-counter {
    min-width: auto;
  }
}

/* ============================
   FULLSCREEN LIGHTBOX (mobile safe)
   ============================ */
.asd-lightbox {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;

  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;

  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  box-sizing: border-box;
}

.asd-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Scroll lock hook */
body.asd-lightbox-open {
  touch-action: none;
}

/* =========================
 * "What's Included" table – mobile friendly
 * ========================= */

/* Make only the "included" panel horizontally scrollable */
.asd-tab-content [data-asdpt-panel="included"] {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* Let the table be wider than the panel so scrollbars appear */
.asd-tab-content [data-asdpt-panel="included"] table {
  width: auto;
  min-width: 600px;
  max-width: none;
}

/* Optional: small hint that content can scroll on very narrow screens */
@media (max-width: 768px) {
  .asd-tab-content [data-asdpt-panel="included"] {
    padding-bottom: 0.5rem;
  }
}

/* Mobile: prevent wide table in "What's Included" from blowing out the card */
@media (max-width: 768px) {
  .asd-tabs {
    max-width: 100%;
  }
}

/* Make the summary column a flex column */
.asd-product-summary {
  display: flex;
  flex-direction: column;
}

/* Push the CTA block (qty + button + restock) to the bottom of the card */
.asd-product-summary .asd-cta-block {
  margin-top: auto;
}

/* Optional spacing between cart and restock text */
.asd-product-summary .asd-cta-block > * + * {
  margin-top: 0.75rem;
}

/* Form stacks vertically: kit builder on top, then qty+button row */
form.cart.asdpt-cart-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

/* Ensure kit builder takes full width and stays first */
form.cart.asdpt-cart-stack .asdpt-kit {
  width: 100%;
  order: 0;
}

/* Qty + button in a horizontal row */
form.cart.asdpt-cart-stack .asdpt-atc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  order: 1;
}

/* Quantity input: fixed-ish width */
form.cart.asdpt-cart-stack .asdpt-atc-row .quantity {
  margin: 0;
  flex: 0 0 auto;
}

/* Button fills remaining space */
form.cart.asdpt-cart-stack .asdpt-atc-row .single_add_to_cart_button {
  flex: 1 1 auto;
  width: auto;
  margin: 0;
}

/* Hide variable waitlist placeholder until JS explicitly shows it */
[data-asdpt-waitlist]:not([data-asdpt-waitlist-simple]) {
  display: none;
}

/* ------------------------------
   Upgrade Discount (checkbox UI)
   ------------------------------ */
.asdpt-upgrade-discount {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0 10px;
}

.asdpt-upgrade-discount__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.asdpt-upgrade-discount__row--main {
  margin: 0;
}

.asdpt-upgrade-discount__title {
  font-weight: 700;
  margin: 0;
}

.asdpt-upgrade-discount__pricing {
  font-weight: 600;
  margin: 0 0 10px;
}

.asdpt-upgrade-discount__desc {
  margin: 0 0 10px;
  opacity: 0.9;
}

.asdpt-upgrade-discount__row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.asdpt-upgrade-discount__row input[type="checkbox"] {
  margin-top: 4px;
}

.asdpt-upgrade-discount__confirm {
  margin-top: 8px;
}

.asdpt-upgrade-discount__note {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.85;
}

.asdpt-upgrade-discount__badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  margin-left: 8px;
  opacity: 0.9;
}


/* =========================
 * FRONTEND FOCUS CLEANUP
 * ========================= */
.asd-product-summary button:focus,
.asd-product-summary button:focus-visible,
.asd-product-summary .button:focus,
.asd-product-summary .button:focus-visible,
.asd-product-summary input:focus,
.asd-product-summary input:focus-visible,
.asd-product-summary select:focus,
.asd-product-summary select:focus-visible,
.asd-product-summary textarea:focus,
.asd-product-summary textarea:focus-visible,
.asd-product-summary a:focus,
.asd-product-summary a:focus-visible,
.asdpt-qb-box button:focus,
.asdpt-qb-box button:focus-visible,
.asdpt-qb-box a:focus,
.asdpt-qb-box a:focus-visible,
.asdpt-upgrade-discount input:focus,
.asdpt-upgrade-discount input:focus-visible,
.asdpt-upgrade-discount button:focus,
.asdpt-upgrade-discount button:focus-visible,
.asdpt-upgrade-discount a:focus,
.asdpt-upgrade-discount a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.asd-product-summary button,
.asd-product-summary .button,
.asd-product-summary a,
.asd-product-summary input,
.asd-product-summary select,
.asd-product-summary textarea,
.asdpt-qb-box button,
.asdpt-qb-box a,
.asdpt-upgrade-discount input,
.asdpt-upgrade-discount button,
.asdpt-upgrade-discount a {
  -webkit-tap-highlight-color: transparent;
}


/* Account pricing: consistent catalogue-style hierarchy across single, variable and suggested products. */
.asdpt-role-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:.28rem .48rem;line-height:1.25;margin:.15rem 0}.asdpt-role-price__rrp{display:inline-flex;gap:.25rem;align-items:baseline;color:#6b7280;font-size:.78em}.asdpt-role-price__rrp del{opacity:.8}.asdpt-role-price__account{display:inline-flex;gap:.28rem;align-items:baseline;color:#111827}.asdpt-role-price__account strong{font-size:1.12em}.asdpt-role-price__label{font-weight:800;color:#e00019}.asdpt-role-price__from{font-size:.76em;color:#6b7280;text-transform:uppercase;font-weight:700}.asdpt-role-price__saving{display:inline-flex;padding:.18rem .38rem;border:1px solid #86efac;border-radius:6px;background:#f0fdf4;color:#067a32;font-size:.7em;font-weight:800}.asdpt-price-separator{padding:0 .12em}.asd-product-summary .asdpt-role-price{margin:.45rem 0 .8rem}.asd-product-summary .asdpt-role-price__account strong{font-size:1.22em}.asd-suggested-card .asdpt-role-price{display:grid;grid-template-columns:1fr;gap:2px}.asd-suggested-card .asdpt-role-price__rrp{font-size:.72rem}.asd-suggested-card .asdpt-role-price__account{font-size:.88rem}.asd-suggested-card .asdpt-role-price__saving{justify-self:start;margin-top:2px}

/* Central price renderer: consistent tax-suffix spacing across ASDPT contexts. */
.asdpt-unified-price {
  line-height: 1.3;
}
.asdpt-unified-price .woocommerce-price-suffix,
.asdpt-unified-price .tax_label,
.asdpt-unified-price small.woocommerce-price-suffix {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.78em;
  line-height: 1.2;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
  vertical-align: baseline;
}

.asdpt-role-price__tax{font-size:.72em;font-weight:600;color:#6b7280;white-space:nowrap;margin-left:.12rem}.asd-product-summary .asdpt-role-price__tax{font-size:.76em}.asd-suggested-card .asdpt-role-price__tax{font-size:.68rem}
