/* Refined, low-amplitude motion for a premium feel. */
.premium-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.premium-ambient span {
  position: absolute;
  width: min(42vw, 38rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 167, 72, 0.12), rgba(126, 167, 72, 0) 68%);
  filter: blur(18px);
  opacity: 0.7;
  animation: premium-orbit 18s ease-in-out infinite alternate;
}

.premium-ambient span:nth-child(1) { top: -16%; left: -10%; }
.premium-ambient span:nth-child(2) { top: 34%; right: -16%; animation-delay: -6s; animation-duration: 23s; }
.premium-ambient span:nth-child(3) { bottom: -20%; left: 35%; animation-delay: -12s; animation-duration: 27s; }

@keyframes premium-orbit {
  from { transform: translate3d(-2%, -2%, 0) scale(0.92); }
  to { transform: translate3d(11%, 8%, 0) scale(1.12); }
}

#root,
.category-nav,
.category-main {
  position: relative;
  z-index: 1;
}

body.premium-motion-ready #root > nav,
body.premium-motion-ready .category-nav {
  animation: premium-nav-breathe 7s ease-in-out infinite;
}

@keyframes premium-nav-breathe {
  0%, 100% { box-shadow: 0 10px 28px rgba(39, 63, 20, 0.07); }
  50% { box-shadow: 0 16px 42px rgba(39, 63, 20, 0.13); }
}

.premium-reveal {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0) scale(0.992);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.premium-card-reveal {
  opacity: 0;
  transform: translate3d(0, 1.35rem, 0);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--motion-order, 0) * 90ms);
}

.premium-card-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-product-card,
.category-product-card,
.glass-card {
  isolation: isolate;
  overflow: hidden;
}

.home-product-card::after,
.category-product-card::after,
.glass-card::after {
  content: "";
  position: absolute;
  inset: -45% -90%;
  z-index: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.72) 50%, transparent 58%);
  transform: translateX(-42%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.home-product-card:hover::after,
.category-product-card:hover::after,
.glass-card:hover::after {
  opacity: 0.65;
  animation: premium-card-sheen 900ms ease-out both;
}

@keyframes premium-card-sheen {
  from { transform: translateX(-45%) rotate(8deg); }
  to { transform: translateX(45%) rotate(8deg); }
}

.home-product-image-wrap img,
.category-product-image img {
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 650ms ease !important;
}

.home-product-card:hover .home-product-image-wrap img,
.category-product-card:hover .category-product-image img {
  transform: translateY(-0.3rem) scale(1.055);
  filter: drop-shadow(0 1rem 1.2rem rgba(43, 70, 20, 0.12));
}

.home-product-card--wipes:hover .home-product-image-wrap img,
.category-product-card--wipes:hover .category-product-image img {
  transform: translateY(-0.2rem) scale(1.42);
}

.home-product-categories a,
.products-nav-button,
.category-explore,
.home-products-action a {
  position: relative;
  overflow: hidden;
}

.home-product-categories a::before,
.category-explore::before,
.home-products-action a::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 650ms ease;
  pointer-events: none;
}

.home-product-categories a:hover::before,
.category-explore:hover::before,
.home-products-action a:hover::before {
  left: 120%;
}

#about::after,
#features::after,
#home-products::after {
  content: "";
  position: absolute;
  width: clamp(15rem, 28vw, 28rem);
  aspect-ratio: 1;
  border: 1px solid rgba(77, 117, 38, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: premium-ring 12s ease-in-out infinite;
}

#about::after { top: 18%; right: -10%; }
#features::after { bottom: 8%; left: -10%; animation-delay: -4s; }
#home-products::after { top: 22%; right: -12%; animation-delay: -8s; }

@keyframes premium-ring {
  0%, 100% { opacity: 0.18; transform: scale(0.86); }
  50% { opacity: 0.55; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .premium-ambient span,
  body.premium-motion-ready #root > nav,
  body.premium-motion-ready .category-nav,
  #about::after,
  #features::after,
  #home-products::after {
    animation: none !important;
  }

  .premium-reveal,
  .premium-card-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Use the Explore Sizes treatment consistently on every button-style control. */
.premium-color-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  background-color: transparent !important;
  background-image: linear-gradient(110deg, #24480f 0%, #4f7b22 34%, #83ae43 50%, #3a6819 69%, #24480f 100%) !important;
  background-size: 240% 100% !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0.8rem 1.8rem rgba(46, 82, 18, 0.24), 0 0 0 rgba(121, 168, 58, 0) !important;
  animation: premium-button-gradient 5s ease-in-out infinite,
    premium-button-glow 3.2s ease-in-out infinite !important;
}

.premium-color-button::after {
  content: "" !important;
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -38%;
  width: 22%;
  display: block !important;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-20deg);
  animation: premium-button-sweep 3.8s ease-in-out infinite !important;
  pointer-events: none;
}

.premium-color-button:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 1rem 2.4rem rgba(46, 82, 18, 0.34), 0 0 2.2rem rgba(121, 168, 58, 0.22) !important;
  transform: translateY(-0.18rem) scale(1.025);
}

.premium-color-button[aria-current="page"],
.premium-color-button[aria-pressed="true"] {
  outline: 2px solid rgba(126, 174, 67, 0.52);
  outline-offset: 0.2rem;
}

.premium-cursor-glow,
.home-product-card::after,
.category-product-card::after,
.glass-card::after {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .premium-color-button,
  .premium-color-button::after {
    animation: none !important;
  }
}

/* More visible signature motion. */
.premium-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 34rem;
  height: 34rem;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 181, 74, 0.16), rgba(133, 181, 74, 0.055) 35%, transparent 70%);
  transform: translate3d(var(--glow-x, 50vw), var(--glow-y, 25vh), 0) translate(-50%, -50%);
  transition: transform 160ms ease-out;
  pointer-events: none;
  mix-blend-mode: multiply;
}

#about,
#features,
#home-products {
  position: relative;
  overflow: hidden;
}

.premium-section-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.premium-section-motion span {
  position: absolute;
  display: block;
  width: 7rem;
  height: 2.2rem;
  border: 1px solid rgba(69, 111, 28, 0.22);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(126, 171, 70, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 1rem 2.5rem rgba(58, 92, 25, 0.08);
  animation: premium-leaf-drift 11s ease-in-out infinite;
}

.premium-section-motion span:nth-child(1) { top: 14%; left: 5%; transform: rotate(-24deg); }
.premium-section-motion span:nth-child(2) { top: 32%; right: 7%; width: 5rem; animation-delay: -3.5s; animation-duration: 13s; }
.premium-section-motion span:nth-child(3) { bottom: 14%; left: 14%; width: 4.5rem; animation-delay: -7s; animation-duration: 15s; }

@keyframes premium-leaf-drift {
  0%, 100% { translate: 0 0; rotate: -5deg; opacity: 0.25; }
  35% { translate: 1.8rem -1.1rem; rotate: 12deg; opacity: 0.72; }
  70% { translate: -0.8rem 1.2rem; rotate: -10deg; opacity: 0.45; }
}

#about > :not(.premium-section-motion),
#features > :not(.premium-section-motion),
#home-products > :not(.premium-section-motion) {
  position: relative;
  z-index: 1;
}

#about h1 {
  color: transparent !important;
  background: linear-gradient(105deg, #19340d 18%, #4f7929 42%, #19340d 62%, #19340d 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: premium-title-shimmer 6s ease-in-out infinite;
}

@keyframes premium-title-shimmer {
  0%, 22%, 100% { background-position: 100% 50%; }
  60% { background-position: 0% 50%; }
}

.home-product-image-wrap,
.category-product-image {
  animation: premium-product-float 5.5s ease-in-out infinite;
}

.home-product-card:nth-child(2) .home-product-image-wrap,
.category-product-card:nth-child(2) .category-product-image { animation-delay: -1.8s; }

.home-product-card:nth-child(3) .home-product-image-wrap,
.category-product-card:nth-child(3) .category-product-image { animation-delay: -3.6s; }

@keyframes premium-product-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.7rem; }
}

.home-product-card,
.category-product-card {
  animation: premium-card-glow 5s ease-in-out infinite;
}

.home-product-card:nth-child(2),
.category-product-card:nth-child(2) { animation-delay: -1.7s; }

.home-product-card:nth-child(3),
.category-product-card:nth-child(3) { animation-delay: -3.4s; }

@keyframes premium-card-glow {
  0%, 100% { box-shadow: 0 1.5rem 3rem rgba(48, 73, 25, 0.07), 0 0 0 rgba(105, 151, 55, 0); }
  50% { box-shadow: 0 1.8rem 3.8rem rgba(48, 73, 25, 0.13), 0 0 2.5rem rgba(105, 151, 55, 0.1); }
}

@media (prefers-reduced-motion: reduce) {
  .premium-cursor-glow { display: none; }
  .premium-section-motion span,
  #about h1,
  .home-product-image-wrap,
  .category-product-image,
  .home-product-card,
  .category-product-card { animation: none !important; }
}

.premium-explore-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(110deg, #24480f 0%, #4f7b22 34%, #83ae43 50%, #3a6819 69%, #24480f 100%) !important;
  background-size: 240% 100% !important;
  color: #fff !important;
  box-shadow: 0 0.8rem 1.8rem rgba(46, 82, 18, 0.24), 0 0 0 rgba(121, 168, 58, 0) !important;
  animation: premium-button-gradient 5s ease-in-out infinite,
    premium-button-glow 3.2s ease-in-out infinite !important;
}

.premium-explore-button::after {
  content: "" !important;
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -38%;
  width: 22%;
  display: block !important;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-20deg);
  animation: premium-button-sweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.premium-explore-button:hover {
  background-position: 0% 50% !important;
  box-shadow: 0 1rem 2.4rem rgba(46, 82, 18, 0.34), 0 0 2.2rem rgba(121, 168, 58, 0.22) !important;
  transform: translateY(-0.18rem) scale(1.025);
}

@keyframes premium-button-gradient {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

@keyframes premium-button-glow {
  0%, 100% { box-shadow: 0 0.8rem 1.8rem rgba(46, 82, 18, 0.24), 0 0 0 rgba(121, 168, 58, 0); }
  50% { box-shadow: 0 1rem 2.3rem rgba(46, 82, 18, 0.34), 0 0 1.8rem rgba(121, 168, 58, 0.2); }
}

@keyframes premium-button-sweep {
  0%, 22% { left: -38%; opacity: 0; }
  34% { opacity: 0.9; }
  58%, 100% { left: 125%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-explore-button,
  .premium-explore-button::after {
    animation: none !important;
  }
}

.premium-color-title {
  color: transparent !important;
  background-image: linear-gradient(105deg, #17350b 8%, #3f701d 34%, #82ad43 50%, #315f16 68%, #17350b 92%) !important;
  background-size: 240% 100% !important;
  background-position: 100% 50%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: premium-title-shimmer 5.5s ease-in-out infinite !important;
}

.premium-color-button {
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease, color 220ms ease !important;
}

.premium-color-button:not(.premium-filled-button) {
  animation: premium-control-color 4.2s ease-in-out infinite !important;
}

.premium-color-button:not(.premium-filled-button):hover {
  color: #203f0f !important;
  text-shadow: 0 0 1.1rem rgba(113, 158, 56, 0.35);
  transform: translateY(-0.12rem);
}

.premium-filled-button {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background-color: transparent !important;
  background-image: linear-gradient(110deg, #24480f 0%, #4f7b22 34%, #83ae43 50%, #3a6819 69%, #24480f 100%) !important;
  background-size: 240% 100% !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0.7rem 1.7rem rgba(44, 77, 19, 0.22) !important;
  animation: premium-button-gradient 5s ease-in-out infinite,
    premium-button-glow 3.2s ease-in-out infinite !important;
}

.premium-filled-button:hover {
  color: #fff !important;
  transform: translateY(-0.15rem) scale(1.02);
}

@keyframes premium-control-color {
  0%, 100% { color: #264914; text-shadow: 0 0 0 rgba(111, 157, 55, 0); }
  50% { color: #76a43c; text-shadow: 0 0 1rem rgba(111, 157, 55, 0.24); }
}

@media (prefers-reduced-motion: reduce) {
  .premium-color-title,
  .premium-color-button,
  .premium-filled-button {
    animation: none !important;
  }
}
