/* ═══ Infinity Moons — Full Width / Elementor Breakout ═══ */

/* Same technique as infinity-header.html */
.im-infinity-breakout,
.im-page-hero--full {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
  overflow-x: clip;
}

/* Elementor — shortcode widget full bleed */
.elementor-widget-shortcode:has(.im-infinity-breakout) .elementor-widget-container,
.elementor-widget-shortcode:has(.im-plugin-root) .elementor-widget-container,
.elementor-widget:has(.im-infinity-breakout) .elementor-widget-container,
.elementor-widget:has(.im-plugin-root) .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.elementor-column:has(.im-infinity-breakout),
.elementor-column:has(.im-plugin-root) {
  width: 100% !important;
  max-width: 100% !important;
  --e-column-margin-left: 0px !important;
  --e-column-margin-right: 0px !important;
  --padding-left: 0px !important;
  --padding-right: 0px !important;
}

.elementor-container:has(.im-infinity-breakout),
.elementor-container:has(.im-plugin-root) {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.elementor-section:has(.im-infinity-breakout) > .elementor-container,
.elementor-section:has(.im-plugin-root) > .elementor-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.elementor-section:has(.im-infinity-breakout),
.elementor-section:has(.im-plugin-root) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Astra theme */
body.im-plugin-page .site-content,
body.im-plugin-page #primary,
body.im-plugin-page .entry-content,
body.im-plugin-page .ast-container,
body.im-plugin-page .site-main {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.im-plugin-page.ast-separate-container .site-content > .ast-container,
body.im-plugin-page .ast-separate-container .ast-article-single {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.im-plugin-page .entry-content > .im-infinity-breakout:first-child,
body.im-plugin-page .entry-content > .im-plugin-root:first-child {
  margin-top: 0 !important;
}

/* ── Header ↔ Hero gap remove ── */
body.im-plugin-page #content,
body.im-plugin-page .site-content,
body.im-plugin-page .site-main,
body.im-plugin-page .ast-separate-container #primary {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.elementor-section:has(.infinity-header) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.elementor-section:has(.infinity-header) + .elementor-section,
.elementor-section:has(.infinity-header) + .elementor-top-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.elementor-section:has(.im-page-hero),
.elementor-section:has(.im-infinity-breakout) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.im-page-hero,
.im-page-hero--full {
  margin-top: 0 !important;
}

body.im-plugin-page .entry-header,
body.im-plugin-page .ast-single-entry-banner,
body.im-plugin-page .ast-archive-description {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* WordPress block / classic editor */
body.im-plugin-page .wp-block-group,
body.im-plugin-page .alignwide,
body.im-plugin-page .alignfull {
  max-width: 100% !important;
}

.im-plugin-root {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.im-container--wide {
  max-width: 1400px;
}

/* Hero — no duplicate left:50% hack */
.im-page-hero--full {
  margin-top: 0 !important;
  padding-top: 48px;
  padding-bottom: 72px;
}

/* Lavender shop hero */
.im-page-hero--lavender {
  background: linear-gradient(135deg, #f3eef8 0%, #f0cce4 40%, #e8d4f0 70%, #f7eef8 100%);
  color: var(--im-purple);
}
.im-page-hero--lavender .im-page-hero-title { color: var(--im-purple); }
.im-page-hero--lavender .im-page-hero-sub { color: #5a4a6a; }
.im-page-hero--lavender .im-breadcrumb a { color: #7a7189; }
.im-page-hero--lavender .im-bc-current { color: var(--im-gold); }
.im-page-hero--lavender .im-page-hero-bg {
  background:
    radial-gradient(circle at 85% 40%, rgba(201, 162, 39, 0.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(48, 25, 80, 0.08), transparent 40%);
}

/* Purple checkout/cart hero */
.im-page-hero--purple {
  background: linear-gradient(135deg, var(--im-purple) 0%, var(--im-purple-mid) 50%, #4a2068 100%);
}

/* Hero grid layout */
.im-page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.im-page-hero--align-left .im-page-hero-inner { text-align: left; }
.im-page-hero--align-left .im-breadcrumb { justify-content: flex-start; }
.im-page-hero--align-center .im-page-hero-inner { text-align: center; }
.im-page-hero--align-center .im-breadcrumb { justify-content: center; }
.im-page-hero--align-center .im-page-hero-grid { grid-template-columns: 1fr; }

/* Animated moon */
.im-hero-moon {
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e6, #f0cce4 50%, rgba(201, 162, 39, 0.3));
  box-shadow: 0 0 60px rgba(201, 162, 39, 0.35), inset -12px -8px 20px rgba(48, 25, 80, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--im-gold);
  animation: imMoonFloat 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
.im-page-hero--purple .im-hero-moon {
  color: #fff8e6;
  background: radial-gradient(circle at 35% 35%, #fff8e6, #e8d4f0 60%, transparent);
  box-shadow: 0 0 80px rgba(240, 204, 228, 0.4);
}
@keyframes imMoonFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-58%) translateX(8px); }
}

/* Floating stars */
.im-hero-stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.im-star {
  position: absolute;
  color: var(--im-gold);
  font-size: 14px;
  opacity: 0.7;
  animation: imStarTwinkle 3s ease-in-out infinite;
}
.im-star-1 { top: 18%; left: 8%; animation-delay: 0s; }
.im-star-2 { top: 28%; right: 22%; animation-delay: 0.8s; font-size: 10px; }
.im-star-3 { bottom: 35%; left: 18%; animation-delay: 1.4s; }
.im-star-4 { top: 12%; right: 38%; animation-delay: 0.4s; font-size: 18px; }
.im-star-5 { bottom: 22%; right: 8%; animation-delay: 2s; font-size: 11px; }
@keyframes imStarTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Clouds */
.im-hero-cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(20px);
  pointer-events: none;
  animation: imCloudDrift 12s ease-in-out infinite;
}
.im-hero-cloud-1 { width: 180px; height: 60px; bottom: 30%; left: 5%; }
.im-hero-cloud-2 { width: 140px; height: 50px; top: 20%; right: 30%; animation-delay: -4s; }
@keyframes imCloudDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

.im-page-hero--lavender .im-hero-moon {
  right: 6%;
  top: 18%;
  transform: none;
  width: 100px;
  height: 100px;
  font-size: 40px;
  animation: imMoonFloatLavender 7s ease-in-out infinite;
}
@keyframes imMoonFloatLavender {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.im-page-hero--lavender .im-hero-products {
  justify-content: flex-end;
  padding-right: 2%;
}
.im-hero-products {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.im-hero-product-float {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(48, 25, 80, 0.18);
  border: 3px solid #fff;
  animation: imProductFloat 5s ease-in-out infinite;
}
.im-hero-product-float:nth-child(2) { width: 120px; height: 120px; animation-delay: -1.5s; margin-top: -20px; }
.im-hero-product-float:nth-child(3) { animation-delay: -3s; }
.im-hero-product-float img { width: 100%; height: 100%; object-fit: cover; }
@keyframes imProductFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.im-page-hero-wave path { fill: #faf8fc; }

/* ── Search bar (field + button) ── */
.im-search-bar {
  display: flex;
  align-items: stretch;
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}
.im-search-bar .im-search-input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border: 1.5px solid var(--im-border);
  border-right: none;
  border-radius: 50px 0 0 50px;
  font-size: 13px;
  font-family: var(--im-font);
  background: #fff;
  margin: 0;
}
.im-search-bar .im-search-input:focus {
  outline: none;
  border-color: var(--im-purple);
  box-shadow: inset 0 0 0 1px var(--im-purple);
}
.im-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  border: none;
  border-radius: 0 50px 50px 0;
  background: linear-gradient(135deg, var(--im-purple), var(--im-purple-mid));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--im-font);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.im-search-btn:hover { opacity: 0.92; }

/* Search dropdown results */
.im-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--im-border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(48, 25, 80, 0.15);
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
}
.im-search-dropdown--page {
  position: relative;
  top: 0;
  margin-bottom: 20px;
  max-height: none;
}
.im-search-results-list { padding: 8px; }
.im-search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.im-search-result-item:hover { background: var(--im-lavender); }
.im-search-result-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--im-border);
}
.im-search-result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--im-lavender);
  color: var(--im-muted);
}
.im-search-result-info { flex: 1; min-width: 0; }
.im-search-result-info strong {
  display: block;
  font-size: 13px;
  color: var(--im-purple);
  margin-bottom: 2px;
}
.im-search-result-info span {
  font-size: 14px;
  font-weight: 800;
  color: var(--im-gold);
}
.im-search-result-arrow { color: var(--im-muted); font-size: 12px; }
.im-search-no-results { padding: 20px; text-align: center; color: var(--im-muted); font-size: 13px; }

/* Shop toolbar */
.im-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.im-sort-select {
  padding: 11px 36px 11px 16px;
  border: 1.5px solid var(--im-border);
  border-radius: 50px;
  font-size: 13px;
  font-family: var(--im-font);
  color: var(--im-purple);
  font-weight: 600;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23301950' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  cursor: pointer;
  min-width: 160px;
}
.im-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

/* Price filter sidebar */
.im-price-filter-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--im-radius-sm);
  border: 1px solid var(--im-border);
  background: #fff;
}
.im-price-filter-box h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--im-purple);
  display: flex;
  align-items: center;
  gap: 8px;
}
.im-price-range {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--im-muted);
  margin-bottom: 8px;
}
.im-price-slider { width: 100%; accent-color: var(--im-purple); margin-bottom: 12px; }

.im-cat-filter a span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.im-cat-filter a span i {
  width: 18px;
  text-align: center;
  color: var(--im-gold);
  font-size: 13px;
}

/* Search page bar full width */
.im-search-bar--page {
  max-width: 100%;
  margin-bottom: 8px;
}
.im-search-bar--page .im-search-input { border-radius: 50px 0 0 50px; }

@media (max-width: 900px) {
  .im-page-hero-grid { grid-template-columns: 1fr; }
  .im-hero-products { display: none; }
  .im-hero-moon { right: 5%; width: 80px; height: 80px; font-size: 32px; }
  .im-page-hero--align-left .im-page-hero-inner { text-align: center; }
  .im-page-hero--align-left .im-breadcrumb { justify-content: center; }
  .im-toolbar-right { width: 100%; }
  .im-search-bar { max-width: 100%; }
  .im-sort-select { width: 100%; }
}

/* Hide old search icon overlap */
.im-shop-toolbar .im-search-wrap { display: none; }

@media (max-width: 768px) {
  .im-page-hero--full { padding-top: 32px; padding-bottom: 56px; }
}

/* ═══ Order Success Page ═══ */
.im-order-success-page .im-success-card {
  max-width: 620px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 48px 36px 40px;
  position: relative;
  overflow: hidden;
}
.im-success-visual {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
}
.im-success-check {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a7a45, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  z-index: 3;
  animation: imCheckPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 8px 32px rgba(26, 122, 69, 0.35);
}
@keyframes imCheckPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.im-success-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--im-gold);
  animation: imRingPulse 2s ease-in-out infinite;
}
@keyframes imRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 0.4; }
}
.im-craft-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--im-lavender);
  border: 1.5px solid var(--im-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--im-purple);
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(48, 25, 80, 0.12);
  animation: imCraftOrbit 4s ease-in-out infinite;
}
.im-craft-1 { top: -8px; left: 50%; margin-left: -20px; animation-delay: 0s; }
.im-craft-2 { top: 20%; right: -12px; animation-delay: -0.6s; }
.im-craft-3 { bottom: 10%; right: -8px; animation-delay: -1.2s; }
.im-craft-4 { bottom: -8px; left: 50%; margin-left: -20px; animation-delay: -1.8s; }
.im-craft-5 { bottom: 10%; left: -12px; animation-delay: -2.4s; }
.im-craft-6 { top: 20%; left: -12px; animation-delay: -3s; color: var(--im-gold); }
@keyframes imCraftOrbit {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(8deg); }
}
.im-success-sparkles { position: absolute; inset: -20px; pointer-events: none; }
.im-success-sparkles span { position: absolute; color: var(--im-gold); font-size: 12px; animation: imSparkle 2s ease-in-out infinite; }
.im-success-sparkles span:nth-child(1) { top: 10%; left: 5%; }
.im-success-sparkles span:nth-child(2) { top: 5%; right: 10%; animation-delay: 0.4s; }
.im-success-sparkles span:nth-child(3) { bottom: 15%; right: 5%; animation-delay: 0.8s; }
.im-success-sparkles span:nth-child(4) { bottom: 8%; left: 8%; animation-delay: 1.2s; font-size: 16px; }
.im-success-sparkles span:nth-child(5) { top: 40%; right: 0; animation-delay: 1.6s; }
@keyframes imSparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
.im-success-title {
  font-family: var(--im-serif);
  font-size: clamp(28px, 5vw, 36px);
  color: var(--im-purple);
  margin: 0 0 12px;
  animation: imFadeUp 0.6s ease 0.2s both;
}
.im-success-msg {
  color: var(--im-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  animation: imFadeUp 0.6s ease 0.35s both;
}
@keyframes imFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.im-success-order-id {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: var(--im-lavender);
  border: 1.5px solid var(--im-gold);
  border-radius: 14px;
  padding: 14px 28px;
  margin-bottom: 24px;
  animation: imFadeUp 0.6s ease 0.5s both;
}
.im-success-order-id span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--im-muted); font-weight: 600; }
.im-success-order-id strong { font-size: 18px; color: var(--im-purple); }
.im-success-steps-mini {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  animation: imFadeUp 0.6s ease 0.65s both;
}
.im-success-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f9f7fb;
  border: 1px solid var(--im-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--im-muted);
  min-width: 90px;
}
.im-success-step-item i { font-size: 20px; color: var(--im-purple); opacity: 0.5; }
.im-success-step-item.im-done { background: #e6f7ee; border-color: #8fd4a8; color: #1a5c32; }
.im-success-step-item.im-done i { color: #1a7a45; opacity: 1; }
.im-success-step-item.im-active { background: #e8f8ee; border-color: #25d366; color: #1a5c32; animation: imPulseSoft 2s ease infinite; }
.im-success-step-item.im-active i { color: #25d366; opacity: 1; }
@keyframes imPulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
}
.im-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto 20px;
  animation: imFadeUp 0.6s ease 0.8s both;
}
.im-pulse-btn { animation: imBtnPulse 2.5s ease-in-out infinite; }
@keyframes imBtnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.im-success-note {
  font-size: 12px;
  color: var(--im-muted);
  margin: 0;
  animation: imFadeUp 0.6s ease 0.95s both;
}
.im-success-note i { color: var(--im-gold); margin-right: 4px; }
@media (max-width: 768px) {
  .im-success-card { padding: 36px 20px 32px; }
  .im-success-steps-mini { gap: 8px; }
  .im-success-step-item { min-width: 80px; padding: 10px 8px; font-size: 10px; }
  .im-craft-icon { width: 34px; height: 34px; font-size: 13px; }
}
