/* Design tokens from cloth project */
:root {
  --header-height: 3rem;
  --header-bar-height: 4.25rem;
  --header-gap-below: clamp(0.75rem, 2vw, 1.25rem);
  --header-offset: calc(var(--header-bar-height) + var(--header-gap-below));
  --hue-color: 206;
  --black-color: hsl(var(--hue-color), 4%, 4%);
  --black-color-alt: hsl(var(--hue-color), 4%, 8%);
  --title-color: hsl(var(--hue-color), 4%, 95%);
  --text-color: hsl(var(--hue-color), 4%, 75%);
  --text-color-light: hsl(var(--hue-color), 4%, 65%);
  --white-color: #fff;
  --body-color: hsl(var(--hue-color), 4%, 6%);
  --container-color: hsl(var(--hue-color), 4%, 10%);
  --text-gradient: linear-gradient(
    hsl(var(--hue-color), 4%, 24%),
    hsl(var(--hue-color), 4%, 8%)
  );
  --scroll-thumb-color: hsl(var(--hue-color), 4%, 16%);
  --scroll-thumb-color-alt: hsl(var(--hue-color), 4%, 20%);
  --body-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --biggest-font-size: 5rem;
  --bigger-font-size: 3.5rem;
  --big-font-size: 2.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --font-medium: 500;
  --font-semi-bold: 600;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --text-line-height: 1.75rem;
  --z-tooltip: 10;
  --z-fixed: 100;
  --landing-max-width: 1040px;
  --landing-pad-inline: clamp(1rem, 4vw, 1.5rem);
  --landing-section-gap: clamp(2.5rem, 7vw, 4.5rem);
  --landing-title-gap: clamp(1.5rem, 3.5vw, 2.75rem);
  --landing-hero-offset: clamp(1.5rem, 4vw, 3rem);
  --page-content-offset: clamp(2rem, 5vw, 3.25rem);
  --footer-gap-above: clamp(3rem, 8vw, 5.5rem);
}

@media screen and (min-width: 1024px) {
  :root {
    --landing-max-width: 1100px;
  }
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 7.5rem;
    --bigger-font-size: 4.5rem;
    --big-font-size: 4rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-bar-height);
  height: 100%;
  scrollbar-color: var(--scroll-thumb-color) var(--body-color);
  scrollbar-width: thin;
}

body {
  min-height: 100%;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--body-color);
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--body-color);
  padding: var(--header-offset) 3rem var(--mb-2-5);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

/* Site shell — shared gutters across landing, shop, legal, cart, receipt */
.page--legal,
.page--contact,
.page--cart,
.page--wishlist,
.page--receipt,
.page--pay {
  min-height: 100vh;
  padding: var(--header-offset) 0 var(--mb-2-5);
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
}

.page--cart .cart-wrap,
.page--wishlist .cart-wrap,
.page--receipt .receipt-wrap,
.page--pay .pay-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.page--legal .main,
.page--contact .main,
.page--cart .main,
.page--wishlist .main,
.page--receipt .main,
.page--pay .main {
  flex: 0 1 auto;
  overflow: visible;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.page--legal .main.legal,
.page--contact .contact__container,
.page--cart .cart-wrap,
.page--wishlist .cart-wrap,
.page--receipt .receipt-wrap {
  width: 100%;
  max-width: var(--landing-max-width);
  margin-inline: auto;
  padding-inline: var(--landing-pad-inline);
  box-sizing: border-box;
}

/* Inner pages — extra space below fixed header before first content */
.page--shop .main > .section:first-child,
.page--legal .main.legal,
.page--contact .main.contact,
.page--cart .cart-wrap,
.page--wishlist .cart-wrap,
.page--receipt .receipt-wrap {
  padding-top: var(--page-content-offset);
}

.section {
  padding: 2rem 0 1rem;
}

.page--landing .section:not(.footer) {
  padding: 0;
  width: 100%;
}
/*=============== FOOTER (all pages) ===============*/
.footer.section {
  width: 100%;
  max-width: var(--landing-max-width);
  margin-inline: auto;
  margin-top: var(--footer-gap-above);
  padding-inline: var(--landing-pad-inline);
  padding-top: var(--mb-2);
  padding-bottom: var(--mb-2-5);
  border-top: 1px solid hsla(var(--hue-color), 4%, 100%, 0.12);
  box-sizing: border-box;
  overflow-x: hidden;
}

.footer__container.container {
  width: 100%;
  max-width: var(--landing-max-width);
  margin-inline: auto;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  -moz-column-gap: clamp(1.25rem, 3vw, 2.75rem);
       column-gap: clamp(1.25rem, 3vw, 2.75rem);
  row-gap: 2rem;
  align-items: start;
}

.footer__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer__col--brand {
  justify-content: flex-start;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  text-decoration: none;
}

.footer__logo .logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(239px, 100%);
  -o-object-fit: contain;
     object-fit: contain;
}

.footer__title {
  margin: 0 0 var(--mb-1);
  padding-top: 0.15rem;
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  line-height: 1.2;
  color: var(--title-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  color: var(--text-color);
  text-decoration: none;
}

.footer__link:hover,
.footer__link.footer__link--active {
  color: var(--white-color);
  font-weight: var(--font-medium);
}

.footer__form {
  display: flex;
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
  background-color: var(--container-color);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: var(--mb-2);
}

.footer__input {
  border: none;
  outline: none;
  background-color: var(--container-color);
  width: 90%;
  color: var(--white-color);
}

.footer__input::-moz-placeholder {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
}

.footer__input::placeholder {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  row-gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__contact li {
  font-size: var(--small-font-size);
  line-height: 1.5;
  color: var(--text-color);
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s;
}

.footer__contact-link:hover,
.footer__contact-link:focus-visible {
  color: var(--white-color);
}

.footer__contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.footer__contact-icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.footer__contact-label {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color-light);
  margin-right: 0.35rem;
}

.footer__contact .footer__link {
  word-break: break-word;
}

@media screen and (max-width: 900px) {
  .footer__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    -moz-column-gap: clamp(1.25rem, 4vw, 2rem);
         column-gap: clamp(1.25rem, 4vw, 2rem);
    row-gap: 1.5rem;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer__col--quick {
    grid-column: 1;
  }

  .footer__col--support {
    grid-column: 2;
  }

  .footer__col:not(.footer__col--brand):not(.footer__col--quick):not(.footer__col--support) {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  .footer__title {
    font-size: var(--normal-font-size);
    margin-bottom: 0.65rem;
  }

  .footer__link {
    font-size: var(--smaller-font-size);
  }

  .footer__contact li {
    font-size: var(--smaller-font-size);
  }

  .footer__copy {
    margin-top: 2rem;
    padding-inline: 0.25rem;
  }
}

@media screen and (max-width: 399px) {
  .footer__container {
    grid-template-columns: 1fr;
    row-gap: 1.35rem;
  }

  .footer__col--quick,
  .footer__col--support {
    grid-column: auto;
  }
}

.footer__copy {
  margin-top: 3rem;
  padding-top: var(--mb-2);
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  line-height: 1.6;
}

.footer__copy::before {
  content: "";
  display: block;
  width: min(52rem, 96%);
  height: 1px;
  margin: 0 auto var(--mb-1-5);
  background-color: hsla(var(--hue-color), 4%, 100%, 0.12);
}

.footer__copy-text,
.footer__copy-credit {
  display: inline;
}

.footer__copy-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s;
}

.footer__copy-link:hover {
  color: var(--title-color);
}

@media screen and (max-width: 767px) {
  .footer__copy-sep {
    display: none;
  }

  .footer__copy-credit {
    display: block;
    margin-top: 0.35rem;
  }
}

@media screen and (min-width: 1024px) {
  .footer .footer__container {
    padding-top: 0.5rem;
  }

  .footer__copy {
    margin-top: 3.5rem;
  }
}

/*=============== SCROLL UP (cloth) ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  background-color: var(--container-color);
  border-radius: 0.25rem;
  padding: 0.45rem;
  opacity: 0.9;
  z-index: var(--z-tooltip);
  transition: 0.4s;
  text-decoration: none;
}

.scrollup:hover {
  background-color: var(--black-color);
  opacity: 1;
}

.scrollup__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--white-color);
}

.scrollup.show-scroll {
  bottom: 5rem;
}

/*=============== SCROLL BAR (cloth) ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
}

::-webkit-scrollbar-track {
  background-color: var(--body-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll-thumb-color-alt);
}
/* Cloth layout: side margins only — no width:100% + margin (causes right overflow) */
.container {
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}
/* Header + nav (cloth-style) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* All pages: dark bar + bottom line only while scrolling */
.header.scroll-header {
  background-color: var(--body-color);
  border-bottom-color: hsla(var(--hue-color), 4%, 100%, 0.12);
}

/* Payment-link page should always show a solid header bar, even without scroll. */
.page--pay .header {
  background-color: var(--body-color);
  border-bottom-color: hsla(var(--hue-color), 4%, 100%, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mb-1);
  width: 100%;
  max-width: var(--landing-max-width);
  margin-inline: auto;
  min-height: var(--header-bar-height);
  padding: 0.5rem var(--landing-pad-inline);
  box-sizing: border-box;
}

.nav__logo.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 2.75rem;
}

.nav__logo picture,
.footer__logo picture {
  display: block;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(200px, 42vw);
  aspect-ratio: 239 / 44;
  -o-object-fit: contain;
     object-fit: contain;
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white-color);
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}

.nav__icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--text-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  transition: 0.4s;
}

.nav__link:hover {
  background: var(--white-color);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
  line-height: 1;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}

.nav__overlay {
  display: none;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Cloth — show menu */
.show-menu {
  top: 0;
}

.active-link {
  background: var(--white-color);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--mb-0-75);
  flex-shrink: 0;
  margin-left: auto;
}

@media screen and (max-width: 767px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    -moz-column-gap: 0.5rem;
         column-gap: 0.5rem;
    row-gap: 0;
    min-height: 3.25rem;
    padding-bottom: 0.35rem;
  }

  .nav__logo.logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .logo-img {
    height: 38px;
    max-width: min(180px, 58vw);
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    gap: 0;
  }

  .header-actions .wishlist-btn--header {
    display: none;
  }

  .nav__toggle {
    grid-column: 3;
    grid-row: 1;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
  }

  .nav__toggle:hover {
    opacity: 0.8;
  }

  .nav__toggle .nav__icon {
    width: 1.1rem;
    height: 1.1rem;
  }

  .nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background-color: hsla(var(--hue-color), 4%, 0%, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: calc(var(--z-fixed) + 5);
  }

  body.nav-open .nav__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__menu {
    display: block;
    position: fixed;
    background-color: var(--body-color);
    top: -100%;
    left: 0;
    width: 100%;
    padding: 4rem 0 3rem;
    transition: top 0.4s, transform 0.25s ease;
    z-index: calc(var(--z-fixed) + 10);
    overflow: visible;
    box-sizing: border-box;
  }

  .nav__menu.show-menu {
    top: 0;
  }

  .nav__list {
    row-gap: 1rem;
  }

  .nav__link {
    font-size: var(--h2-font-size);
    text-transform: uppercase;
    background: var(--text-gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    transition: 0.4s;
  }

  .nav__link:hover,
  .nav__link.active-link {
    background: var(--white-color);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }

  .cart-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .cart-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media screen and (min-width: 768px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr) auto;
    align-items: center;
    -moz-column-gap: clamp(0.75rem, 2vw, 1.5rem);
         column-gap: clamp(0.75rem, 2vw, 1.5rem);
    min-height: var(--header-bar-height);
    padding: 0.65rem var(--landing-pad-inline);
  }

  .nav__logo.logo {
    grid-column: 1;
    justify-self: start;
  }

  .logo-img {
    height: 42px;
    max-width: 200px;
  }

  .nav__menu {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-width: 36rem;
    min-height: 0;
    max-height: none;
    padding: 0;
    background: transparent;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
    z-index: auto;
    grid-column: 2;
    justify-self: center;
    display: flex;
    justify-content: center;
  }

  .nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    -moz-column-gap: clamp(1.25rem, 2.5vw, 2.75rem);
         column-gap: clamp(1.25rem, 2.5vw, 2.75rem);
    row-gap: 0;
  }

  .nav__link {
    font-size: var(--normal-font-size);
    text-transform: none;
    padding: 0.4rem 0.2rem;
    white-space: nowrap;
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    gap: 0.65rem;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__overlay {
    display: none !important;
  }

  body.nav-open {
    overflow: visible;
  }

  .header-actions .wishlist-btn--header {
    display: inline-flex;
  }

  .nav__item--wishlist {
    display: none;
  }
}

.icon-btn {
  background: none;
  border: none;
  color: var(--white-color);
  cursor: pointer;
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.icon-btn:hover {
  opacity: 0.75;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Cart button (header) */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--white-color);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, background-color 0.25s;
}

.cart-btn:hover {
  opacity: 0.8;
}

.cart-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--white-color);
  color: var(--black-color);
  font-size: 0.65rem;
  font-weight: var(--font-semi-bold);
  border-radius: 999px;
  line-height: 1;
}

.cart-badge--overflow {
  min-width: 1.35rem;
  padding: 0 0.2rem;
  font-size: 0.58rem;
}

/* Toast notifications (Toastify) */
.toastify.ic-toast {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.5rem;
  width: max-content !important;
  max-width: min(22rem, calc(100vw - 2rem)) !important;
  font-family: var(--body-font) !important;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: nowrap;
  top: 1.25rem !important;
  right: 1.25rem !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
}

.toastify.ic-toast .toast-close {
  align-self: center !important;
  margin-left: 0.35rem !important;
  padding: 0 0.15rem !important;
}

.ic-toast .toast-close {
  font-weight: 700 !important;
  opacity: 0.55 !important;
  color: inherit !important;
}

.ic-toast .toast-close:hover {
  opacity: 1 !important;
}

.cart-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  left: auto;
  bottom: auto;
  transform: none;
  width: max-content;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.75rem 1.25rem;
  background: var(--container-color);
  border: 1px solid var(--scroll-thumb-color-alt);
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  border-radius: 0.75rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.cart-toast.is-visible {
  opacity: 1;
}

.cart-flying-img {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  -o-object-fit: contain;
     object-fit: contain;
  animation: cartFly 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes cartFly {
  to {
    transform: translate(var(--left), var(--top)) scale(0.15);
    opacity: 0.2;
  }
}

.cart-btn--receiving {
  animation: cartReceive 0.4s ease;
}

.cart-btn--pulse {
  animation: cartBtnPulse 0.5s ease;
}

.cart-badge--pop {
  animation: cartBadgePop 0.5s ease;
}

.cart-btn.is-active {
  opacity: 1;
}

/* Wishlist button (header) */
.wishlist-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  color: var(--white-color);
  text-decoration: none;
  background: transparent;
  transition: opacity 0.2s, transform 0.2s, background-color 0.25s;
}

.wishlist-btn:hover {
  opacity: 0.8;
}

.wishlist-btn.is-active {
  opacity: 1;
}

.wishlist-btn svg {
  width: 20px;
  height: 20px;
}

.wishlist-btn.is-active svg {
  fill: var(--white-color);
}

.wishlist-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--white-color);
  color: var(--black-color);
  font-size: 0.65rem;
  font-weight: var(--font-semi-bold);
  border-radius: 999px;
  line-height: 1;
}

.wishlist-badge--overflow {
  min-width: 1.35rem;
  padding: 0 0.2rem;
  font-size: 0.58rem;
}

/*=============== BUTTON (shared) ===============*/
.button {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  transition: 0.3s;
}

.button:hover {
  background-color: var(--black-color-alt);
}

.button__icon,
.button__icon svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.button--flex {
  display: inline-flex;
  align-items: center;
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}

.btn-fav {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid hsla(var(--hue-color), 4%, 100%, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--white-color);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.btn-fav svg {
  display: block;
  width: 20px;
  height: 20px;
}

.btn-fav:hover {
  border-color: var(--white-color);
  transform: translateY(-2px);
}

.btn-fav.is-active {
  background-color: var(--white-color);
  border-color: var(--white-color);
  color: var(--black-color);
}

.btn-fav.is-active svg {
  fill: currentColor;
}

/* Color + size pickers (landing + shop) */
.color-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.color-swatch {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border-radius: 50%;
  border: 2px solid hsla(0, 0%, 100%, 0.22);
  background-color: var(--swatch, #888);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.18);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.color-swatch--dark {
  border-color: hsla(0, 0%, 100%, 0.5);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.35);
}

.color-swatch[data-color="Green"] {
  background-color: #6aad4e;
}

.color-swatch[data-color="Orange"] {
  background-color: #e85d24;
}

.color-swatch[data-color="Blue"] {
  background-color: #5eb3d6;
}

.color-swatch[data-color="Purple"] {
  background-color: #7b5ea8;
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-swatch.active {
  border-color: var(--white-color);
  box-shadow:
    inset 0 0 0 1px hsla(0, 0%, 100%, 0.25),
    0 0 0 2px var(--body-color),
    0 0 0 4px var(--white-color);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.size-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--scroll-thumb-color-alt);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.size-btn:hover {
  border-color: var(--text-color-light);
  color: var(--title-color);
}

.size-btn.active {
  background-color: var(--white-color);
  border-color: var(--white-color);
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
}

.color-swatch.is-out-of-stock,
.size-btn.is-out-of-stock {
  opacity: 0.35;
  cursor: not-allowed;
}

.color-swatch:disabled,
.size-btn:disabled {
  pointer-events: none;
}

@keyframes cartReceive {
  50% {
    transform: scale(1.08);
  }
}

@keyframes cartBtnPulse {
  50% {
    transform: scale(1.12);
  }
}

@keyframes cartBadgePop {
  50% {
    transform: scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-flying-img {
    display: none;
  }
}
/* Legal / policy pages */
.page--legal .main.legal {
  padding-top: var(--page-content-offset);
  padding-bottom: var(--landing-section-gap);
}

.page--legal .legal__content {
  max-width: 48rem;
}

.legal__title {
  margin: 0 0 var(--mb-1-5);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.legal__content {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: var(--text-line-height);
}

.legal__content p {
  margin: 0 0 var(--mb-1);
}

.legal__content h2 {
  margin: var(--mb-1-5) 0 var(--mb-0-75);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.legal__content h2:first-child {
  margin-top: 0;
}

.legal__content ul {
  margin: 0 0 var(--mb-1);
  padding-left: 1.25rem;
}

.legal__content ul li {
  margin-bottom: var(--mb-0-5);
}

.legal__content a {
  color: var(--title-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal__content a:hover {
  color: var(--text-color-light);
}

.legal__contact-box {
  margin: var(--mb-1-5) 0;
  padding: var(--mb-1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.legal__contact-box h3 {
  margin: 0 0 var(--mb-0-75);
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.legal__back {
  display: inline-block;
  margin-top: var(--mb-2);
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  text-decoration: none;
}

.legal__back:hover {
  color: var(--title-color);
}

.legal__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--mb-1);
}

.legal__contact-list li {
  margin-bottom: var(--mb-0-5);
}

.legal__contact-list a {
  color: var(--title-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Responsive — shared shell (header, footer gutters, store pages) */
@media (max-width: 900px) {
  .page {
    padding: var(--mb-1-5) var(--mb-1-5) var(--mb-2);
  }

  .page.page--landing,
  .page.page--shop,
  .page.page--legal,
  .page.page--contact,
  .page.page--cart,
  .page.page--wishlist,
  .page.page--receipt {
    padding: var(--header-offset) 0 var(--mb-2);
  }

  .nav {
    gap: var(--mb-1);
  }

  .header-actions {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .page {
    padding: var(--header-offset) var(--mb-1) var(--mb-1-5);
  }

  .page.page--landing,
  .page.page--shop,
  .page.page--legal,
  .page.page--contact,
  .page.page--cart,
  .page.page--wishlist,
  .page.page--receipt {
    padding: var(--header-offset) 0 var(--mb-1-5);
  }

  .nav {
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0.35rem var(--landing-pad-inline);
  }

  .logo-img {
    height: 34px;
    max-width: min(200px, 48vw);
  }

  .footer__logo .logo-img {
    height: 34px;
    max-width: min(200px, 90vw);
  }

  .header-actions {
    gap: 0.5rem;
    padding-left: 0.35rem;
  }

  .cart-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .cart-btn svg {
    width: 18px;
    height: 18px;
  }

  .icon-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .cart-badge {
    top: -2px;
    right: -2px;
    min-width: 0.95rem;
    height: 0.95rem;
    font-size: 0.58rem;
  }

  .wishlist-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .wishlist-btn svg {
    width: 18px;
    height: 18px;
  }

  .wishlist-badge {
    top: -2px;
    right: -2px;
    min-width: 0.95rem;
    height: 0.95rem;
    font-size: 0.58rem;
  }
}

/* Breadcrumbs — hidden visually; JSON-LD breadcrumb schema kept for SEO */
.ic-breadcrumbs-wrap {
  display: none;
  width: 100%;
  max-width: var(--landing-max-width);
  margin-inline: auto;
  padding: 0.65rem var(--landing-pad-inline) 0;
  box-sizing: border-box;
}

.ic-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--smaller-font-size);
  line-height: 1.4;
  color: var(--text-color-light);
}

.ic-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.ic-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.ic-breadcrumbs__link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ic-breadcrumbs__link:hover {
  color: var(--white-color);
}

.ic-breadcrumbs__current {
  color: var(--title-color);
  font-weight: var(--font-medium);
}
