/* Readability, filter controls, pricing visibility, and simple motion refinements */

body {
  font-size: 16px;
}

.site-header {
  animation: headerSlideDown 520ms ease both;
}

.site-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: var(--blush);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--blush);
  transform: translateY(-1px);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.brand-logo {
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.brand:hover .brand-logo {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 8px 20px rgba(70, 52, 42, 0.12);
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy small {
  font-size: 8px;
}

.hero-text,
.section-aside,
.story-copy > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.75;
}

.eyebrow {
  font-size: 10px;
}

.button,
.nav-cta,
.home-product-link,
.see-all-link {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.nav-cta:hover,
.home-product-link:hover,
.see-all-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(70, 52, 42, 0.11);
}

.collection-toolbar {
  grid-template-columns: minmax(240px, 1fr) auto minmax(150px, auto);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  overflow: visible;
}

.filter-pill {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid #ded4ca;
  box-shadow: 0 2px 8px rgba(70, 52, 42, 0.04);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.filter-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(70, 52, 42, 0.09);
}

.filter-pill:active,
.button:active,
.view-details:active {
  transform: scale(0.97);
}

.filter-pill.active {
  box-shadow: 0 8px 18px rgba(207, 170, 169, 0.3);
}

.sort-field {
  gap: 10px;
  justify-content: flex-end;
  white-space: nowrap;
}

.sort-field span {
  font-size: 10px;
  font-weight: 600;
}

.sort-field select {
  min-height: 38px;
  min-width: 145px;
  padding: 8px 30px 8px 12px;
  border: 1px solid #ded4ca;
  border-radius: 8px;
  background-color: var(--paper);
  font-size: 11px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.sort-field select:focus {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(207, 170, 169, 0.15);
}

.product-card {
  padding: 10px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #d8c8bf;
  box-shadow: 0 18px 38px rgba(70, 52, 42, 0.09);
}

.product-image-wrap {
  overflow: hidden;
}

.product-image-wrap img,
.featured-card img,
.category-card img,
.hero-image-wrap img,
.story-main-image,
.story-accent-image {
  transition: transform 420ms ease, filter 420ms ease;
}

.product-card:hover .product-image-wrap img,
.featured-card:hover img,
.category-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.hero-art:hover .hero-image-wrap img {
  transform: scale(1.025);
}

.product-category {
  font-size: 9px;
  margin-top: 12px;
}

.product-card h3 {
  font-size: 24px;
  line-height: 1.15;
  margin: 4px 0 7px;
}

.product-card-description {
  min-height: 44px;
  font-size: 11px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.product-bottom {
  gap: 10px;
}

.product-bottom > div {
  min-height: 30px;
}

.product-price {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  font-size: 12px;
  font-weight: 700;
  color: #a76869;
  opacity: 1;
  visibility: visible;
}

.status-badge {
  font-size: 8px;
  padding: 5px 8px;
}

.product-badge,
.status-badge {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover .product-badge,
.product-card:hover .status-badge {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(70, 52, 42, 0.08);
}

.view-details {
  min-height: 36px;
  font-size: 9px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.view-details:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.care-card,
.category-card,
.inquiry-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.care-card:hover,
.category-card:hover,
.inquiry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(70, 52, 42, 0.08);
}

.care-card h3 {
  font-size: 21px;
}

.care-card p,
.contact-details,
.form-field input,
.form-field select,
.form-field textarea {
  font-size: 12px;
}

.form-field input,
.form-field select,
.form-field textarea {
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(207, 170, 169, 0.12);
}

.scroll-top {
  transition: opacity 220ms ease, transform 220ms ease, background-color 180ms ease;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--blush-light);
}

.modal-backdrop:not([hidden]) {
  animation: modalFadeIn 180ms ease both;
}

.modal-backdrop:not([hidden]) .product-modal {
  animation: modalPopIn 240ms cubic-bezier(.2,.7,.2,1) both;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms cubic-bezier(.2,.65,.25,1), transform 620ms cubic-bezier(.2,.65,.25,1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 70ms; }
.reveal-delay-2 { transition-delay: 130ms; }
.reveal-delay-3 { transition-delay: 190ms; }

.hero-copy,
.hero-art {
  animation: heroFadeUp 760ms cubic-bezier(.2,.65,.25,1) both;
}

.hero-art {
  animation-delay: 120ms;
}

.product-grid .product-card,
.featured-grid .featured-card,
.category-mosaic .category-card {
  animation: cardFadeUp 520ms ease both;
}

.product-grid .product-card:nth-child(2),
.featured-grid .featured-card:nth-child(2),
.category-mosaic .category-card:nth-child(2) {
  animation-delay: 70ms;
}

.product-grid .product-card:nth-child(3),
.featured-grid .featured-card:nth-child(3),
.category-mosaic .category-card:nth-child(3) {
  animation-delay: 140ms;
}

.product-grid .product-card:nth-child(4) {
  animation-delay: 210ms;
}

@keyframes headerSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPopIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 899px) {
  body {
    font-size: 15px;
  }

  .collection-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .sort-field {
    justify-content: space-between;
  }

  .sort-field select {
    flex: 1;
    max-width: 220px;
  }
}

/* Three products per row on regular mobile screens. */
@media (min-width: 480px) and (max-width: 599px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .product-card {
    padding: 6px;
    border-radius: 12px;
  }

  .product-image-wrap {
    aspect-ratio: 1 / 1.12;
    border-radius: 9px;
  }

  .product-badge {
    top: 6px;
    right: 6px;
    max-width: calc(100% - 12px);
    padding: 3px 5px;
    font-size: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-category {
    margin-top: 7px;
    font-size: 6px;
    letter-spacing: .1em;
  }

  .product-card h3 {
    min-height: 36px;
    font-size: 16px;
    line-height: 1.08;
    margin: 2px 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-description {
    display: none;
  }

  .product-bottom {
    gap: 6px;
  }

  .product-bottom > div {
    min-height: 0;
    display: grid;
    gap: 4px;
    align-items: start;
  }

  .product-price {
    min-height: 0;
    font-size: 8px;
    line-height: 1.2;
  }

  .status-badge {
    width: max-content;
    max-width: 100%;
    padding: 3px 5px;
    font-size: 6px;
  }

  .view-details {
    min-height: 28px;
    padding: 5px 3px;
    font-size: 6px;
    letter-spacing: .05em;
  }
}

/* Keep two readable columns on narrow phones. */
@media (max-width: 479px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 9px;
  }

  .product-card {
    padding: 7px;
  }

  .product-card h3 {
    font-size: 19px;
  }

  .product-card-description {
    min-height: 38px;
    font-size: 10px;
  }

  .product-price {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll,
  .hero-copy,
  .hero-art {
    opacity: 1 !important;
    transform: none !important;
  }
}
