/* ==========================================================================
   CURVELLE — responsive rules
   ========================================================================== */

/* Large tablets / small laptops: products become a scrollable row */
@media (max-width: 1180px) {
  .product-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(168px, 22%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
  .product-row .pcard { scroll-snap-align: start; }
  .scroll-ctrls { display: flex; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .footer__news { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .search { display: none; }
  .header__inner { min-height: 68px; }
  .logo__mark { font-size: 28px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { aspect-ratio: 4 / 3; }
  .edit__inner { grid-template-columns: 1fr; }
  .edit__text { max-width: 480px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .benefit { justify-content: flex-start; padding-left: 8%; }
  .hero__media { width: 78%; }
  .hero__fade { width: 76%; }
  .manifesto__copy { margin-left: clamp(0px, 36%, 360px); }
  .pdetail { grid-template-columns: 1fr; }
  .pdetail__media { max-width: 560px; }
  .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .announce__div { display: none; }
  .announce__text { flex-direction: column; font-size: 9.5px; letter-spacing: .12em; padding: 6px 4px; gap: 0; }
  .header__inner { min-height: 62px; gap: 8px; }
  .logo__mark { font-size: 24px; }
  .logo__tag { font-size: 6.5px; margin-top: 5px; }
  .header__tools { gap: 0; }
  .icon-btn { width: 44px; height: 44px; }

  /* hero: image on top, text below */
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; width: 100%; height: 340px; right: auto; }
  .hero__media img { object-position: 60% 20%; }
  .hero__fade { top: 0; bottom: auto; width: 100%; height: 340px; background: linear-gradient(180deg, rgba(248,245,240,0) 70%, var(--ivory) 100%); }
  .hero__inner { padding-top: 0; }
  .hero__copy { max-width: none; padding: 18px 0 34px; }
  .hero__title { font-size: clamp(38px, 11vw, 52px); }
  .hero__text { max-width: 440px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__script { top: 18px; right: 16px; font-size: 26px; }

  .section__head { align-items: flex-end; }
  .cat-grid { gap: 12px; }
  .tile__text { left: 10px; right: 30px; bottom: 10px; }
  .tile__text strong { font-size: 11px; }
  .tile__text small { font-size: 10px; }
  .tile__arrow { right: 10px; bottom: 11px; }

  .product-row { grid-auto-columns: minmax(150px, 46%); gap: 12px; }
  .size-chip { padding: 8px 5px; font-size: 11px; min-width: 28px; }
  .pcard__sizes { font-size: 11px; }
  .pcard__swatches { gap: 10px; }
  .swatch { width: 18px; height: 18px; }
  .pcard .btn { min-height: 44px; font-size: 10.5px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .scroll-ctrls { display: none; }

  .edit__cards { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .edit__cards .tile { scroll-snap-align: start; }
  .edit__cards--page { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; grid-auto-columns: unset; overflow: visible; }

  .manifesto { display: block; min-height: 0; }
  .manifesto__media { position: relative; width: 100%; height: 190px; }
  .manifesto__fade { width: 100%; height: 190px; background: linear-gradient(180deg, rgba(112,45,64,0) 60%, var(--burgundy) 100%); }
  .manifesto__inner { flex-direction: column; align-items: flex-start; padding-block: 12px 32px; }
  .manifesto__copy { margin-left: 0; }
  .manifesto__brand { align-items: flex-start; padding-top: 0; text-align: left; }

  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .benefit { padding-left: 0; align-items: flex-start; gap: 10px; }
  .benefit__icon { width: 28px; height: 28px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col a { padding: 4px 0; font-size: 12.5px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { margin-left: 0; }
  .footer__social { margin: 0; }
  .to-top { bottom: auto; top: 16px; }

  .filters__row { display: grid; grid-template-columns: 1fr 1fr; }
  .filters__row .field:first-child { grid-column: 1 / -1; }
  .field input, .field select { min-width: 0; width: 100%; height: 44px; }
  .drawer { width: 100vw; }
  .line { grid-template-columns: 72px 1fr auto; gap: 10px; }
  .line__img { width: 72px; }
  .opt--row { flex-wrap: nowrap; }
}

@media (max-width: 380px) {
  .logo__mark { font-size: 21px; }
  .product-row { grid-auto-columns: 62%; }
  .hero__media, .hero__fade { height: 300px; }
}
