/* Customer-facing surfaces. The shared stylesheet remains the base for the store and admin. */
:root {
  --paper: #fbfaf7;
  --ink: #212723;
  --forest: #163c30;
  --muted: #58635c;
  --line: #ddded7;
  --panel: #f1f2ed;
  --serif:
    "Baskervville", "Baskerville", "Times New Roman", "Hiragino Mincho ProN",
    "Yu Mincho", serif;
  --gutter: clamp(1rem, 4.5vw, 5rem);
}
body {
  background: var(--paper);
}
.wrap {
  width: min(1440px, calc(100% - 2 * var(--gutter)));
}
input,
select,
button {
  font: inherit;
}
input,
select {
  min-width: 0;
}
input::placeholder {
  color: #68716b;
}
:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid #b48441;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
}
img {
  max-width: 100%;
}
.solid,
.outline,
.hero-cta {
  min-height: 48px;
  border-radius: 2px;
  padding: 0.78rem 1.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.035em;
  line-height: 1.45;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.solid:disabled,
.outline:disabled {
  background: #e6e8e3;
  color: #536056;
  border-color: transparent;
}
.outline {
  border-color: #9ca79e;
  color: var(--forest);
}
.notice {
  line-height: 1.55;
  letter-spacing: 0.015em;
}

.shop-head {
  background: var(--paper);
  border-color: #cdd3cb;
}
.shop-head .mast {
  display: flex;
  justify-content: space-between;
  gap: clamp(1.3rem, 5vw, 6rem);
  height: auto;
  min-height: 77px;
  padding-block: 10px;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  width: min(100%, 32rem);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f2f3ee;
  padding: 0 0.35rem 0 1rem;
}
.header-search input {
  width: 100%;
  flex: 1;
  background: transparent;
  border: 0;
  padding: 0.66rem 0;
  line-height: 1.3;
  color: var(--ink);
}
.header-search button {
  min-width: 44px;
  min-height: 42px;
  padding-inline: 0.4rem;
  border: 0;
  background: none;
  color: var(--forest);
}
.header-search:focus-within {
  border-color: var(--forest);
}
.header-search svg,
.catalog-status {
  color: var(--forest);
  font-size: .85rem;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-block: .2rem;
}
.bag-link svg {
  vertical-align: middle;
}
.bag-link {
  border-left: none;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}
#bag-count {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0.03rem 0.28rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5ebe4;
  font:
    600 0.76rem/1 Arial,
    sans-serif;
}
.shop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: 43px;
  border-top: 1px solid var(--line);
}
.shop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  border-bottom: 2px solid transparent;
  font-size: 0.91rem;
  white-space: nowrap;
}
.shop-nav a:hover,
.shop-nav a[aria-current="page"] {
  border-color: var(--forest);
}
.skip:focus {
  z-index: 10;
}

.hero {
  min-height: clamp(360px, 34vw, 530px);
  background: #142b23;
  isolation: isolate;
}
.hero-image {
  inset: 0 0 0 auto;
  width: 57%;
  object-position: 72% 46%;
}
.hero::before {
  z-index: -1;
  background: linear-gradient(
    90deg,
    #142b23 0%,
    #142b23 38%,
    rgba(20, 43, 35, 0.8) 44%,
    rgba(20, 43, 35, 0.04) 60%,
    transparent 78%
  );
}
.hero-inner {
  padding-block: clamp(2.5rem, 5vw, 5rem);
}
.hero-kicker {
  color: #e0d5ba;
  font:
    600 0.75rem/1.4 Arial,
    sans-serif;
  letter-spacing: 0.2em;
}
.hero-kicker::before {
  width: 2rem;
  background: #c6ad82;
}
.hero h1 {
  color: #fffdf7;
  font: normal clamp(3.1rem, 5.65vw, 6.1rem) / 1 var(--serif);
  margin: 0.85rem 0 0.65rem;
  letter-spacing: -0.048em;
}
.hero h1 i {
  color: #dbcead;
}
.hero p {
  color: #edeee9;
  margin-bottom: 1.15rem;
  line-height: 1.6;
}
.hero-cta {
  background: #f4f0e4;
  color: #1d342a;
}
.hero-cta:hover {
  background: white;
}

.collection {
  padding: clamp(2.2rem, 4.5vw, 4.7rem) 0 clamp(3rem, 6.5vw, 6rem);
}
.section-intro {
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-intro h1,
.section-intro h2,
.page-title {
  margin: 0.25rem 0;
  color: var(--ink);
  font: normal clamp(2rem, 3.8vw, 3.8rem) / 1.15 var(--serif);
  letter-spacing: -0.04em;
}
.eyebrow,
.jp-title {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.79rem;
  letter-spacing: 0.13em;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 1rem;
  border: none;
}
.tabs {
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.tabs a[aria-current="true"],
.tabs a[aria-current="page"] {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}
.finder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  padding: 0.9rem 0 1.1rem;
  margin-bottom: 1.3rem;
  border-block: 1px solid var(--line);
}
.finder label {
  flex: 1 1 7.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.finder label:has(input[type="search"]),
.finder label:has(input[type="text"]) {
  flex-grow: 2;
}
.finder select,
.finder input:not([type="checkbox"]),
.finder button {
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border: 1px solid #bec6bd;
  border-radius: 2px;
  background-color: #fff;
  color: var(--ink);
}
.finder select {
  width: 100%;
  padding-right: 1.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #42554a 50%),
    linear-gradient(135deg, #42554a 50%, transparent 50%);
  background-position:
    calc(100% - 13px) 52%,
    calc(100% - 9px) 52%;
  background-repeat: no-repeat;
  background-size: 4px 4px;
}
.finder .select::after {
  display: none;
}
.finder input:not([type="checkbox"]) {
  width: 100%;
}
.finder input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--forest);
}
.finder label:has(input[type="checkbox"]) {
  flex: 0 0 auto;
  min-height: 44px;
  flex-direction: row;
  align-items: center;
}
.finder button {
  padding-inline: 1.1rem;
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.finder a {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.grid {
  gap: clamp(1.5rem, 3vw, 3rem) clamp(0.85rem, 1.9vw, 2rem);
}
.card {
  min-width: 0;
}
.card-image {
  aspect-ratio: 1 / 1.05;
  border-radius: 2px;
}
.card-image img {
  transition: transform 0.5s cubic-bezier(0.23, 0.78, 0.34, 1);
}
.card:hover .card-image img {
  transform: scale(1.045);
}
.card .brand,
.detail .brand {
  color: #394a40;
  font:
    650 0.8rem/1.55 Arial,
    sans-serif;
  letter-spacing: 0.14em;
}
.card .brand {
  margin-top: 0.85rem;
}
.card h3 {
  margin: 0.25rem 0;
  font-weight: 500;
  line-height: 1.45;
}
.card .tag {
  left: 0.65rem;
  top: 0.65rem;
}
.tag {
  padding: 0.18rem 0.52rem;
  border: 0;
  background: rgba(251, 250, 247, 0.96);
  color: #2f4338;
  font-size: 0.75rem;
  letter-spacing: 0.045em;
}
.price {
  font-family: "Baskervville", "Baskerville", Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
}
.subtle,
.section-note {
  font-size: 0.875rem;
}
.empty {
  padding: 2rem 0;
}

.inside {
  padding-top: clamp(1.15rem, 2.5vw, 2.4rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
.crumb {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.crumb a {
  text-decoration-color: #b0bab1;
  text-underline-offset: 0.2em;
}
.detail {
  gap: clamp(1.6rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
}
.product-image {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1.04;
  background: #f1f0eb;
}
.detail h1,
.inside h1.jp {
  color: var(--ink);
  font: 500 clamp(1.6rem, 2.6vw, 2.8rem) / 1.4 var(--serif);
  letter-spacing: 0.008em;
}
.detail .tag {
  border: 1px solid var(--line);
  margin-bottom: 0.7rem;
}
.detail .price {
  font-size: clamp(1.7rem, 2.45vw, 2.4rem);
}
.buy-box .solid,
.buy-box .outline {
  width: 100%;
}
.buy-box .solid {
  min-height: 52px;
}
.spec {
  border-bottom: 1px solid var(--line);
}
.spec dt {
  white-space: nowrap;
}
.spec dd {
  overflow-wrap: anywhere;
}
.guide details {
  padding: 0;
}
.guide summary {
  padding: 1.15rem 0;
}
.guide details p {
  margin: 0 0 1.15rem;
}
.guide a:not(.solid):not(.outline),
.receipt a:not(.solid):not(.outline),
.buy-box p a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.steps,
.steps ol {
  padding: 0;
}
.steps ol,
ol.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
  margin: 0.8rem 0 1.6rem;
}
.steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.steps li + li::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: #a6afa5;
}
.steps [aria-current="step"],
.steps [aria-current="true"] {
  font-weight: 700;
  color: var(--forest);
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.54fr);
  gap: clamp(1.6rem, 5vw, 5rem);
  align-items: start;
}
.cart-items,
.purchase-summary {
  min-width: 0;
}
.purchase-summary {
  padding: clamp(1.15rem, 2.1vw, 2rem);
  background: var(--panel);
  border-top: 2px solid #2b4938;
  border-radius: 1px;
}
.purchase-summary > :first-child {
  margin-top: 0;
}
.purchase-summary .actions {
  display: grid;
}
.purchase-summary h2,
.receipt h2 {
  font-size: 1.18rem;
}
.cart-line {
  padding-block: 1rem;
}
.cart-line:last-child {
  border-bottom: 1px solid var(--line);
}
.cart-line .price {
  white-space: nowrap;
}
.cart-name {
  min-width: 0;
}
.cart-name .remove {
  min-height: 40px;
}
.receipt,
.guide {
  max-width: 58rem;
}
.status-panel {
  padding: clamp(1.3rem, 3vw, 2.6rem);
  background: #eaf0e9;
  border-top: 2px solid #365440;
  margin-block: 1.35rem;
}
.status-panel > :first-child {
  margin-top: 0;
}
.status-panel > :last-child {
  margin-bottom: 0;
}
.timeline {
  padding-left: 1.4rem;
}
.timeline li {
  padding: 0.45rem 0 0.45rem 0.35rem;
}
.timeline li::marker {
  color: #486544;
}
.summary-row {
  align-items: baseline;
}
.footer {
  flex-wrap: wrap;
  padding: 2.2rem 0;
  font-size: 0.91rem;
}
footer {
  background: #162920;
}
.footer a:hover {
  text-decoration-thickness: 1px;
}

#added-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(27rem, 100%);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  border: 0;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -8px 0 38px rgb(8 28 17 / 14%);
  --slide-x: 100%;
  --slide-y: 0;
}
#added-dialog::backdrop {
  background: rgb(10 24 16 / 42%);
}
#added-dialog[open] {
  animation: drawer-enter 0.32s cubic-bezier(0.2, 0.75, 0.24, 1) both;
}
#added-dialog[open]::backdrop {
  animation: shade-enter 0.22s ease-out both;
}
#added-dialog.closing,
#added-dialog[data-closing] {
  animation: drawer-leave 0.2s ease-in both;
}
#added-dialog.closing::backdrop,
#added-dialog[data-closing]::backdrop {
  animation: shade-leave 0.2s ease-in both;
}
body:has(#added-dialog[open]) {
  overflow: hidden;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.drawer-head h2 {
  font-size: 1.2rem;
  margin: 0;
}
.drawer-head button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.05rem;
}
.mini-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-block: 1px solid var(--line);
  margin: 1.2rem 0;
  padding: 1rem 0;
}
.mini-item img {
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
}
.mini-item p {
  margin: 0.18rem 0;
}
#added-dialog .actions {
  display: grid;
}
@keyframes drawer-enter {
  from {
    opacity: 0.55;
    transform: translate(var(--slide-x), var(--slide-y));
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}
@keyframes drawer-leave {
  to {
    opacity: 0.3;
    transform: translate(var(--slide-x), var(--slide-y));
  }
}
@keyframes shade-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes shade-leave {
  to {
    opacity: 0;
  }
}

@media (max-width: 800px) {
  .shop-head .mast {
    gap: 1.25rem;
    min-height: 65px;
  }
  .hero {
    min-height: 355px;
  }
  .hero-image {
    width: 64%;
  }
  .hero::before {
    background: linear-gradient(
      90deg,
      #142b23 8%,
      rgba(20, 43, 35, 0.95) 36%,
      rgba(20, 43, 35, 0.1) 75%
    );
  }
  .finder label {
    flex-basis: 8rem;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .detail {
    gap: 1.8rem;
  }
}
@media (max-width: 600px) {
  :root {
    --gutter: clamp(0.95rem, 4.6vw, 1.55rem);
  }
  .shop-head .mast {
    min-height: 59px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 0.75rem;
    padding-block: 0.45rem 0.55rem;
  }
  .shop-head .wordmark {
    min-height: 42px;
  }
  .shop-head .bag-link {
    margin-left: auto;
  }
  .header-search {
    flex: 0 0 100%;
    order: 3;
    margin-top: 0.35rem;
  }
  .header-search input {
    font-size: 1rem;
  }
  .shop-nav {
    min-height: 41px;
    gap: clamp(0.7rem, 4.5vw, 1.45rem);
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .shop-nav a {
    min-height: 41px;
    font-size: 0.86rem;
  }
  .hero {
    min-height: 370px;
    align-items: end;
  }
  .hero-image {
    width: 100%;
    height: 100%;
    object-position: 73% 35%;
  }
  .hero::before {
    background: linear-gradient(
      0deg,
      rgba(11, 30, 21, 0.98),
      rgba(11, 30, 21, 0.7) 35%,
      rgba(11, 30, 21, 0.09) 77%
    );
  }
  .hero-inner {
    padding-block: 2rem 1.65rem;
  }
  .hero h1 {
    font-size: clamp(2.55rem, 10.6vw, 4.1rem);
    margin-block: 0.62rem 0.45rem;
  }
  .hero p {
    margin-bottom: 0.9rem;
    font-size: 0.93rem;
  }
  .hero-kicker {
    font-size: 0.7rem;
  }
  .hero-cta {
    min-height: 43px;
    padding: 0.65rem 1.1rem;
    font-size: 0.86rem;
  }
  .collection {
    padding-top: 2rem;
  }
  .section-intro {
    align-items: center;
  }
  .toolbar {
    gap: 0.6rem;
  }
  .tabs a {
    min-height: 42px;
  }
  .finder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0.6rem 0.65rem;
  }
  .finder label:has(input[type="search"]),
  .finder label:has(input[type="text"]) {
    grid-column: 1 / -1;
  }
  .finder select,
  .finder input:not([type="checkbox"]) {
    font-size: 1rem;
  }
  .grid {
    gap: 1.45rem 0.7rem;
  }
  .card .tag {
    left: 0.4rem;
    top: 0.4rem;
  }
  .card .brand {
    margin-top: 0.55rem;
  }
  .card h3 {
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .card .price {
    font-size: 1.2rem;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
  .product-image {
    aspect-ratio: 1.13;
  }
  .detail h1 {
    margin-block: 0.5rem;
  }
  .crumb {
    margin-bottom: 0.9rem;
  }
  .cart-line {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.25rem 0.8rem;
  }
  .cart-line .thumb {
    width: 100%;
    grid-row: span 2;
  }
  .cart-line > .price {
    grid-column: 2;
  }
  .purchase-summary .actions,
  .receipt .actions {
    display: grid;
  }
  .steps li {
    font-size: 0.81rem;
  }
  .steps li + li::before {
    width: 0.8rem;
  }
  .footer {
    padding-block: 1.6rem;
    gap: 0.8rem 1.1rem;
  }
  .footer .wordmark {
    flex-basis: 100%;
  }
  .footer > a:nth-child(2) {
    margin-left: 0;
  }
  #added-dialog {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: 85%;
    max-height: 85dvh;
    border-radius: 0.85rem 0.85rem 0 0;
    --slide-x: 0;
    --slide-y: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
  #added-dialog,
  #added-dialog::backdrop,
  #added-dialog[open],
  #added-dialog[open]::backdrop {
    animation: none !important;
  }
  .card:hover .card-image img {
    transform: none;
  }
}
