/*
 * Pet Lumière Design System
 * Base styles and CSS custom properties
 */

:root {
  /* Colors */
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-text-2: #475569;
  --color-border: #E2E8F0;
  --color-primary: #16A34A;
  --color-primary-hover: #15803D;
  --color-info: #2563EB;
  --color-warning: #F59E0B;
  --color-error: #DC2626;

  /* Typography */
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --font-size-h1: 32px;
  --font-size-h2: 24px;
  --font-size-h3: 20px;
  --font-size-h4: 16px;

  /* Spacing (8pt grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Base typography */
html {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

body {
  font-family: 'Inter var', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Headings */
h1 { font-size: var(--font-size-h1); font-weight: 600; line-height: 1.2; }
h2 { font-size: var(--font-size-h2); font-weight: 600; line-height: 1.3; }
h3 { font-size: var(--font-size-h3); font-weight: 600; line-height: 1.4; }
h4 { font-size: var(--font-size-h4); font-weight: 600; line-height: 1.5; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, opacity;
  transition-timing-function: ease-in-out;
  transition-duration: 150ms;
}

/* Remove transition for elements that shouldn't animate */
*:not(button):not(a):not(input):not(.transition) {
  transition: none;
}

/* Fix para card de assinatura na sidebar */
.subscription-card-solid {
  opacity: 1 !important;
}
.subscription-card-solid * {
  opacity: 1 !important;
}
.subscription-card-solid .text-white-solid {
  color: #ffffff !important;
}
.subscription-card-solid .text-yellow-solid {
  color: #fef08a !important;
}

/* Fix para remover linha branca no banner */
section img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  vertical-align: top;
}

/* Apenas para links que contêm imagens diretamente (banners) */
section a > img {
  display: block;
  line-height: 0;
}
/* Promotional medicine popup */
body.promo-popup-open {
  overflow: hidden;
}

body.promo-popup-open #contact-cta-bar {
  opacity: 0;
  pointer-events: none;
}

.promo-popup[hidden] {
  display: none;
}

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 18, 35, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.promo-popup .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.promo-popup.is-visible {
  opacity: 1;
}

.promo-popup__panel {
  position: relative;
  width: min(1080px, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  background: #062b46;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(18px) scale(0.98);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.promo-popup.is-visible .promo-popup__panel {
  transform: translateY(0) scale(1);
}

.promo-popup__slides {
  position: relative;
}

.promo-popup__slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  min-height: 500px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.promo-popup__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 20, 48, 0.08), transparent 65%);
}

.promo-popup__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3.25rem 2.75rem 3.5rem 4.25rem;
  color: var(--promo-text);
}

.promo-popup__eyebrow {
  display: inline-flex;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--promo-accent);
  color: #052c3d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.promo-popup__brand {
  margin: 1.2rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.88;
  text-transform: uppercase;
}

.promo-popup__copy h3 {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.promo-popup__weight {
  margin: 0.7rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 800;
}

.promo-popup__detail {
  margin: 0.35rem 0 0;
  font-size: 0.94rem;
  font-weight: 600;
  opacity: 0.9;
}

.promo-popup__price {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  margin: 1.25rem 0 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.promo-popup__price-unit {
  margin: 0.2rem 0 1rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.promo-popup__price span {
  padding-top: 0.7rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.promo-popup__price strong {
  font-size: clamp(3.35rem, 6vw, 5.3rem);
  letter-spacing: -0.07em;
}

.promo-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 190px;
  padding: 0.95rem 1.35rem;
  border-radius: 12px;
  background: var(--promo-button);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: filter 160ms ease, transform 160ms ease;
}

.promo-popup__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.promo-popup__cta svg {
  width: 20px;
  height: 20px;
}

.promo-popup__copy small {
  margin-top: 0.9rem;
  font-size: 0.66rem;
  font-weight: 600;
  opacity: 0.78;
}

.promo-popup__artwork-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3.5rem 1.5rem 1rem;
}

.promo-popup__artwork-notice {
  position: absolute;
  right: 3.5rem;
  bottom: 1.75rem;
  left: 1rem;
  z-index: 3;
  padding: 0.7rem 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: rgba(3, 24, 42, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.promo-popup__artwork {
  width: min(340px, 100%);
  max-height: 455px;
  border-radius: 15px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  object-fit: cover;
  object-position: top;
  transform: rotate(1deg);
}

.promo-popup__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 20;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(3, 24, 42, 0.76);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.promo-popup__close svg,
.promo-popup__arrow svg {
  width: 22px;
  height: 22px;
}

.promo-popup__arrow {
  position: absolute;
  top: 50%;
  z-index: 15;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(2, 21, 39, 0.55);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.promo-popup__arrow:hover {
  background: rgba(2, 21, 39, 0.82);
}

.promo-popup__arrow--prev {
  left: 0.75rem;
}

.promo-popup__arrow--next {
  right: 0.75rem;
}

.promo-popup__indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 15;
  display: flex;
  gap: 0.45rem;
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
  background: rgba(2, 21, 39, 0.38);
  transform: translateX(-50%);
}

.promo-popup__indicators button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 180ms ease, opacity 180ms ease;
}

.promo-popup__indicators button.bg-white {
  width: 25px;
}

@media (max-width: 767px) {
  .promo-popup {
    align-items: center;
    padding: 0.75rem;
  }

  .promo-popup__panel {
    width: min(430px, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    border-radius: 20px;
  }

  .promo-popup__slide {
    display: flex;
    min-height: 0;
    flex-direction: column-reverse;
    background-position: center;
  }

  .promo-popup__copy {
    align-items: stretch;
    padding: 1rem 1.15rem 3.15rem;
    background: rgba(3, 24, 55, 0.92);
    color: #fff;
    text-align: left;
  }

  .promo-popup__eyebrow,
  .promo-popup__brand,
  .promo-popup__detail,
  .promo-popup__price,
  .promo-popup__price-unit,
  .promo-popup__copy small {
    display: none;
  }

  .promo-popup__copy h3 {
    font-size: 1.42rem;
    letter-spacing: -0.035em;
    line-height: 1;
  }

  .promo-popup__weight {
    margin-top: 0.3rem;
    font-size: 0.88rem;
  }

  .promo-popup__cta {
    position: absolute;
    right: 1.15rem;
    bottom: 0.92rem;
    min-width: 126px;
    padding: 0.72rem 0.9rem;
    font-size: 0.82rem;
  }

  .promo-popup__artwork-link {
    height: min(67dvh, 570px);
    padding: 0;
    background: #fff;
  }

  .promo-popup__artwork {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    transform: none;
  }

  .promo-popup__artwork-notice {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem;
    border-width: 1px;
    font-size: 0.65rem;
  }

  .promo-popup__arrow {
    top: 45%;
    width: 36px;
    height: 36px;
  }

  .promo-popup__arrow--prev {
    left: 0.5rem;
  }

  .promo-popup__arrow--next {
    right: 0.5rem;
  }

  .promo-popup__indicators {
    bottom: 0.9rem;
    left: 1.15rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-popup,
  .promo-popup__panel,
  .promo-popup__cta {
    transition: none;
  }
}
