/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hide call text label on small/med screens, icon only */
.navbar__call span.call-label {
  display: none;
}

/* ---- Small mobile only refinements (< 380px) ---- */
@media (max-width: 379px) {
  .filter-tab {
    font-size: 0.72rem;
    padding: 0.45rem 0.9rem;
  }

  .btn {
    padding: 0.7rem 1.4rem;
  }

  .hero-slide__desc {
    display: none;
  }
}

/* ---- Small mobile (480px and below) ---- */
@media (max-width: 480px) {
  .whatsapp-button {
    right: 1.25rem;
    bottom: 0.6rem;
    padding: .9rem .9rem;
  }

  .whatsapp-button__text {
    display: none;
  }
}

/* ---- Mobile / small tablet (600px and below) ---- */
@media (max-width: 600px) {
  .hero__arrow {
    display: none;
  }

  .hero-slide__title {
    font-size: var(--fs-xl);
  }
}

/* ---- Mobile nav panel (small laptop / tablet ~1024px and below) ---- */
@media (max-width: 1024px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: calc(var(--announcement-h) + var(--nav-h));
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-lg) var(--container-pad);
    gap: var(--sp-md);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition);
    overflow-y: auto;
  }

  .navbar__links.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__link {
    font-size: var(--fs-md);
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--sp-sm);
  }

  .navbar__call {
    font-size: var(--fs-md);
  }
}

/* ---- Medium mobile 380px+ ---- */
@media (min-width: 380px) {
  .ugc-grid {
    gap: var(--sp-md);
  }
}

/* ---- Large mobile 480px+ ---- */
@media (min-width: 480px) {
  .hero-slide__title {
    font-size: var(--fs-xl);
  }

  .footer__payments {
    gap: 0.75rem;
  }
}

/* ---- Large mobile / small tablet 600px+ ---- */
@media (min-width: 600px) {
  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ugc-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dist-perks {
    grid-template-columns: repeat(2, 1fr);
  }

  .dist-form__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Small tablet 640px+ ---- */
@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---- Tablet 768px+ ---- */
@media (min-width: 768px) {
  :root {
    --nav-h: 88px;
  }

  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gift-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .banner__content {
    max-width: 65%;
  }

  .story-intro__headline {
    font-size: var(--fs-xl);
  }

  .dist-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-lg);
  }
}

/* ---- Tablet landscape 900px+ ---- */
@media (min-width: 900px) {
  .brand-story {
    grid-template-columns: 1fr 1fr;
  }

  .story-block__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .story-block--reverse .story-block__media {
    order: -1;
  }
}

/* ---- Small laptop 1000px+ ---- */
@media (min-width: 1000px) {
  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  }
}

/* ---- Laptop 1024px+ ---- */
@media (min-width: 1024px) {
  .categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gift-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .ugc-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .navbar__call span.call-label {
    display: inline;
  }

  .dist-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-md);
  }

  .dist-steps::before {
    content: '';
    position: absolute;
    top: 2.4rem;
    left: 10%;
    right: 10%;
    border-top: 2px dotted var(--color-green);
    z-index: 0;
  }

  .dist-perks {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Desktop 1280px+ ---- */
@media (min-width: 1280px) {
  .ugc-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-slider {
    height: clamp(460px, 65vh, 640px);
  }
}

/* ---- Wide desktop 1400px+ ---- */
@media (min-width: 1400px) {
  .banner {
    margin-inline: auto;
    max-width: var(--container-width);
  }

  .banner--full-width {
    margin-inline: 0;
    max-width: none;
  }
}

/* ---- Large desktop 1536px+ ---- */
@media (min-width: 1536px) {
  :root {
    --container-width: 1440px;
  }
}