/* Calm Wellness Color Palette */
:root {
  /* Primary Brand Colors - Tranquil Sage */
  --color-primary: #462696;
  --color-primary-light: #91b498;
  --color-primary-dark: #462696;

  /* Secondary Accent Colors - Golden Honey */
  --color-accent: #b17818;
  --color-accent-light: #eecb7d;
  --color-accent-dark: #6b480e;

  /* Neutral Colors */
  --color-background: #faf8f5;
  --color-surface: #ffffff;
  --color-surface-dark: #f2efeb;

  /* Text Colors */
  --color-text-primary: #141313;
  --color-text-secondary: #4a4945;
  --color-text-tertiary: #63625d;
  --color-text: #141313;

  /* Accent Colors for UI Elements */
  --color-success: #498440;
  --color-info: #3a6a8f;
  --color-warning: #b67217;
  --color-error: #9f3a4b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4e7b58 0%, #304d37 100%);
  --gradient-accent: linear-gradient(135deg, #b17818 0%, #eecb7d 100%);
  --gradient-subtle: linear-gradient(180deg, #faf8f5 0%, #f2efeb 100%);

  /* Neutrals */
  --color-white: #ffffff;
  --color-gray: #63625d;
  --color-light-gray: #878580;

  /* Aliases (used by checkout, cart, product CSS) */
  --color-teal: #462696 !important;
  --color-teal-light: #91b498;
  --color-teal-dark: #304d37;

  /* Layout */
  --page-width: 1200px;
  --spacing-sections-desktop: 36px;
  --spacing-sections-mobile: 24px;

  /* Component Tokens */
  --buttons-radius: 8px;
  --inputs-radius: 6px;
  --product-card-corner-radius: 10px;
  --product-card-shadow-opacity: 0.08;
  --product-card-shadow-blur: 12px;

  /* Transitions */
  --duration-short: 100ms;
  --duration-default: 250ms;
  --duration-long: 500ms;
  --duration-extra-long: 600ms;

  /* Cart Drawer */
  --drawer-width: 420px;
  --drawer-width-large: 500px;

  /* Legacy compatibility */
  --color1: #4e7b58;
  --color2: #4e7b58;
  --color3: #4e7b58;
  --color4: #141313;
  --varHover: #462696;
  --color-secondary: #705c8e;
  --color-action: #b17818;
}

footer .footer-cards img {
  filter: brightness(0) invert(1) !important;
}

/* Subheader bar - primary background with white text (global override) */
.subheader-soc {
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 1) 10%,
    rgba(124, 58, 237, 1) 30%,
    rgba(124, 58, 237, 1) 70%,
    rgba(236, 72, 153, 1) 100%
  ) !important;
}
.subheader-soc_cont a,
.subheader-soc_phone,
.subheader-soc_cont {
  color: #ffffff !important;
}
.subheader-soc_cont a:hover {
  opacity: 0.7;
}

/* Shipping Section */
.shipping-section {
  background: #f6f1ff !important;
}
main svg path,
header svg path {
  fill: #a17ce1 !important;
}

.header-burger-menu span {
  background: #462696 !important;
}

/* Footer - primary background with white text/icons (global override) */
footer {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

footer .footer-topbar__title {
  color: #ffffff !important;
}

footer .footer-topbar__info-box {
  color: #ffffff !important;
}

footer .footer-topbar__info-box svg path {
  fill: #ffffff !important;
}

footer .ft-form__text {
  color: #ffffff !important;
}

footer .ft-form__input {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

footer .ft-form__input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

footer .ft-form__button {
  background: #ffffff !important;
  color: var(--color-primary) !important;
}

footer .ft-form__button:hover {
  background: #f1f5f2 !important;
  color: var(--color-primary) !important;
}

footer .footer-navigation a {
  color: #ffffff !important;
}

footer .footer-navigation a:hover {
  color: #f1f5f2 !important;
}

footer .footer-lowbar {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

footer .copyright {
  color: #ffffff !important;
}

footer .footer-cards img {
  opacity: 1 !important;
}

footer .footer_phone,
footer .phone__line {
  color: #ffffff !important;
}

footer .phone__line:after {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Logo size override - Calm Wellness logo */
.header-logo img,
.header-logo {
  max-width: 180px !important;
  max-height: 50px !important;
}
.header-logo img {
  width: auto !important;
  height: 50px !important;
  max-width: 180px !important;
  object-fit: contain;
}

/* ── Header Redesign: Rounded pill bar ── */
.header-section {
  background: #ffffff !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1) !important;
  margin: 12px 24px !important;
}
.header-section .header-topbar {
  padding: 8px 28px !important;
}

/* Bold nav links with dark text */
.header-navigations .desktop-nav-link {
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
  text-decoration: none !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  transition:
    background 0.2s ease,
    color 0.2s ease !important;
  position: relative !important;
}
.header-navigations .desktop-nav-link:hover {
  background: rgba(78, 123, 88, 0.1) !important;
  color: var(--color-primary) !important;
}
.header-navigations .desktop-nav-link::after,
.header-navigations .desktop-nav-link.active::after {
  display: none !important;
}

/* Active page pill indicator */
.header-navigations .desktop-nav-link.active {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}
.header-navigations .desktop-nav-link.active:hover {
  background: var(--color-primary-dark) !important;
  color: #ffffff !important;
}

/* Announcement bar bold text */
.announcement-bar__content {
  font-weight: 700 !important;
}

/* ── Mobile: revert pill shape ── */
@media (max-width: 768px) {
  .header-section {
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1) !important;
  }
  .header-logo img,
  .header-logo {
    max-width: 140px !important;
    max-height: 40px !important;
  }
  .header-logo img {
    width: auto !important;
    height: 40px !important;
    max-width: 140px !important;
  }
  .header-navigations .desktop-nav-link {
    padding: 15px 14px !important;
  }
  .header-navigations .desktop-nav-link.active {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-bottom-color: var(--color-primary) !important;
  }
}
