/* Reusable buttons, product cards, forms, dialogs, cart and controls. */

.eyebrow {
  font-size: 12px;
  letter-spacing: 2.3px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 17px 24px;
  font-size: 14px;
  min-height: 54px;
  transition: background .2s;
}

.btn.dark {
  background: var(--ink);
  color: #fff;
}

.btn.dark:hover {
  background: #454e3d;
}

.btn.cream {
  background: var(--cream);
  color: var(--ink);
}

.btn span {
  font-size: 20px;
}

.text-link {
  padding: 0 0 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  width: max-content;
  max-width: 100%;
  line-height: 1.6;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filters button {
  font-size: 14px;
  border: 1px solid var(--line);
  padding: 10px 19px;
  border-radius: 25px;
}

.filters button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filters span {
  font-size: 12px;
  margin-left: 7px;
  opacity: .7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 23px;
  min-height: 420px;
}

.product-card {
  min-width: 0;
}

.product-photo {
  position: relative;
  background: #f5f5f1;
  height: 330px;
  display: block;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 4px 0 var(--product-accent);
}

.product-photo img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform .5s;
  padding: 22px;
}

.product-photo:hover img {
  transform: scale(1.04);
}

.card-thumbnails {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,46px));
  gap: 8px;
  margin-top: 10px;
}

.card-thumbnail {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 2px;
  border: 1px solid var(--line);
  background: #f5f5f1;
}

.card-thumbnail.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-label {
  position: absolute;
  top: 16px;
  left: 15px;
  z-index: 1;
  font-size: 11px;
  background: #fff;
  padding: 4px 9px;
  letter-spacing: .5px;
}

.product-card .product-type {
  font-size: 11px;
  letter-spacing: 1.5px;
  margin: 19px 0 7px;
  color: #7e755f;
}

.product-card .product-type::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--product-accent);
  box-shadow: 0 0 0 1px #00000012;
}

.product-card h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.3px;
  min-height: 63px;
}

.product-card h3 button {
  text-align: left;
  padding: 0;
  font: inherit;
}

.product-meta {
  font-size: 13px;
  margin-top: 8px;
  min-height: 42px;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 10px;
}

.price {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.add-small {
  font-size: 13px;
  border-bottom: 1px solid #777b6b;
  padding: 5px 0;
}

.add-small:hover {
  color: #9b7a3a;
}

.product-under {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 28px;
  margin-top: 40px;
  font-size: 14px;
}

.selection .eyebrow {
  color: #cfc4a8;
}

.selection p:not(.eyebrow) {
  color: #d0d4c8;
  margin: 25px 0 30px;
  max-width: 360px;
}

.philosophy-copy>p:not(.eyebrow) {
  margin: 27px 0 30px;
  font-size: 16px;
  max-width: 470px;
}

.philosophy-copy>.text-link {
  margin-top: 20px;
}

.ritual-grid .text-link {
  margin-top: 20px;
}

.review-section>p:not(.eyebrow) {
  font-size: 14px;
  color: var(--ink);
}

.faq>div>p:not(.eyebrow) {
  margin: 25px 0 10px;
  font-size: 14px;
}

dialog {
  border: 0;
  padding: 65px 38px 35px;
  max-width: min(900px,94vw);
  width: 900px;
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 20px 80px #0003;
}

dialog::backdrop {
  background: #17201480;
  backdrop-filter: blur(3px);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 23px;
  font-size: 14px;
  padding: 5px;
  z-index: 1;
}

dialog h2 {
  font-size: 37px;
  margin-bottom: 23px;
}

dialog p {
  margin: 15px 0;
}

dialog .eyebrow {
  font-size: 11px;
  margin-top: 0;
}

.modal-product {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 30px;
}

.modal-product-image>img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #f5f5f0;
}

.modal-product .price {
  font-size: 23px;
  margin: 20px 0;
}

.modal-product .btn {
  width: 100%;
  justify-content: center;
}

.modal-product .text-link {
  display: inline-block;
  font-size: 13px;
  margin: 20px 0;
}

.modal-product small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin: 25px 0;
}

.choice {
  padding: 23px;
  border: 1px solid var(--line);
  text-align: left;
  background: #f8f8f5;
}

.choice:hover {
  border-color: var(--ink);
}

.choice span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

.quiz-back {
  font-size: 13px;
  margin-bottom: 25px;
  text-decoration: underline;
}

.cart-dialog {
  margin: 0 0 0 auto;
  max-height: 100dvh;
  height: 100dvh;
  max-width: min(540px,100vw);
  width: 540px;
  padding-top: 70px;
}

.cart-item {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.cart-item img {
  width: 75px;
  height: 105px;
  object-fit: contain;
  background: #f5f5f0;
}

.cart-item h3 {
  font-size: 16px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.quantity {
  display: flex;
  border: 1px solid var(--line);
  align-items: center;
}

.quantity button {
  width: 32px;
  height: 30px;
}

.quantity span {
  padding: 0 8px;
  font-size: 14px;
}

.remove {
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
  margin-top: 8px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 25px 0;
  font-size: 21px;
}

.cart-dialog .btn {
  width: 100%;
  justify-content: center;
}

.cart-note {
  font-size: 13px;
  line-height: 1.6;
}

.empty-cart {
  padding: 50px 0;
  text-align: center;
}

.info-link {
  display: inline-block;
  text-decoration: underline;
  margin-top: 15px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%,30px);
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  font-size: 14px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  max-width: 90%;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%,0);
}

.modal-product-image {
  position: relative;
  background: #f5f5f0;
  overflow: hidden;
  box-shadow: inset 0 4px 0 var(--product-accent);
}

.modal-product-image img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #f5f5f0;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 7px;
  margin-top: 12px;
  padding: 2px;
}

.product-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  padding: 3px;
  border: 1px solid var(--line);
  background: #fff;
}

.product-thumbnail.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f5f0;
}

.gallery-control {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 30px #20251e26;
  transition: background .2s,border-color .2s,transform .2s;
}

.gallery-control:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.gallery-dots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.gallery-dot {
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  background: none;
}

.gallery-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8c9c0;
  transition: transform .25s,background .25s;
}

.gallery-dot.active::after {
  background: var(--ink);
  transform: scale(1.45);
}

.gallery-autoplay {
  padding: 8px 14px;
  border: 1px solid #cfd1c8;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.gallery-autoplay:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.field {
  display: grid;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  padding: 12px 14px;
}

[aria-invalid="true"] {
  border-color: #92372a !important;
}

.form-error {
  color: #92372a;
  margin: 20px 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
  font-size: .875rem;
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.content-page .btn {
  margin: 24px 24px 0 0;
}

.breadcrumbs-wrap {
  padding-bottom: 0;
}

.breadcrumbs-wrap .breadcrumbs {
  margin-bottom: 0;
}

.search-result {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.search-result img {
  object-fit: contain;
}

.search-result small {
  display: block;
  font-size: .75rem;
}

.product-copy .price {
  margin: 28px 0 8px;
  font-size: 28px;
}

.purchase-controls .field {
  width: 95px;
  margin: 0;
}

.related-products .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-thumbnail[aria-pressed="true"] {
  border-color: var(--gold);
}

.shipping-progress {
  margin: 24px 0;
}

.shipping-progress progress {
  width: 100%;
  height: 6px;
  accent-color: var(--gold);
}

.shipping-progress small {
  color: var(--muted);
}

.cart-line,
.cart-total {
  gap: 16px;
  flex-wrap: wrap;
}

.cart-item h3 {
  overflow-wrap: anywhere;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkout-summary .cart-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-summary .cart-line strong {
  white-space: nowrap;
}
