/* Sweetphie — boutique bakery, powder blue + soft pink */

:root {
  --blue: #B9DDF2;
  --blue-deep: #5F93B0;
  --pink: #F4C6D7;
  --blush: #FCEAF1;
  --cream: #FFFFFF;
  --ink: #2c3440;
  --mute: #5f6874;
  --paper: #FFFFFF;
  --line: #D8EAF5;
  --pink-ink: #A85D7C;
  --shadow: 0 1px 0 rgba(44, 52, 64, 0.08);
  --ease: 180ms ease;
  --page-pad: clamp(1rem, 2vw, 1.75rem);
  --font-display: "Fraunces", serif;
  --font-body: "Nunito", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
}

.font-body { font-family: var(--font-body); }

main {
  background: #FFFFFF;
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden { display: none !important; }

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: 100%;
  max-width: none;
  padding-inline: var(--page-pad);
  margin-inline: auto;
  box-sizing: border-box;
}

.doodle { display: block; color: var(--pink-ink); }
.doodle-star { width: 14px; height: 14px; color: var(--blue-deep); }
.doodle-line { width: 118px; height: 16px; margin: 0.35rem 0 1rem; color: #d48aa8; }
.doodle-bow { width: 42px; height: 28px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 4.4rem;
}
a.wordmark { text-decoration: none; color: inherit; }
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: var(--ink);
}

.wordmark-mark {
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  background: none;
  flex-shrink: 0;
}
.wordmark-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}

.wordmark-by {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--pink-ink);
  margin-top: 0.18rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.nav-btn {
  border: 0;
  background: none;
  color: var(--mute);
  padding: 0.5rem 0.7rem;
  font-size: 1.02rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.nav-btn:hover { color: var(--pink-ink); }

.nav-btn.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--pink);
}
.nav-btn-quiet { font-weight: 500; opacity: 0.8; }

.nav-split {
  width: 1px;
  height: 1rem;
  background: var(--line);
  margin: 0 0.35rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(15.5rem, 38vw);
  flex-shrink: 1;
}
.header-search-form {
  display: block;
  width: 100%;
  margin: 0;
}
.header-search-icon {
  position: absolute;
  left: 0.7rem;
  width: 1rem;
  height: 1rem;
  color: var(--mute);
  pointer-events: none;
}
.header-search-input {
  width: 100%;
  border: 1px solid #d5e8f3;
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.85rem 0.55rem 2.15rem;
  color: var(--ink);
  font-size: 0.9rem;
}
.header-search-input:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
  border-color: var(--pink);
}
.header-search-input::placeholder { color: #9aa3ad; }
.header-search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(22rem, 86vw);
  max-height: min(70vh, 22rem);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
  z-index: 60;
  box-shadow: 0 14px 36px rgba(53, 64, 82, 0.12);
}

@media (min-width: 980px) {
  .header-search { width: 17rem; }
}

.icon-btn {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  border: 1px solid #d5e8f3;
  background: rgba(255, 253, 251, 0.85);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  position: relative;
}
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.icon-btn:hover { background: var(--blue); }
.icon-btn-accent { background: var(--pink); border-color: #efc5d4; }

.cart-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  z-index: 2;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--pink-ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.menu-toggle { display: inline-grid; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 var(--page-pad) 1rem;
}

.nav-btn-mobile {
  text-align: left;
  border: 0;
  background: var(--blush);
  padding: 0.95rem 1.1rem;
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--ink);
  border-radius: 4px 18px 4px 18px;
}
.nav-btn-mobile.active { background: var(--pink); color: var(--ink); }

@media (min-width: 980px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

.tab-panel { display: none; padding: 0 0 3.5rem; }
.tab-panel.active { display: block; animation: rise 0.35s ease; }
@keyframes rise {
  from { transform: translateY(6px); }
  to { transform: none; }
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background var(--ease), transform var(--ease);
}

.btn-primary {
  background: var(--pink);
  color: var(--ink);
  border: 0;
}
.btn-primary:hover { background: #eeb4c8; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--blush); }

.btn-ghost {
  background: transparent;
  border: 1px dashed #c9b4bc;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--blue); border-style: solid; }

.btn-block { width: 100%; }

.text-link {
  border: 0;
  background: none;
  color: var(--pink-ink);
  font-weight: 700;
  padding: 0;
}
.text-link:hover { text-decoration: underline; }

.hero {
  width: 100%;
  padding-inline: var(--page-pad);
  box-sizing: border-box;
  margin: 1.5rem auto 0;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: transparent;
}

.hero-copy { max-width: min(46rem, 100%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-ink);
  margin: 0 0 0.6rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.2vw, 5.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-title em {
  font-style: italic;
  color: var(--pink-ink);
  font-weight: 500;
}

.hero-lede {
  color: var(--mute);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  min-width: 12.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--pink);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.hero-btn:hover {
  background: var(--blush);
}

.hero-btn.is-on,
.hero-btn.is-on:hover {
  background: var(--pink);
  color: var(--ink);
  border-color: var(--pink);
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--mute);
}

.hero-stage {
  position: relative;
  min-height: 22rem;
}

.polaroid {
  background: var(--paper);
  padding: 0.55rem 0.55rem 1.6rem;
  border: 1px solid #eadfe4;
  box-shadow: var(--shadow);
  position: absolute;
  width: min(58%, 320px);
}
.polaroid img {
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
  background: var(--blush);
}
.polaroid figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  text-align: center;
  margin-top: 0.45rem;
  color: var(--mute);
}

.polaroid-a { left: 6%; top: 8%; transform: rotate(-4.5deg); z-index: 2; }
.polaroid-b { right: 4%; top: 22%; transform: rotate(5deg); width: min(50%, 270px); z-index: 3; }
.polaroid-c { left: 28%; bottom: 0; transform: rotate(2deg); width: min(44%, 230px); z-index: 1; padding-bottom: 0.55rem; }
.polaroid-c img { height: 7.2rem; }

.sticker {
  position: absolute;
  z-index: 4;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 2px 10px;
}
.sticker-pink { background: var(--pink); right: 18%; top: 8%; transform: rotate(8deg); }
.sticker-blue { background: var(--blue); left: 2%; bottom: 18%; transform: rotate(-7deg); }
.hero-bow { position: absolute; right: 10%; bottom: 12%; z-index: 4; color: var(--pink-ink); }

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 34rem;
    padding-top: 1.5rem;
  }
  .hero-stage { min-height: 30rem; }
  .polaroid img { height: 13rem; }
  .polaroid-c img { height: 9.2rem; }
}

@media (min-width: 1400px) {
  .hero { min-height: 40rem; }
  .hero-stage { min-height: 36rem; }
  .polaroid img { height: 15rem; }
  .polaroid-c img { height: 11rem; }
  .hero-btn {
    min-width: 14rem;
    padding: 0.85rem 1.35rem;
    font-size: 1rem;
  }
}

.band { padding: 3.2rem 0 1rem; }
.band-tint {
  background: linear-gradient(180deg, transparent, rgba(185, 221, 242, 0.28) 40%, transparent);
}

.band-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.section-title,
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.55rem); }
.page-title { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.page-title em { color: var(--pink-ink); font-style: italic; font-weight: 500; }

.page-intro {
  padding-block: 2.2rem 1.4rem;
  max-width: none;
}
.page-desc { color: var(--mute); margin: 0.7rem 0 0; max-width: 42rem; }
.shop-intro {
  padding-block: 1.8rem 1.1rem;
  text-align: center;
}
.shop-intro .page-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.shop-intro .page-desc {
  margin: 0.4rem auto 0;
  max-width: 36rem;
}

.product-grid,
.product-mosaic {
  display: grid;
  gap: 1.1rem;
}
.product-grid {
  grid-template-columns: 1fr;
}
.product-mosaic { grid-template-columns: 1fr; }

.product-card {
  background: var(--paper);
  border: 1px solid #f0e2e7;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  border-radius: 2px 18px 2px 12px;
}
.product-card:has(.size-pick.is-open) { z-index: 4; }
.product-card:nth-child(2n) { border-radius: 16px 3px 14px 3px; }
.product-card:nth-child(3n) { border-radius: 4px; }

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blush);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover img { transform: scale(1.04); }

.product-card__body {
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  font-weight: 600;
}

.product-card .blurb {
  color: var(--mute);
  font-size: 0.9rem;
  margin: 0;
}

.size-pick {
  display: block;
  margin-top: 0.45rem;
  position: relative;
}
.size-pick.is-open { z-index: 5; }

.size-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid #e7d5dc;
  background: #fff;
  color: var(--ink);
  border-radius: 0.7rem;
  padding: 0.48rem 0.7rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.size-trigger:hover,
.size-pick.is-open .size-trigger {
  border-color: var(--pink);
}
.size-trigger:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.size-trigger__chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--pink-ink);
  transition: transform 0.18s ease;
}
.size-pick.is-open .size-trigger__chevron { transform: rotate(180deg); }

.size-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.28rem);
  z-index: 6;
  display: grid;
  gap: 0.12rem;
  padding: 0.28rem;
  background: #fff;
  border: 1px solid #e7d5dc;
  border-radius: 0.8rem;
  box-shadow: 0 12px 28px rgba(53, 64, 82, 0.14);
}
.size-menu[hidden] { display: none; }

.size-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 0.55rem;
  padding: 0.42rem 0.55rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.size-option:hover { background: #fff7f9; }
.size-option.is-on {
  background: var(--blush);
  color: var(--ink);
}
.size-option__price {
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.7rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pink-ink);
}

.product-card .btn-primary {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
}

.badge {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.5rem;
  background: var(--blue);
  color: var(--ink);
  z-index: 1;
}
.badge-popular { background: var(--pink); }

.stars { color: #e3c5d0; letter-spacing: 0.05em; font-size: 0.85rem; }
.stars .filled { color: #c56b8c; }

@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .product-mosaic { grid-template-columns: 1.15fr 0.85fr; }
  .product-mosaic .product-card:first-child { grid-row: span 2; }
  .product-mosaic .product-card:first-child .product-card__img-wrap { aspect-ratio: 4 / 5; }
}

@media (min-width: 980px) {
  .product-mosaic { grid-template-columns: 1.2fr 0.9fr 0.9fr; }
  .product-mosaic .product-card:first-child { grid-row: span 1; }
  .product-mosaic .product-card:first-child .product-card__img-wrap { aspect-ratio: 4 / 3.2; }
}

.collection-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
.collection-tile {
  position: relative;
  height: 16.5rem;
  min-height: 16.5rem;
  border: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: #fff;
  background: #9bb8c9;
  cursor: pointer;
}
.collection-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(197, 107, 140, 0.55) 0%, rgba(185, 221, 242, 0.12) 48%, transparent 72%);
}
.collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  position: absolute;
  inset: 0;
  filter: none;
  transition: transform 0.4s ease;
}
.collection-tile:hover img { transform: scale(1.04); }
.collection-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  padding: 1rem 1.1rem 1.05rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.collection-tile small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  opacity: 0.9;
}

@media (min-width: 760px) {
  .collection-row { grid-template-columns: repeat(3, 1fr); }
}

.about-strip {
  background: linear-gradient(180deg, rgba(244, 198, 215, 0.28), rgba(185, 221, 242, 0.22));
}
.about-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center;
  background: var(--blue);
  border-radius: 12px;
}
.about-photo figcaption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--mute);
  margin-top: 0.5rem;
}
.about-copy p { color: var(--mute); }
.about-copy .btn-primary { margin-top: 0.85rem; }

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
  .about-photo img { height: 22rem; }
}

.split-feature { display: grid; margin-top: 1rem; }
.split-pink,
.split-blue { padding: 2.2rem 1.2rem; }
.split-pink { background: var(--blush); }
.split-blue { background: var(--blue); }
.split-pink h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 0.7rem;
  max-width: 18ch;
}
.split-pink p { color: var(--ink); max-width: 36ch; }
.split-blue figure { margin: 0; }
.split-blue img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.split-blue figcaption {
  font-family: var(--font-display);
  font-style: italic;
  margin-top: 0.6rem;
}

@media (min-width: 800px) {
  .split-feature { grid-template-columns: 1.1fr 0.9fr; }
  .split-pink { padding: 3.5rem 8% 3.5rem 12%; }
  .split-blue { padding: 3.5rem 10% 3.5rem 8%; }
  .split-blue img { height: 22rem; }
}

.notes-row { display: grid; gap: 1rem; }
.note-slip {
  margin: 0;
  background: var(--paper);
  border: 1px dashed #e0c9d2;
  padding: 1.15rem 1.2rem;
}
.note-slip p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  margin: 0 0 0.7rem;
}
.note-slip cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--mute);
}
.note-tilt-l { transform: rotate(-1.2deg); }
.note-tilt-r { transform: rotate(1.1deg); background: #f7fbfe; border-color: #c5dceb; }

@media (min-width: 800px) {
  .notes-row { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .note-center { margin-top: 1.4rem; }
}

.about-page {
  padding-block: 2.2rem 2.4rem;
  display: grid;
  gap: 1.25rem;
}
.about-story {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: var(--paper);
  padding: 0.85rem;
  border: 1px solid var(--line);
}
.about-story-photo {
  margin: 0;
}
.about-story-photo img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center;
  background: var(--blush);
}
.about-story-copy {
  padding: 0.4rem 0.7rem 0.7rem;
}
.about-story-copy .page-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.7rem;
}
.about-story-copy p {
  color: var(--mute);
  margin: 0 0 0.55rem;
  max-width: 38rem;
}
.about-story-copy p:last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  .about-story {
    grid-template-columns: 0.92fr 1.08fr;
    padding: 0.9rem;
    gap: 1.6rem;
  }
  .about-story-photo img { height: 20rem; }
  .about-story-copy { padding: 1rem 1.2rem 1rem 0.2rem; }
}

.about-paths {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.path-block .eyebrow,
#tab-about .eyebrow { display: none !important; }
.path-block {
  background: var(--paper);
  padding: 1.25rem 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.path-block-alt { border-left-color: var(--blue-deep); }
.path-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}
.path-block p {
  color: var(--mute);
  margin: 0 0 0.55rem;
}
.path-block .btn-secondary { align-self: flex-start; }

@media (min-width: 720px) {
  .about-paths { grid-template-columns: 1fr 1fr; }
}

.contact-panel {
  background: var(--blue);
  padding: 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.contact-copy h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}
.contact-copy p {
  margin: 0;
  color: var(--ink);
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.contact-item {
  background: var(--paper);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}
@media (min-width: 800px) {
  .contact-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dash-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}
.stat-tile {
  background: var(--paper);
  border: 1px solid #f0e2e7;
  border-radius: 2px 18px 2px 12px;
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow);
}
.stat-tile:nth-child(2n) { border-radius: 16px 3px 14px 3px; }
.stat-tile:nth-child(3n) { border-radius: 4px 14px 4px 16px; }
.summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.35rem;
}
.summary-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0;
  color: var(--ink);
}
.summary-value-sm { font-size: 1.15rem; line-height: 1.25; }
.summary-sub { color: var(--mute); font-size: 0.82rem; margin: 0.2rem 0 0; }

.chart-panel {
  background: var(--paper);
  border: 1px solid #f0e2e7;
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.section-block { margin-bottom: 2.2rem; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.section-heading h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
}
.section-hint { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--mute); }

.shop-tabs-wrap {
  padding-bottom: 2.4rem;
}
.shop-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.shop-tab {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--mute);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.shop-tab:hover {
  color: var(--ink);
  border-color: var(--pink);
}
.shop-tab.is-active {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}
.shop-panel { display: none; }
.shop-panel.is-active { display: block; }

@media (max-width: 640px) {
  .shop-tabs { grid-template-columns: 1fr; }
}

.builder-hero {
  text-align: center;
  padding: 1.8rem 0 0.6rem;
}
.builder-hero .page-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}
.builder-hero .page-desc {
  margin: 0.4rem auto 1.2rem;
  max-width: 34rem;
  color: var(--mute);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.builder-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 auto 1.4rem;
  padding: 0;
  max-width: 52rem;
}
.builder-progress li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mute);
}
.builder-progress li span {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--mute);
  font-size: 0.72rem;
}
.builder-progress li.is-on span,
.builder-progress li.is-current span {
  background: var(--blue);
  border-color: var(--blue-deep);
  color: #fff;
}
.builder-progress li.is-current { color: var(--ink); }

.builder-layout {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2.2rem;
}
.builder-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.1rem;
  box-shadow: 0 10px 30px rgba(44, 52, 64, 0.05);
}
.builder-steps { display: grid; gap: 1.15rem; }

.builder-step {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0.25rem 0.85rem;
  box-shadow: none;
  border-bottom: 1px dashed var(--line);
}
.builder-step:last-child { border-bottom: 0; padding-bottom: 0.2rem; }

.builder-step-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.builder-step-hint {
  margin: 0 0 0.95rem 2.75rem;
  color: var(--mute);
  font-size: 0.9rem;
}
.step-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.option-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
.option-grid-size,
.option-grid-flavor,
.option-grid-topping { grid-template-columns: 1fr 1fr; }
.option-grid-frosting { grid-template-columns: 1fr; }

.option-tile {
  position: relative;
  border: 1.5px solid #e7d5dc;
  background: #fff;
  text-align: left;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-radius: 0.95rem;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
}
.option-tile:hover {
  border-color: var(--pink);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(168, 93, 124, 0.1);
}
.option-tile.selected {
  border-color: #d48aa8;
  background: #f8e4ec;
  box-shadow: none;
}
.opt-photo {
  width: 100%;
  height: 7.2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f7f2f4;
  display: grid;
  place-items: center;
  padding: 0.35rem;
}
.opt-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.opt-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  padding: 0 0.15rem 0.15rem;
}
.opt-check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #c56b8c;
  color: #fff;
  font-size: 0.72rem;
  display: none;
  place-items: center;
  z-index: 1;
}
.option-tile.selected .opt-check { display: grid; }
.opt-name {
  font-weight: 800;
  color: var(--ink);
  padding-right: 1.2rem;
  font-size: 0.95rem;
}
.opt-sub { font-size: 0.78rem; color: var(--mute); }
.opt-price { font-size: 0.9rem; color: var(--ink); font-weight: 800; }

.tile-frosting {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
}
.tile-frosting .opt-photo {
  width: 5.2rem;
  height: 5.2rem;
  flex-shrink: 0;
}
.tile-frosting .opt-copy { padding: 0; }

.tile-flavor .opt-photo {
  height: 8.8rem;
  padding: 0.55rem;
  background: #fff;
}
.tile-flavor .opt-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tile-topping .opt-photo {
  height: 10rem;
  padding: 0.7rem;
  background: #fff;
}
.tile-topping .opt-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

@media (min-width: 900px) {
  .option-grid-size,
  .option-grid-flavor { grid-template-columns: repeat(4, 1fr); }
  .option-grid-frosting { grid-template-columns: repeat(3, 1fr); }
  .option-grid-topping { grid-template-columns: repeat(3, 1fr); }
  .tile-size .opt-photo { height: 8.4rem; }
  .tile-flavor .opt-photo { height: 9.2rem; }
  .tile-topping .opt-photo { height: 10.6rem; }
}

.builder-summary { width: 100%; }
.summary-sticky {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: 0 14px 36px rgba(44, 52, 64, 0.08);
}
.summary-sticky .panel-title {
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
}
.summary-preview {
  margin: 0 0 0.9rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7fa 0%, #ffeef4 100%);
  padding: 0.55rem 0.55rem 0.45rem;
}
.cake-stage {
  position: relative;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  height: auto;
  margin-inline: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #ffe8f0;
}
.cake-stage.is-empty {
  background: linear-gradient(180deg, #fff9fb 0%, #ffeef4 100%);
}
.cake-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.25rem;
  color: var(--mute);
  padding: 1rem;
  z-index: 1;
}
.cake-stage:not(.is-empty) .cake-empty {
  display: none;
}
.cake-empty span {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.95rem;
}
.cake-empty small {
  font-size: 0.78rem;
}
.cake-base[hidden] {
  display: none !important;
}
.cake-base {
  position: absolute;
  left: 4%;
  bottom: 4%;
  width: 92%;
  height: 92%;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 1;
}
.cake-stage[data-layers="3"] .cake-base {
  transform: none;
}
.cake-toppings {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.cake-top-layer {
  position: absolute;
  left: 4%;
  bottom: 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}
.cake-stage.has-tops .cake-base {
  filter: brightness(0.98);
}
.topping-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.1rem;
  justify-content: center;
}
.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #efd0dc;
  border-radius: 999px;
  padding: 0.18rem 0.55rem 0.18rem 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 100%;
}
.top-chip img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.top-chip em {
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7.5rem;
}
.preview-frost-label {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--mute);
  font-weight: 600;
}
.summary-lines {
  font-size: 0.9rem;
  color: var(--ink);
  min-height: 4rem;
  display: grid;
  gap: 0.55rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed #ecd6de;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row > div {
  min-width: 0;
  flex: 1;
}
.summary-row small {
  display: block;
  color: var(--mute);
  margin-top: 0.1rem;
}
.summary-remove {
  border: 0;
  background: #f7e6ed;
  color: #b45a7a;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.summary-remove:hover {
  background: #efd0dc;
  color: #8f3f5c;
  text-decoration: none;
}
.summary-change {
  border: 0;
  background: none;
  color: var(--pink-ink);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0;
  white-space: nowrap;
}
.summary-change:hover { text-decoration: underline; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1rem 0 0.95rem;
  font-weight: 700;
  padding-top: 0.85rem;
  border-top: 1px solid #e3c9d4;
}
.total-amount {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
}
.summary-sticky .btn-primary {
  padding: 0.95rem 1.2rem;
  font-size: 0.98rem;
}
.summary-sticky .helper-text {
  text-align: center;
  margin-top: 0.65rem;
}
.summary-help {
  margin-top: 0.95rem;
  background: rgba(142, 182, 204, 0.28);
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
}
.summary-help p {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}
.summary-help a {
  color: var(--pink-ink);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}
.summary-help a:hover { text-decoration: underline; }

.builder-step .form-input,
.builder-step .form-textarea {
  border-radius: 0.75rem;
  border-color: #eadfe4;
  background: #fff;
}
.builder-step .form-input:focus,
.builder-step .form-textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
}

@media (min-width: 640px) {
  .option-grid-2 { grid-template-columns: 1fr 1fr; }
  .option-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .option-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .builder-main { padding: 1.35rem 1.4rem; }
}

@media (min-width: 980px) {
  .builder-layout {
    grid-template-columns: 1.5fr 0.78fr;
    align-items: start;
    gap: 1.5rem;
  }
  .builder-summary {
    position: sticky;
    top: 5.5rem;
  }
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0.8rem 0 0.3rem;
}
.optional { color: var(--mute); font-weight: 500; }
.form-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
}
.form-input:focus {
  outline: 2px solid var(--blue-deep);
  outline-offset: 1px;
}
.form-textarea { min-height: 5.5rem; resize: vertical; }
.form-stack { display: grid; gap: 0.2rem; margin-bottom: 1rem; }
.helper-text { font-size: 0.8rem; color: var(--mute); margin: 0.55rem 0 0; }

.site-footer {
  background: #5f93b0;
  border-top: 1px solid #4f819c;
  padding: 2.4rem 0 2rem;
  margin-top: 1rem;
  color: #f2f5f7;
}
.footer-grid { display: grid; gap: 1.4rem; }
.footer-blurb { color: #d7e4ec; max-width: 28ch; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
}
.site-footer .wordmark-name { color: #fff; }
.site-footer .wordmark-by { color: #f0c9d6; }
.footer-logo {
  width: 3.35rem;
  height: 3.35rem;
  object-fit: contain;
}
.footer-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: #f0c9d6;
}
.footer-grid button,
.footer-grid a {
  display: block;
  border: 0;
  background: none;
  padding: 0.15rem 0;
  text-align: left;
  text-decoration: none;
  color: #f2f5f7;
}
.footer-grid button:hover,
.footer-grid a:hover { color: #ffe4ee; }
.site-footer p { color: #d7e4ec; }
.site-footer .footer-label { color: #f0c9d6; }

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1fr; }
}

.search-hit {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.4rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.search-hit:hover {
  background: var(--blush);
  border-color: var(--pink);
}
.search-hit img {
  width: 3.4rem;
  height: 2.7rem;
  object-fit: cover;
  background: var(--blush);
  border-radius: 0.4rem;
}
.search-hit .blurb {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-hit-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pink-ink);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(244, 198, 215, 0.45);
}
.product-card--pulse {
  animation: productPulse 1.6s ease;
}
@keyframes productPulse {
  0% { box-shadow: 0 0 0 0 rgba(197, 107, 140, 0.45); }
  40% { box-shadow: 0 0 0 8px rgba(244, 198, 215, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(244, 198, 215, 0); }
}
.search-empty {
  color: var(--mute);
  padding: 0.55rem 0.35rem;
  margin: 0;
  font-size: 0.88rem;
}

.overlay-scrim {
  position: fixed;
  inset: 0;
  background: rgba(53, 64, 82, 0.32);
  z-index: 50;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 51;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 36px rgba(44, 52, 64, 0.12);
  transition: transform 0.3s ease;
}
.translate-x-full { transform: translateX(100%); }

.drawer-head,
.drawer-foot { padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fffafc;
}
.drawer-head .panel-title {
  margin: 0;
  font-size: 1.35rem;
}
.drawer-head .icon-btn { margin-left: auto; }
.drawer-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
  background: #fff;
  display: grid;
  gap: 0.55rem;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  padding: 2rem;
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: auto 4.4rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #eee3e8;
  border-radius: 0.9rem;
  background: #fff;
  align-items: start;
  opacity: 0.58;
  transition: opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.cart-line.is-selected {
  opacity: 1;
  border-color: #efc5d4;
  box-shadow: 0 6px 18px rgba(168, 93, 124, 0.08);
}
.cart-select {
  display: grid;
  place-items: center;
  padding-top: 1.45rem;
  flex-shrink: 0;
  cursor: pointer;
}
.cart-select input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--pink-ink, #c56b8c);
  cursor: pointer;
}
.cart-line img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: cover;
  border-radius: 0.7rem;
  background: var(--blush);
  display: block;
}
.cart-line-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}
.cart-line-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.cart-line-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.cart-line-details {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.35;
}
.cart-line-price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #a85d7c;
  white-space: nowrap;
}
.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem;
  border: 1px solid #eadfe5;
  border-radius: 999px;
  background: #fffafc;
}
.cart-qty-value {
  min-width: 1.35rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}
.cart-remove {
  border: 0;
  background: none;
  color: var(--mute);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.15rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.cart-remove:hover {
  color: #a85d7c;
}
.cart-select-hint {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  color: var(--mute);
}
.qty-btn {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: #f4c6d7;
  color: #59354a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.qty-btn:hover { background: #edb5cb; }
.totals-line {
  display: flex;
  justify-content: space-between;
  color: var(--mute);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.drawer-foot .total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.15rem 0 0.35rem;
  font-weight: 800;
}
.drawer-foot .total-amount {
  font: 700 1.45rem Fraunces, serif;
  color: var(--ink);
}
.drawer-foot .btn-primary {
  margin-top: 0.15rem;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.checkout-overlay.flex { display: flex !important; }

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: auto;
  background: var(--paper);
  padding: 1.65rem 1.45rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(44, 52, 64, 0.14);
}

@media (min-width: 720px) {
  .checkout-overlay .modal {
    width: min(620px, 100%);
  }
}

.checkout-overlay .modal.preorder-modal,
.preorder-modal {
  width: min(1080px, 92vw) !important;
  max-width: min(1080px, 92vw);
  max-height: none;
  height: auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.45rem 1.2rem;
  margin: 1rem auto;
}

.checkout-modal-lead {
  margin: 0 0 0.85rem;
  max-width: 40rem;
  font-size: 0.92rem;
}

.checkout-order-preview {
  border: 1px solid #e3eef4;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fff 0%, #f7fbfe 100%);
  overflow: hidden;
}

.checkout-order-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #e7eef3;
  background: #f3f9fd;
}

.checkout-order-preview-head strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.checkout-order-preview-head span {
  color: var(--mute);
  font-size: 0.84rem;
}

.checkout-order-preview-head span strong {
  color: #a85d7c;
  font-size: 0.95rem;
}

.checkout-items-preview {
  display: grid;
  gap: 0;
  max-height: 14rem;
  overflow-y: auto;
}

.checkout-item-preview {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #eef3f7;
}

.checkout-item-preview:last-child {
  border-bottom: 0;
}

.checkout-item-preview img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: cover;
  border-radius: 0.65rem;
  background: var(--blush, #fceaf1);
  display: block;
}

.checkout-item-copy {
  min-width: 0;
}

.checkout-item-copy strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.25;
}

.checkout-item-copy span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: var(--mute);
}

.checkout-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #a85d7c;
  white-space: nowrap;
}

.checkout-items-empty {
  margin: 0;
  padding: 0.9rem 0.85rem;
  color: var(--mute);
  font-size: 0.86rem;
}

.preorder-modal .modal-title {
  font-size: 1.7rem !important;
  margin: 0 0 0.75rem;
  padding-right: 2.5rem;
  flex-shrink: 0;
}

#preorder-form-wrap {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.preorder-split-form {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.preorder-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  overflow: visible;
}

.preorder-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
}

.preorder-col-right {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.preorder-cake-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
  flex-shrink: 0;
}

.preorder-cake-preview img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: cover;
  border-radius: 0.7rem;
  background: var(--blush, #fceaf1);
  flex-shrink: 0;
}

.preorder-cake-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.preorder-cake-meta > strong {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
}

.preorder-cake-size {
  color: var(--mute);
  font-size: 0.82rem;
}

.preorder-totals-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.2rem;
  font-size: 0.84rem;
  color: var(--mute);
}

.preorder-totals-inline strong {
  color: var(--ink);
  font-weight: 800;
}

.preorder-items-compact {
  display: none;
}

.preorder-details {
  gap: 0.55rem;
}

.preorder-details .form-label {
  margin-bottom: 0.22rem;
  font-size: 0.84rem;
}

.preorder-details .helper-text {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
}

.preorder-details .form-input,
.preorder-details textarea.form-input {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.preorder-details textarea.form-input {
  min-height: 2.8rem;
  resize: vertical;
}

.preorder-col-right .payment-methods {
  margin-bottom: 0;
}

.preorder-col-right .payment-option {
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.45rem;
}

.preorder-col-right .payment-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  padding: 0.7rem;
}

.preorder-col-right .gcash-panel {
  margin-top: 0.45rem;
}

.preorder-modal-foot {
  flex-shrink: 0;
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.preorder-modal-foot .btn-primary {
  min-height: 2.7rem;
}

@media (min-width: 900px) {
  .checkout-overlay:has(.preorder-modal) {
    padding: 1rem;
    align-items: flex-start;
  }

  .checkout-overlay .modal.preorder-modal,
  .preorder-modal {
    width: min(1120px, 90vw) !important;
    max-width: min(1120px, 90vw);
    min-height: 0;
    margin: 0.75rem auto;
    padding: 1.4rem 1.55rem 1.25rem;
  }

  .preorder-split {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .preorder-col-left {
    border-right: 1px solid var(--line);
    padding-right: 1.2rem;
  }

  .preorder-col-right {
    border-top: 0;
    padding-top: 0;
    padding-left: 0.2rem;
  }

  .preorder-modal .modal-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.7rem;
  }

  .preorder-cake-preview {
    padding: 0.75rem 0.85rem;
  }

  .preorder-cake-preview img {
    width: 4.6rem;
    height: 4.6rem;
  }

  .preorder-details .form-input,
  .preorder-details textarea.form-input {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.95rem;
  }

  .preorder-col-right .payment-option {
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.45rem;
  }

  .preorder-modal-foot {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .preorder-modal-foot .btn-primary {
    min-height: 2.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 899px) {
  .checkout-overlay .modal.preorder-modal,
  .preorder-modal {
    width: min(640px, 94vw) !important;
    max-width: min(640px, 94vw);
    min-height: 0;
    overflow: visible;
  }
}

.modal-close { position: absolute; top: 0.7rem; right: 0.7rem; }
.modal-title { font-size: 1.7rem !important; }
.mini-total {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  font-weight: 700;
}

/* Checkout payment choices */
.payment-methods {
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
  min-width: 0;
}
.payment-methods > .form-label { margin-top: 0.2rem; margin-bottom: 0.45rem; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.payment-option:has(input:checked) { border-color: var(--blue-deep); background: #edf7fc; }
.payment-option input { accent-color: var(--blue-deep); flex: 0 0 auto; width: 1rem; height: 1rem; }
.payment-option-copy { display: grid; gap: 0.12rem; flex: 1; min-width: 0; line-height: 1.35; }
.payment-option-copy strong { font-size: 0.95rem; }
.payment-option-copy small { color: var(--mute); font-size: 0.78rem; }
.payment-tag { color: var(--pink-ink); font-size: 0.68rem; font-weight: 800; white-space: nowrap; }
.payment-note { padding: 0.75rem; margin: 0.55rem 0; border-left: 3px solid var(--blue-deep); background: #edf7fc; font-size: 0.84rem; }
.payment-note p { margin: 0.2rem 0 0.55rem; color: var(--mute); }
.payment-disclaimer { margin: 0.6rem 0 0; font-size: 0.75rem; line-height: 1.45; color: var(--mute); }

.gcash-panel {
  margin: 0.55rem 0 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #c5e2f0;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #f3faff 0%, #edf7fc 100%);
}

.gcash-panel-head {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #d4e8f3;
}

.gcash-panel-head strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.gcash-panel-head span {
  color: var(--mute);
  font-size: 0.78rem;
}

.gcash-panel-wait {
  margin: 0;
  color: var(--mute);
  font-size: 0.84rem;
  line-height: 1.45;
}

.gcash-pay-account {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e0eef6;
}

.gcash-pay-account-title {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.gcash-pay-account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.gcash-pay-field {
  display: grid;
  gap: 0.12rem;
}

.gcash-pay-label {
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gcash-pay-value {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.gcash-pay-mobile {
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.gcash-qr {
  margin: 0.7rem 0 0;
  text-align: center;
}

.gcash-qr img {
  width: min(100%, 8.5rem);
  height: auto;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
}

.gcash-qr figcaption {
  margin-top: 0.3rem;
  color: var(--mute);
  font-size: 0.72rem;
}

.gcash-proof-box {
  margin: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e0eef6;
}

.gcash-proof-title {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.gcash-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.gcash-proof-box .form-label {
  margin-bottom: 0.22rem;
  font-size: 0.78rem;
}

.gcash-proof-box .form-input {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.88rem;
}

.gcash-verify-note {
  margin: 0.55rem 0 0 !important;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--mute);
}

@media (min-width: 520px) {
  .gcash-pay-account-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
  }
}

@media (min-width: 900px) {
  .preorder-col-right .gcash-proof-grid {
    grid-template-columns: 1fr;
  }
}

.payment-settings-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  max-width: 34rem;
}
.payment-settings-form .form-label {
  margin-top: 0.85rem;
}
.payment-settings-form .btn-primary {
  margin-top: 1rem;
}
.payment-settings-preview {
  margin: 1rem 0;
}
.payment-settings-qr-preview {
  display: block;
  width: min(100%, 11rem);
  margin-top: 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
}
.payment-settings-clear-qr {
  margin-top: 0.85rem;
}
@media (max-width: 420px) { .payment-option { align-items: flex-start; } .payment-tag { font-size: 0.62rem; } }

.success-view {
  text-align: center;
  padding: 0.35rem 0.25rem 0.15rem;
}
.success-mark {
  font-size: 1.6rem;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
}
.success-view .modal-title {
  margin: 0 0 0.55rem !important;
  padding-right: 0 !important;
  font-size: 1.55rem !important;
}
.success-view .page-desc {
  margin: 0 auto 1.15rem;
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.success-view .btn-primary {
  max-width: 14rem;
  margin-left: auto;
  margin-right: auto;
}

.checkout-overlay .modal.preorder-modal.is-success {
  width: min(420px, 92vw) !important;
  max-width: min(420px, 92vw);
  min-height: 0;
  height: auto;
  margin: 12vh auto;
  padding: 1.85rem 1.55rem 1.45rem;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c98aa3;
  color: #fff;
  padding: 1rem 1.6rem;
  z-index: 70;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  min-width: min(92vw, 22rem);
  max-width: min(92vw, 36rem);
  text-align: center;
  border: 1px solid #b67993;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(44, 52, 64, 0.2);
}

.site-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(44, 52, 64, 0.38);
  backdrop-filter: blur(2px);
}

.site-popup-overlay.hidden {
  display: none !important;
}

body.site-popup-open {
  overflow: hidden;
}

.site-popup-card {
  width: min(100%, 22rem);
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(44, 52, 64, 0.18);
  text-align: center;
  animation: site-popup-rise 0.22s ease;
}

@keyframes site-popup-rise {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.site-popup-ok {
  border-color: #8dcba0;
}

.site-popup-err {
  border-color: #e7a4bb;
}

.site-popup-message {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.site-popup-ok .site-popup-message {
  color: #2f6b3f;
}

.site-popup-err .site-popup-message {
  color: #8f3d5c;
}

.site-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #edb5cb;
  background: #f4c6d7;
  color: #59354a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-popup-btn:hover {
  background: #efb9cb;
}

.panel-title {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.panel-sub { margin: 0.25rem 0 0; color: var(--mute); font-size: 0.88rem; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

@media (max-width: 420px) {
  .wordmark-text { display: none; }
  .hero-stage { min-height: 18rem; }
  .polaroid-c { display: none; }
}

/* Admin login/dashboard additions */

.admin-login-page {
  min-height: 100vh;
  background: #FFFFFF;
}

.admin-login-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
}

.admin-login-card {
  width: min(100%, 30rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 14px 36px rgba(53, 64, 82, 0.12);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.admin-login-logo {
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
}

.admin-login-heading {
  margin-bottom: 1.25rem;
}

.admin-login-heading .page-title {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.admin-login-heading .page-desc {
  max-width: none;
}

.admin-login-form {
  display: grid;
  gap: 0.65rem;
}

.admin-login-form .form-label:not(:first-child) {
  margin-top: 0.55rem;
}

/* Login page — pastel split card */
html:has(body.auth-page) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #fceaf1 !important;
  background-image:
    radial-gradient(ellipse at 12% 8%, #fff7fa 0%, transparent 42%),
    radial-gradient(ellipse at 88% 92%, #fde8ef 0%, transparent 45%),
    linear-gradient(160deg, #fff5f8 0%, #fceaf1 48%, #f7e4eb 100%) !important;
}

.auth-page-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-bloom {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 198, 215, 0.45) 0%, transparent 70%);
  filter: blur(2px);
}

.auth-bloom-tl { top: -8rem; left: -7rem; }
.auth-bloom-br { right: -8rem; bottom: -9rem; }

.auth-floral {
  position: absolute;
  width: 7.5rem;
  height: 7.5rem;
  opacity: 0.55;
}

.auth-floral-tl { top: 1.2rem; left: 1.2rem; }
.auth-floral-br { right: 1.2rem; bottom: 1.2rem; }

.auth-shell {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding:
    max(1rem, env(safe-area-inset-top, 0px))
    max(0.85rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(0.85rem, env(safe-area-inset-left, 0px));
}

@media (min-width: 900px) and (min-height: 700px) {
  .auth-shell {
    justify-content: center;
  }
}

.auth-card {
  box-sizing: border-box;
  width: min(100%, 58rem);
  max-width: 100%;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
  border: 1px solid rgba(232, 180, 196, 0.45);
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(90, 40, 60, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.auth-brand {
  position: relative;
  background: #f8d7e3;
  overflow: hidden;
  height: auto;
  aspect-ratio: 1024 / 1364;
}

.auth-brand-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  user-select: none;
}

.auth-main {
  box-sizing: border-box;
  padding: 1.35rem 1.2rem 1.25rem;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.auth-main-head {
  margin-bottom: 1.15rem;
}

.auth-main-head h2 {
  margin: 0;
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 650;
  color: #2c2430;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.auth-heart {
  color: #e08aa8;
  font-size: 0.72em;
  vertical-align: 0.12em;
}

.auth-main-head p {
  margin: 0.45rem 0 0;
  color: #7a6670;
  font-size: 0.92rem;
  line-height: 1.4;
}

.auth-form {
  display: grid;
  gap: 0.35rem;
}

.auth-label {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #3d3240;
}

.auth-form .auth-label:first-of-type {
  margin-top: 0;
}

.auth-field {
  position: relative;
}

.auth-field-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: #b0899a;
  pointer-events: none;
}

.auth-field-icon svg,
.auth-eye svg,
.auth-btn-primary svg,
.auth-btn-secondary svg,
.auth-safe svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-field input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 2.7rem 0.7rem 2.6rem;
  border: 1.5px solid #ead5dd;
  border-radius: 0.95rem;
  background: #fff;
  color: #2c2430;
  font: 600 0.95rem Nunito, sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: #e4a8bd;
  box-shadow: 0 0 0 3px rgba(228, 168, 189, 0.28);
}

.auth-field-password {
  padding-right: 2.85rem !important;
}

.auth-eye {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #9a7f8b;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.auth-eye:hover {
  background: #fff7fa;
  color: #8a3d5a;
}

.auth-forgot-row {
  margin: 0.2rem 0 0;
  text-align: right;
}

.auth-forgot {
  color: #c56b8c;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-btn-primary {
  margin-top: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.95rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8a0b6 0%, #d48098 100%);
  color: #fff;
  font: 800 1rem Nunito, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(196, 100, 130, 0.28);
}

.auth-btn-primary svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-btn-primary:hover {
  filter: brightness(1.03);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.95rem;
  color: #a8909a;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #eedfe6;
}

.auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid #e8a8bb;
  border-radius: 999px;
  background: #fff;
  color: #c0567a;
  font: 800 0.95rem Nunito, sans-serif;
  text-decoration: none;
}

.auth-btn-secondary svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-btn-secondary:hover {
  background: #fff7fa;
}

.auth-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.1rem 0 0;
  color: #9a8490;
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-safe svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .auth-shell {
    padding: max(1.25rem, env(safe-area-inset-top, 0px))
      max(1.25rem, env(safe-area-inset-right, 0px))
      max(1.25rem, env(safe-area-inset-bottom, 0px))
      max(1.25rem, env(safe-area-inset-left, 0px));
  }

  .auth-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(17.5rem, 0.95fr);
    align-items: stretch;
    border-radius: 1.5rem;
    min-height: min(88vh, 40rem);
    max-height: none;
  }

  .auth-brand {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
    align-self: stretch;
    background: #f8d7e3;
  }

  .auth-brand-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .auth-main {
    padding: clamp(1.75rem, 3.2vh, 2.35rem) clamp(1.55rem, 2.2vw, 2.1rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.85rem, 1.8vh, 1.35rem);
    min-height: 100%;
    align-self: stretch;
  }

  .auth-main-head {
    margin-bottom: 0;
  }

  .auth-main-head p {
    margin-top: 0.55rem;
  }

  .auth-form {
    gap: 0.55rem;
  }

  .auth-label {
    margin-top: 0.7rem;
  }

  .auth-form .auth-label:first-of-type {
    margin-top: 0;
  }

  .auth-field input {
    min-height: 3.05rem;
  }

  .auth-btn-primary {
    margin-top: 1.05rem;
    min-height: 3.1rem;
  }

  .auth-btn-secondary {
    min-height: 3rem;
  }

  .auth-divider {
    margin: 0.15rem 0;
  }

  .auth-safe {
    margin-top: 0.35rem;
    padding-top: 0;
  }
}

@media (max-width: 899px) {
  .auth-brand {
    aspect-ratio: 1024 / 1364;
    height: auto;
    max-height: none;
  }

  .auth-brand-img {
    object-fit: cover;
    object-position: center top;
  }

  .auth-main {
    padding: 1rem 0.95rem 0.95rem;
  }

  .auth-main-head h2 {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  .auth-main-head {
    margin-bottom: 0.6rem;
  }

  .auth-main-head p {
    margin-top: 0.3rem;
    font-size: 0.84rem;
  }

  .auth-label {
    margin-top: 0.35rem;
    font-size: 0.8rem;
  }

  .auth-field input {
    min-height: 2.45rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 0.9rem;
  }

  .auth-forgot-row {
    margin-top: 0.1rem;
  }

  .auth-btn-primary,
  .auth-btn-secondary {
    min-height: 2.45rem;
    font-size: 0.9rem;
  }

  .auth-btn-primary {
    margin-top: 0.65rem;
  }

  .auth-divider {
    margin: 0.65rem 0 0.55rem;
  }

  .auth-safe {
    margin-top: 0.65rem;
    font-size: 0.72rem;
  }
}

@media (max-height: 740px) and (min-width: 900px) {
  .auth-main {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .auth-main-head {
    margin-bottom: 0.55rem;
  }

  .auth-main-head h2 {
    font-size: 1.45rem;
  }

  .auth-field input {
    min-height: 2.4rem;
  }

  .auth-btn-primary,
  .auth-btn-secondary {
    min-height: 2.4rem;
  }

  .auth-divider {
    margin: 0.65rem 0 0.55rem;
  }

  .auth-safe {
    margin-top: 0.7rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    border-radius: 1.1rem;
  }

  .auth-shell {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

.admin-login-error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--blush);
  color: var(--pink-ink);
  font-weight: 700;
}

.dashboard-chart {
  display: block;
  width: 100%;
  height: 16rem;
}


/* Admin login link - uses the existing footer design */
.footer-grid .footer-admin-login {
  display: block;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.15rem 0;
  color: #f2f5f7;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.footer-grid .footer-admin-login:hover {
  color: #ffe4ee;
}

/* Admin login back-to-website link */
.admin-back-link {
  display: block;
  margin-top: 1rem;
  color: var(--pink-ink);
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}

.admin-back-link:hover { text-decoration: underline; }

a.nav-btn { text-decoration: none; display: inline-block; font-weight: 500; }
a.nav-btn-mobile { text-decoration: none; display: block; }

.admin-app .admin-header-shell {
  gap: 1rem;
}

.admin-app .admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.admin-app .admin-logout-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.admin-app .admin-profile-chip {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  background: var(--blush-deep, #f3c6d0);
  color: var(--text, #3a2a2e);
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(80, 40, 50, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-app .admin-profile-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(80, 40, 50, 0.16);
}

.admin-app .admin-profile-chip.is-active {
  outline: 2px solid var(--rose, #c45c7a);
  outline-offset: 1px;
}

.admin-app .admin-profile-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-app .admin-profile-wrap {
  padding-bottom: 2rem;
}

.admin-nav.desktop-admin-nav {
  display: none;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.admin-nav.mobile-admin-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  padding-top: 0;
  padding-bottom: 0.85rem;
}

.admin-app .profile-menu {
  position: relative;
}

.admin-app .profile-dropdown-footer form {
  margin: 0;
}

.admin-app .profile-dropdown-action {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-app .admin-profile-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 32rem;
  margin-inline: auto;
}

.admin-shop-page {
  padding: 0.5rem 0 2.5rem;
}

.admin-shop-layout {
  max-width: 44rem;
  margin: 0 auto;
}

.admin-shop-card {
  background: #fff;
  border: 1px solid #eadde3;
  border-radius: 1.15rem;
  box-shadow: 0 14px 36px rgba(70, 40, 55, 0.07);
  overflow: hidden;
}

.admin-shop-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1.25rem 1.35rem 1.1rem;
  border-bottom: 1px solid #f0e4ea;
  background:
    linear-gradient(180deg, #fff9fb 0%, #ffffff 100%);
}

.admin-shop-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b06a86;
}

.admin-shop-title {
  margin: 0;
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.admin-shop-summary {
  margin: 0;
  max-width: 18rem;
  text-align: right;
}

.admin-shop-summary strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.admin-shop-summary span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--mute);
  line-height: 1.4;
}

.admin-shop-form {
  padding: 0.35rem 1.35rem 1.35rem;
}

.admin-shop-block {
  padding: 1.15rem 0;
  border-bottom: 1px solid #f2e8ed;
}

.admin-shop-block:last-of-type {
  border-bottom: 0;
}

.admin-shop-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
}

.admin-shop-block-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.admin-shop-block-title .optional {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mute);
  text-transform: lowercase;
}

.admin-shop-block-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mute);
}

.admin-shop-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.9rem;
}

.admin-shop-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.admin-shop-field-full {
  grid-column: 1 / -1;
}

.admin-shop-field span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a6f7b;
}

.admin-shop-field input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #e5d3db;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: 600 0.95rem Nunito, sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-shop-field input:focus {
  outline: none;
  border-color: #e4a8bd;
  box-shadow: 0 0 0 3px rgba(228, 168, 189, 0.25);
}

.admin-shop-map-frame {
  border: 1px solid #eadde3;
  border-radius: 0.95rem;
  background: #fffafc;
  padding: 0.75rem;
}

.admin-shop-map-frame .shop-location-widget {
  margin-top: 0;
}

.admin-shop-map-frame .shop-location-tabs {
  background: #f3e8ed;
  border-color: #e8d0da;
}

.admin-shop-map-frame .shop-location-panel,
.admin-shop-map-frame .shop-location-panel-only {
  border-radius: 0.75rem;
  border-color: #e8d0da;
}

.admin-shop-map-frame .shop-location-panel iframe,
.admin-shop-map-frame .shop-location-panel-only iframe {
  height: 19rem;
}

.admin-shop-map-frame .shop-location-open-btn {
  border-radius: 0.75rem;
  border-color: #e8d0da;
}

.admin-shop-photo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-shop-photo-preview {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 0.9rem;
  border: 1px dashed #e4c2d0;
  background: #fff7fa;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-shop-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-shop-photo-preview img.hidden,
.admin-shop-photo-empty.hidden {
  display: none;
}

.admin-shop-photo-empty {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b0899a;
}

.admin-shop-photo-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.admin-shop-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #efc5d4;
  background: #fff;
  color: #8a3d5a;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.admin-shop-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-shop-link-btn {
  border: 0;
  background: transparent;
  color: #a35a74;
  font: 700 0.84rem Nunito, sans-serif;
  padding: 0.2rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-shop-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.35rem;
}

.admin-shop-actions .profile-btn {
  min-width: 11rem;
}

@media (max-width: 700px) {
  .admin-shop-card-head {
    padding: 1.05rem 1rem;
  }

  .admin-shop-summary {
    text-align: left;
    max-width: none;
  }

  .admin-shop-form {
    padding: 0.15rem 1rem 1.15rem;
  }

  .admin-shop-fields {
    grid-template-columns: 1fr;
  }

  .admin-shop-map-frame .shop-location-panel iframe,
  .admin-shop-map-frame .shop-location-panel-only iframe {
    height: 15rem;
  }

  .admin-shop-actions {
    justify-content: stretch;
  }

  .admin-shop-actions .profile-btn {
    width: 100%;
  }
}

.admin-app .admin-profile-section-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-app .admin-profile-gcash-preview {
  margin-bottom: 1rem;
}

.admin-app .admin-profile-clear-qr {
  margin-top: 0.75rem;
}

.admin-app .admin-pickup-address-view {
  margin: 0.75rem 0 1rem;
}

.pickup-address-note {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff7fa;
  border: 1px solid #f0d0dc;
}

.pickup-address-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mute, #7a6670);
}

.pickup-shop-name {
  margin: 0.35rem 0 0.2rem;
  font-weight: 700;
  color: var(--ink);
}

.pickup-address-value {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  white-space: pre-wrap;
}

.pickup-address-instructions {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--mute, #7a6670);
  line-height: 1.4;
}

.pickup-shop-photo {
  margin: 0.55rem 0 0.65rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #efc5d4;
  max-width: 12rem;
}

.pickup-shop-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.order-pickup-block .pickup-address-note {
  margin-top: 0.35rem;
}

.admin-app .shop-photo-field {
  margin-top: 0.85rem;
}

.admin-app .account-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute, #7a6670);
}

.admin-app .shop-photo-preview-wrap {
  margin-bottom: 0.55rem;
}

.admin-app .shop-photo-preview {
  display: block;
  width: 100%;
  max-width: 14rem;
  border-radius: 12px;
  border: 1px solid #efc5d4;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff7fa;
}

.admin-app .shop-photo-preview.hidden {
  display: none;
}

.admin-app .admin-shop-thumb {
  display: block;
  width: 7.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #efc5d4;
  margin-bottom: 0.55rem;
}

.shop-location-widget {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.shop-loc-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.shop-location-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f7eef2;
  border: 1px solid #efc5d4;
  align-self: flex-start;
}

.shop-location-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7a6670;
  cursor: pointer;
}

.shop-loc-map:checked ~ .shop-location-tabs .shop-location-tab-map,
.shop-loc-street:checked ~ .shop-location-tabs .shop-location-tab-street {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(80, 40, 50, 0.1);
}

.shop-location-panel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #efc5d4;
  background: #fff;
}

.shop-location-panel iframe {
  display: block;
  width: 100%;
  height: 16rem;
  border: 0;
}

.pickup-address-note .shop-location-widget {
  margin-top: 0.75rem;
}

.pickup-address-note .shop-location-panel iframe,
.pickup-address-note .shop-location-panel-only iframe {
  height: 15rem;
}

.shop-location-panel-map,
.shop-location-panel-street {
  display: none;
}

.shop-loc-map:checked ~ .shop-location-panel-map,
.shop-loc-street:checked ~ .shop-location-panel-street {
  display: block;
}

.shop-location-panel-only iframe {
  display: block;
  width: 100%;
  height: 16rem;
  border: 0;
}

.shop-location-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #efc5d4;
  background: #fff;
  color: #8a3d5a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.shop-location-open-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.shop-location-open-btn:hover {
  background: #fff7fa;
}

.admin-app .shop-map-admin-preview {
  margin: 1rem 0 0.35rem;
}

.admin-app .account-form-grid .account-field:not(.account-field-full) {
  min-width: 0;
}

@media (min-width: 640px) {
  .admin-app .account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.85rem;
  }

  .admin-app .account-form-grid .account-field-full {
    grid-column: 1 / -1;
  }
}

.admin-nav.mobile-admin-nav .shop-tab {
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.55rem 0.35rem;
}

.admin-app .admin-intro {
  padding-block: 1.1rem 0.55rem;
}

.admin-app .admin-view-shop-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-bottom: 1.5rem;
}

.admin-app .admin-view-shop-btn {
  text-decoration: none;
}

.admin-app .admin-intro .page-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.admin-app .admin-intro .page-desc {
  margin-top: 0.35rem;
  max-width: 40rem;
}

.admin-app .tab-panel.active {
  animation: none;
}

.admin-kicker {
  margin: 0 0 0.25rem;
  color: var(--pink-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-content {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 2.5rem;
}

.admin-panel { margin: 0; }

.admin-cake-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.admin-cake-card {
  display: grid;
  gap: 0;
  background: var(--paper);
  border: 1px solid #f0e2e7;
  border-radius: 2px 18px 2px 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-cake-card:nth-child(2n) { border-radius: 16px 3px 14px 3px; }

.admin-cake-card__media {
  background: var(--blush);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.admin-cake-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-cake-card__body {
  padding: 0.95rem 1rem 1.05rem;
  display: grid;
  gap: 0.55rem;
}

.admin-size-list {
  display: grid;
  gap: 0.55rem;
}

.admin-size-row {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  background: #fff;
  border: 1px solid #f0e2e7;
  border-radius: 0.85rem;
}

.admin-size-label {
  font-weight: 800;
  color: var(--ink);
}

.admin-size-row .form-input {
  width: 100%;
  min-width: 0;
  border-radius: 0.7rem;
  padding: 0.45rem 0.6rem;
}

.admin-size-row .btn-primary {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

@media (min-width: 700px) {
  .admin-cake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .admin-cake-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .admin-size-row {
    grid-template-columns: 1fr 1fr;
  }
  .admin-size-label { grid-column: 1 / -1; }
  .admin-size-row .btn-primary { width: 100%; }
}

.admin-note {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--pink-ink);
  font-weight: 700;
}

.admin-empty {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 1rem;
  padding: 1.4rem 1.2rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #f0e2e7;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: 0; }

.admin-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  background: #fff7fa;
}

.admin-table .form-input {
  min-width: 6.5rem;
  border-radius: 0.7rem;
}

.admin-link {
  color: var(--pink-ink);
  font-weight: 800;
  text-decoration: none;
}

.admin-link:hover { text-decoration: underline; }

.admin-money {
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink);
}

.status-pill {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--pink-ink);
  font-weight: 800;
  font-size: 0.78rem;
}

.status-pill.status-pending { background: #ffe8c8; color: #8a5a18; }
.status-pill.status-confirmed { background: #d9ecf7; color: #355f78; }
.status-pill.status-preparing { background: #f3d4df; color: #a85d7c; }
.status-pill.status-ready { background: #dff3e5; color: #2f6b45; }
.status-pill.status-completed { background: #e8b4c6; color: #2c3440; }
.status-pill.status-cancelled { background: #f0e2e7; color: #7a8491; }

.order-card {
  background: var(--paper);
  border: 1px solid #f0e2e7;
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.order-card__meta {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.order-card__meta p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.order-card__meta strong { color: var(--ink); }

.order-items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #f0e2e7;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.order-items em {
  font-style: normal;
  color: var(--mute);
  font-weight: 600;
}

.status-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
}

.status-form .form-label {
  width: 100%;
  margin: 0;
}

.status-form .form-input {
  width: min(100%, 16rem);
  border-radius: 0.7rem;
}

@media (min-width: 700px) {
  .order-card__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.admin-order-status-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}

.admin-order-status-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 100%;
  min-height: 4.2rem;
  padding: 0.55rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--mute);
  font: 700 0.78rem Nunito, sans-serif;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-order-status-tab .tab-label {
  display: block;
  width: 100%;
}

.admin-order-status-tab:hover {
  color: var(--ink);
  border-color: var(--pink);
}

.admin-order-status-tab.is-active {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

.admin-order-status-tab .tab-count {
  display: inline-flex;
  min-width: 1.3rem;
  height: 1.3rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  border-radius: 6px;
  background: #f3e8ed;
  color: #6a5260;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-order-status-tab.is-active .tab-count {
  background: #fff;
  color: #59354a;
}

.admin-orders-list {
  display: grid;
  gap: 1.1rem;
  padding-bottom: 0.35rem;
}

.admin-order-card {
  background: #fff;
  border: 1px solid #eadde3;
  border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(70, 40, 55, 0.06);
  overflow: hidden;
}

.admin-order-card.is-hidden,
.admin-orders-filter-empty.is-hidden,
.admin-order-pagination.is-hidden {
  display: none;
}

.admin-order-pagination {
  position: fixed;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid #eadde3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(70, 40, 55, 0.14);
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: calc(100% - 1.25rem);
}

.admin-main {
  padding-bottom: 4.5rem;
}

.admin-order-page-numbers {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-order-page-btn {
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 700 0.86rem Nunito, sans-serif;
  cursor: pointer;
}

.admin-order-page-btn:hover:not(:disabled) {
  border-color: var(--pink);
  background: #fff7fa;
}

.admin-order-page-btn.is-active {
  background: var(--pink);
  border-color: var(--pink);
}

.admin-order-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid #f0e4ea;
  background: linear-gradient(180deg, #fff9fb 0%, #ffffff 100%);
}

.admin-order-head-main {
  min-width: 0;
}

.admin-order-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b06a86;
}

.admin-order-title {
  margin: 0;
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

.admin-order-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.55rem;
  border: 1px solid #efc5d4;
  border-radius: 0.85rem;
  background: #fff7fa;
}

.admin-order-status-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a3d5a;
  white-space: nowrap;
}

.admin-order-status-select {
  width: auto;
  min-width: 10rem;
  min-height: 2.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-order-status-btn {
  padding: 0.5rem 0.95rem;
  white-space: nowrap;
}

.admin-order-cancel-banner {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f0d0dc;
  background: #fff4f7;
}

.admin-order-cancel-banner strong {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a35a74;
}

.admin-order-cancel-banner p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.admin-order-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.admin-order-block {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid #f2e8ed;
  border-right: 1px solid #f2e8ed;
  min-width: 0;
}

.admin-order-block:nth-child(2) {
  border-right: 0;
}

.admin-order-block-full {
  grid-column: 1 / -1;
  border-right: 0;
}

.admin-order-block.is-gcash {
  background: #f7fbfe;
}

.admin-order-section {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.admin-order-facts {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.admin-order-facts > div {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.admin-order-facts dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mute);
}

.admin-order-facts dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.admin-order-facts-inline {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 1.25rem;
}

.admin-order-facts-inline > div {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
}

.admin-order-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.admin-order-link:hover {
  color: #8a3d5a;
  border-bottom-color: #efc5d4;
}

.admin-order-total {
  color: #59354a !important;
  font-size: 1.1rem !important;
}

.admin-order-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.admin-order-items li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #f0e4ea;
  border-radius: 0.8rem;
  background: #faf7f9;
}

.admin-order-item-thumb {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: 0.7rem;
  background: #fceaf1;
  display: block;
}

.admin-order-item-thumb-fallback {
  display: grid;
  place-items: center;
  color: #c56b8c;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-order-item-copy {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.admin-order-item-copy strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.admin-order-item-copy span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mute);
}

.admin-order-item-price {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}

.admin-order-pay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.admin-order-pay-top .admin-order-section {
  margin: 0;
}

.admin-order-pay-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #f3e8ed;
  color: #6a5260;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-order-block.is-gcash .admin-order-pay-tag {
  background: #dff0fb;
  color: #3d6f8c;
}

.admin-order-note {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--mute);
}

.admin-order-proof {
  margin: 0.75rem 0 0;
}

.admin-order-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.admin-order-form label {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-order-form label span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6f7b;
}

.admin-order-form .form-input {
  width: 100%;
  border-radius: 0.7rem;
}

@media (max-width: 900px) {
  .admin-order-status-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-order-status-tab {
    min-height: 3.9rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 760px) {
  .admin-order-body {
    grid-template-columns: 1fr;
  }

  .admin-order-block {
    border-right: 0;
  }

  .admin-order-facts > div {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }

  .admin-order-status-bar {
    width: 100%;
  }

  .admin-order-status-select {
    flex: 1 1 8rem;
    min-width: 0;
  }
}

@media (max-width: 650px) {
  .admin-order-status-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-order-status-tab {
    min-height: 3.5rem;
    font-size: 0.76rem;
  }
}

@media (min-width: 980px) {
  .admin-nav.desktop-admin-nav { display: flex; }
  .admin-nav.mobile-admin-nav { display: none; }
}

.customer-login-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.profile-menu {
  position: relative;
  flex-shrink: 0;
}

.notif-menu {
  position: relative;
  flex-shrink: 0;
}

.notif-badge {
  background: var(--pink-ink);
  box-shadow: 0 0 0 2px #fff;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 26rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(44, 52, 64, 0.14);
  z-index: 55;
  overflow: hidden;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #edf3f8;
}

.notif-panel-head strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.notif-total {
  color: var(--mute, #7a6b73);
  font-weight: 700;
  font-size: 0.92em;
}

.notif-mark-all {
  border: 0;
  background: none;
  color: var(--pink-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.notif-mark-all:hover {
  text-decoration: underline;
}

.notif-list {
  overflow: auto;
  padding: 0.35rem;
}

.notif-empty {
  margin: 0;
  padding: 1.2rem 0.85rem;
  text-align: center;
  color: var(--mute);
  font-size: 0.9rem;
}

.notif-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  margin-bottom: 0.2rem;
}

.notif-item.is-unread {
  background: #fff5f8;
}

.notif-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}

.notif-item-title {
  font-size: 0.9rem;
  color: var(--ink);
}

.notif-item-body {
  font-size: 0.82rem;
  color: var(--mute);
  line-height: 1.4;
}

.notif-item-time {
  font-size: 0.72rem;
  color: #8a93a0;
}

.notif-mark-btn {
  align-self: flex-start;
  border: 0;
  background: none;
  color: var(--blue-deep);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.notif-mark-btn:hover {
  text-decoration: underline;
}

.notif-pref-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}

.notif-pref-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid #e7edf2;
  background: #f8fbfd;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.notif-pref-item input {
  margin-top: 0.2rem;
  accent-color: #f4c6d7;
}

.notif-pref-item span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mute);
  margin-top: 0.15rem;
}

.profile-avatar-btn {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  border: 1px solid #efc5d4;
  background: var(--pink);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.profile-avatar-btn > * {
  grid-area: 1 / 1;
}

.profile-avatar-btn .profile-avatar-photo.hidden,
.profile-avatar-btn .profile-avatar-initial.hidden,
.profile-avatar-btn .profile-avatar-icon.hidden {
  display: none !important;
}

.profile-avatar-btn:hover {
  background: #efb9cb;
}

.profile-avatar-initial {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.profile-avatar-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 15rem;
  padding: 0.55rem 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(44, 52, 64, 0.12);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-dropdown-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.45rem 0.7rem;
  border-bottom: 1px solid #edf3f8;
  margin-bottom: 0.25rem;
}

.profile-dropdown-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--pink);
  border: 1px solid #efc5d4;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-dropdown-avatar svg {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-dropdown-meta {
  min-width: 0;
}

.profile-dropdown-name {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  word-break: break-word;
}

.profile-dropdown-email {
  margin: 0.15rem 0 0;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.profile-dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #edf3f8;
  margin-bottom: 0.2rem;
}

.profile-dropdown-footer {
  display: flex;
  flex-direction: column;
}

.profile-dropdown-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.5rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.profile-dropdown-action svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.profile-dropdown-action:hover {
  background: var(--blush);
  color: var(--pink-ink);
}

.profile-dropdown-logout,
.profile-dropdown-logout:hover {
  color: var(--pink-ink);
}

/* My Profile page */
.profile-page {
  padding: 1.75rem 0 4rem;
}

.profile-page-center {
  background:
    radial-gradient(circle at top center, rgba(244, 198, 215, 0.22), transparent 42%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 48%);
  min-height: calc(100vh - 4.4rem);
}

.profile-page-center .profile-shell {
  max-width: 34rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.profile-page-head {
  text-align: center;
  margin-bottom: 1.15rem;
}

.profile-page-head .page-title {
  margin: 0.15rem 0 0.35rem;
}

.profile-page-head .page-desc {
  margin: 0 auto;
  max-width: 26rem;
}

.profile-page-center .profile-flash {
  text-align: center;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.15rem 1.35rem;
  align-items: center;
  padding: 1.55rem 1.6rem;
  margin-bottom: 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid #f0dce5;
  background: linear-gradient(115deg, #fff 0%, #fff5f8 55%, #edf8ff 100%);
}

.profile-hero-avatar {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pink);
  border: 2px solid #efc5d4;
  color: #59354a;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.profile-hero-avatar > #avatar-initial,
.profile-hero-avatar > #avatar-preview {
  grid-area: 1 / 1;
}

.profile-hero-avatar img,
.profile-hero-avatar > #avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-hero-avatar > #avatar-initial.hidden,
.profile-hero-avatar > #avatar-preview.hidden {
  display: none !important;
}

.profile-hero-avatar-edit {
  cursor: pointer;
}

.profile-hero-avatar-edit:hover {
  border-color: #e8a8bd;
}

.profile-avatar-edit-badge {
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #efc5d4;
  color: var(--pink-ink);
  box-shadow: 0 2px 6px rgba(44, 52, 64, 0.12);
  z-index: 2;
}

.profile-avatar-edit-badge svg {
  width: 0.85rem;
  height: 0.85rem;
}

.profile-hero-hint {
  margin: 0.45rem 0 0;
  color: var(--mute);
  font-size: 0.84rem;
}

.profile-panel-wide {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.profile-page-center .profile-panel-wide {
  border-radius: 1.35rem;
  border: 1px solid #efc5d4;
  box-shadow: 0 10px 28px rgba(168, 93, 124, 0.08);
  background: linear-gradient(180deg, #fff5f8 0%, #fceaf1 100%);
  padding: 1.75rem 1.6rem 1.6rem;
}

.profile-page-center .account-field input,
.profile-page-center .account-field textarea {
  background: #fff;
}

.profile-simple {
  padding-top: 1.5rem;
}

.profile-page-center .profile-simple {
  padding-top: 0.35rem;
}

.profile-simple-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.profile-simple-photo .profile-hero-avatar {
  width: 6rem;
  height: 6rem;
  font-size: 2.1rem;
  box-shadow: 0 6px 16px rgba(168, 93, 124, 0.12);
}

.profile-simple-hint {
  margin: 0;
  color: var(--mute);
  font-size: 0.82rem;
}

.address-profile-icon .profile-hero-avatar {
  display: grid;
  place-items: center;
  background: #f7eaf0;
  color: #a85d7c;
}

.address-profile-icon .profile-hero-avatar svg {
  width: 2.1rem;
  height: 2.1rem;
}

.address-profile-actions {
  display: grid;
  gap: 0.65rem;
}

.address-profile-actions form {
  margin: 0;
}

.profile-password-block {
  margin-top: 1.35rem;
  padding: 0;
  border: 0;
  background: none;
}

.profile-password-toggle {
  width: 100%;
  border: 1px solid #efc5d4;
  background: #fffafc;
  color: var(--pink-ink);
  font: inherit;
  font-weight: 750;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
}

.profile-password-toggle:hover,
.profile-password-toggle.is-open {
  background: #f4c6d7;
  color: #59354a;
}

.profile-password-fields {
  margin-top: 0.9rem;
  padding: 1.15rem 1rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fffafc 0%, #f8fbfd 100%);
  border: 1px solid #f0dce5;
}

.profile-password-fields .page-desc {
  margin-bottom: 0.95rem;
}

.profile-password-grid {
  grid-template-columns: 1fr;
}

.profile-form-actions {
  justify-content: stretch;
  margin-top: 1.35rem;
}

.profile-form-actions .profile-btn,
.profile-btn-full {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 1.4rem;
}

@media (max-width: 560px) {
  .profile-page-center .profile-panel-wide {
    padding: 1.35rem 1.1rem 1.2rem;
  }
  .profile-password-block {
    padding: 1rem 0.85rem;
  }
}

.profile-flash {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-weight: 650;
}

.profile-flash-ok {
  background: #eff9f1;
  border: 1px solid #8dcba0;
  color: #2f6b3f;
}

.profile-flash-err {
  background: #fff2f5;
  border: 1px solid #e7a4bb;
  color: #8f3d5c;
}

.profile-avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-dropdown-avatar-photo {
  padding: 0;
  overflow: hidden;
}

.profile-dropdown-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-kicker {
  margin: 0 0 0.25rem;
  color: var(--pink-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-hero-copy .page-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

.profile-hero-email {
  margin: 0.35rem 0 0;
  color: var(--mute);
  font-size: 1rem;
  word-break: break-word;
}

.profile-hero-meta {
  margin: 0.4rem 0 0;
  color: var(--mute);
  font-size: 0.88rem;
}

.profile-hero-stat {
  min-width: 7.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e3eef4;
  text-align: center;
}

.profile-hero-stat span {
  display: block;
  color: var(--mute);
  font-size: 0.82rem;
}

.profile-hero-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.15rem;
  align-items: start;
}

.profile-panel {
  padding: 1.3rem 1.35rem 1.4rem;
  border-radius: 1.15rem;
  border: 1px solid #eadfe5;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-panel-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.profile-panel .page-desc {
  margin: 0 0 1.1rem;
}

.profile-fields {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.profile-field {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: #f8fbfd;
  border: 1px solid #e3eef4;
}

.profile-field dt {
  margin: 0;
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-field dd {
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
  word-break: break-word;
}

.profile-links {
  display: grid;
  gap: 0.55rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid #e7edf2;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background var(--ease), border-color var(--ease);
}

.profile-link:hover {
  background: var(--blush);
  border-color: #efc5d4;
}

.profile-link-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf8ff;
  border: 1px solid #d5e8f3;
  color: var(--blue-deep);
  flex-shrink: 0;
}

.profile-link-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.profile-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.profile-link-text strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.profile-link-text span {
  font-size: 0.82rem;
  color: var(--mute);
}

@media (max-width: 860px) {
  .profile-hero {
    grid-template-columns: auto 1fr;
  }
  .profile-hero-stat {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .profile-hero-stat strong {
    margin-top: 0;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .profile-hero {
    padding: 1.2rem;
  }
  .profile-hero-avatar {
    width: 3.7rem;
    height: 3.7rem;
    font-size: 1.5rem;
  }
  .profile-panel {
    padding: 1.1rem;
  }
}

.profile-hero-simple {
  grid-template-columns: 1fr;
}

.profile-hero-simple .page-desc {
  margin: 0.55rem 0 0;
  max-width: 38rem;
}

.profile-layout-stack {
  grid-template-columns: 1fr;
}

.profile-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.profile-muted {
  color: var(--mute);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.account-empty {
  margin-top: 0.35rem;
  padding: 1.6rem 1.2rem;
  border: 1px dashed #d8c8d1;
  border-radius: 1rem;
  background: #fffafc;
  text-align: center;
}

.account-empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf8ff;
  border: 1px solid #d5e8f3;
  color: var(--blue-deep);
}

.account-empty-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.account-empty h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.account-empty p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mute);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.account-field input,
.account-field textarea {
  width: 100%;
  border: 1px solid #d5e8f3;
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  background: #fff;
}

.account-field input:focus,
.account-field textarea:focus {
  outline: 2px solid #f4c6d7;
  border-color: #efc5d4;
}

.account-field-full {
  grid-column: 1 / -1;
}

.account-check {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.account-check input {
  width: auto;
  accent-color: #f4c6d7;
}

.account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.account-form-note {
  margin: 0.9rem 0 0;
  color: var(--mute);
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #edb5cb;
  background: #f4c6d7;
  color: #59354a;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.profile-btn:hover {
  background: #efb9cb;
}

.profile-btn-ghost {
  background: #e7f4fc;
  border-color: #b9dff2;
  color: #315b72;
}

.profile-btn-ghost:hover {
  background: #dceff9;
}

.profile-btn-danger {
  background: #fff2f5;
  border-color: #e7a4bb;
  color: #8f3d5c;
}

.profile-btn-danger:hover {
  background: #ffe8ef;
}

.settings-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid #e7edf2;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.settings-row:hover {
  background: var(--blush);
  border-color: #efc5d4;
}

.settings-row-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf8ff;
  border: 1px solid #d5e8f3;
  color: var(--blue-deep);
  flex-shrink: 0;
}

.settings-row-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.settings-row-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.settings-row-copy strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.settings-row-copy span {
  font-size: 0.82rem;
  color: var(--mute);
}

.settings-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
  background: #fff7f9;
  border: 1px solid #f0dce5;
}

.settings-danger strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.settings-danger p {
  margin: 0;
  color: var(--mute);
  font-size: 0.88rem;
  max-width: 22rem;
}

.address-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.address-card {
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
  border: 1px solid #e7edf2;
  background: #f8fbfd;
}

.address-card.is-default {
  border-color: #efc5d4;
  background: #fffafc;
}

.address-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.address-card-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.address-default-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f4c6d7;
  color: #59354a;
  font-size: 0.72rem;
  font-weight: 800;
}

.address-card-line {
  margin: 0.2rem 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.address-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

@media (max-width: 700px) {
  .account-form-grid {
    grid-template-columns: 1fr;
  }
}

.customer-auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--mute);
}

.customer-auth-switch a {
  color: var(--pink-ink);
  font-weight: 700;
  text-decoration: none;
}

.customer-auth-switch a:hover {
  text-decoration: underline;
}



/* GCash payment evidence upload */
.proof-upload-label { display: block; margin-top: 0.8rem; }
.proof-file-input { display: block; width: 100%; padding: 0.55rem; background: #fff; font-size: 0.82rem; }
.proof-upload-help { display: block; margin-top: 0.35rem; color: var(--mute); line-height: 1.45; }
.payment-proof-preview { display: block; max-width: min(100%, 420px); max-height: 420px; object-fit: contain; border: 1px solid #dbe5ec; border-radius: 12px; background: #fff; margin: 0.75rem 0; }
.payment-status-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.65rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid #e7edf2; }
.payment-status-form > div { flex: 1 1 190px; }
.payment-evidence { margin-top: 0.8rem; padding: 0.85rem; background: #f4f9fc; border-radius: 12px; }
.payment-evidence p { margin: 0.25rem 0; }


/* SweetPhie color refresh: white + soft pink + powder blue */
body, main, .admin-main { background-color: #FFFFFF; }
.site-header { background: rgba(255, 255, 255, 0.97); border-bottom-color: #D8EAF5; }
.panel, .product-card, .cake-card, .order-card, .admin-empty, .payment-evidence,
.checkout-panel, .builder-panel, .summary-card, .modal-card, .form-card {
  background-color: #FFFFFF;
  border-color: #D8EAF5;
}
.btn-primary, .badge-popular, .nav-btn-mobile.active { background-color: #F4C6D7; }
.btn-primary:hover { background-color: #EBAFC5; }
.btn-secondary { background-color: #EAF6FC; border-color: #B9DDF2; }
.btn-secondary:hover { background-color: #D9ECF7; }
.nav-btn.active { box-shadow: inset 0 -2px 0 #F4C6D7; }
.form-input:focus, input:focus, select:focus, textarea:focus { border-color: #8EC7E6; outline-color: #B9DDF2; }
.admin-app .site-header, .admin-app .admin-content { background-color: #FFFFFF; }
.payment-proof-preview { border-color: #B9DDF2; background: #FFFFFF; }

/* Product editing uses the existing SweetPhie admin palette and adds no stock controls. */
.admin-product-editor { margin-bottom: 1.25rem; }
.admin-product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid #f0e2e7;
  border-radius: 0.9rem;
}
.admin-product-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}
.admin-product-form .form-input {
  width: 100%;
  min-width: 0;
  border-radius: 0.7rem;
  padding: 0.6rem 0.7rem;
  background: #fff;
}
.admin-product-form textarea { resize: vertical; }
.admin-product-form .admin-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.admin-product-form .admin-check input { accent-color: var(--pink-ink); }
.admin-product-form > button { align-self: end; }
.admin-product-form--edit { padding: 0; border: 0; background: transparent; }
.admin-product-slug { grid-column: 1 / -1; margin: 0; color: var(--muted, #6b7280); font-size: 0.78rem; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .admin-product-form { grid-template-columns: 1fr; }
  .admin-product-form > button { width: 100%; }
}
