/*
 * Gunora single-product enhancements
 * Organized by component; use CSS custom properties for design tokens.
 * RTL-ready: use logical properties and preserve WooCommerce's native markup.
 */
:root {
  --gunora-navy: #142b43;
  --gunora-blue: #3265ff;
  --gunora-yellow: #ffd447;
  --gunora-ink: #202b36;
  --gunora-muted: #586a7b;
  --gunora-line: #dce5ef;
  --gunora-surface: #f5f8fc;
  --gunora-radius: 14px;
}

/* Breadcrumbs */
body.single-product .gunora-product-breadcrumb {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px 0;
}
body.single-product .gunora-product-breadcrumb .woocommerce-breadcrumb {
  display: block !important;
  margin: 0;
  color: #617387;
  font-size: 12px;
  line-height: 1.6;
}
body.single-product .gunora-product-breadcrumb a {
  color: var(--gunora-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.single-product .gunora-breadcrumb-separator {
  display: inline-block;
  padding-inline: 8px;
  color: #98a7b6;
}

/* Product video */
body.single-product .gunora-product-video {
  grid-column: 1;
  min-width: 0;
  margin: -30px 0 0;
  padding: 0;
}
body.single-product .gunora-product-video h2 {
  margin: 0 0 12px;
  color: var(--gunora-navy);
  font-size: 17px;
  font-weight: 800;
}
body.single-product .gunora-product-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--gunora-line);
  border-radius: var(--gunora-radius);
  background: #101820;
}
body.single-product .gunora-product-video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Shipping information */
body.single-product .gunora-shipping-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--gunora-line);
  border-radius: 13px;
  background: #fff;
  color: var(--gunora-ink);
}
body.single-product .gunora-shipping-note-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #edf3ff;
  color: var(--gunora-blue);
  font-size: 18px;
  font-weight: 800;
}
body.single-product .gunora-shipping-note strong {
  display: block;
  margin: 0 0 3px;
  color: var(--gunora-navy);
  font-size: 13px;
}
body.single-product .gunora-shipping-note p {
  margin: 0 0 4px;
  color: var(--gunora-muted);
  font-size: 12px;
  line-height: 1.5;
}
body.single-product .gunora-shipping-note a {
  color: var(--gunora-blue);
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}



/* Sticky purchase bar */
body.single-product .gunora-sticky-atc[hidden] {
  display: none !important;
}
body.single-product .gunora-sticky-atc {
  position: fixed;
  z-index: 9998;
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
  width: 100%;
  padding: 12px max(20px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid rgba(20,43,67,.12);
  background: rgba(255,255,255,.97);
  box-shadow: 0 -8px 28px rgba(16,38,61,.12);
  backdrop-filter: blur(12px);
}
body.single-product .gunora-sticky-atc-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
body.single-product .gunora-sticky-atc-title {
  overflow: hidden;
  max-width: min(60vw, 620px);
  color: var(--gunora-navy);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.single-product .gunora-sticky-atc-price {
  color: var(--gunora-ink);
  font-size: 13px;
  font-weight: 850;
}
body.single-product .gunora-sticky-atc-price del {
  color: #788796;
  font-size: 11px;
}
body.single-product .gunora-sticky-atc-price ins {
  text-decoration: none;
}
body.single-product .gunora-sticky-atc-button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: var(--gunora-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
body.single-product .gunora-sticky-atc-button:hover {
  background: #214fdf;
  color: #fff;
}
body.single-product .gunora-sticky-atc-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

/* Keyboard access and motion preferences */
body.single-product :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #245de8 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
}
body.single-product .woocommerce-product-gallery a:focus-visible,
body.single-product .woocommerce-tabs a:focus-visible {
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  body.single-product *,
  body.single-product *::before,
  body.single-product *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 767px) {
  body.single-product .gunora-product-breadcrumb { padding: 10px 14px 0; }
  body.single-product .gunora-product-video { margin: -12px 0 22px; }
  body.single-product .gunora-sticky-atc { gap: 10px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
  body.single-product .gunora-sticky-atc-title { max-width: 48vw; font-size: 12px; }
  body.single-product .gunora-sticky-atc-button { min-height: 44px; padding-inline: 16px; }
}
@media (max-width: 380px) {
  body.single-product .gunora-sticky-atc-title { max-width: 42vw; }
  body.single-product .gunora-sticky-atc-button { padding-inline: 12px; font-size: 12px; }
}
html[dir="rtl"] body.single-product .gunora-product-video,
html[dir="rtl"] body.single-product .gunora-product-video h2,
html[dir="rtl"] body.single-product .gunora-shipping-note,
html[dir="rtl"] body.single-product .gunora-sticky-atc-product {
  text-align: right;
}

/* Gunora Buy It Now button */
body.single-product .gunora-buy-now-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 14px 0 0;
  padding: 14px 22px;
  border: 2px solid #91d9a4;
  border-radius: 12px;
  background: #b7edc4;
  color: #173b27;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
body.single-product .gunora-buy-now-button:hover {
  border-color: #72c98b;
  background: #98e0aa;
  color: #173b27;
}
body.single-product .gunora-buy-now-button:active {
  transform: translateY(1px);
}
body.single-product .gunora-buy-now-button:disabled {
  cursor: wait;
  opacity: .65;
}
@media (max-width: 767px) {
  body.single-product .gunora-buy-now-button {
    min-height: 52px;
    margin-top: 12px;
    font-size: 14px;
  }
}
