.preserve-lines {
  white-space: pre-wrap;
}
.loading-state {
  padding: 80px 5%;
  color: #76756f;
}
.store-filters {
  display: flex;
  gap: 14px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.store-filters input,
.store-filters select {
  padding: 12px 4px;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  max-width: 200px;
}
.store-filters input[type="number"] {
  width: 110px;
}
.store-color {
  position: relative;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.store-color input {
  accent-color: #222;
}
.size-options input:disabled + span {
  opacity: 0.3;
  text-decoration: line-through;
}
.empty-photo {
  aspect-ratio: 3/4;
  background: #eeece7;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  padding: 20px;
  text-align: center;
}
.gallery-primary .empty-photo {
  aspect-ratio: 4/5;
}
.cart-row > img {
  width: 88px;
  height: 116px;
  object-fit: cover;
}
.cart-empty-image {
  width: 65px;
  height: 88px;
  background: #ddd;
}
.checkout-summary .cart-row > img {
  width: 65px;
  height: 88px;
}
.form-error {
  color: #8d2d2d;
  font-size: 12px;
  line-height: 1.7;
}
.address-results:empty {
  display: none;
}
.address-results {
  border: 1px solid var(--line);
  max-height: 230px;
  overflow: auto;
  margin: 5px 0;
}
.address-results button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.address-results button:hover {
  background: #ece9e2;
}
.address-results small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.order-page,
.reviews-page {
  max-width: 900px;
  margin: auto;
  min-height: 65svh;
}
.order-page h1,
.reviews-page h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -1.5px;
}
.order-list {
  margin: 30px 0;
}
.order-page .button {
  margin-top: 30px;
}
.review {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
}
.review > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.review strong {
  font-weight: 500;
}
.reviews-page h2 {
  font-size: 32px;
  margin-top: 45px;
}
.reviews-page form {
  max-width: 550px;
  margin-top: 25px;
}
.reviews-page label {
  display: block;
  font-size: 12px;
  margin: 20px 0;
}
.reviews-page input,
.reviews-page select,
.reviews-page textarea {
  display: block;
  width: 100%;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  margin-top: 7px;
}
.reviews-page textarea {
  border: 1px solid var(--line);
}
.card-photo > a .empty-photo {
  height: 100%;
}
.category-tabs {
  max-width: 75%;
  overflow: auto;
}
.product-description {
  line-height: 1.8;
}
.color-options {
  flex-wrap: wrap;
}
.order-page > p {
  line-height: 1.8;
}
@media (max-width: 760px) {
  .hero {
    height: 86svh;
  }
  .category-tabs {
    max-width: 100%;
  }
  .cart-row > img {
    width: 72px;
    height: 96px;
  }
  .checkout-summary .cart-row > img {
    width: 55px;
    height: 74px;
  }
  .store-filters {
    gap: 10px;
  }
  .store-filters input,
  .store-filters select {
    max-width: calc(50% - 5px);
    width: calc(50% - 5px);
    font-size: 16px;
  }
  .store-filters input[type="search"] {
    width: 100%;
    max-width: 100%;
  }
  .review > div {
    flex-wrap: wrap;
  }
  .store-color {
    font-size: 10px;
  }
}

.card-photo .card-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.card-photo a.preview-ready.is-preview .card-preview,
.card-photo a.preview-ready:focus-visible .card-preview {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .card-photo a.preview-ready:hover .card-preview { opacity: 1; }
}
.card-preview-hint { display: none; }
@media (hover: none), (pointer: coarse) {
  .card-photo a.preview-ready .card-preview-hint {
    display: block;
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 7px 10px;
    background: #faf9f6eb;
    color: #252522;
    font-size: 11px;
    pointer-events: none;
  }
  .card-preview-hint span:last-child,
  .is-preview .card-preview-hint span:first-child { display: none; }
  .is-preview .card-preview-hint span:last-child { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .card-photo .card-preview { transition: none; }
}

/* Product previews crossfade; a missing model shot must not imply a preview. */
.card-photo:hover img { transform: none; }

/* A single editorial rhythm: opening frames, staggered type, tactile photo changes. */
@keyframes nadiva-frame-open {
  from { clip-path: inset(0 0 100% 0); transform: scale(1.07); }
  to { clip-path: inset(0 0 0% 0); transform: scale(1); }
}
@keyframes nadiva-line-rise {
  from { opacity: 0; translate: 0 24px; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0% 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-images img { animation: nadiva-frame-open 1350ms cubic-bezier(.22,.7,.18,1) both; }
  .hero-images img:nth-child(2) { animation-delay: 110ms; }
  .hero-content { animation: none; }
  .hero-content > * { animation: nadiva-line-rise 850ms cubic-bezier(.22,.7,.18,1) both; }
  .hero-content > .eyebrow { animation-delay: 180ms; }
  .hero-content > h1 { animation-delay: 300ms; }
  .hero-content > .hero-caption { animation-delay: 440ms; }
  .hero-content > .button { animation-delay: 560ms; }
  .hero-images.motion-depth { transform: translate3d(0,var(--scroll-offset,0px),0) scale(1.04); }
  .button svg, .text-link svg, .category-tile span svg { transition: translate 350ms cubic-bezier(.22,.7,.18,1); }
  .button:hover svg, .text-link:hover svg, .category-tile:hover span svg { translate: 5px 0; }
  dialog[open] { animation: nadiva-dialog 280ms cubic-bezier(.22,.7,.18,1); }
  dialog[open]::backdrop { animation: nadiva-backdrop 280ms ease-out; }
}
@keyframes nadiva-dialog { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes nadiva-backdrop { from { opacity: 0; } to { opacity: 1; } }
.gallery-primary { isolation: isolate; overflow: hidden; }
.gallery-primary > .gallery-outgoing {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; pointer-events: none;
}
.gallery-primary > .gallery-incoming { position: relative; z-index: 2; }
.gallery-primary > .gallery-zoom { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .gallery-outgoing { display: none; }
}

/* Keep hidden reference values out of the visible field styling. */
.checkout-layout input[type="hidden"] { display: none; }
.checkout-layout input:not([type="radio"]):not([type="hidden"]):focus-visible,
.checkout-layout textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.address-results [role="option"][aria-selected="true"],
.address-results [role="option"]:focus-visible { background: #ece9e2; outline: 1px solid var(--ink); outline-offset: -2px; }

/* Checkout: quiet typography, clear fields, one compact confirmation area. */
.checkout-page { max-width: 1240px; margin-inline: auto; }
.checkout-page > .back-link { margin-bottom: 20px; }
.checkout-page > h1 { margin-bottom: 12px; font-size: clamp(42px,5.4vw,68px); }
.checkout-intro { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 42px; }
.checkout-layout { grid-template-columns: minmax(0,1.25fr) minmax(310px,.9fr); gap: clamp(32px,6vw,84px); }
.checkout-section { padding: 28px 0 32px; }
.checkout-layout .step-heading { gap: 14px; margin-bottom: 24px; }
.checkout-layout .step-heading > span { font-size: 26px; color: #8a8273; }
.checkout-layout .step-heading h2 { font-size: 20px; }
.checkout-layout form label { font-size: 12px; line-height: 1.6; }
.checkout-layout .form-grid { gap: 20px 16px; }
#checkout-form .phone-field {
  display: grid; position: relative; margin-left: 0; font-size: inherit;
}
.phone-field .phone-prefix {
  position: absolute; left: 14px; top: 8px; bottom: 0;
  display: flex; align-items: center; color: var(--ink);
  font-size: 13px; pointer-events: none;
}
#checkout-form .phone-field input { padding-left: 49px; }
.checkout-layout input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.checkout-layout textarea {
  padding: 13px 14px; margin-top: 8px; min-height: 50px;
  border: 1px solid #dedad1; background: #fff9; border-radius: 2px;
  font-size: 15px; transition: border-color 160ms, background-color 160ms;
}
.checkout-layout input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):focus-visible,
.checkout-layout textarea:focus-visible { border-color: var(--ink); box-shadow: none; background: #fff; }
.checkout-layout .delivery-options { gap: 0; border: 1px solid #dedad1; margin: 22px 0; }
.checkout-layout .delivery-options label {
  flex: 1; justify-content: center; min-height: 48px; padding: 8px; gap: 7px; cursor: pointer; font-size: 12px;
}
.checkout-layout .delivery-options label + label { border-left: 1px solid #dedad1; }
.checkout-layout .delivery-options label:has(input:checked) { background: #eae5da; }
.checkout-layout .delivery-options:disabled { opacity: .45; }
.checkout-layout .delivery-options:disabled label { cursor: not-allowed; }
.checkout-layout input:disabled { opacity: .5; cursor: not-allowed; }
.checkout-layout .payment-option { padding: 17px 16px; border: 1px solid #dedad1; margin: 12px 0; gap: 12px; }
.checkout-layout .payment-option:has(input:checked) { border-color: #7b7569; background: #eee9df66; }
.checkout-layout .payment-option input { margin-top: 4px; }
.checkout-layout .payment-option small { margin-top: 4px; font-size: 11px; }
.checkout-comment { margin-top: 2px; }
.checkout-layout textarea { resize: vertical; }
.checkout-consent { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.checkout-layout .privacy-consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkout-layout .privacy-consent > input[type="checkbox"] {
  appearance: auto; width: 19px; height: 19px; min-height: 19px; padding: 0; margin: 2px 0 0;
  flex-shrink: 0; accent-color: var(--ink); border-radius: 0; box-shadow: none;
}
.checkout-layout .privacy-consent > input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: none; }
.checkout-layout .checkout-consent .privacy-consent > span { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink); }
.privacy-details { margin: 12px 0 24px 31px; }
.privacy-details > summary { display: flex; align-items: center; gap: 12px; width: fit-content; font-size: 12px; color: var(--muted); cursor: pointer; list-style: none; }
.privacy-details > summary::-webkit-details-marker { display: none; }
.privacy-details > summary > span { font-size: 17px; line-height: 1; transition: rotate 180ms; }
.privacy-details[open] > summary > span { rotate: 45deg; }
.privacy-details > div { margin-top: 14px; max-height: 280px; overflow: auto; padding-right: 14px; font-size: 12px; line-height: 1.8; }
.checkout-summary { padding: 28px; background: #eeebe3; top: 24px; border-top: 2px solid var(--ink); }
.checkout-summary > h2 { font-size: 18px; margin-bottom: 14px; }
.checkout-summary .cart-row { grid-template-columns: 68px minmax(0,1fr) auto; }
.checkout-summary .cart-row > a > img { width: 68px; height: 92px; object-fit: cover; }
.checkout-summary .cart-row > div > a { font-size: 13px; }
.checkout-summary .grand-total { margin-top: 20px; }
.checkout-summary .grand-total strong { font-size: 27px; }
.checkout-summary .summary-body > .fine-print { margin-top: 16px; }
.checkout-layout .checkout-submit { min-height: 56px; font-size: 14px; margin-top: 2px; }
.address-results { margin-top: 4px; background: #fff; border-color: #dedad1; }
@media (max-width:760px) {
  .checkout-page > h1 { font-size: 44px; }
  .checkout-intro { font-size: 13px; margin-bottom: 28px; max-width: 300px; }
  .checkout-layout { gap: 26px; }
  .checkout-layout .checkout-summary { padding: 20px; }
  .checkout-layout .checkout-section { padding: 24px 0; }
  .checkout-layout input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), .checkout-layout textarea { font-size: 16px; }
  .checkout-layout .delivery-options label { padding: 7px 5px; font-size: 11px; gap: 5px; }
  .checkout-layout .form-grid { column-gap: 12px; }
}

.checkout-layout label > #destination-label { font-size: 12px; color: var(--ink); margin-left: 0; }

/* Phone ergonomics: readable controls, thumb-sized targets and safe bottom inset. */
@media (max-width:760px) {
  #main input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
  #main select, #main textarea { font-size: 16px; }
  .header-inner .icon-button, .header-inner .bag-link { min-width: 44px; min-height: 44px; }
  .favorite { width: 44px; height: 44px; }
  .favorite svg { width: 18px; height: 18px; }
  .card-title { font-size: 12px; line-height: 1.5; gap: 8px; }
  .card-title span:last-child { font-size: 11px; white-space: nowrap; }
  .card-subtitle { font-size: 11px; line-height: 1.6; }
  .card-cta { min-height: 44px; font-size: 11px; align-items: center; }
  .sort-label { min-height: 44px; }
  .quantity { flex-wrap: wrap; gap: 6px; }
  .quantity button { min-width: 44px; min-height: 44px; font-size: 15px; }
  .quantity .remove { min-width: 64px; font-size: 12px; }
  .summary-toggle { min-height: 48px; font-size: 12px; }
  .privacy-details > summary { min-height: 44px; }
  .privacy-details { margin-top: 4px; margin-bottom: 14px; }
  .mobile-purchase > div { min-width: 0; flex: 1; }
  .mobile-purchase strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .mobile-purchase span { font-size: 12px; }
  .mobile-purchase .button { min-height: 48px; flex-shrink: 0; font-size: 12px; gap: 8px; padding-inline: 12px; }
  body:has(.mobile-purchase) { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .reviews-page label { margin-block: 22px; }
  .reviews-page input, .reviews-page select, .reviews-page textarea { min-height: 48px; padding: 12px 8px; }
  .checkout-summary .promo-input input { font-size: 16px; }
}
@media (max-width:400px) {
  .quantity .remove { flex-basis: 100%; text-align: left; padding-left: 0; }
  .checkout-layout .form-grid { grid-template-columns: 1fr; }
  .header-inner .brand img { max-width: 104px; }
  .mobile-purchase { padding-inline: 14px; gap: 10px; }
}
