/* AlsVanHouts interaction layer: measured, tactile motion; no decorative bouncing. */
:root { --ease-out: cubic-bezier(.2,.7,.2,1); --motion-panel: 420ms; }
html { scrollbar-gutter: stable; scroll-padding-top: 110px; }
.header { position: sticky; top: 0; z-index: 15; transition: box-shadow 240ms ease; }
.header.is-scrolled { box-shadow: 0 6px 28px #10170d20; }
.icon-button { border-radius: 2px; transition: background 180ms, color 180ms; }
.header .icon-button:hover { background: #ffffff12; }
svg { stroke-width: 1.65; }
.btn { transition: background 200ms, border-color 200ms, color 200ms, box-shadow 200ms; }
.btn:hover { box-shadow: 0 4px 14px #21291c16; }
.btn svg, .text-link svg, .product-bottom svg { transition: transform 240ms var(--ease-out); }
.btn:hover svg, .text-link:hover svg, .product-bottom:hover svg { transform: translateX(3px); }
.btn:active, .icon-button:active, .product-quick:active { box-shadow: none; }
.product-quick { width: 44px; height: 44px; transition: background 180ms, color 180ms; }
.product-image > a { position: absolute; inset: 0; }
.product-image:focus-within { outline: 2px solid #9b7440; outline-offset: 4px; }
.product-card h3 a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.product-card h3 a:hover { text-decoration: underline; }
.principle svg { color: #6e765e; }
.footer-top > div > a:not(.brand) { min-height: 36px; }
.footer-top a svg { width: 14px; height: 14px; display: inline-block; vertical-align: -3px; margin-left: 5px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 36px; }
.field input, .field textarea, .field select { transition: border-color 160ms, box-shadow 160ms; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px #75815b26; }
.field [aria-invalid="true"] { border-color: #a44733; }
.field-error { color: #923c2b; font-size: 12px; line-height: 1.5; }
.field input[type=file] { padding: 8px; }
input::file-selector-button { border: 0; background: var(--ink); color: var(--paper); padding: 9px 13px; margin-right: 12px; font: inherit; cursor: pointer; }
.quantity button { display: grid; place-items: center; min-height: 47px; }
.quantity button svg { width: 15px; height: 15px; }
.quantity button:disabled { opacity: .3; }
.detail-photo button { min-height: 44px; }
.detail-photo button svg { width: 16px; height: 16px; }
summary::after { content: ''; flex-shrink: 0; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 240ms var(--ease-out); }
details[open] summary::after { content: ''; transform: rotate(180deg); }
summary { min-height: 30px; align-items: center; }
details[open] > p { animation: answer-enter 240ms var(--ease-out) both; }
.contact-method a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; }
.contact-method a svg { width: 19px; height: 19px; }
.toast { display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid #ffffff18; border-radius: 2px; }
.toast svg { width: 18px; height: 18px; color: #c9d0b5; }

/* Entry and exit are both animated; the dialog stays modal until exit completes. */
dialog { overscroll-behavior: contain; opacity: 1; transform: none; transition: transform var(--motion-panel) var(--ease-out), opacity 240ms ease; }
dialog::backdrop { background: #11180f66; backdrop-filter: blur(5px); opacity: 1; transition: opacity 240ms ease; }
dialog.is-entering::backdrop, dialog.is-leaving::backdrop { opacity: 0; }
.drawer.is-entering, .mobile-menu.is-entering { transform: translateX(100%); }
.drawer.is-leaving, .mobile-menu.is-leaving { transform: translateX(100%); transition-duration: 240ms; }
.search-dialog.is-entering, .editor-dialog.is-entering, .confirmation-dialog.is-entering { opacity: 0; transform: translateY(20px) scale(.985); }
.search-dialog.is-leaving, .editor-dialog.is-leaving, .confirmation-dialog.is-leaving { opacity: 0; transform: translateY(12px); transition-duration: 220ms; }
.drawer-header { position: sticky; top: -28px; z-index: 2; background: var(--paper); padding-top: 8px; }
.drawer .drawer-header { top: -28px; }
.editor-dialog .drawer-header { top: -30px; }
.search-count { padding: 18px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .035em; }
.search-result { transition: background 180ms; padding: 15px 9px; }
.search-result:hover, .search-result:focus-visible { background: var(--sand); }
.search-help a { text-decoration: underline; text-underline-offset: 4px; }
.search-results { padding-top: 0; }
.search-dialog .drawer-header h2 { font-size: 32px; }
.confirmation-dialog { width: min(440px, calc(100% - 32px)); border: 0; background: var(--paper); color: var(--ink); padding: 30px; }
.confirmation-dialog h2 { font-size: 31px; padding-right: 15px; }
.confirmation-dialog p { font-size: 13px; color: var(--muted); line-height: 1.85; margin: 20px 0 27px; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-danger { background: #843c2d; border-color: #843c2d; }
.btn-danger:hover { background: #6c2e22; border-color: #6c2e22; }
.editor-actions { position: sticky; bottom: -30px; z-index: 2; background: var(--paper); padding: 16px 0 8px; border-top: 1px solid var(--line); }
.editor-danger { min-height: 44px; padding: 8px; text-underline-offset: 4px; }
.cart-item-actions { gap: 8px; }
.cart-item .cart-item-actions { flex-wrap: wrap; }
.dialog-feedback { padding: 12px 14px; margin-bottom: 18px; border-left: 2px solid var(--olive); background: var(--sand); color: var(--ink); font-size: 12px; }
.detail-photo img { transition: transform 420ms var(--ease-out); }
.cart-quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.cart-item-actions .cart-quantity button { display: grid; place-items: center; width: 34px; height: 38px; text-decoration: none; padding: 7px; }
.cart-quantity span { width: 28px; text-align: center; }
.cart-quantity svg { width: 13px; height: 13px; }
.cart-item-actions > button { min-height: 40px; text-underline-offset: 4px; }

/* Mobile navigation is a deliberate operating surface, not an expanding header. */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: min(440px, calc(100% - 24px)); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; min-height: 94px; padding: 20px 24px; background: #080a07; color: var(--paper); }
.mobile-menu-header .brand { width: 174px; }
.mobile-menu-header .logo-window { width: 174px; height: 23px; }
.mobile-menu-header .logo-window img { width: 174px; height: 174px; top: -95.6px; }
.mobile-menu-header .icon-button { color: #d6c7af; }
.mobile-menu-body { display: flex; flex-direction: column; min-height: calc(100dvh - 94px); padding: 37px 28px 28px; }
.mobile-menu-kicker { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 21px; }
.mobile-menu .mobile-nav { display: block; padding: 0; color: var(--ink); background: transparent; }
.mobile-menu .mobile-nav a { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 18px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(26px, 7.4vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.mobile-nav a .nav-number { font-family: var(--sans); font-size: 9px; color: #858b75; letter-spacing: 0; align-self: center; }
.mobile-nav a svg { margin-left: auto; width: 23px; color: #7a8266; }
.mobile-nav a[aria-current] { color: #67714f; }
.mobile-menu-contact { margin-top: auto; padding-top: 35px; }
.mobile-menu-contact > p { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.mobile-menu-contact .btn { width: 100%; }
.mobile-menu-contact .menu-phone { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; min-height: 48px; margin-top: 9px; }
.mobile-menu-contact .menu-phone svg { width: 15px; height: 15px; }
.mobile-menu-foot { margin-top: 27px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.mobile-menu.is-entering .mobile-nav a { opacity: 0; transform: translateX(18px); }
.mobile-menu .mobile-nav a { opacity: 1; transform: none; transition: opacity 360ms ease, transform 440ms var(--ease-out); transition-delay: calc(var(--nav-index) * 45ms + 80ms); }
.mobile-menu.is-leaving .mobile-nav a { transition-delay: 0ms; }

/* Content movement supports reading order. Reveal state is added only after JS runs. */
.reveal { opacity: 1; transform: none; transition: opacity 650ms ease, transform 700ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal.reveal-pending:focus-within { opacity: 1; transform: none; }
.process-item > span { color: #7a8069; }
.mobile-nav a .nav-number { color: #69715c; }
.entry-motion { animation: content-enter 700ms var(--ease-out) both; animation-delay: var(--entry-delay, 0ms); }
@keyframes content-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes answer-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  html { scroll-padding-top: 94px; }
  .header-actions .icon-button { min-width: 44px; height: 48px; padding: 10px; }
  .product-info h3 { min-height: 2.5em; }
  .filter-tab { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-top > div > a:not(.brand) { min-height: 44px; }
  .drawer-header, .drawer .drawer-header, .editor-dialog .drawer-header { top: -22px; }
  .editor-actions { bottom: -22px; }
  .cart-item-actions .cart-quantity button { width: 38px; height: 44px; }
  .search-dialog .drawer-header h2 { font-size: 28px; }
}
@media (max-width: 370px) {
  .header { gap: 0; }
  .header > .brand { width: 153px; }
  .header > .brand .logo-window { width: 153px; height: 20px; }
  .header > .brand .logo-window img { width: 153px; height: 153px; top: -84px; }
  .mobile-menu-header { padding: 18px; }
  .mobile-menu-body { padding: 27px 22px 22px; }
  .mobile-menu .mobile-nav a { min-height: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.reveal-pending, .entry-motion { opacity: 1 !important; transform: none !important; }
}
