/* Zateemee Bride — each gown's own page, the bag, favourites and the client space (see scripts/shop.js) */

/* ---------- the gowns of a stand, as cards, and a gown's own page (inside the story pop-up) ---------- */
.pop-gowns { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(201, 164, 106, 0.3); }
.gown-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px 14px; margin-top: 14px; }
.gown-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer;
}
.gown-card img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(195, 154, 85, 0.35);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.gown-card:hover img, .gown-card:focus-visible img { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(195, 154, 85, 0.75), 0 14px 26px -14px rgba(150, 80, 60, 0.5); }
.gown-card:focus-visible { outline: none; }
.gown-card-name { margin-top: 8px; font: 400 20px/1.1 "Italiana", Georgia, serif; text-transform: uppercase; letter-spacing: 0.04em; color: #2a2522; }
.gown-card-sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #8a7d73; }
.gown-card-price { font-size: 13px; color: #2a2522; }
.gown-card-fav {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 250, 243, 0.92); color: #b88a49; font-size: 13px;
  opacity: 0; transition: opacity 0.3s ease;
}
.gown-card-fav.is-on { opacity: 1; }
.pop-text .gown-back { border: 0; background: none; padding: 0; margin: 0 0 18px; font: 500 11px/1 "DM Sans", Arial, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: #8c6a33; cursor: pointer; }
.pop-text .gown-title { margin: 6px 0 0; font: 400 28px/1.2 "Pinyon Script", "Snell Roundhand", cursive; color: #b88a49; }
.pop-text .gown-price { margin: 20px 0 0; display: grid; gap: 4px; }
.pop-text .gown-price b { font: 400 30px/1 "Italiana", Georgia, serif; letter-spacing: 0.02em; color: #2a2522; }
.pop-text .gown-price span { font-size: 12px; line-height: 1.6; color: #8a7d73; }
.pop-text .gown-note { font-size: 13px; color: #8a7d73; }
.gown-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.gown-actions .pop-cta { margin: 0; }
.gown-btn {
  padding: 13px 20px;
  border: 1px solid rgba(42, 37, 34, 0.3); border-radius: 999px;
  background: transparent;
  font: 500 11px/1 "DM Sans", Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
  color: #2a2522; cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.gown-btn:hover, .gown-btn:focus-visible { border-color: #b88a49; outline: none; }
.gown-btn.is-on { background: #fbf1e4; border-color: #b88a49; color: #8c6a33; }
.gown-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(201, 164, 106, 0.3); }
.gown-nav button { border: 0; background: none; padding: 6px 0; font: 500 11px/1 "DM Sans", Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #2a2522; cursor: pointer; }
.gown-nav button:hover { color: #8c6a33; }
.pop-step[hidden] { display: none; }

/* ---------- the icons: favourites, bag, client login — in the header on wider screens ---------- */
.account-bar {
  position: absolute; top: 50%;
  right: calc(clamp(116px, 11vw, 160px) + 350px);
  transform: translateY(-50%);
  display: flex; gap: 6px;
}
.account-bar button, .rooms-account button { position: relative; color: var(--ink, #2a2522); cursor: pointer; }
.account-bar button {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(42, 37, 34, 0.16);
  background: rgba(255, 252, 248, 0.6);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.account-bar button:hover, .account-bar button:focus-visible { background: #111; color: #fff; outline: none; }
.account-bar svg, .rooms-account svg, .sheet-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.account-bar b {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #b88a49; color: #fff;
  font: 600 9px/16px "DM Sans", Arial, sans-serif; text-align: center;
}
.account-bar b:empty, .rooms-account b:empty { display: none; }
@media (max-width: 760px) { .account-bar { display: none; } }

/* ---------- …and at the top of the Menu, with the gowns under their collections ---------- */
.gallery.is-menu .rooms { flex-direction: column; }
.rooms-account { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.rooms-account button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(195, 154, 85, 0.55); border-radius: 999px;
  background: rgba(255, 250, 243, 0.85);
  font: 500 10.5px/1 "DM Sans", Arial, sans-serif; letter-spacing: 0.16em; text-transform: uppercase;
}
.rooms-account b { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #b88a49; color: #fff; font: 600 9px/16px "DM Sans", Arial, sans-serif; text-align: center; }
.room-gowns { display: block; margin-top: 3px; text-align: center; }
.gallery.is-menu .rooms .room-gowns a {
  display: inline-block; margin: 0 6px;
  font: 400 12px/1.6 "DM Sans", Arial, sans-serif; letter-spacing: 0.08em; text-transform: none;
  color: #8a7d73; text-decoration: none;
}
.gallery.is-menu .rooms .room-gowns a:hover { color: #8c6a33; text-decoration: underline; }
@media (max-height: 520px) {
  .rooms-account { margin-bottom: 12px; }
  .rooms-account button { padding: 7px 12px; }
  .gallery.is-menu .rooms .room-gowns a { font-size: 11px; margin: 0 4px; }
}

/* ---------- the sheet: bag, favourites, client space — an ivory card like the invitation ---------- */
.sheet { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); font-family: "DM Sans", Arial, sans-serif; color: #2a2522; }
.sheet[hidden] { display: none; }
.sheet-veil {
  position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 50% 40%, rgba(255, 248, 242, 0.82), rgba(240, 214, 205, 0.9));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.45s ease;
}
.sheet.is-open .sheet-veil { opacity: 1; }
.sheet-card {
  position: relative;
  width: min(460px, 100%); max-height: calc(100svh - 28px);
  display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%), #fffaf3;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(195, 154, 85, 0.35), 0 40px 90px -30px rgba(150, 80, 60, 0.45);
  opacity: 0; transform: translateY(18px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 0.84, 0.3, 1);
}
.sheet.is-open .sheet-card { opacity: 1; transform: none; }
.sheet-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(195, 154, 85, 0.5); pointer-events: none; }
.sheet-inner { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 36px 34px 30px; text-align: center; }
.sheet-close { position: absolute; top: 16px; right: 18px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font: 300 24px/1 "DM Sans", Arial, sans-serif; color: #8a7d73; cursor: pointer; }
.sheet-close:hover { background: rgba(195, 154, 85, 0.12); color: #2a2522; }
.sheet-kicker { margin: 0; font-family: "Italiana", Georgia, serif; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: #8a7d73; }
.sheet-title { margin: 6px 0 12px; font: 400 46px/1.05 "Pinyon Script", "Snell Roundhand", cursive; color: #b88a49; }
.sheet-lede { margin: 0; font-family: "Italiana", Georgia, serif; font-size: 16px; color: #5d544d; }
.sheet-list { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; }
.sheet-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(195, 154, 85, 0.25); }
.sheet-open-gown { flex: 1; display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.sheet-open-gown img { width: 54px; height: 81px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(195, 154, 85, 0.4); }
.sheet-open-gown b { display: block; font: 400 22px/1.1 "Italiana", Georgia, serif; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 400; }
.sheet-open-gown em { display: block; margin-top: 3px; font-style: normal; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #8a7d73; }
.sheet-open-gown i { display: block; margin-top: 4px; font-style: normal; font-size: 14px; }
.sheet-remove { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 20px; color: #8a7d73; cursor: pointer; }
.sheet-remove:hover { background: rgba(195, 154, 85, 0.12); color: #2a2522; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.sheet-total b { font: 400 24px/1 "Italiana", Georgia, serif; letter-spacing: 0.04em; }
.sheet-small { margin: 10px 0 0; font-size: 11.5px; line-height: 1.6; color: #8a7d73; }
.sheet-empty { margin: 18px 0 4px; font-size: 14px; line-height: 1.7; color: #5d544d; }
.sheet-primary {
  margin-top: 18px; padding: 15px 34px;
  border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #d6b273, #b88a49);
  box-shadow: 0 10px 24px -10px rgba(150, 100, 40, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font: 500 11px/1.5 "DM Sans", Arial, sans-serif; letter-spacing: 0.26em; text-transform: uppercase;
  color: #fff; cursor: pointer;
}
.sheet-primary:hover, .sheet-primary:focus-visible { filter: brightness(1.05); outline: none; }
.sheet-quiet { margin-top: 16px; border: 0; background: none; font: 500 10.5px/1 "DM Sans", Arial, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #8a7d73; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sheet-tabs { display: flex; justify-content: center; gap: 6px; margin: 6px 0 16px; }
.sheet-tabs button { padding: 9px 15px; border: 1px solid rgba(195, 154, 85, 0.5); border-radius: 999px; background: transparent; font: 500 10.5px/1 "DM Sans", Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #2a2522; cursor: pointer; }
.sheet-tabs button[aria-selected="true"] { background: #2a2522; border-color: #2a2522; color: #fff; }
.sheet-form { display: grid; gap: 14px; }
.sheet-field { display: grid; gap: 4px; }
.sheet-field[hidden], .sheet-small[hidden], .sheet-error[hidden] { display: none; }
.sheet-field span { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: #8a7d73; }
.sheet-field input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid rgba(195, 154, 85, 0.55); border-radius: 0; background: transparent; padding: 8px 4px; font: 16px/1.4 "DM Sans", Arial, sans-serif; text-align: center; color: #2a2522; }
.sheet-field input:focus { outline: none; border-color: #b88a49; box-shadow: 0 1px 0 0 #b88a49; }
.sheet-error { margin: 0; font-size: 12px; color: #b04a5e; }
.sheet-links { display: grid; gap: 8px; margin: 18px 0 4px; }
.sheet-links button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(195, 154, 85, 0.45); border-radius: 999px; background: rgba(255, 250, 243, 0.8); font: 500 10.5px/1 "DM Sans", Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #2a2522; cursor: pointer; }
.sheet-links button:hover { border-color: #b88a49; }
.sheet-links b { margin-left: auto; color: #b88a49; }
html.sheet-open .music { opacity: 0; pointer-events: none; }
@media (max-width: 480px) { .sheet-inner { padding: 32px 24px 26px; } .sheet-title { font-size: 40px; } .sheet-primary { letter-spacing: 0.2em; padding: 14px 26px; } .shop-toast { letter-spacing: 0.1em; } }
@media (max-height: 520px) {                       /* phones held sideways: a tighter card that still fits */
  .sheet-inner { padding: 24px 30px 20px; }
  .sheet-title { font-size: 36px; margin: 2px 0 8px; }
  .sheet-tabs { margin: 2px 0 8px; }
  .sheet-form { gap: 8px; }
  .sheet-field input { padding: 5px 4px; }
  .sheet-primary { margin-top: 12px; padding: 12px 30px; }
  .sheet-links { gap: 6px; margin: 10px 0 2px; }
  .sheet-links button { padding: 9px 16px; }
  .sheet-lede { font-size: 14px; }
}

/* ---------- a quiet note when a gown is saved or added ---------- */
.shop-toast {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 28px); box-sizing: border-box;
  padding: 9px 10px 9px 18px; border-radius: 999px;
  background: #2a2522; color: #fff;
  font: 500 10.5px/1.3 "DM Sans", Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.shop-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.shop-toast button { border: 0; border-radius: 999px; padding: 8px 12px; background: #b88a49; color: #fff; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
