/*
Theme Name: Great Espresso
Author: Stylogenix
Author URI: https://stylogenix.com
Description: A custom WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========== Theme Styles Start ========== */

*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Theme Colors */
:root {
  /* Core brand palette */
  --color-primary: #bbdb5c; /* Main brand highlight */
  --color-accent: #f68d41; /* Secondary accent */
  --color-base: #1a1a1a; /* Main background */
  --color-surface: #2a2a2a; /* Elevated surfaces */
  --color-base-opposite: #ffffff; /* Primary text/light */

  /* Supporting palette */
  --color-accent-opposite: #f5deb3; /* Light accent */
  --color-border: #d2691e; /* Border tone */

  /* Overlays and utilities */
  --overlay-40: rgba(26, 26, 26, 0.4); /* Overlay dark */
  --overlay-96: rgba(26, 26, 26, 0.96); /* Menu overlay */

  /* Neutral opacities on light base */
  --neutral-04: rgba(220, 220, 220, 0.04);
  --neutral-06: rgba(220, 220, 220, 0.06);
  --neutral-08: rgba(220, 220, 220, 0.08);
  --neutral-10: rgba(220, 220, 220, 0.1);
  --neutral-30: rgba(220, 220, 220, 0.3);
  --neutral-60: rgba(220, 220, 220, 0.6);
  --neutral-12: rgba(220, 220, 220, 0.12);
}

/* Upright (normal) */
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter/Inter-VariableFont_opsz\,wght.ttf")
    format("truetype-variations");
  font-weight: 100 900; /* variable range */
  font-style: normal;
  font-display: swap;
}

/* Italic */
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter/Inter-Italic-VariableFont_opsz,wght.ttf")
    format("truetype-variations");
  font-weight: 100 900; /* variable range */
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Macondo";
  src: url("./fonts/macondo/MacondoSwashCaps-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 400; /* normal */
  background-color: var(--color-base);
  color: var(--color-base-opposite);
}

h1 {
  font-family: "Inter", sans-serif;
  font-weight: 700; /* bold */
}

em {
  font-family: "Inter", sans-serif;
  font-style: italic;
}

#front h1,
#front h2,
#front h3 {
  color: var(--color-primary);
  font-size: 2.4rem;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
}

a {
  color: var(--color-primary);
}
a:hover {
  color: var(--color-accent);
}

header {
  position: absolute; /* on top of hero */
  top: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  background: var(--overlay-40); /* optional overlay effect */
  z-index: 10; /* above hero */
  color: var(--color-surface);
}

/* ----- TOP HEADER ----- */

#topHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 20px;
  /* Fallback for very old browsers */
  background-color: var(--color-primary);

  /* Old vendor prefixes (rarely needed today) */
  background: -moz-linear-gradient(top, orange, yellow); /* Firefox 3.6–15 */
  background: -webkit-linear-gradient(
    top,
    orange,
    yellow
  ); /* Chrome 10–25, Safari 5.1–6 */

  /* Standard syntax (modern browsers) */
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    var(--color-primary)
  );
  min-height: 50px;
  gap: 12px; /* breathing room between groups */
  flex-wrap: nowrap; /* no wrap on desktop */
}
#topHeader i {
  display: inline-block;
  vertical-align: middle;
  height: 15px;
}

#topHeader i:hover,
#topHeader a:hover {
  text-shadow: 0 2px 8px var(--color-surface);
}

.intro-heading {
  font-family: "Macondo", cursive;
  font-weight: normal;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
}

.btn-bl {
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.5em 1.5em;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-bl:hover,
.btn-bl:focus {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 8px 2px var(--color-accent);
}

/* Glightbox Styles */
.gbtn:hover,
.gbtn:focus {
  color: var(--color-accent);
  box-shadow: 0 0 8px 2px var(--color-accent);
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap; /* keep icon + text on one line */
  min-width: 0;
}
.header-right a {
  font-size: 18px;
}

.header-left a,
.header-center a,
.header-right a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.x-social-icon {
  width: 22px;
  height: 17px;
  display: inline-block;
}

/* ----- SECOND ROW: MENU + LOGO ----- */
.header-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  min-height: 68px; /* room for centered logo */
}

#leftHeader {
  flex: 0 0 auto; /* only as wide as needed */
  display: flex;
  align-items: center;
}

#centerHeader {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.site-logo {
  font-family: "Macondo", cursive;
  text-decoration: none;
  max-height: 60px;
  height: auto;
  width: auto;
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 8px var(--color-accent));
}

.site-logo:hover {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- MENU TOGGLE BUTTON ----- */
/* --- Toggle Button --- */
#menuToggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  color: var(--color-base-opposite);
  font-size: 20px;
}
#menuToggle:hover {
  color: var(--color-accent);
}

/* --- Dropdown Menu --- */
#dropdownMenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--overlay-96);
  backdrop-filter: blur(8px);
  padding: 10px 12px;
  border-top: 1px solid var(--neutral-08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 1000;
}
#dropdownMenu.menu-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* --- Menu Links --- */
#dropdownMenu a {
  display: flex;
  justify-content: space-between; /* text left, arrow right */
  align-items: center;
  padding: 12px 14px;
  margin: 6px 0;
  color: var(--color-base-opposite);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  background: var(--neutral-04);
  border: 1px solid var(--neutral-06);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#dropdownMenu.menu-open a {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hover Effects --- */
#dropdownMenu a:hover,
#dropdownMenu a:focus-visible {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(0) translateX(4px);
}

#dropdownMenu a:hover .submenu-arrow,
#dropdownMenu a:focus-visible .submenu-arrow {
  color: var(--color-base); /* arrow turns black too */
}

/* --- Submenu Arrow --- */
.submenu-arrow {
  margin-left: 8px; /* small consistent gap */
  flex-shrink: 0; /* arrow never shrinks */
  font-size: 14px;
  font-weight: 900;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

/* rotate arrow when submenu is open */
.menu-item.submenu-open > a .submenu-arrow {
  transform: rotate(90deg);
}

/* --- Submenu --- */
.sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid var(--neutral-08);
  padding: 10px;
  display: none;
  min-width: 180px;
  z-index: 1001;
}
.menu-item.submenu-open > .sub-menu {
  display: block;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  #dropdownMenu,
  #dropdownMenu a {
    transition: none !important;
    transform: none !important;
  }
}

/* === OVERLAY HARDENED RULES (keep at end of CSS) === */
#hero,
#bg-black,
#night-flowers {
  position: fixed;
  top: 50px; /* matches your header offset */
  left: 0;
  width: 100vw;
  height: calc(100vh - 50px);
  pointer-events: none; /* never block clicks/scroll */
}

#hero {
  z-index: -3;
  opacity: 1;
}
#bg-black {
  z-index: -2;
  background: var(--color-base);
  opacity: 0;
}
#night-flowers {
  z-index: -1;
  opacity: 0;
}
#night-flowers .night {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#hero,
#bg-black,
#night-flowers {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* bg-black background animation */
@keyframes move {
  100% {
    transform: translate3d(0, 0, 1px) rotate(360deg);
  }
}

#bg-black span {
  width: 20vmin;
  height: 20vmin;
  border-radius: 20vmin;
  backface-visibility: hidden;
  position: absolute;
  animation: move infinite linear;
}

#bg-black span:nth-child(0) {
  color: #e45a84;
  top: 28%;
  left: 98%;
  animation-duration: 13s;
  animation-delay: -27s;
  transform-origin: 8vw -18vh;
  box-shadow: -40vmin 0 5.832625994894819vmin currentColor;
}
#bg-black span:nth-child(1) {
  color: #583c87;
  top: 22%;
  left: 18%;
  animation-duration: 46s;
  animation-delay: -44s;
  transform-origin: 25vw 1vh;
  box-shadow: 40vmin 0 5.243212820397528vmin currentColor;
}
#bg-black span:nth-child(2) {
  color: #e45a84;
  top: 62%;
  left: 45%;
  animation-duration: 45s;
  animation-delay: -1s;
  transform-origin: -4vw 16vh;
  box-shadow: 40vmin 0 5.301960177120123vmin currentColor;
}
#bg-black span:nth-child(3) {
  color: #e45a84;
  top: 24%;
  left: 34%;
  animation-duration: 25s;
  animation-delay: -11s;
  transform-origin: -6vw 12vh;
  box-shadow: 40vmin 0 5.26215953967502vmin currentColor;
}
#bg-black span:nth-child(4) {
  color: #583c87;
  top: 11%;
  left: 84%;
  animation-duration: 33s;
  animation-delay: -9s;
  transform-origin: 0vw 13vh;
  box-shadow: -40vmin 0 5.3831596680098865vmin currentColor;
}
#bg-black span:nth-child(5) {
  color: #ffacac;
  top: 17%;
  left: 17%;
  animation-duration: 40s;
  animation-delay: -2s;
  transform-origin: -19vw 12vh;
  box-shadow: -40vmin 0 5.319103427309454vmin currentColor;
}
#bg-black span:nth-child(6) {
  color: #ffacac;
  top: 70%;
  left: 72%;
  animation-duration: 45s;
  animation-delay: -5s;
  transform-origin: 13vw -15vh;
  box-shadow: 40vmin 0 5.030489407321883vmin currentColor;
}
#bg-black span:nth-child(7) {
  color: #e45a84;
  top: 53%;
  left: 6%;
  animation-duration: 21s;
  animation-delay: -29s;
  transform-origin: 9vw -19vh;
  box-shadow: 40vmin 0 5.650397964134618vmin currentColor;
}
#bg-black span:nth-child(8) {
  color: #ffacac;
  top: 89%;
  left: 2%;
  animation-duration: 19s;
  animation-delay: -45s;
  transform-origin: -1vw -15vh;
  box-shadow: 40vmin 0 5.93641287121554vmin currentColor;
}
#bg-black span:nth-child(9) {
  color: #e45a84;
  top: 78%;
  left: 19%;
  animation-duration: 31s;
  animation-delay: -9s;
  transform-origin: 11vw 11vh;
  box-shadow: 40vmin 0 5.064181463269494vmin currentColor;
}
#bg-black span:nth-child(10) {
  color: #583c87;
  top: 60%;
  left: 55%;
  animation-duration: 8s;
  animation-delay: -9s;
  transform-origin: 6vw -3vh;
  box-shadow: -40vmin 0 5.182531042318945vmin currentColor;
}
#bg-black span:nth-child(11) {
  color: #ffacac;
  top: 64%;
  left: 93%;
  animation-duration: 36s;
  animation-delay: -28s;
  transform-origin: -2vw 2vh;
  box-shadow: 40vmin 0 5.744047170838879vmin currentColor;
}
#bg-black span:nth-child(12) {
  color: #583c87;
  top: 47%;
  left: 10%;
  animation-duration: 27s;
  animation-delay: -34s;
  transform-origin: -7vw 11vh;
  box-shadow: 40vmin 0 5.921338206495604vmin currentColor;
}
#bg-black span:nth-child(13) {
  color: #ffacac;
  top: 82%;
  left: 11%;
  animation-duration: 43s;
  animation-delay: -17s;
  transform-origin: -23vw -7vh;
  box-shadow: 40vmin 0 5.174356800090098vmin currentColor;
}
#bg-black span:nth-child(14) {
  color: #e45a84;
  top: 89%;
  left: 15%;
  animation-duration: 30s;
  animation-delay: -1s;
  transform-origin: 2vw 6vh;
  box-shadow: -40vmin 0 5.955921358047227vmin currentColor;
}
#bg-black span:nth-child(15) {
  color: #ffacac;
  top: 76%;
  left: 97%;
  animation-duration: 27s;
  animation-delay: -19s;
  transform-origin: -14vw 7vh;
  box-shadow: 40vmin 0 5.310807498403124vmin currentColor;
}
#bg-black span:nth-child(16) {
  color: #583c87;
  top: 55%;
  left: 94%;
  animation-duration: 16s;
  animation-delay: -2s;
  transform-origin: 20vw 5vh;
  box-shadow: 40vmin 0 5.332880872819791vmin currentColor;
}
#bg-black span:nth-child(17) {
  color: #583c87;
  top: 83%;
  left: 32%;
  animation-duration: 14s;
  animation-delay: -39s;
  transform-origin: -14vw 19vh;
  box-shadow: 40vmin 0 5.070149957693152vmin currentColor;
}
#bg-black span:nth-child(18) {
  color: #583c87;
  top: 56%;
  left: 96%;
  animation-duration: 41s;
  animation-delay: -31s;
  transform-origin: 18vw -8vh;
  box-shadow: 40vmin 0 5.228229474589251vmin currentColor;
}
#bg-black span:nth-child(19) {
  color: #e45a84;
  top: 39%;
  left: 87%;
  animation-duration: 11s;
  animation-delay: -14s;
  transform-origin: 24vw -8vh;
  box-shadow: -40vmin 0 5.816075898033304vmin currentColor;
}

/* ---------- Root container ---------- */
#night-flowers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--dark-color);
  overflow: hidden;
  perspective: 1000px;
}

/* ---------- Night background ---------- */
.night {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  filter: blur(0.1vmin);
  background-image: radial-gradient(
      ellipse at top,
      transparent 0%,
      var(--dark-color)
    ),
    radial-gradient(
      ellipse at bottom,
      var(--dark-color),
      rgba(145, 233, 255, 0.2)
    ),
    repeating-linear-gradient(
      220deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    repeating-linear-gradient(
      189deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    repeating-linear-gradient(
      148deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    linear-gradient(90deg, rgb(0, 255, 250), rgb(240, 240, 240));
}

/* ---------- Flowers wrapper ---------- */
.flowers {
  position: relative;
  transform: scale(0.9);
}

/* ---------- Flower base ---------- */
.flower {
  position: absolute;
  bottom: 10vmin;
  transform-origin: bottom center;
  z-index: 10;
  --fl-speed: 0.8s;
}

/* ---------- Flower 1 ---------- */
.flower--1 {
  animation: moving-flower-1 4s linear infinite;
}
.flower--1 .flower__line {
  height: 70vmin;
  animation-delay: 0.3s;
}
.flower--1 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 1.6s backwards;
}
.flower--1 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 1.4s backwards;
}
.flower--1 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 1.2s backwards;
}
.flower--1 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 1s backwards;
}
.flower--1 .flower__line__leaf--5 {
  animation: blooming-leaf-right var(--fl-speed) 1.8s backwards;
}
.flower--1 .flower__line__leaf--6 {
  animation: blooming-leaf-left var(--fl-speed) 2s backwards;
}

/* ---------- Flower 2 ---------- */
.flower--2 {
  left: 50%;
  transform: rotate(20deg);
  animation: moving-flower-2 4s linear infinite;
}
.flower--2 .flower__line {
  height: 60vmin;
  animation-delay: 0.6s;
}
.flower--2 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 1.9s backwards;
}
.flower--2 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 1.7s backwards;
}
.flower--2 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 1.5s backwards;
}
.flower--2 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 1.3s backwards;
}

/* ---------- Flower 3 ---------- */
.flower--3 {
  left: 50%;
  transform: rotate(-15deg);
  animation: moving-flower-3 4s linear infinite;
}
.flower--3 .flower__line {
  animation-delay: 0.9s;
}
.flower--3 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 2.5s backwards;
}
.flower--3 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 2.3s backwards;
}
.flower--3 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 2.1s backwards;
}
.flower--3 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 1.9s backwards;
}

/* ---------- Flower head ---------- */
.flower__leafs {
  position: relative;
  animation: blooming-flower 2s backwards;
}
.flower__leafs--1 {
  animation-delay: 1.1s;
}
.flower__leafs--2 {
  animation-delay: 1.4s;
}
.flower__leafs--3 {
  animation-delay: 1.7s;
}

.flower__leafs::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  width: 8vmin;
  height: 8vmin;
  background-color: #6bf0ff;
  filter: blur(10vmin);
}

/* Petals */
.flower__leaf {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8vmin;
  height: 11vmin;
  border-radius: 51% 49% 47% 53% / 44% 45% 55% 69%;
  background-color: #a7ffee;
  background-image: linear-gradient(to top, #54b8aa, #a7ffee);
  transform-origin: bottom center;
  opacity: 0.9;
  box-shadow: inset 0 0 2vmin rgba(255, 255, 255, 0.5);
}
.flower__leaf--1 {
  transform: translate(-10%, 1%) rotateY(40deg) rotateX(-50deg);
}
.flower__leaf--2 {
  transform: translate(-50%, -4%) rotateX(40deg);
}
.flower__leaf--3 {
  transform: translate(-90%, 0%) rotateY(45deg) rotateX(50deg);
}
.flower__leaf--4 {
  width: 8vmin;
  height: 8vmin;
  transform-origin: bottom left;
  border-radius: 4vmin 10vmin 4vmin 4vmin;
  transform: translate(0%, 18%) rotateX(70deg) rotate(-43deg);
  background-image: linear-gradient(to top, #39c6d6, #a7ffee);
  z-index: 1;
  opacity: 0.8;
}

/* Center */
.flower__white-circle {
  position: absolute;
  left: -3.5vmin;
  top: -3vmin;
  width: 9vmin;
  height: 4vmin;
  border-radius: 50%;
  background-color: var(--color-base-opposite);
}
.flower__white-circle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      67.5deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      112.5deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      112.5deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      22.5deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      22.5deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      157.5deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      67.5deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      67.5deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(90deg, rgb(255, 235, 18), rgb(255, 206, 0));
}

/* ---------- Stem ---------- */
.flower__line {
  height: 55vmin;
  width: 1.5vmin;
  background-image: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.2),
      transparent,
      rgba(255, 255, 255, 0.2)
    ),
    linear-gradient(to top, transparent 10%, #14757a, #39c6d6);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
  animation: grow-flower-tree 4s backwards;
}
.flower__line__leaf {
  --w: 7vmin;
  --h: calc(var(--w) + 2vmin);
  position: absolute;
  top: 20%;
  left: 90%;
  width: var(--w);
  height: var(--h);
  border-top-right-radius: var(--h);
  border-bottom-left-radius: var(--h);
  background-image: linear-gradient(to top, rgba(20, 117, 122, 0.4), #39c6d6);
}
.flower__line__leaf--1 {
  transform: rotate(70deg) rotateY(30deg);
}
.flower__line__leaf--2 {
  top: 45%;
  transform: rotate(70deg) rotateY(30deg);
}
.flower__line__leaf--3,
.flower__line__leaf--4,
.flower__line__leaf--6 {
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: var(--h);
  border-bottom-right-radius: var(--h);
  left: -460%;
  top: 12%;
  transform: rotate(-70deg) rotateY(30deg);
}
.flower__line__leaf--4 {
  top: 40%;
}
.flower__line__leaf--5 {
  top: 0;
  transform-origin: left;
  transform: rotate(70deg) rotateY(30deg) scale(0.6);
}
.flower__line__leaf--6 {
  top: -2%;
  left: -450%;
  transform-origin: right;
  transform: rotate(-70deg) rotateY(30deg) scale(0.6);
}

/* ---------- Fireflies / lights ---------- */
.flower__light {
  position: absolute;
  bottom: 0vmin;
  width: 1vmin;
  height: 1vmin;
  background-color: rgb(255, 251, 0);
  border-radius: 50%;
  filter: blur(0.2vmin);
  animation: light-ans 4s linear infinite backwards;
}
.flower__light:nth-child(odd) {
  background-color: #23f0ff;
}
.flower__light--1 {
  left: -2vmin;
  animation-delay: 1s;
}
.flower__light--2 {
  left: 3vmin;
  animation-delay: 0.5s;
}
.flower__light--3 {
  left: -6vmin;
  animation-delay: 0.3s;
}
.flower__light--4 {
  left: 6vmin;
  animation-delay: 0.9s;
}
.flower__light--5 {
  left: -1vmin;
  animation-delay: 1.5s;
}
.flower__light--6 {
  left: -4vmin;
  animation-delay: 3s;
}
.flower__light--7 {
  left: 3vmin;
  animation-delay: 2s;
}
.flower__light--8 {
  left: -6vmin;
  animation-delay: 3.5s;
}

/* ---------- Grass clumps beside stem ---------- */
.flower__grass {
  --c: #159faa;
  --line-w: 1.5vmin;
  position: absolute;
  bottom: 12vmin;
  left: -7vmin;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 20;
  transform-origin: bottom center;
  transform: rotate(-48deg) rotateY(40deg);
}
.flower__grass--1 {
  animation: moving-grass 2s linear infinite;
}
.flower__grass--2 {
  left: 2vmin;
  bottom: 10vmin;
  transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg);
  opacity: 0.8;
  z-index: 0;
  animation: moving-grass--2 1.5s linear infinite;
}
.flower__grass--top {
  width: 7vmin;
  height: 10vmin;
  border-top-right-radius: 100%;
  border-right: var(--line-w) solid var(--c);
  transform-origin: bottom center;
  transform: rotate(-2deg);
}
.flower__grass--bottom {
  margin-top: -2px;
  width: var(--line-w);
  height: 25vmin;
  background-image: linear-gradient(to top, transparent, var(--c));
}

/* Grass leaves */
.flower__grass__leaf {
  --size: 10vmin;
  position: absolute;
  width: calc(var(--size) * 2.1);
  height: var(--size);
  border-top-left-radius: var(--size);
  border-top-right-radius: var(--size);
  background-image: linear-gradient(
    to top,
    transparent,
    transparent 30%,
    var(--c)
  );
  z-index: 100;
}
/* Individual leaves + animations (concrete durations) */
.flower__grass__leaf--1 {
  top: -6%;
  left: 30%;
  --size: 6vmin;
  transform: rotate(-20deg);
  animation: growing-grass-ans--1 2s 2.6s backwards;
}
@keyframes growing-grass-ans--1 {
  0% {
    transform-origin: bottom left;
    transform: rotate(-20deg) scale(0);
  }
}
.flower__grass__leaf--2 {
  top: -5%;
  left: -110%;
  --size: 6vmin;
  transform: rotate(10deg);
  animation: growing-grass-ans--2 2s 2.4s linear backwards;
}
@keyframes growing-grass-ans--2 {
  0% {
    transform-origin: bottom right;
    transform: rotate(10deg) scale(0);
  }
}
.flower__grass__leaf--3 {
  top: 5%;
  left: 60%;
  --size: 8vmin;
  transform: rotate(-18deg) rotateX(-20deg);
  animation: growing-grass-ans--3 2s 2.2s linear backwards;
}
@keyframes growing-grass-ans--3 {
  0% {
    transform-origin: bottom left;
    transform: rotate(-18deg) rotateX(-20deg) scale(0);
  }
}
.flower__grass__leaf--4 {
  top: 6%;
  left: -135%;
  --size: 8vmin;
  transform: rotate(2deg);
  animation: growing-grass-ans--4 2s 2s linear backwards;
}
@keyframes growing-grass-ans--4 {
  0% {
    transform-origin: bottom right;
    transform: rotate(2deg) scale(0);
  }
}
.flower__grass__leaf--5 {
  top: 20%;
  left: 60%;
  --size: 10vmin;
  transform: rotate(-24deg) rotateX(-20deg);
  animation: growing-grass-ans--5 2s 1.8s linear backwards;
}
@keyframes growing-grass-ans--5 {
  0% {
    transform-origin: bottom left;
    transform: rotate(-24deg) rotateX(-20deg) scale(0);
  }
}
.flower__grass__leaf--6 {
  top: 22%;
  left: -180%;
  --size: 10vmin;
  transform: rotate(10deg);
  animation: growing-grass-ans--6 2s 1.6s linear backwards;
}
@keyframes growing-grass-ans--6 {
  0% {
    transform-origin: bottom right;
    transform: rotate(10deg) scale(0);
  }
}
.flower__grass__leaf--7 {
  top: 39%;
  left: 70%;
  --size: 10vmin;
  transform: rotate(-10deg);
  animation: growing-grass-ans--7 2s 1.4s linear backwards;
}
@keyframes growing-grass-ans--7 {
  0% {
    transform-origin: bottom left;
    transform: rotate(-10deg) scale(0);
  }
}
.flower__grass__leaf--8 {
  top: 40%;
  left: -215%;
  --size: 11vmin;
  transform: rotate(10deg);
  animation: growing-grass-ans--8 2s 1.2s linear backwards;
}
@keyframes growing-grass-ans--8 {
  0% {
    transform-origin: bottom right;
    transform: rotate(10deg) scale(0);
  }
}

.flower__grass__overlay {
  position: absolute;
  top: -10%;
  right: 0%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  filter: blur(1.5vmin);
  z-index: 100;
}

/* ---------- Long grass (tall single blade) ---------- */
.flower__g-long {
  --w: 2vmin;
  --h: 6vmin;
  --c: #159faa;
  position: absolute;
  bottom: 10vmin;
  left: -3vmin;
  transform-origin: bottom center;
  transform: rotate(-30deg) rotateY(-20deg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  animation: flower-g-long-ans 3s linear infinite;
}
@keyframes flower-g-long-ans {
  0%,
  100% {
    transform: rotate(-30deg) rotateY(-20deg);
  }
  50% {
    transform: rotate(-32deg) rotateY(-20deg);
  }
}
.flower__g-long__top {
  top: calc(var(--h) * -1);
  width: calc(var(--w) + 1vmin);
  height: var(--h);
  border-top-right-radius: 100%;
  border-right: 0.7vmin solid var(--c);
  transform: translate(-0.7vmin, 1vmin);
}
.flower__g-long__bottom {
  width: var(--w);
  height: 50vmin;
  transform-origin: bottom center;
  background-image: linear-gradient(to top, transparent 30%, var(--c));
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
  clip-path: polygon(35% 0, 65% 1%, 100% 100%, 0% 100%);
}

/* ---------- Broad leaves on right ---------- */
.flower__g-right {
  position: absolute;
  bottom: 6vmin;
  left: -2vmin;
  transform-origin: bottom left;
  transform: rotate(20deg);
}
.flower__g-right .leaf {
  width: 30vmin;
  height: 50vmin;
  border-top-left-radius: 100%;
  border-left: 2vmin solid #079097;
  background-image: linear-gradient(
    to bottom,
    transparent,
    var(--dark-color) 60%
  );
  -webkit-mask-image: linear-gradient(to top, transparent 30%, #079097 60%);
  mask-image: linear-gradient(to top, transparent 30%, #079097 60%);
}
.flower__g-right--1 {
  animation: flower-g-right-ans 2.5s linear infinite;
}
.flower__g-right--2 {
  left: 5vmin;
  transform: rotateY(-180deg);
  animation: flower-g-right-ans--2 3s linear infinite;
}
.flower__g-right--2 .leaf {
  height: 75vmin;
  filter: blur(0.3vmin);
  opacity: 0.8;
}
@keyframes flower-g-right-ans {
  0%,
  100% {
    transform: rotate(20deg);
  }
  50% {
    transform: rotate(24deg) rotateX(-20deg);
  }
}
@keyframes flower-g-right-ans--2 {
  0%,
  100% {
    transform: rotateY(-180deg) rotate(0deg) rotateX(-20deg);
  }
  50% {
    transform: rotateY(-180deg) rotate(6deg) rotateX(-20deg);
  }
}

/* ---------- Front sprig with small leaves ---------- */
.flower__g-front {
  position: absolute;
  bottom: 6vmin;
  left: 2.5vmin;
  z-index: 100;
  transform-origin: bottom center;
  transform: rotate(-28deg) rotateY(30deg) scale(1.04);
  animation: flower__g-front-ans 2s linear infinite;
}
@keyframes flower__g-front-ans {
  0%,
  100% {
    transform: rotate(-28deg) rotateY(30deg) scale(1.04);
  }
  50% {
    transform: rotate(-35deg) rotateY(40deg) scale(1.04);
  }
}
.flower__g-front__line {
  width: 0.3vmin;
  height: 20vmin;
  background-image: linear-gradient(
    to top,
    transparent,
    #079097,
    transparent 100%
  );
  position: relative;
}

/* Leaf wrappers (left/right mirrored) */
.flower__g-front__leaf-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: bottom left;
  transform: rotate(10deg);
}
.flower__g-front__leaf-wrapper:nth-child(even) {
  left: 0vmin;
  transform: rotateY(-180deg) rotate(5deg);
  animation: flower__g-front__leaf-left-ans 1s ease-in backwards;
}
.flower__g-front__leaf-wrapper:nth-child(odd) {
  animation: flower__g-front__leaf-ans 1s ease-in backwards;
}
.flower__g-front__leaf-wrapper--1 {
  top: -8vmin;
  transform: scale(0.7);
  animation: flower__g-front__leaf-ans 1s 5.5s ease-in backwards !important;
}
.flower__g-front__leaf-wrapper--2 {
  top: -8vmin;
  transform: rotateY(-180deg) scale(0.7) !important;
  animation: flower__g-front__leaf-left-ans-2 1s 4.6s ease-in backwards !important;
}
.flower__g-front__leaf-wrapper--3 {
  top: -3vmin;
  animation: flower__g-front__leaf-ans 1s 4.6s ease-in backwards;
}
.flower__g-front__leaf-wrapper--4 {
  top: -3vmin;
  transform: rotateY(-180deg) scale(0.9) !important;
  animation: flower__g-front__leaf-left-ans-2 1s 4.6s ease-in backwards !important;
}
@keyframes flower__g-front__leaf-left-ans-2 {
  0% {
    transform: rotateY(-180deg) scale(0);
  }
}
.flower__g-front__leaf-wrapper--5,
.flower__g-front__leaf-wrapper--6 {
  top: 2vmin;
}
.flower__g-front__leaf-wrapper--7,
.flower__g-front__leaf-wrapper--8 {
  top: 6.5vmin;
}

.flower__g-front__leaf-wrapper--2 {
  animation-delay: 5.2s !important;
}
.flower__g-front__leaf-wrapper--3 {
  animation-delay: 4.9s !important;
}
.flower__g-front__leaf-wrapper--5 {
  animation-delay: 4.3s !important;
}
.flower__g-front__leaf-wrapper--6 {
  animation-delay: 4.1s !important;
}
.flower__g-front__leaf-wrapper--7 {
  animation-delay: 3.8s !important;
}
.flower__g-front__leaf-wrapper--8 {
  animation-delay: 3.5s !important;
}

@keyframes flower__g-front__leaf-ans {
  0% {
    transform: rotate(10deg) scale(0);
  }
}
@keyframes flower__g-front__leaf-left-ans {
  0% {
    transform: rotateY(-180deg) rotate(5deg) scale(0);
  }
}

/* Tiny front leaves */
.flower__g-front__leaf {
  width: 10vmin;
  height: 10vmin;
  border-radius: 100% 0% 0% 100% / 100% 100% 0% 0%;
  box-shadow: inset 0 2px 1vmin hsla(184, 97%, 58%, 0.2);
  background-image: linear-gradient(
      to bottom left,
      transparent,
      var(--dark-color)
    ),
    linear-gradient(to bottom right, #159faa 50%, transparent 50%, transparent);
  -webkit-mask-image: linear-gradient(
    to bottom right,
    #159faa 50%,
    transparent 50%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom right,
    #159faa 50%,
    transparent 50%,
    transparent
  );
}

/* ---------- Foreground reed group ---------- */
.flower__g-fr {
  position: absolute;
  bottom: -4vmin;
  left: vmin;
  transform-origin: bottom left;
  z-index: 10;
  animation: flower__g-fr-ans 2s linear infinite;
}
@keyframes flower__g-fr-ans {
  0%,
  100% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
.flower__g-fr .leaf {
  width: 30vmin;
  height: 50vmin;
  border-top-left-radius: 100%;
  border-left: 2vmin solid #079097;
  -webkit-mask-image: linear-gradient(to top, transparent 25%, #079097 50%);
  mask-image: linear-gradient(to top, transparent 25%, #079097 50%);
  position: relative;
  z-index: 1;
}
.flower__g-fr__leaf {
  position: absolute;
  top: 0;
  left: 0;
  width: 10vmin;
  height: 10vmin;
  border-radius: 100% 0% 0% 100% / 100% 100% 0% 0%;
  box-shadow: inset 0 2px 1vmin hsla(184, 97%, 58%, 0.2);
  background-image: linear-gradient(
      to bottom left,
      transparent,
      var(--dark-color) 98%
    ),
    linear-gradient(to bottom right, #23f0ff 45%, transparent 50%, transparent);
  -webkit-mask-image: linear-gradient(
    135deg,
    #159faa 40%,
    transparent 50%,
    transparent
  );
  mask-image: linear-gradient(
    135deg,
    #159faa 40%,
    transparent 50%,
    transparent
  );
}
/* individual tiny leaves */
.flower__g-fr__leaf--1 {
  left: 20vmin;
  transform: rotate(45deg);
  animation: flower__g-fr-leaft-ans-1 0.5s 5.2s linear backwards;
}
@keyframes flower__g-fr-leaft-ans-1 {
  0% {
    transform-origin: left;
    transform: rotate(45deg) scale(0);
  }
}
.flower__g-fr__leaf--2 {
  left: 12vmin;
  top: -7vmin;
  transform: rotate(25deg) rotateY(-180deg);
  animation: flower__g-fr-leaft-ans-6 0.5s 5s linear backwards;
}
.flower__g-fr__leaf--3 {
  left: 15vmin;
  top: 6vmin;
  transform: rotate(55deg);
  animation: flower__g-fr-leaft-ans-5 0.5s 4.8s linear backwards;
}
.flower__g-fr__leaf--4 {
  left: 6vmin;
  top: -2vmin;
  transform: rotate(25deg) rotateY(-180deg);
  animation: flower__g-fr-leaft-ans-6 0.5s 4.6s linear backwards;
}
.flower__g-fr__leaf--5 {
  left: 10vmin;
  top: 14vmin;
  transform: rotate(55deg);
  animation: flower__g-fr-leaft-ans-5 0.5s 4.4s linear backwards;
}
@keyframes flower__g-fr-leaft-ans-5 {
  0% {
    transform-origin: left;
    transform: rotate(55deg) scale(0);
  }
}
.flower__g-fr__leaf--6 {
  left: 0vmin;
  top: 6vmin;
  transform: rotate(25deg) rotateY(-180deg);
  animation: flower__g-fr-leaft-ans-6 0.5s 4.2s linear backwards;
}
@keyframes flower__g-fr-leaft-ans-6 {
  0% {
    transform-origin: right;
    transform: rotate(25deg) rotateY(-180deg) scale(0);
  }
}
.flower__g-fr__leaf--7 {
  left: 5vmin;
  top: 22vmin;
  transform: rotate(45deg);
  animation: flower__g-fr-leaft-ans-7 0.5s 4s linear backwards;
}
@keyframes flower__g-fr-leaft-ans-7 {
  0% {
    transform-origin: left;
    transform: rotate(45deg) scale(0);
  }
}
.flower__g-fr__leaf--8 {
  left: -4vmin;
  top: 15vmin;
  transform: rotate(15deg) rotateY(-180deg);
  animation: flower__g-fr-leaft-ans-8 0.5s 3.8s linear backwards;
}
@keyframes flower__g-fr-leaft-ans-8 {
  0% {
    transform-origin: right;
    transform: rotate(15deg) rotateY(-180deg) scale(0);
  }
}

/* ---------- Background long grass groups ---------- */
.long-g {
  position: absolute;
  bottom: 25vmin;
  left: -42vmin;
  transform-origin: bottom left;
}

/* long-g--1 */
.long-g--1 {
  bottom: 0vmin;
  transform: scale(0.8) rotate(-5deg);
}
.long-g--1 .leaf {
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 40%,
    #079097 80%
  ) !important;
  mask-image: linear-gradient(to top, transparent 40%, #079097 80%) !important;
}
.long-g--1 .leaf--1 {
  --w: 5vmin;
  --h: 60vmin;
  left: -2vmin;
  transform: rotate(3deg) rotateY(-180deg);
}

/* long-g--2 & long-g--3 (shared) */
.long-g--2,
.long-g--3 {
  bottom: -3vmin;
  left: -35vmin;
  transform-origin: center;
  transform: scale(0.6) rotateX(60deg);
}
.long-g--2 .leaf,
.long-g--3 .leaf {
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 50%,
    #079097 80%
  ) !important;
  mask-image: linear-gradient(to top, transparent 50%, #079097 80%) !important;
}
.long-g--2 .leaf--1,
.long-g--3 .leaf--1 {
  left: -1vmin;
  transform: rotateY(-180deg);
}

/* long-g--3 overrides */
.long-g--3 {
  left: -17vmin;
  bottom: 0vmin;
}
.long-g--3 .leaf {
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 40%,
    #079097 80%
  ) !important;
  mask-image: linear-gradient(to top, transparent 40%, #079097 80%) !important;
}

/* long-g--4 */
.long-g--4 {
  left: 25vmin;
  bottom: -3vmin;
  transform-origin: center;
  transform: scale(0.6) rotateX(60deg);
}
.long-g--4 .leaf {
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 50%,
    #079097 80%
  ) !important;
  mask-image: linear-gradient(to top, transparent 50%, #079097 80%) !important;
}

/* long-g--5/--6/--7 */
.long-g--5 {
  left: 42vmin;
  bottom: 0vmin;
  transform: scale(0.8) rotate(2deg);
}
.long-g--6 {
  left: 0vmin;
  bottom: -20vmin;
  z-index: 100;
  filter: blur(0.3vmin);
  transform: scale(0.8) rotate(2deg);
}
.long-g--7 {
  left: 35vmin;
  bottom: 20vmin;
  z-index: -1;
  filter: blur(0.3vmin);
  transform: scale(0.6) rotate(2deg);
  opacity: 0.7;
}

/* long-g leaves base */
.long-g .leaf {
  --w: 15vmin;
  --h: 40vmin;
  --c: #1aaa15;
  position: absolute;
  bottom: 0;
  width: var(--w);
  height: var(--h);
  border-top-left-radius: 100%;
  border-left: 2vmin solid var(--c);
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 20%,
    var(--dark-color)
  );
  mask-image: linear-gradient(to top, transparent 20%, var(--dark-color));
  transform-origin: bottom center;
}
.long-g .leaf--0 {
  left: 2vmin;
  animation: leaf-ans-1 4s linear infinite;
}
.long-g .leaf--1 {
  --w: 5vmin;
  --h: 60vmin;
  animation: leaf-ans-1 4s linear infinite;
}
.long-g .leaf--2 {
  --w: 10vmin;
  --h: 40vmin;
  left: -0.5vmin;
  bottom: 5vmin;
  transform-origin: bottom left;
  transform: rotateY(-180deg);
  animation: leaf-ans-2 3s linear infinite;
}
.long-g .leaf--3 {
  --w: 5vmin;
  --h: 30vmin;
  left: -1vmin;
  bottom: 3.2vmin;
  transform-origin: bottom left;
  transform: rotate(-10deg) rotateY(-180deg);
  animation: leaf-ans-3 3s linear infinite;
}

/* ---------- Generic grow helpers ---------- */
.grow-ans {
  animation: grow-ans 2s var(--d) backwards;
}
.growing-grass {
  animation: growing-grass-ans 1s 2s backwards;
}

/* ---------- Keyframes ---------- */
@keyframes leaf-ans-1 {
  0%,
  100% {
    transform: rotate(-5deg) scale(1);
  }
  50% {
    transform: rotate(5deg) scale(1.1);
  }
}
@keyframes leaf-ans-2 {
  0%,
  100% {
    transform: rotateY(-180deg) rotate(5deg);
  }
  50% {
    transform: rotateY(-180deg) rotate(0deg) scale(1.1);
  }
}
@keyframes leaf-ans-3 {
  0%,
  100% {
    transform: rotate(-10deg) rotateY(-180deg);
  }
  50% {
    transform: rotate(-20deg) rotateY(-180deg);
  }
}
@keyframes grow-ans {
  0% {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes light-ans {
  0% {
    opacity: 0;
    transform: translateY(0vmin);
  }
  25% {
    opacity: 1;
    transform: translateY(-5vmin) translateX(-2vmin);
  }
  50% {
    opacity: 1;
    transform: translateY(-15vmin) translateX(2vmin);
    filter: blur(0.2vmin);
  }
  75% {
    transform: translateY(-20vmin) translateX(-2vmin);
    filter: blur(0.2vmin);
  }
  100% {
    opacity: 0;
    transform: translateY(-30vmin);
    filter: blur(1vmin);
  }
}
@keyframes moving-flower-1 {
  0%,
  100% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-2deg);
  }
}
@keyframes moving-flower-2 {
  0%,
  100% {
    transform: rotate(18deg);
  }
  50% {
    transform: rotate(14deg);
  }
}
@keyframes moving-flower-3 {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(-20deg) rotateY(-10deg);
  }
}
@keyframes blooming-leaf-right {
  0% {
    transform-origin: left;
    transform: rotate(70deg) rotateY(30deg) scale(0);
  }
}
@keyframes blooming-leaf-left {
  0% {
    transform-origin: right;
    transform: rotate(-70deg) rotateY(30deg) scale(0);
  }
}
@keyframes grow-flower-tree {
  0% {
    height: 0;
    border-radius: 1vmin;
  }
}
@keyframes blooming-flower {
  0% {
    transform: scale(0);
  }
}
@keyframes moving-grass {
  0%,
  100% {
    transform: rotate(-48deg) rotateY(40deg);
  }
  50% {
    transform: rotate(-50deg) rotateY(40deg);
  }
}
@keyframes moving-grass--2 {
  0%,
  100% {
    transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg);
  }
  50% {
    transform: scale(0.5) rotate(79deg) rotateX(10deg) rotateY(-200deg);
  }
}
@keyframes growing-grass-ans {
  0% {
    transform: scale(0);
  }
}

/* ---------- Initial pause until JS removes .not-loaded ---------- */
.not-loaded * {
  animation-play-state: paused !important;
}

/* Video background */
#hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* maintain aspect ratio while filling */
  z-index: 0;
}

/* Hero text content */
.hero-content {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 300px;

  transform: translateX(
    -50%
  ) !important; /* only correct horizontal centering */
  color: var(--color-base-opposite);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

/* Optional overlay for contrast */
#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-40); /* dark overlay */
  z-index: 0;
}

/* Smooth entrance for h2 and arrows container */
.hero-content h4 {
  font-size: 1rem;
  text-align: center;
}
.hero-content h4,
.hero-content .scroll-arrows {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards; /* slower than before */
}

/* Delay arrows slightly after h2 */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- SCROLL ARROWS ----- */

.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.scroll-arrows span {
  width: 15px;
  height: 15px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(-45deg);
  margin: 3px 0;
  animation: arrowBounce 1.5s infinite;
}

.scroll-arrows span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-arrows span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Bounce Animation - Down Arrows */
@keyframes arrowBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(-45deg);
    opacity: 1;
  }
  40% {
    transform: translateY(6px) rotate(-45deg);
    opacity: 0.8;
  }
  60% {
    transform: translateY(3px) rotate(-45deg);
    opacity: 0.9;
  }
}

/* Bounce Animation - Up Arrows */
@keyframes arrowBounceUp {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(135deg);
    opacity: 1;
  }
  40% {
    transform: translateY(-6px) rotate(135deg);
    opacity: 0.8;
  }
  60% {
    transform: translateY(-3px) rotate(135deg);
    opacity: 0.9;
  }
}

/* ----- INTRO SECTION ----- */
#intro {
  text-align: center;
  margin-top: 100vh;
}

#intro h1 {
  text-align: center;
  color: var(--color-primary);
  font-size: 4rem;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.7); /* black with 70% opacity */
  border-radius: 18px;
  padding: 10px;
  width: fit-content;
  margin-left: 20vw;
  display: block;
}

#intro div {
  align-items: center;
  margin-bottom: 1rem;
  margin-left: 30vw;
  background: rgba(0, 0, 0, 0.7); /* black with 70% opacity */
  border-radius: 18px;
  border: 2px solid var(--color-base);
  padding: 10px;
  max-width: 600px;
  min-width: 300px;
}

#intro p {
  color: var(--color-base-opposite);
  font-size: 1.15rem;
  margin: 1rem;
}

#intro .btn-bl {
  margin-bottom: 10px;
}

/* ----- EXPERIENCES SECTION ----- */
#experiences {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 300px;
}

#experiences .experience-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden; /* ensures images also get rounded corners */
  background: var(--neutral-30); /* white with 30% opacity */
  margin-left: 40vw;
  margin-bottom: 20px;
  width: 300px;
  padding: 24px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: background 0.3s ease;
}

#experiences .experience-card:hover {
  background: var(--neutral-60); /* white with 60% opacity */
}

#experiences .experience-card img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

#experiences .experience-card h3 {
  font-family: "Macondo";
  color: var(--color-primary);
  font-size: 2rem;
  margin: 10px 0 8px;
}

#experiences .experience-card p {
  font-size: 1rem;
  color: var(--color-base-opposite);
  margin: 0;
}

/* ===== ABOUT SECTION ===== */
#about {
  width: 95%;
  margin: 400px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1024px 20px 20px 20px;
}

#about .about-content {
  max-width: 1024px;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* h2 */
#about .about-content h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-align: center;
  width: 100%;
}

/* Flex row for image + text */
#about .about-content .content-row {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* 🔥 make children equal height */
  gap: 2rem;
  width: 100%;
}

/* Left column (.about-image) */
#about .about-content .content-row .about-image {
  flex: 0 0 40%;
  max-width: 600px;
  min-width: 350px;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: row; /* img + subtitle inline */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05); /* optional visual balance */
  border-radius: 0.5rem;
  padding: 1rem;
}
#about .about-content .content-row .about-image img {
  max-width: 80%;
  min-width: 200px;
  border-radius: 0.5rem;
  display: block;
  -webkit-mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;

  mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}
#about .about-content .content-row .about-image p.about-bright {
  color: var(--color-primary);
  font-family: "Macondo", cursive;
  min-width: 140px;
  margin: 0 5px;
  text-align: center;
  font-size: 1.3rem;
}

/* Right column (.about-text) */
#about .about-content .about-text {
  flex: 1;
  max-width: 550px;
  display: flex; /* 🔥 equal height with image */
  flex-direction: column;
  justify-content: center; /* vertically centered */
}
#about .about-content .about-text p {
  color: var(--color-base-opposite);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 10px;
}
#about .about-content .about-text p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  #about .about-content .content-row {
    flex-direction: column;
    align-items: center;
  }
  #about .about-content .about-image,
  #about .about-content .about-text {
    max-width: 100%;
    min-width: unset;
  }
  #about .about-content .about-image {
    flex-direction: column; /* stack img + subtitle */
  }
}

/* ===== SHOP SECTION ===== */
#shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
}

#shop .shop-heading {
  color: var(--color-primary);
  font-size: 2.4rem;
  margin-bottom: 28px;
  text-align: center;
}

.product-grid {
  width: min(1080px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
  margin: 0 auto;
}

.product-card {
  background: var(--neutral-06);
  border: 1px solid var(--neutral-10);
  border-radius: 18px;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.product-card:hover {
  background: var(--neutral-10);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.product-image {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-base);
  margin-bottom: 12px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-title {
  font-size: 1.15rem;
  margin: 6px 0 4px;
  line-height: 1.3;
}

.product-title a {
  color: var(--color-primary);
  text-decoration: none;
}
.product-title a:hover {
  color: var(--color-accent);
}

.price {
  color: var(--color-base-opposite);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Button styled to echo your theme + Woo naming */
.product-card .button,
.product-card .add_to_cart_button {
  align-self: start;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.product-card .button:hover,
.product-card .add_to_cart_button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

/* ----- GALLERY SECTION ----- */

#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#gallery > a {
  flex: 0 0 auto;
  width: 300px;
  height: 300px;
  display: block; /* take full width of its box */
  text-align: center; /* center img if narrower */
  margin-left: 40vw; /* keeps parallax offset */
  display: block;
  justify-content: center; /* centers img inside */
}

#gallery > h2 {
  flex: 0 0 100%; /* force h2 onto its own row */
  text-align: center;
  margin-bottom: 20px;
}

#gallery > a > img {
  transform: translateX(-50%); /* pull image left by 50% of its width */
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  overflow: hidden; /* ensures images also get rounded corners */
  background: var(--neutral-30); /* white with 30% opacity */
  width: 300px;
  height: 300px;
  display: block; /* remove inline spacing */
  margin: 0 auto;
  padding: 24px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
#gallery > a > img:hover {
  background: var(--neutral-60); /* white with 60% opacity */
}

/* ===== SUBSCRIBE SECTION ===== */
#subscribe {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#subscribe .subscribe-content {
  flex: 1; /* fills the middle */
  display: flex;
  flex-direction: column;
  justify-content: center; /* center form + heading */
  align-items: center;
}

/* Content wrapper (title + form) */
#subscribe .subscribe-content {
  flex: 1; /* take available vertical space */
  display: flex;
  flex-direction: column;
  justify-content: center; /* center in available space */
  align-items: center;
  text-align: center;
}

#subscribe h2 {
  text-align: center;
  margin-bottom: 24px;
}

/* MailPoet form wrapper */
#subscribe .mailpoet_form {
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-bottom: 1.2rem;
}

#subscribe #mailpoet_form_1 .mailpoet_paragraph {
  width: 350px;
}

#subscribe #mailpoet_form_1 .mailpoet_paragraph.last {
  width: 150px;
}

/* Input fields */
#subscribe .mailpoet_text[type="email"] {
  display: block;
  width: 100% !important;
  margin-bottom: 16px !important;
  border-radius: 10px !important;
  border: 2px solid var(--color-base) !important;
  background: var(--color-base-opposite) !important;
  padding: 10px !important;
  text-align: center;
  font-size: 1rem !important;
  color: var(--color-base) !important;
}

/* Subscribe button */
#subscribe .mailpoet_submit {
  display: inline-block;
  width: auto;
  min-width: 140px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  ) !important;
  color: var(--color-base) !important;
  font-weight: 700;
  border: none !important;
  border-radius: 10px;
  padding: 12px 20px !important;
  font-size: 1rem !important;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 6px 14px var(--overlay-40);
}

/* Hover */
#subscribe .mailpoet_submit:hover {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-primary)
  ) !important;
  color: var(--color-base) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--overlay-40);
  filter: brightness(1.05);
}

/* Focus */
#subscribe .mailpoet_submit:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Hide MailPoet default labels (optional) */
#subscribe .mailpoet_text_label {
  display: none !important;
}

/* ===============================
   CONTACT FORM (WPForms overrides)
   Match styling with Subscribe form
   =============================== */

#subscribe .wpforms-container {
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-align: center;
  margin-top: 5px; /* spacing under newsletter */
}

/* Force full width container (override WPForms defaults) */
#subscribe #wpforms-379 {
  width: 350px !important;
  max-width: 350px !important;
}

#subscribe
  .subscribe-content
  .wpforms-container
  form.wpforms-validate
  .wpforms-field-container {
  width: 350px;
  max-width: 350px;
}

/* Inputs + Textarea (unify styles) */
#subscribe #wpforms-379 input[type="text"],
#subscribe #wpforms-379 input[type="email"],
#subscribe #wpforms-379 textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 10px !important;
  border: 2px solid var(--color-base) !important;
  background: var(--color-base-opposite) !important;
  padding: 10px !important;
  text-align: center;
  font-size: 1rem !important;
  color: var(--color-base) !important;
  box-sizing: border-box;
}

/* Textarea tweaks */
#subscribe #wpforms-379 textarea {
  height: 80px;
  resize: vertical;
}

/* Hide labels (to match MailPoet look) */
#subscribe #wpforms-379 .wpforms-field-label {
  display: none !important;
}

/* Submit button */
#subscribe #wpforms-379 button.wpforms-submit {
  display: inline-block;
  width: auto;
  min-width: 140px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  ) !important;
  color: var(--color-base) !important;
  font-weight: 700;
  border: none !important;
  border-radius: 10px;
  padding: 12px 20px !important;
  font-size: 1rem !important;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 6px 14px var(--overlay-40);
}

/* Hover */
#subscribe #wpforms-379 button.wpforms-submit:hover {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-primary)
  ) !important;
  color: var(--color-base) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--overlay-40);
  filter: brightness(1.05);
}

/* Focus */
#subscribe #wpforms-379 button.wpforms-submit:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ----- SECTIONS & FOOTER ----- */
section {
  min-height: 100vh;
  margin: 0;
}

footer {
  width: 100%;
  margin-top: auto; /* sticky at bottom */
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-base-opposite); /* default footer text */
  position: relative; /* ensure it participates in scroll flow */
}

footer .footer-link {
  font-weight: 700;
  text-decoration: none; /* no underline */
  transition: color 0.3s ease;
}

footer .footer-link:hover,
footer .footer-link:focus-visible {
  color: var(--color-accent); /* theme yellow */
}

/* ===== Back To Top Button ===== */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10%;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  ); /* yellow → orange */
  color: var(--color-base); /* icon color */
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Show state */
#backToTop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Hover effect */
#backToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

/* Focus accessibility */
#backToTop:focus {
  outline: 2px solid var(--color-base);
  outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  #backToTop {
    transition: none;
  }
}

/* --- Social icons: staggered reveal on load --- */
.header-right a {
  opacity: 0;
  transform: translateY(8px);
}

body.animate-icons .header-right a {
  animation: iconFadeIn 0.45s ease forwards;
  animation-delay: var(--icon-delay, 0s); /* set by JS */
}

@keyframes iconFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.animate-icons .header-right a {
  animation: iconFadeIn 0.45s ease forwards;
  animation-delay: var(--icon-delay, 0s); /* set by JS */
}

@keyframes iconFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   WOO DARK THEME — brand-only palette

   ============================================================ */

.woocommerce,
.woocommerce-page {
  background: var(--color-base);
  color: var(--color-base-opposite);
}

/* Links */

body.woocommerce-page #topHeader a {
  color: var(--color-base);
  text-decoration: none;
}

body.woocommerce-page #topHeader a:hover,
body.woocommerce-page #topHeader a:focus {
  color: var(--color-base);
}

.woocommerce a {
  color: var(--color-primary);
  text-decoration: none;
}
.woocommerce a:hover,
.woocommerce a:focus {
  color: var(--color-accent);
}

/* ------------------------------------------------------------
   Buttons (all variants)
   ------------------------------------------------------------ */

.woocommerce div.product form.cart div.quantity {
  margin: 1rem 4px 0 0;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
.woocommerce .added_to_cart {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 14px var(--overlay-40);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover,
.woocommerce .added_to_cart:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px var(--overlay-40);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base);
}

/* Disabled buttons */
.woocommerce .button.disabled,
.woocommerce .button:disabled,
.woocommerce .button:disabled[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* ------------------------------------------------------------
   Product Loop (archive)
   ------------------------------------------------------------ */
.woocommerce ul.products {
  margin: 0 auto;
}
.woocommerce ul.products li.product {
  background: var(--neutral-06);
  backdrop-filter: blur(6px);
  border: 1px solid var(--neutral-10);
  border-radius: 18px;
  overflow: hidden;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.woocommerce ul.products li.product:hover {
  background: var(--neutral-08);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--overlay-40);
}

/* Product thumbnails */
.woocommerce ul.products li.product a img {
  background: var(--color-base);
  border-radius: 12px;
  box-shadow: 0 6px 16px var(--overlay-40);
}

/* Titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  color: var(--color-primary);
  font-weight: 700;
}

/* Price */
.woocommerce ul.products li.product .price {
  color: var(--color-base-opposite);
  font-weight: 700;
}
.woocommerce ul.products li.product .price ins {
  color: var(--color-primary);
  text-decoration: none;
}
.woocommerce ul.products li.product .price del {
  color: var(--neutral-60);
}

/* Sale badge */
.woocommerce span.onsale {
  background: var(--color-accent);
  color: var(--color-base);
  border-radius: 999px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 10px;
  line-height: 48px;
  box-shadow: 0 6px 14px var(--overlay-40);
}

/* Ratings (stars) */
.woocommerce .star-rating,
.woocommerce .star-rating::before {
  color: var(--color-primary);
}
.woocommerce .woocommerce-product-rating .star-rating {
  margin-top: 6px;
}
.woocommerce p.stars a {
  color: var(--color-primary);
}

/* Add to cart in loop */
.woocommerce ul.products li.product .button {
  margin-top: 10px;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
  text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
  border: 1px solid var(--neutral-10);
  border-radius: 12px;
  overflow: hidden;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--color-primary);
  color: var(--color-base);
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: var(--neutral-06);
  color: var(--color-base-opposite);
  border-right: 1px solid var(--neutral-10);
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  color: var(--neutral-60);
}
.woocommerce-breadcrumb a {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   Single Product
   ------------------------------------------------------------ */
.single-product .product {
  color: var(--color-base-opposite);
}
.woocommerce div.product div.images img {
  background: var(--color-base);
  border-radius: 14px;
  box-shadow: 0 10px 24px var(--overlay-40);
}
.woocommerce div.product .product_title {
  color: var(--color-primary);
  font-weight: 800;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--color-base-opposite);
  font-weight: 700;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  color: var(--color-primary);
}

/* Variations / qty */
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  background: var(--neutral-06);
  border: 1px solid var(--neutral-10);
  color: var(--color-base-opposite);
}
.woocommerce div.product form.cart .reset_variations {
  color: var(--color-accent);
}
.woocommerce .quantity .qty {
  background: var(--color-base);
  color: var(--color-base-opposite);
  border: 1px solid var(--neutral-12);
  border-radius: 8px;
  height: 2em;
}

/* ------------------------------------------------------------
   Tabs (Description & Reviews)
   ------------------------------------------------------------ */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--neutral-10);
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--neutral-10);
  border-bottom: none; /* connect to content box */
  border-radius: 10px 10px 0 0;
  background: var(--color-surface);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--color-base-opposite);
  transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-color: var(--color-primary);
  background: var(--color-base);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover {
  border-color: var(--color-accent);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--color-accent);
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--neutral-04);
  border: 1px solid var(--neutral-10);
  border-radius: 0 10px 10px 10px;
  padding: 16px;
  margin-top: -1px; /* align seamlessly with tabs */
  color: var(--color-base-opposite);
}

/* ------------------------------------------------------------
   Related / Upsells headings
   ------------------------------------------------------------ */
.woocommerce .related > h2,
.woocommerce .upsells > h2 {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   Notices / Messages
   ------------------------------------------------------------ */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  background: var(--neutral-12);
  color: var(--color-primary);
  border-top: 3px solid var(--color-primary);
  border-radius: 12px;
}
.woocommerce-message a.button {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base);
}

/* ------------------------------------------------------------
   Forms / Inputs
   ------------------------------------------------------------ */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--color-base);
  color: var(--color-base-opposite);
  border: 1px solid var(--neutral-12);
  border-radius: 10px;
  padding: 10px 12px;
}
.woocommerce form .form-row input.input-text::placeholder,
.woocommerce form .form-row textarea::placeholder {
  color: var(--neutral-60);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: 2px solid var(--color-primary);
  border-color: var(--color-primary);
}

/* Select2 (Woo addresses, etc.) */
.select2-container--default .select2-selection--single {
  background: var(--color-base);
  color: var(--color-base-opposite);
  border: 1px solid var(--neutral-12);
  border-radius: 10px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: var(--color-base-opposite);
}
.select2-dropdown {
  background: var(--color-base);
  border: 1px solid var(--neutral-12);
}
.select2-results__option--highlighted[aria-selected] {
  background: var(--color-primary);
  color: var(--color-base);
}

/* ------------------------------------------------------------
   Cart Table
   ------------------------------------------------------------ */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
  background: var(--neutral-06);
  border: 1px solid var(--neutral-10);
  border-radius: 12px;
}
.woocommerce table.shop_table th {
  background: var(--neutral-10);
  color: var(--color-base-opposite);
}
.woocommerce table.shop_table td {
  border-top: 1px solid var(--neutral-10);
}
.woocommerce a.remove {
  color: var(--color-accent) !important;
}
.woocommerce a.remove:hover {
  color: var(--color-primary) !important;
  background: transparent !important;
}

/* Cart totals / order review */
.woocommerce .cart_totals h2,
.woocommerce .checkout h3 {
  color: var(--color-primary);
}
.woocommerce .order-total strong,
.woocommerce .cart-subtotal td,
.woocommerce .cart-subtotal th {
  color: var(--color-base-opposite);
}

/* Coupon area */
.woocommerce .coupon .input-text {
  background: var(--color-base);
  color: var(--color-base-opposite);
  border: 1px solid var(--neutral-12);
  border-radius: 8px;
}

/* Proceed to checkout button keeps brand */
.woocommerce a.checkout-button {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base);
  border-radius: 10px;
}

/* ------------------------------------------------------------
   Checkout
   ------------------------------------------------------------ */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  background: var(--neutral-06);
  border: 1px solid var(--neutral-10);
  border-radius: 12px;
  padding: 16px;
}
.woocommerce-checkout #payment {
  background: var(--neutral-06);
  border-radius: 12px;
}
.woocommerce-checkout #payment div.payment_box {
  background: var(--neutral-10);
  color: var(--color-base-opposite);
}
.woocommerce-checkout
  #payment
  ul.payment_methods
  li
  input[type="radio"]:checked
  + label {
  color: var(--color-primary);
}

/* Place order */
.woocommerce #place_order {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base);
  border-radius: 10px;
}

/* ------------------------------------------------------------
   Widgets (mini-cart, product lists, filters)
   ------------------------------------------------------------ */
.woocommerce .widget_shopping_cart,
.woocommerce .widget_products,
.woocommerce .widget_recently_viewed_products,
.woocommerce .widget_top_rated_products {
  background: var(--neutral-06);
  border: 1px solid var(--neutral-10);
  border-radius: 12px;
  color: var(--color-base-opposite);
}
.woocommerce .widget_shopping_cart .total {
  color: var(--color-primary);
}
.woocommerce .widget_shopping_cart .buttons a {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base);
  border-radius: 10px;
}

/* Price filter */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: var(--neutral-10);
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background: var(--color-primary);
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--color-accent);
  border: 2px solid var(--color-primary);
}
.woocommerce .widget_price_filter .price_label {
  color: var(--color-base-opposite);
}

/* Layered nav / active filters */
.woocommerce .widget_layered_nav ul li.chosen a,
.woocommerce .widget_layered_nav_filters ul li a {
  background: var(--color-primary);
  color: var(--color-base);
  border-radius: 999px;
}

/* ------------------------------------------------------------
   My Account / Tables / Nav
   ------------------------------------------------------------ */
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  background: var(--neutral-06);
  border: 1px solid var(--neutral-10);
  color: var(--color-base-opposite);
  border-radius: 10px;
  padding: 10px 12px;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  color: var(--color-base);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-color: transparent;
}

/* Tables */
.woocommerce table.my_account_orders,
.woocommerce table.shop_table_responsive {
  background: var(--neutral-06);
  border: 1px solid var(--neutral-10);
  border-radius: 12px;
}

/* ------------------------------------------------------------
   Misc
   ------------------------------------------------------------ */
.woocommerce.single-product span.onsale {
  top: 12px;
  left: 12px;
}

.woocommerce .qty-button,
.woocommerce .quantity button {
  background: var(--neutral-10);
  color: var(--color-base-opposite);
}

.woocommerce-invalid input.input-text {
  border-color: var(--color-accent);
}

.woocommerce .blockUI.blockOverlay {
  background: var(--neutral-12) !important;
}

.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
  border-radius: 12px;
}
/* ------------------------------------------------------------
   WooCommerce Add to Cart Buttons
   ------------------------------------------------------------ */

/* General Add to Cart buttons (loop + single) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .added_to_cart {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base) !important;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow: 0 6px 14px var(--overlay-40);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  cursor: pointer;
  width: auto; /* no full-width */
}

/* Hover state */
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .added_to_cart:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px var(--overlay-40);
  color: var(--color-base) !important;
}

/* "View cart" button (after adding to cart) */
.woocommerce a.added_to_cart {
  background: var(--color-surface) !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  margin-left: 8px;
  padding: 10px 18px;
}
.woocommerce a.added_to_cart:hover {
  background: var(--color-primary) !important;
  color: var(--color-base) !important;
  border-color: var(--color-primary);
}

/* Force inline buttons instead of stacked */
.woocommerce .product .button,
.woocommerce .product .added_to_cart {
  display: inline-block !important;
  margin-top: 8px;
}

/* ------------------------------------------------------------
   WooCommerce Variations (Color / Size Dropdowns)
   ------------------------------------------------------------ */
.woocommerce div.product form.cart .variations td select {
  background: var(--color-base);
  color: var(--color-base-opposite);
  border: 1px solid var(--neutral-30);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  transition: all 0.2s ease;
  appearance: none; /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
}

/* Add custom dropdown arrow */
.woocommerce div.product form.cart .variations td select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* On hover / focus */
.woocommerce div.product form.cart .variations td select:hover,
.woocommerce div.product form.cart .variations td select:focus {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  color: var(--color-primary);
}

/* Variation labels */
.woocommerce div.product form.cart .variations td.label {
  color: var(--color-primary);
  font-weight: 700;
  padding-right: 10px;
  text-transform: uppercase;
}

/* Reset link (Clear selection) */
.woocommerce div.product form.cart .reset_variations {
  color: var(--color-accent);
  font-weight: 600;
  margin-left: 8px;
  font-size: 0.9rem;
}
.woocommerce div.product form.cart .reset_variations:hover {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   WooCommerce Buttons (Coffee Theme)
   ------------------------------------------------------------ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
.woocommerce .added_to_cart {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-base) !important;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  line-height: 1.2;
  box-shadow: 0 6px 14px var(--overlay-40);
  transition: all 0.25s ease;
  text-align: center;
  text-transform: none;
}

/* Hover / focus */
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover,
.woocommerce .added_to_cart:hover {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-primary)
  );
  color: var(--color-base) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--overlay-40);
  filter: brightness(1.05);
}

/* Disabled buttons */
.woocommerce .button.disabled,
.woocommerce .button:disabled,
.woocommerce .button:disabled[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--neutral-06);
  color: var(--neutral-60) !important;
  transform: none;
  box-shadow: none;
}

/* "View cart" button after adding to cart */
.woocommerce a.added_to_cart {
  background: var(--color-surface);
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
  font-weight: 600;
  border-radius: 10px;
  margin-left: 6px;
  transition: all 0.2s ease;
}
.woocommerce a.added_to_cart:hover {
  background: var(--color-primary);
  color: var(--color-base) !important;
}

/* Coffee WooCommerce button hover override */
body.woocommerce a.button:hover,
body.woocommerce button.button:hover,
body.woocommerce input.button:hover,
body.woocommerce #respond input#submit:hover {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  ) !important;
  color: var(--color-base) !important;
  border: none !important;
  box-shadow: 0 8px 18px var(--overlay-40) !important;
  transform: translateY(-2px);
}

/* Default (desktop first) */
.woocommerce div.product form.cart div.quantity {
  float: left;
  margin: 1rem 4px 0 0;
}

/* Tablet: stack form/cart neatly */
@media (max-width: 1024px) {
  .woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .woocommerce div.product form.cart div.quantity {
    float: none;
    margin: 0;
    flex: 0 0 100px; /* keep quantity box a reasonable width */
  }

  .woocommerce div.product form.cart button.single_add_to_cart_button {
    flex: 1;
  }
}

/* Mobile: full-width controls */
@media (max-width: 768px) {
  .woocommerce div.product form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce div.product form.cart div.quantity,
  .woocommerce div.product form.cart button.single_add_to_cart_button {
    width: 100%;
    margin: 0 0 10px 0;
  }
}

/* Very small devices (phones < 480px) */
@media (max-width: 480px) {
  .woocommerce ul.products li.product {
    width: 100% !important; /* 1 product per row */
  }

  .woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
  }

  .woocommerce ul.products li.product .button {
    display: block;
    width: 100%;
    text-align: center;
  }
}
