/* Aurora Phase 12 — Conversion & Premium Polish */

/* ── Micro-interactions ── */
body.aurora-storefront .btn-primary,
body.aurora-storefront .btn-ghost,
body.aurora-storefront .ProductCard_atc__vTiZ2,
body.aurora-storefront .add-to-cart {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

body.aurora-storefront .btn-primary:active,
body.aurora-storefront .ProductCard_atc__vTiZ2:active,
body.aurora-storefront .add-to-cart:active {
  transform: translateY(0) scale(0.98);
}

/* ── Product cards — responsive footer alignment ── */
body.aurora-storefront .product-card .product-price .price,
body.aurora-storefront .ProductCard_card___Z7IJ .product-price .price {
  display: inline-flex;
  justify-content: flex-start;
}

@media (min-width: 769px) {
  body.aurora-storefront .product-card .product-footer,
  body.aurora-storefront .ProductCard_card___Z7IJ .product-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  body.aurora-storefront .product-card .product-price,
  body.aurora-storefront .ProductCard_card___Z7IJ .product-price {
    width: auto;
    flex: 0 0 auto;
    text-align: left;
    justify-content: flex-start;
    margin: 0;
    white-space: nowrap;
  }

  body.aurora-storefront .product-card .product-price .price,
  body.aurora-storefront .ProductCard_card___Z7IJ .product-price .price,
  body.aurora-storefront .product-card .product-price .woocommerce-Price-amount,
  body.aurora-storefront .ProductCard_card___Z7IJ .product-price .woocommerce-Price-amount {
    width: auto;
    text-align: left;
    justify-content: flex-start;
  }

  body.aurora-storefront .product-card .product-footer .add-to-cart,
  body.aurora-storefront .product-card .product-footer .add_to_cart_button,
  body.aurora-storefront .product-card .product-footer .button,
  body.aurora-storefront .ProductCard_card___Z7IJ .product-footer .ProductCard_atc__vTiZ2,
  body.aurora-storefront .ProductCard_card___Z7IJ .product-footer .add_to_cart_button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  body.aurora-storefront .product-footer {
    gap: 10px;
  }

  body.aurora-storefront .product-content {
    padding: 18px 16px;
  }
}

/* ── Mega menu (desktop) ── */
body.aurora-storefront #nav .aurora-nav-has-mega,
body.aurora-storefront .SiteNav_navLinks__BRfL3 .aurora-nav-has-mega {
  position: relative;
}

body.aurora-storefront .aurora-nav-has-mega > a {
  position: relative;
  z-index: 2;
}

body.aurora-storefront .aurora-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: 16px;
  background: rgba(8, 13, 30, 0.98);
  border: 1px solid var(--aurora-border-accent);
  border-radius: var(--aurora-radius-card, 16px);
  box-shadow: var(--aurora-shadow-hover);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.15s;
  z-index: 1;
}

/* Invisible hover bridge — keeps menu open while moving from Shop link to dropdown */
body.aurora-storefront .aurora-mega-menu::before {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  top: -20px;
  height: 20px;
}

body.aurora-storefront .aurora-nav-has-mega:hover .aurora-mega-menu,
body.aurora-storefront .aurora-nav-has-mega:focus-within .aurora-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

body.aurora-storefront .aurora-mega-menu__label {
  display: block;
  font-family: var(--font-m, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora-text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--aurora-border);
}

body.aurora-storefront .aurora-mega-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--aurora-radius-btn, 12px);
  color: var(--txt, #edf4ff);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  position: relative;
  z-index: 1;
}

body.aurora-storefront .aurora-mega-menu a:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--acc, #00d4ff);
  padding-left: 16px;
}

/* ── Trust strip (global component) ── */
body.aurora-storefront .aurora-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.aurora-storefront .aurora-trust-strip--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.aurora-storefront .aurora-trust-strip--checkout {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid var(--aurora-border-accent);
  border-radius: var(--aurora-radius-card, 16px);
}

body.aurora-storefront .aurora-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--aurora-radius-btn, 12px);
  background: rgba(8, 13, 30, 0.65);
  border: 1px solid var(--aurora-border);
  font-size: 11px;
  color: var(--txt2, rgba(237, 244, 255, 0.72));
  line-height: 1.35;
}

body.aurora-storefront .aurora-trust-item__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--acc, #00d4ff);
}

body.aurora-storefront .aurora-checkout-secure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--aurora-radius-card, 16px);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(212, 0, 255, 0.04));
  border: 1px solid var(--aurora-border-accent);
}

body.aurora-storefront .aurora-checkout-secure strong {
  display: block;
  font-size: 14px;
  color: var(--txt, #edf4ff);
  margin-bottom: 2px;
}

body.aurora-storefront .aurora-checkout-secure span {
  font-size: 12px;
  color: var(--aurora-text-muted);
}

body.aurora-storefront .aurora-stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--aurora-border);
  font-family: var(--font-m, monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt2, rgba(237, 244, 255, 0.72));
}

/* ── Premium gallery ── */
body.aurora-storefront .aurora-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.aurora-storefront .aurora-gallery__main {
  position: relative;
  background: linear-gradient(145deg, var(--bg-ch, #0b1228), var(--bg-c, #080d1e));
  border: 1px solid var(--aurora-border);
  border-radius: var(--aurora-radius-card, 16px);
  overflow: hidden;
  min-height: clamp(420px, 50vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--aurora-shadow-card);
}

body.aurora-storefront .aurora-gallery__zoom {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.aurora-storefront .aurora-gallery__main img {
  max-height: clamp(360px, 45vw, 480px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.aurora-storefront .aurora-gallery__main:hover img {
  transform: scale(1.12);
}

body.aurora-storefront .aurora-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.aurora-storefront .aurora-gallery__thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--aurora-radius-btn, 12px);
  background: var(--aurora-input-bg, #0b1228);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.aurora-storefront .aurora-gallery__thumb.is-active,
body.aurora-storefront .aurora-gallery__thumb:hover {
  border-color: var(--aurora-border-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

body.aurora-storefront .aurora-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

@media (max-width: 768px) {
  body.aurora-storefront.single-product .ProductDetail_gallery__Wo7d9,
  body.aurora-storefront.single-product .aurora-gallery {
    gap: 8px;
  }

  body.aurora-storefront.single-product .aurora-gallery__main {
    min-height: 0;
    padding: 8px 6px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  }

  body.aurora-storefront.single-product .aurora-gallery__main img {
    max-height: min(52vw, 240px);
    width: 100%;
  }

  body.aurora-storefront.single-product .aurora-gallery__thumb {
    width: 56px;
    height: 56px;
  }

  body.aurora-storefront.single-product .aurora-gallery__thumb img {
    padding: 4px;
  }
}

/* ── Sticky mobile ATC ── */
body.aurora-storefront .aurora-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99980;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 13, 30, 0.96);
  border-top: 1px solid var(--aurora-border-accent);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0.35s ease;
}

body.aurora-storefront .aurora-sticky-atc.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

body.aurora-storefront.aurora-drawer-open .aurora-sticky-atc {
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
}

body.aurora-storefront .aurora-sticky-atc__inner {
  max-width: var(--site-max, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

body.aurora-storefront .aurora-sticky-atc__meta {
  min-width: 0;
}

body.aurora-storefront .aurora-sticky-atc__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt, #edf4ff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
    text-align: center !important;
}

body.aurora-storefront .aurora-sticky-atc__price {
  font-family: var(--font-d, "Bebas Neue", sans-serif);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--acc, #00d4ff);
text-align: center !important;
}

body.aurora-storefront .aurora-sticky-atc__btn {
  min-width: 140px;
  white-space: nowrap;
}

/* ── Recently viewed ── */
body.aurora-storefront .aurora-recently-viewed {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--aurora-border);
}

body.aurora-storefront .aurora-recently-viewed__title {
  font-family: var(--font-d, "Bebas Neue", sans-serif);
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: 0.06em;
  margin-bottom: clamp(20px, 3vw, 28px);
  color: var(--txt, #edf4ff);
}

/* ── Premium empty states ── */
body.aurora-storefront .aurora-empty-premium {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) clamp(24px, 4vw, 40px);
  background: var(--aurora-surface);
  border: 1px dashed var(--aurora-border-accent);
  border-radius: var(--aurora-radius-card, 16px);
  margin: clamp(24px, 4vw, 40px) 0;
}

body.aurora-storefront .aurora-empty-premium__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--acc, #00d4ff);
  font-size: 32px;
}

body.aurora-storefront .aurora-empty-premium h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
}

body.aurora-storefront .aurora-empty-premium p {
  max-width: 420px;
  margin: 0 auto 24px;
  font-size: var(--aurora-body-sm, 14px);
  color: var(--aurora-text-muted);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  body.aurora-storefront .aurora-trust-strip--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) {
  body.aurora-storefront #nav > .container > ul,
  body.aurora-storefront #nav .aurora-nav-has-mega {
    overflow: visible;
  }

  body.aurora-storefront .aurora-sticky-atc {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.aurora-storefront .aurora-mega-menu {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body.aurora-storefront .aurora-trust-strip--grid {
    grid-template-columns: 1fr;
  }

  body.aurora-storefront .aurora-sticky-atc__inner {
    grid-template-columns: 1fr;
  }

  body.aurora-storefront .aurora-sticky-atc__btn {
    width: 100%;
  }
}
