/*
 * Vedam — the Liquid Glass layer
 * ===========================================================================
 * Sits on top of boutique.css / atelier.css and changes surfaces only:
 * translucent, slightly saturating panes with a bright specular rim, a soft
 * inner shadow at the foot, and a highlight that follows the pointer
 * (glass.js sets --gx/--gy). In Chromium the header also bends what is
 * behind it at its edges (the #vedam-lens SVG filter, added by glass.js).
 *
 * Anyone who asks for less — reduced transparency, more contrast, reduced
 * motion — gets solid, still surfaces (bottom of this file).
 * ===========================================================================
 */
:root {
  --glass-light: #fffaf0;
  --glass-tint: #f7ecde8c;
  --glass-tint-strong: #f7ecdecc;
  --glass-rim: #ffffffd9;
  --glass-foot: #8662491f;
  --glass-shadow: 0 10px 34px #4a0f1414, 0 2px 6px #4a0f1408;
  --glass-dark-tint: #4a0f1466;
  --glass-dark-rim: #fff3d975;
  --glass-blur: 22px;
  --glass-ease: cubic-bezier(.2, .9, .25, 1.15);
}

/* ------------------------------ the recipe ------------------------------ */
.global-header,
.boutique-menu,
.quick-dialog,
#all-dialog,
.site-toast,
.cart-summary,
.card-gallery-controls button,
.card-gallery-controls span,
.product-photo > button,
.piece-photo span,
.step-arrows button,
.catalogue-filters,
.launch-ribbon > a {
  --gx: 30%;
  --gy: 0%;
}

.boutique .card-gallery-controls button,
.boutique .card-gallery-controls span,
.boutique .product-photo > button,
.boutique .piece-photo span,
.boutique .step-arrows button {
  background:
    radial-gradient(120% 90% at var(--gx) var(--gy), #ffffff8a, transparent 60%),
    linear-gradient(160deg, #fffaf0b0, #f2e4cf80) !important;
  border: 1px solid #ffffffc7 !important;
  box-shadow: inset 0 1px 0 #ffffffe6, inset 0 -1px 1px var(--glass-foot), 0 4px 14px #4a0f1414 !important;
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  transition: transform .45s var(--glass-ease), box-shadow .3s ease;
}

/* The header: a deeper pane, lit from the pointer. */
.boutique .global-header {
  backdrop-filter: blur(var(--glass-blur)) saturate(175%) brightness(1.04) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(175%) brightness(1.04) !important;
  overflow: visible;
}
.boutique .global-header.glass-lens {
  backdrop-filter: url(#vedam-lens) blur(14px) saturate(175%) brightness(1.04) !important;
}

/* The pointer highlight glass.js adds to larger panes. */
.glass-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: var(--glass-on, 0);
  background: radial-gradient(260px circle at var(--gx) var(--gy), #ffffff52, #ffffff14 40%, transparent 70%);
  mix-blend-mode: soft-light;
  transition: opacity .5s ease;
}
.global-header[data-scene=home] .glass-light {
  background: radial-gradient(260px circle at var(--gx) var(--gy), #fff1d63d, transparent 65%);
  mix-blend-mode: screen;
}
.global-header > :not(.glass-light):not(.glass-rim) { position: relative; z-index: 1; }

/* A rim that catches the light: bright at the top-left, fading round.
   (The header, dialogs and toast are fixed already, which anchors it.) */
.boutique .cart-summary { position: relative; }
.glass-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 1px;
  background: linear-gradient(135deg, #ffffffe6, #ffffff30 30%, transparent 55%, #ffffff40 85%, #ffffffa0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.global-header[data-scene=home] .glass-rim {
  background: linear-gradient(135deg, #fff3d9a0, #fff3d920 35%, transparent 60%, #fff3d930 85%, #fff3d970);
}

/* ----------------------------- the panes -------------------------------- */
.boutique .quick-dialog,
.boutique #all-dialog {
  background:
    radial-gradient(140% 80% at var(--gx) var(--gy), #ffffff40, transparent 55%),
    linear-gradient(160deg, #fbf3e6f0, #f3e6d2e6);
  border: 1px solid #ffffffb0;
  border-radius: 28px;
  box-shadow: inset 0 1px 0 #ffffffe0, 0 30px 90px #22090a40;
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}
.boutique .quick-dialog[open],
.boutique #all-dialog[open],
.boutique #photo-dialog[open],
.boutique .atelier-lightbox[open] {
  animation: glass-rise .55s var(--glass-ease);
}
.boutique dialog::backdrop {
  background: #21090b7a;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.boutique .quick-image img,
.boutique .quick-image { border-radius: 18px; overflow: hidden; }

.boutique .boutique-menu {
  background: linear-gradient(170deg, #fbf3e6e6, #f2e3cde0);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  border-right: 1px solid #ffffffb0;
  box-shadow: inset -1px 0 0 #ffffffc0, 20px 0 60px #22090a30;
}
.boutique .boutique-menu[open] { animation: glass-slide .5s var(--glass-ease); }

.boutique .cart-summary {
  background:
    radial-gradient(120% 70% at var(--gx) var(--gy), #ffffff55, transparent 60%),
    linear-gradient(165deg, #f3e4ceeb, #ead7bdeb);
  border-radius: 26px;
  border: 1px solid #ffffffa8;
  box-shadow: inset 0 1px 0 #ffffffd0, inset 0 -1px 0 var(--glass-foot), var(--glass-shadow);
}
.boutique .cart-row { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; color: var(--muted); margin: -12px 0 18px; }
.boutique .cart-row span:last-child { text-align: right; }

.boutique .site-toast {
  border-radius: 999px;
  background: linear-gradient(160deg, #4a0f14d9, #3a0c10e0);
  border: 1px solid #f0e1be40;
  box-shadow: inset 0 1px 0 #fff3d940, 0 12px 40px #22090a40;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 22px;
}
.boutique .site-toast button {
  border: 1px solid #f0e1be55;
  background: #f0e1be14;
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  font-size: 10px;
}

.boutique .launch-ribbon {
  background: linear-gradient(180deg, #4a0f14e0, #3a0c10eb);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff3d930, 0 -10px 30px #27100d14;
}
.boutique .launch-ribbon > a { border-radius: 999px; background: #f0e1be10; box-shadow: inset 0 1px 0 #fff3d930; }

.boutique .catalogue-filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: linear-gradient(160deg, #fffaf0a8, #efe0c87a); border: 1px solid #ffffffb8;
  box-shadow: inset 0 1px 0 #ffffffd8, inset 0 -1px 0 var(--glass-foot), 0 4px 16px #4a0f140d; }
.boutique .catalogue-filters button { border-radius: 999px; transition: background .35s ease, color .35s ease, transform .45s var(--glass-ease); }

/* Buttons: a soft sheen that crosses on hover, a press that gives a little. */
.boutique .b-button { position: relative; overflow: hidden; border-radius: 999px; isolation: isolate;
  transition: background .25s ease, transform .45s var(--glass-ease), box-shadow .3s ease;
  box-shadow: inset 0 1px 0 #ffffff2e, 0 6px 18px #4a0f1420; }
.boutique .b-button::after { content: ''; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, #ffffff30 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .9s ease; }
.boutique .b-button:hover::after { transform: translateX(120%); }
.boutique .b-button.outline { background: #fffaf040; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 #ffffffb0, 0 4px 14px #4a0f140f; }
.boutique .b-button:active,
.boutique .card-gallery-controls button:active,
.boutique .step-arrows button:active,
.boutique .catalogue-filters button:active,
.boutique .header-cart:active,
.boutique .header-account:active { transform: scale(.96); }
.boutique .b-button[disabled] { opacity: .6; cursor: progress; }

/* Pills everywhere a button sits beside one. */
.boutique .discover { border-radius: 999px; box-shadow: inset 0 1px 0 #ffffff2e, 0 6px 18px #4a0f1420;
  transition: background .25s ease, transform .45s var(--glass-ease); }
.boutique .discover:active { transform: scale(.96); }
.boutique .quantity-picker { border-radius: 999px; overflow: hidden; background: #fffaf080; box-shadow: inset 0 1px 0 #ffffffb0; }
.boutique .photo-thumbs button { border-radius: 12px; overflow: hidden; }

/* ---------------------------- header account ----------------------------- */
.boutique .header-account { position: relative; display: grid; place-items: center; min-height: 44px; min-width: 44px; color: inherit; }
.boutique .header-account svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.boutique .global-nav > a.header-account::after { display: none; }
.boutique .header-account.signed-in::before { content: ''; position: absolute; right: 9px; top: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: #8c6330; box-shadow: 0 0 0 2px var(--ivory); }
.boutique .global-header[data-scene=home] .header-account.signed-in::before { background: var(--cream); box-shadow: 0 0 0 2px #4a0f14; }
.boutique .global-nav .header-account { border-left: 1px solid #a88b6655; padding-left: 16px; min-width: 58px; margin-left: 2px; }
.boutique .global-nav .header-account + .header-cart { border-left: 0 !important; padding-left: 0 !important; min-width: 44px !important; margin-left: -10px; }
.boutique .global-header[data-scene=home] .global-nav .header-account { border-left-color: currentColor; }

/* ------------------------------ prices ---------------------------------- */
.price-was { color: var(--muted); font-size: .82em; margin-left: 6px; text-decoration-thickness: 1px; }
.look-buy .price-was { opacity: .75; }
.card-price { text-align: right; }

/* -------------------------------- forms --------------------------------- */
.account-form, .waitlist-form { display: grid; gap: 6px; margin: 22px 0 8px; max-width: 460px; }
.account-form label, .waitlist-form label, .contact-form label { font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-top: 10px; display: block; }
.account-form .b-button, .waitlist-form .b-button { margin-top: 18px; width: 100%; }
.boutique .account-form input, .boutique .waitlist-form input, .boutique .contact-form input,
.boutique .contact-form select, .boutique .contact-form textarea {
  border-radius: 14px; background: #fffaf0b8; border: 1px solid #b79b7966;
  box-shadow: inset 0 1px 2px #4a0f140d; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.boutique .account-form input:focus, .boutique .waitlist-form input:focus, .boutique .contact-form input:focus,
.boutique .contact-form select:focus, .boutique .contact-form textarea:focus {
  outline: none; border-color: #8c6330; background: #fffdf8; box-shadow: 0 0 0 4px #d5bc8940, inset 0 1px 2px #4a0f140d;
}
.boutique .contact-form { border-radius: 28px; border: 1px solid #ffffffa0; box-shadow: inset 0 1px 0 #ffffffc8, var(--glass-shadow); }
.form-message { font-size: 12px; line-height: 1.7; color: #8a2a1f; min-height: 0; margin: 8px 0 0; }
.form-message:empty { display: none; }
.optional { letter-spacing: 0; opacity: .75; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-thanks { padding: 22px 24px; margin: 22px 0; border-radius: 22px; background: linear-gradient(160deg, #f3e4ceeb, #ead7bdeb);
  border: 1px solid #ffffffa8; box-shadow: inset 0 1px 0 #ffffffd0, var(--glass-shadow); max-width: 460px; }
.waitlist-thanks p:last-child { margin: 8px 0 0; font: italic 18px/1.5 var(--serif); }
.waitlist-thanks:focus { outline: none; }
.account-content .text-action + br + .text-action { margin-top: 4px; }

/* ------------------------------ motion ---------------------------------- */
@keyframes glass-rise { from { opacity: 0; transform: translateY(14px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes glass-slide { from { opacity: .4; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* -------------------------- asking for less ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .boutique .quick-dialog[open], .boutique #all-dialog[open], .boutique .boutique-menu[open],
  .boutique #photo-dialog[open], .boutique .atelier-lightbox[open] { animation: none; }
  .boutique .b-button::after { display: none; }
  .glass-light { display: none; }
  .boutique .b-button:active, .boutique .card-gallery-controls button:active, .boutique .step-arrows button:active,
  .boutique .catalogue-filters button:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .boutique .global-header { background: #f7ecde !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .boutique .global-header[data-scene=home] { background: #4a0f14 !important; }
  .boutique .quick-dialog, .boutique #all-dialog, .boutique .boutique-menu, .boutique .cart-summary,
  .boutique .catalogue-filters, .boutique .launch-ribbon, .boutique .site-toast {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .boutique .quick-dialog, .boutique #all-dialog, .boutique .boutique-menu { background: var(--ivory); }
  .boutique .cart-summary { background: #ecdcc6; }
  .boutique .site-toast, .boutique .launch-ribbon { background: var(--deep); }
  .glass-light, .glass-rim { display: none; }
}
@media (prefers-contrast: more) {
  .boutique .account-form input, .boutique .waitlist-form input, .boutique .contact-form input,
  .boutique .contact-form select, .boutique .contact-form textarea { border-color: var(--wine); background: #fff; }
}
