/* 공통 헤더, 상품 카드, 목록·상세 화면의 기본 레이아웃을 보정합니다. */
:root {
  --header-height: 174px;
}
html {
  scroll-padding-top: calc(var(--header-height) + 24px);
}
body {
  font-size: 16px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 2px 10px #26282205;
}
.skip-link {
  z-index: 60;
}
.utility-nav {
  font-size: 12px;
}
.main-nav {
  font-size: 14px;
}
.category-links {
  gap: 32px;
}
.category-links a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -2px var(--ink);
}
.story-nav {
  font-size: 13px;
}
.hero-link,
.underlined-link,
.text-link {
  font-size: 13px;
}
.hero-description {
  font-size: 16px;
}
.hero .eyebrow {
  font-size: 12px;
}
.announcement {
  font-size: 15px;
}
.announcement-label,
.announcement-end {
  font-size: 12px;
}
.section-heading p:not(.eyebrow),
.md-intro > p:not(.eyebrow):not(.filter-count) {
  font-size: 14px;
}
.product-brand {
  font-size: 12px;
}
.product-name,
.md-grid .product-name {
  font-size: 14px;
}
.product-price,
.md-grid .product-price {
  font-size: 12px;
}
.product-badge,
.md-grid .product-badge {
  font-size: 11px;
}
.product-info {
  padding-right: 24px;
}
.product-save {
  bottom: 40px;
}
.category-filters a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}
.category-filters a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.brand-promise {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  padding-block: 88px 72px;
}
.brand-promise .eyebrow {
  color: var(--olive);
  font-size: 12px;
  margin-bottom: 18px;
}
.brand-promise h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -1px;
  word-break: keep-all;
}
.promise-body > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
}
.promise-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.promise-values span {
  font-size: 12px;
  color: var(--muted);
}
.promise-values h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 10px 0 8px;
}
.promise-values p {
  font-size: 13px;
  color: var(--muted);
  word-break: keep-all;
}
.category-section {
  padding-top: 96px;
}
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.category-tiles > a {
  display: block;
  overflow: hidden;
}
.category-tiles img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
}
.category-tiles span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 17px;
}
.category-tiles strong {
  font-size: 17px;
  font-weight: 500;
}
.category-tiles small {
  font-size: 13px;
  color: var(--muted);
}
.brand-copy > p:not(.eyebrow) {
  font-size: 14px;
}
.footer-top,
.footer-main h3,
.footer-brand p,
.footer-service > p:not(.footer-service-title),
.footer-links {
  font-size: 12px;
}
.footer-bottom {
  font-size: 11px;
}
.footer-service .underlined-link {
  font-size: 13px;
}
/* 여러 목록 페이지가 공유하는 제목과 경로 표시입니다. */
.page-heading {
  padding: 35px 0 48px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 42px;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.page-heading .eyebrow {
  font-size: 12px;
  color: var(--olive);
  margin-bottom: 14px;
}
.page-heading h1 {
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.4;
  word-break: keep-all;
}
.page-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-top: 16px;
  word-break: keep-all;
}
body:not([data-page="home"]):not([data-page="brand"]) #main {
  padding-bottom: 96px;
  min-height: calc(100dvh - var(--header-height));
}
body:not([data-page="home"]) .site-footer {
  border-top: 1px solid var(--line);
}
/* 결과 개수, 품목 필터, 정렬 선택을 한 줄로 배치합니다. */
.catalog-toolbar {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  min-height: 40px;
}
.catalog-toolbar p {
  font-size: 14px;
  color: var(--muted);
}
.catalog-toolbar strong {
  font-weight: 500;
  color: var(--ink);
}
.catalog-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.catalog-controls select {
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 28px 10px 10px;
  max-width: 155px;
  min-height: 42px;
}
.filter-apply {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 38px;
}
.empty-state {
  text-align: center;
  padding: 76px 24px;
  border-block: 1px solid var(--line);
}
.empty-state > .icon {
  width: 38px;
  height: 38px;
  color: var(--muted);
  margin-bottom: 24px;
}
.empty-state h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.empty-state p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin: 16px auto 30px;
  max-width: 550px;
  word-break: keep-all;
}
.solid-button,
.outline-button {
  font-size: 14px;
  min-height: 48px;
}
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* 상세 페이지는 사진·구매 안내·긴 공식 상세 이미지를 별도 영역으로 나눕니다. */
.product-page > .breadcrumb {
  padding-top: 32px;
  margin-bottom: 30px;
}
.product-page-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 65px;
  align-items: start;
}
.product-page-photo {
  background: var(--cream);
  display: flex;
  align-items: center;
  aspect-ratio: 1.03;
}
.product-page-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-page-copy {
  padding: 26px 0;
}
.product-page-copy .eyebrow {
  color: var(--olive);
  font-size: 12px;
  letter-spacing: 1.7px;
  margin-bottom: 18px;
}
.product-page-copy h1 {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.5;
  word-break: keep-all;
}
.product-page-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 24px 0 28px;
  word-break: keep-all;
}
.product-page-copy .detail-price {
  font-size: 15px;
  padding: 24px 0;
}
.availability-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 22px;
  word-break: keep-all;
}
.purchase-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.purchase-actions > * {
  flex: 1 1 auto;
}
.purchase-pending {
  background: var(--ink);
  cursor: not-allowed;
}
.purchase-actions .icon {
  width: 19px;
  height: 19px;
}
.purchase-actions [aria-pressed="true"] .icon {
  fill: var(--accent-soft);
}
.product-care-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.product-page .detail-note {
  font-size: 13px;
}
.product-information {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  margin-top: 88px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}
.product-information h2 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 20px;
}
.product-information p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  word-break: keep-all;
}
.product-full-image {
  width: 100%;
  height: auto;
  margin-top: 24px;
}
.product-facts dl {
  margin: 0 0 42px;
}
.product-facts dl > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.product-facts dt {
  color: var(--muted);
}
.product-facts dd {
  margin: 0;
  word-break: keep-all;
}
.related-products {
  margin-top: 90px;
}
.page-search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  max-width: 750px;
  padding: 10px 0;
  margin-bottom: 36px;
}
.page-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  font-size: 20px;
  padding: 15px 0;
  background: none;
  color: var(--ink);
}
.page-search-form input:focus {
  outline: none;
}
.page-search-form:focus-within {
  outline: 2px solid var(--olive);
  outline-offset: 6px;
}
.page-search-form button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-summary {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.search-empty {
  grid-column: 1/-1;
  font-size: 16px;
  color: var(--muted);
  padding: 64px 0;
}
.care-intro {
  background: var(--cream);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.care-intro .eyebrow {
  font-size: 12px;
  color: var(--olive);
  margin-bottom: 16px;
}
.care-intro h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.care-intro p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  word-break: keep-all;
}
.care-intro .outline-button {
  border-color: var(--line);
  white-space: nowrap;
  padding-inline: 30px;
}
.faq-section {
  padding-top: 56px;
  max-width: 960px;
}
.faq-section > h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 23px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary span {
  font-size: 24px;
  color: var(--muted);
  font-weight: 300;
}
.faq-item[open] summary span {
  transform: rotate(45deg);
}
.faq-item > p {
  padding: 0 24px 28px 2px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
  max-width: 810px;
}
.account-page {
  max-width: 650px;
}
.account-page.wide {
  max-width: 960px;
}
.account-page .page-heading {
  text-align: center;
}
.account-page .breadcrumb {
  text-align: left;
}
.account-form-shell {
  padding: 0 35px;
}
.service-notice {
  padding: 18px 22px;
  background: var(--cream);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
  word-break: keep-all;
}
.account-form-shell fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
.account-form-shell label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14px;
}
.account-form-shell input {
  width: 100%;
  padding: 14px 16px;
  min-height: 52px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 0;
  font-size: 15px;
}
.account-form-shell button {
  width: 100%;
  margin-top: 8px;
  background: var(--muted);
}
.account-bottom {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
  font-size: 14px;
}
.account-bottom span {
  color: var(--muted);
}
.account-bottom a {
  text-decoration: underline;
}
.account-shortcuts {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 32px;
  font-size: 14px;
  flex-wrap: wrap;
}
.policy-page {
  max-width: 950px;
}
.policy-content {
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.policy-content h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}
.policy-content p {
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
}
body[data-page="brand"] {
  background: var(--cream);
}
.brand-page-hero {
  position: relative;
  height: 560px;
  background: var(--cream);
  overflow: hidden;
}
.brand-page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
}
.brand-page-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #faf9f6e6, #faf9f600);
}
.brand-page-hero > div {
  position: absolute;
  top: 50%;
  left: max(6%, calc((100% - 1280px) / 2));
  transform: translateY(-50%);
  z-index: 1;
}
.brand-page-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 24px;
}
.brand-page-hero h1 {
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.5;
}
.brand-page-hero p:not(.eyebrow) {
  margin-top: 24px;
  font-size: 16px;
}
.brand-manifesto {
  text-align: center;
  padding-block: 100px;
}
.brand-manifesto .eyebrow {
  color: var(--olive);
  font-size: 12px;
}
.brand-manifesto h2 {
  font-size: 35px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -1.3px;
  margin: 24px 0;
}
.brand-manifesto > p:not(.eyebrow) {
  font-size: 16px;
  color: var(--muted);
  line-height: 2;
}
.brand-page-story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.brand-page-story > img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}
.brand-page-story .eyebrow {
  color: var(--olive);
  font-size: 12px;
}
.brand-page-story h2 {
  font-size: 33px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.5;
  margin: 24px 0;
}
.brand-page-story p:not(.eyebrow) {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 20px;
}
.brand-page-story .solid-button {
  margin-top: 30px;
}
.brand-lineup {
  padding-block: 100px;
}
.brand-lineup > .eyebrow {
  color: var(--olive);
  font-size: 12px;
}
.brand-lineup > h2 {
  font-size: 30px;
  font-weight: 400;
  margin: 20px 0 32px;
}
.brand-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.brand-lines > a {
  padding: 36px 24px;
  border-right: 1px solid var(--line);
}
.brand-lines > a:first-child {
  padding-left: 0;
}
.brand-lines > a:last-child {
  border: 0;
}
.brand-lines span {
  font-size: 30px;
  font-weight: 400;
  color: var(--muted);
}
.brand-lines h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 20px 0 12px;
}
.brand-lines p {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .category-links {
    gap: 24px;
  }
  .brand-promise {
    gap: 40px;
    grid-template-columns: 1fr 1.4fr;
  }
  .promise-values {
    gap: 15px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-page-layout {
    gap: 32px;
  }
  .product-page-copy h1 {
    font-size: 27px;
  }
  .product-information {
    gap: 38px;
  }
}
@media (max-width: 760px) {
  .header-main {
    height: 88px;
    padding-top: 20px;
    position: relative;
  }
  .utility-nav {
    display: flex;
    position: absolute;
    inset: 7px 0 auto;
    font-size: 11px;
    gap: 16px;
    justify-content: flex-end;
  }
  .brand-logo {
    width: 77px;
  }
  .main-nav {
    font-size: 13px;
  }
  .category-links {
    gap: 25px;
    font-size: 13px;
  }
  .hero h1,
  .hero h2 {
    font-size: clamp(29px, 8vw, 39px);
  }
  .hero-description {
    font-size: 14px;
  }
  .hero .eyebrow {
    font-size: 11px;
  }
  .hero-link {
    font-size: 13px;
  }
  .brand-promise {
    display: block;
    padding-block: 52px;
  }
  .brand-promise h2 {
    font-size: 27px;
  }
  .brand-promise .eyebrow {
    font-size: 11px;
  }
  .promise-body > p {
    font-size: 14px;
    margin-top: 25px;
  }
  .promise-values {
    gap: 15px;
    margin-top: 30px;
    padding-top: 24px;
  }
  .promise-values h3 {
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
  }
  .promise-values p {
    font-size: 12px;
  }
  .announcement {
    font-size: 12px;
  }
  .announcement-label {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .section-heading p:not(.eyebrow) {
    font-size: 13px;
  }
  .section-heading .text-link {
    font-size: 12px;
    margin-top: 4px;
    max-width: 70px;
    white-space: normal;
    word-break: keep-all;
    text-align: right;
  }
  .section-heading .text-link .icon {
    display: none;
  }
  .product-name,
  .md-grid .product-name {
    font-size: 13px;
  }
  .product-brand,
  .product-price,
  .md-grid .product-price {
    font-size: 12px;
  }
  .product-badge,
  .md-grid .product-badge {
    font-size: 10px;
  }
  .product-save,
  .md-grid .product-save {
    bottom: 40px;
  }
  .category-section {
    padding-top: 64px;
  }
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .category-tiles strong {
    font-size: 15px;
  }
  .category-tiles small {
    font-size: 12px;
  }
  .category-filters {
    margin-bottom: 24px;
  }
  .category-filters a {
    flex-shrink: 0;
    background: var(--cream);
    padding: 8px 12px;
    font-size: 12px;
  }
  .md-intro > .underlined-link {
    margin: 0 0 24px;
  }
  .brand-copy > p:not(.eyebrow) {
    font-size: 14px;
  }
  .footer-top {
    font-size: 11px;
    gap: 18px;
  }
  .footer-bottom {
    font-size: 10px;
  }
  .page-heading {
    padding: 24px 0 34px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 8px;
    margin-bottom: 30px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading .eyebrow {
    font-size: 11px;
  }
  .page-description {
    font-size: 14px;
    margin-top: 13px;
  }
  body:not([data-page="home"]):not([data-page="brand"]) #main {
    padding-bottom: 64px;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
  }
  .catalog-toolbar p {
    font-size: 13px;
  }
  .catalog-controls {
    width: 100%;
  }
  .catalog-controls label {
    flex: 1;
    min-width: 0;
  }
  .catalog-controls select {
    width: 100%;
    max-width: none;
    font-size: 12px;
    padding-right: 12px;
  }
  .catalog-grid {
    gap: 32px 14px;
  }
  .empty-state {
    padding: 48px 8px;
  }
  .empty-state h2 {
    font-size: 22px;
  }
  .empty-state p {
    font-size: 14px;
  }
  .product-page > .breadcrumb {
    padding-top: 24px;
    margin-bottom: 24px;
  }
  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-page-photo {
    aspect-ratio: 1.05;
  }
  .product-page-copy {
    padding: 6px 0 0;
  }
  .product-page-copy h1 {
    font-size: 27px;
  }
  .product-page-description {
    font-size: 15px;
    margin-block: 18px 24px;
  }
  .availability-note {
    font-size: 13px;
  }
  .purchase-actions {
    margin-top: 24px;
  }
  .product-information {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-top: 50px;
  }
  .product-information p {
    font-size: 14px;
  }
  .product-information h2 {
    font-size: 20px;
  }
  .product-facts dl > div {
    font-size: 13px;
    grid-template-columns: 75px 1fr;
  }
  .related-products {
    margin-top: 58px;
  }
  .page-search-form input {
    font-size: 16px;
  }
  .care-intro {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .care-intro h2 {
    font-size: 23px;
  }
  .care-intro p:not(.eyebrow) {
    font-size: 14px;
  }
  .faq-section {
    padding-top: 40px;
  }
  .faq-section > h2 {
    font-size: 22px;
  }
  .faq-item summary {
    font-size: 15px;
  }
  .faq-item > p {
    font-size: 14px;
  }
  .account-form-shell {
    padding: 0;
  }
  .service-notice {
    font-size: 13px;
    padding: 16px 18px;
  }
  .account-bottom {
    gap: 15px;
    font-size: 13px;
  }
  .account-shortcuts {
    gap: 24px;
    font-size: 13px;
  }
  .policy-content p {
    font-size: 15px;
  }
  .brand-page-hero {
    height: 480px;
  }
  .brand-page-hero > div {
    left: 28px;
    right: 20px;
  }
  .brand-page-hero img {
    object-position: 62% center;
  }
  .brand-page-hero h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .brand-page-hero p:not(.eyebrow) {
    font-size: 14px;
    max-width: 250px;
    line-height: 1.9;
  }
  .brand-manifesto {
    padding-block: 60px;
  }
  .brand-manifesto h2 {
    font-size: 28px;
  }
  .brand-manifesto > p:not(.eyebrow) {
    font-size: 14px;
  }
  .brand-page-story {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .brand-page-story h2 {
    font-size: 28px;
  }
  .brand-page-story p:not(.eyebrow) {
    font-size: 14px;
  }
  .brand-lineup {
    padding-block: 64px;
  }
  .brand-lineup > h2 {
    font-size: 26px;
    word-break: keep-all;
  }
  .brand-lines {
    grid-template-columns: 1fr;
  }
  .brand-lines > a {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand-lines span {
    font-size: 27px;
  }
  .brand-lines h3 {
    margin-top: 12px;
  }
}

.catalog-page .catalog-toolbar {
  align-items: flex-end;
}
.catalog-controls {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-controls label {
  display: grid;
  gap: 8px;
}
.catalog-controls label > span {
  font-size: 12px;
  color: var(--muted);
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.filter-reset {
  font-size: 13px;
  text-decoration: underline;
  color: var(--muted);
}
.product-rail {
  --rail-gap: 22px;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--rail-gap)) / 4);
  gap: var(--rail-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 4px 8px;
}
.product-rail::-webkit-scrollbar {
  display: none;
}
.product-rail:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}
.product-rail .product-card {
  min-width: 0;
}
.product-rail .product-save {
  right: 0;
}
.product-rail .product-open:focus-visible {
  outline-offset: -2px;
}
.product-rail {
  cursor: grab;
}
.product-rail a {
  cursor: grab;
}
.product-rail img,
.hero img {
  -webkit-user-drag: none;
  user-select: none;
}
.product-rail.is-dragging,
.product-rail.is-dragging * {
  cursor: grabbing;
  user-select: none;
}
.product-rail-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.product-rail-controls[hidden] {
  display: none;
}
.hero {
  touch-action: pan-y;
}
.hero.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.hero-slide:not([hidden]) {
  animation: hero-reveal 0.55s ease-out;
}
@keyframes hero-reveal {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide:not([hidden]) {
    animation: none;
  }
}
@media (max-width: 1100px) {
  .product-rail {
    grid-auto-columns: calc((100% - 2 * var(--rail-gap)) / 3);
  }
}
@media (max-width: 760px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
  }
  .catalog-controls .type-filter {
    grid-column: 1 / -1;
  }
  .catalog-controls select {
    width: 100%;
    max-width: none;
  }
  .filter-actions {
    grid-column: 1 / -1;
  }
  .product-rail {
    --rail-gap: 14px;
    grid-auto-columns: calc((100% - 1.15 * var(--rail-gap)) / 2.15);
  }
  .product-rail-controls {
    gap: 14px;
    margin-top: 10px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.pagination a,
.pagination > span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 40px;
  font-size: 13px;
  color: var(--muted);
}
.pagination a:hover {
  background: var(--cream);
}
.pagination a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
}
.pagination-direction .icon {
  width: 14px;
  height: 14px;
}
.pagination-direction:first-child .icon {
  transform: rotate(180deg);
}
.pagination .is-disabled {
  opacity: 0.25;
}
.search-is-open {
  overflow: hidden;
}
.search-dialog {
  width: min(680px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 100px);
  margin: clamp(60px, 16vh, 150px) auto 0;
  padding: 48px;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 90px #20281c25;
}
.search-dialog::backdrop {
  background: #20251e55;
  backdrop-filter: blur(4px);
}
.search-dialog[open] {
  animation: search-reveal 0.2s ease-out;
}
.search-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.search-dialog .eyebrow {
  font-size: 11px;
  color: var(--olive);
  margin-bottom: 18px;
}
.search-dialog h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.8px;
}
.header-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
  margin-top: 24px;
}
.header-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.header-search-form:focus-within {
  border-bottom-color: var(--ink);
  box-shadow: 0 1px var(--ink);
}
.header-search-form input::placeholder {
  color: var(--muted);
}
.search-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  font-size: 13px;
}
.search-suggestions > span {
  color: var(--muted);
  font-size: 12px;
}
.search-suggestions a:hover {
  text-decoration: underline;
}
@keyframes search-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .pagination {
    gap: 4px;
    margin-top: 36px;
  }
  .pagination a,
  .pagination > span {
    min-width: 32px;
  }
  .search-dialog {
    padding: 44px 24px 32px;
  }
  .search-dialog h2 {
    font-size: 23px;
  }
  .header-search-form input {
    font-size: 16px;
  }
  .search-suggestions {
    gap: 12px 18px;
  }
  .search-suggestions > span {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .search-dialog[open] {
    animation: none;
  }
}

.product-rail {
  user-select: none;
}
.product-rail-controls {
  margin-top: 18px;
}
.rail-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
}
.rail-arrow .icon { width: 17px; height: 17px; }
.rail-previous .icon { transform: rotate(180deg); }
.rail-arrow:not(:disabled):hover { background: var(--cream); border-color: var(--ink); }
.rail-arrow:disabled { opacity: 0.3; }
.rail-bar-label {
  width: clamp(120px, 20vw, 240px);
  display: flex;
  align-items: center;
}
.rail-bar {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  cursor: grab;
}
.rail-bar:active {
  cursor: grabbing;
}
.rail-bar::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line);
  border-radius: 3px;
}
.rail-bar::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: var(--thumb-size, 48px);
  height: 3px;
  margin-top: -0.5px;
  border: 0;
  border-radius: 3px;
  background: var(--olive);
}
.rail-bar::-moz-range-track {
  height: 2px;
  background: var(--line);
  border-radius: 3px;
}
.rail-bar::-moz-range-thumb {
  width: var(--thumb-size, 48px);
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: var(--olive);
}
.rail-bar:hover::-webkit-slider-thumb {
  background: var(--ink);
}
.rail-bar:focus-visible {
  outline: 1px solid var(--olive);
  outline-offset: 3px;
  border-radius: 3px;
}
