.bwm-ivys-vines {
  --ivys-accent: #5c4a2f;
  --ivys-bg: #faf7f2;
  --ivys-card: #fff;
  --ivys-muted: #6b5b4b;
  font-family: Georgia, "Times New Roman", serif;
  color: #2b2118;
  line-height: 1.5;
}

.bwm-ivys-vines.ivys-mockup-ui {
  font-family: "Inter", system-ui, sans-serif;
  color: #2b2118;
}

.bwm-ivys-vines.ivys-mockup-ui .display-serif,
.bwm-ivys-vines.ivys-mockup-ui .menu-hero__title,
.bwm-ivys-vines.ivys-mockup-ui .quote-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.bwm-ivys-error {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #ffebee;
  color: #b71c1c;
}

.bwm-ivys-vines * { box-sizing: border-box; }

.bwm-ivys-offer-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.bwm-ivys-offer-tabs button {
  border: 1px solid var(--ivys-accent);
  background: transparent;
  color: var(--ivys-accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.bwm-ivys-offer-tabs button.is-active {
  background: var(--ivys-accent);
  color: #fff;
}

.bwm-ivys-headline { font-size: 1.75rem; margin: 0 0 0.5rem; }
.bwm-ivys-sub { color: var(--ivys-muted); margin: 0 0 1.5rem; }

.bwm-ivys-category { margin-bottom: 2rem; }
.bwm-ivys-category h3 { margin: 0 0 0.25rem; }
.bwm-ivys-category .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--ivys-muted);
}

.bwm-ivys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.bwm-ivys-card {
  background: var(--ivys-card);
  border: 1px solid #e8dfd3;
  border-radius: 12px;
  padding: 1rem;
}

.bwm-ivys-card h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.bwm-ivys-card p { margin: 0; font-size: 0.9rem; color: var(--ivys-muted); }
.bwm-ivys-portion {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ivys-accent);
  font-style: italic;
}

.bwm-ivys-quote-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.bwm-ivys-quote-form input,
.bwm-ivys-quote-form textarea,
.bwm-ivys-quote-form select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d9cfc2;
  border-radius: 8px;
}

.bwm-ivys-quote-items { margin: 1rem 0; }
.bwm-ivys-quote-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee4d8;
}

.bwm-ivys-quote-row input[type="number"] { width: 5rem; margin: 0; }

.bwm-ivys-btn {
  background: var(--ivys-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
}

.bwm-ivys-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.bwm-ivys-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.bwm-ivys-message.is-success { background: #e8f5e9; color: #1b5e20; }
.bwm-ivys-message.is-error { background: #ffebee; color: #b71c1c; }

.bwm-ivys-pay-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ivys-muted);
}

.bwm-ivys-pay-summary {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.bwm-ivys-pay-summary th,
.bwm-ivys-pay-summary td {
  border-bottom: 1px solid #e8dfd3;
  padding: 0.5rem;
  text-align: left;
}

.bwm-ivys-category-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--ivys-muted);
  font-style: italic;
}

.bwm-ivys-fulfillment {
  border: 1px solid #e8dfd3;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.bwm-ivys-fulfillment legend {
  font-weight: 600;
  padding: 0 0.25rem;
}

.bwm-ivys-radio {
  display: inline-block;
  margin-right: 1rem;
  font-weight: normal;
}

.bwm-ivys-quote-items h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.bwm-ivys-checkout-mount {
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
}



/* ==========================================================================
   Order UI (v0.6.0): light editorial heroes, photo menu cards, shared cart.
   Ivy brand tokens (ivy green / gold / ivory / Cormorant) from mockup-ui.css.
   ========================================================================== */

/* Solid header on the light-hero pages so the ivory nav links stay readable. */
body:has(.menu-hero) .site-nav,
body:has(.quote-hero) .site-nav {
  background: var(--ivy-deep);
}

.menu-hero,
.quote-hero {
  background:
    radial-gradient(circle at 92% 8%, rgba(185, 154, 97, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 4% 96%, rgba(135, 159, 131, 0.16) 0%, transparent 34%),
    var(--ivory);
  color: var(--espresso);
}

.menu-hero .eyebrow,
.quote-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #8a6d3b;
}

.menu-hero .eyebrow::after,
.quote-hero .eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.menu-hero__title,
.quote-hero__title {
  color: var(--espresso);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.menu-hero__title em,
.quote-hero__title em {
  color: var(--ivy-green);
}

.menu-hero__sub,
.quote-hero__sub {
  color: rgba(33, 22, 15, 0.74);
}

.menu-hero .btn-ivory-outline {
  color: var(--ivy-green);
  border-color: rgba(40, 90, 58, 0.45);
  background: transparent;
}

.menu-hero .btn-ivory-outline:hover,
.menu-hero .btn-ivory-outline:focus-visible {
  background: var(--ivy-green);
  border-color: var(--ivy-green);
  color: var(--ivory);
}

.menu-hero__note {
  background: rgba(40, 90, 58, 0.06);
  border-color: rgba(40, 90, 58, 0.18);
  color: rgba(33, 22, 15, 0.75);
}

.menu-hero__visual {
  position: relative;
}

.menu-hero__visual::before {
  content: "";
  position: absolute;
  inset: -6% auto auto -7%;
  width: 46%;
  height: 62%;
  border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
  background: var(--ivy-green);
  opacity: 0.9;
  z-index: 0;
}

.menu-hero__shot {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 22px;
}

.menu-hero__shot--main {
  border-radius: 46% 22px 22px 22px / 30% 22px 22px 22px;
}

.quote-hero {
  padding-bottom: 1.75rem;
}

.quote-hero__title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

/* ---- Menu layout ---- */
.order-ui {
  --order-radius: 18px;
  --order-line: rgba(33, 22, 15, 0.08);
  --order-muted: rgba(33, 22, 15, 0.66);
}

.menu-shell.order-ui {
  padding: 2rem 0 3.5rem;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.75rem;
  align-items: start;
}

.order-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.order-cat {
  min-height: 44px;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 154, 97, 0.55);
  background: #fff;
  color: var(--espresso);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.order-cat:hover,
.order-cat:focus-visible {
  border-color: var(--ivy-green);
}

.order-cat.is-active {
  background: var(--ivy-green);
  border-color: var(--ivy-green);
  color: var(--ivory);
}

.order-ui .menu-section {
  margin-bottom: 2.5rem;
}

.order-ui .menu-section__head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 1.25rem;
}

.order-ui .menu-section__title {
  font-weight: 700;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 1.25rem;
}

/* ---- Menu card ---- */
.order-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(33, 22, 15, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(33, 22, 15, 0.11);
}

.order-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #eef1ea 0%, #e2e9df 100%);
  overflow: hidden;
}

.order-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: rgba(185, 154, 97, 0.85);
}

.order-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--ivy-green);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1.1rem 1.1rem;
}

.order-card__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0 0 0.4rem;
}

.order-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--order-muted);
}

.order-card__tiers {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.order-tier {
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(40, 90, 58, 0.25);
  background: transparent;
  color: var(--ivy-green);
  font-size: 0.8rem;
  font-weight: 600;
}

.order-tier.is-on {
  background: rgba(40, 90, 58, 0.1);
  border-color: var(--ivy-green);
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.order-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ivy-deep);
}

.order-card__ask {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a6d3b;
}

.order-add {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--ivy-green);
  color: var(--ivory);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(40, 90, 58, 0.28);
  transition: background 0.2s ease, transform 0.15s ease;
}

.order-add:hover,
.order-add:focus-visible {
  background: var(--ivy-deep);
  transform: scale(1.05);
}

.order-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 3px;
  border-radius: 999px;
  background: var(--ivy-green);
  color: var(--ivory);
}

.order-stepper button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-stepper button:hover,
.order-stepper button:focus-visible {
  background: rgba(248, 245, 238, 0.16);
}

.order-stepper span {
  min-width: 1.6rem;
  text-align: center;
  font-weight: 600;
}

.order-stepper--sm {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--order-line);
}

.order-stepper--sm button {
  width: 32px;
  height: 32px;
}

.order-stepper--sm button:hover,
.order-stepper--sm button:focus-visible {
  background: rgba(40, 90, 58, 0.08);
}

/* ---- Cart (menu aside + quote panel share these) ---- */
.order-cart,
.order-panel {
  background: #fff;
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius);
  box-shadow: 0 10px 36px rgba(33, 22, 15, 0.07);
  padding: 1.4rem;
}

.order-cart {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

body.admin-bar .order-cart,
body.admin-bar .order-panel--cart {
  top: calc(var(--nav-h) + 32px + 1rem);
}

.order-cart__head,
.order-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-cart__title,
.order-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  margin: 0;
}

.order-panel__title {
  margin-bottom: 1rem;
}

.order-panel__head .order-panel__title {
  margin-bottom: 0;
}

.order-cart__bag {
  position: relative;
  font-size: 1.5rem;
  color: var(--espresso);
}

.order-cart__count {
  position: absolute;
  top: -6px;
  right: -12px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--order-line);
  margin-bottom: 1rem;
}

.order-toggle__btn {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.order-toggle__btn.is-active {
  background: var(--ivy-green);
  color: var(--ivory);
  box-shadow: 0 4px 12px rgba(40, 90, 58, 0.25);
}

.order-empty {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(185, 154, 97, 0.08), rgba(135, 159, 131, 0.08));
}

.order-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--gold);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(185, 154, 97, 0.22);
}

.order-empty h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}

.order-empty p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--order-muted);
}

.order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--order-line);
}

.order-line__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.order-line__name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.order-line__price,
.order-line__meta {
  font-size: 0.8rem;
  color: var(--order-muted);
}

.order-line__remove {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(33, 22, 15, 0.5);
}

.order-line__remove:hover,
.order-line__remove:focus-visible {
  background: rgba(33, 22, 15, 0.06);
  color: var(--espresso);
}

.order-cart__clear {
  border: 0;
  background: transparent;
  padding: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a6d3b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-cart__foot {
  margin-top: 1rem;
}

.order-cart__subtotal,
.order-panel__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--order-line);
  font-weight: 600;
}

.order-cart__subtotal strong,
.order-panel__subtotal strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ivy-deep);
}

.order-cart__note,
.order-panel__fine {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--order-muted);
}

.order-cart__go {
  width: 100%;
  margin-top: 1rem;
  min-height: 52px;
  border-radius: 999px;
  font-size: 1rem;
}

.order-cart__go.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.order-cart__trust {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  text-align: center;
  color: var(--order-muted);
}

/* ---- Trust strip + mobile order bar ---- */
.order-trust {
  padding: 1.75rem 0 3rem;
}

.order-trust__list {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(135, 159, 131, 0.35);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.75rem;
}

.order-trust__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(33, 22, 15, 0.78);
}

.order-trust__list i {
  font-size: 1.35rem;
  color: var(--ivy-green);
}

.order-bar {
  display: none;
}

/* ---- Quote page ---- */
.quote-shell.order-ui {
  padding: 1.5rem 0 3.5rem;
}

.order-ui .quote-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

.order-panel--cart {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.order-lines--rich .order-line {
  grid-template-columns: 56px minmax(0, 1fr) auto 64px auto;
}

.order-line__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(140deg, #eef1ea 0%, #e2e9df 100%);
  color: rgba(185, 154, 97, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.order-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-lines--rich .order-line__price {
  text-align: right;
  font-weight: 600;
  color: var(--espresso);
  font-size: 0.9rem;
}

.order-panel__lines {
  margin-bottom: 0.5rem;
}

.order-panel__more {
  width: 100%;
  margin-top: 1.1rem;
  border-radius: 999px;
}

.order-panel--details .quote-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.order-panel--details .quote-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 1.25rem;
  border-radius: 999px;
  font-size: 1.02rem;
}

@media (max-width: 991px) {
  .order-layout,
  .order-ui .quote-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-cart,
  .order-panel--cart {
    position: static;
  }

  .order-bar:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 16px calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--ivy-deep);
    color: var(--ivory);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }

  .order-bar__info {
    font-size: 0.9rem;
  }

  .order-bar__go {
    border-radius: 999px;
    background: var(--gold);
    border-color: var(--gold);
    color: var(--espresso);
  }

  .order-trust {
    padding-bottom: 6rem;
  }

  .menu-hero__visual::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .order-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-lines--rich .order-line {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .order-lines--rich .order-line__thumb {
    width: 48px;
    height: 48px;
  }

  .order-lines--rich .order-line__price {
    grid-column: 2;
    text-align: left;
  }

  .order-lines--rich .order-line__remove {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .order-panel--details .quote-pills {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-trust__list {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-card,
  .order-add {
    transition: none;
  }

  .order-card:hover {
    transform: none;
  }
}

/* ---- Item details modal (v0.6.1) ---- */
.order-card__media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.order-card__name {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.order-card__name:hover,
.order-card__name:focus-visible {
  color: var(--ivy-green);
}

.order-card__more {
  align-self: flex-start;
  margin: -0.25rem 0 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ivy-green);
  text-decoration: underline;
  text-decoration-color: rgba(185, 154, 97, 0.7);
  text-underline-offset: 4px;
}

.order-card__more i {
  font-size: 0.75rem;
}

.item-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--espresso);
  box-shadow: 0 30px 80px rgba(33, 22, 15, 0.3);
  overflow: hidden;
}

.item-modal::backdrop {
  background: rgba(26, 18, 12, 0.55);
  backdrop-filter: blur(3px);
}

.item-modal[open] {
  animation: ivys-modal-in 0.22s ease-out;
}

@keyframes ivys-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.item-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  max-height: calc(100vh - 48px);
}

.item-modal__media {
  position: relative;
  min-height: 100%;
  background: linear-gradient(140deg, #eef1ea 0%, #e2e9df 100%);
}

.item-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-modal__body {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 1.75rem;
  overflow-y: auto;
}

.item-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(248, 245, 238, 0.95);
  color: var(--espresso);
  box-shadow: 0 4px 14px rgba(33, 22, 15, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.item-modal__close:hover,
.item-modal__close:focus-visible {
  background: var(--ivy-green);
  color: var(--ivory);
}

.item-modal .eyebrow {
  color: #8a6d3b;
  margin-bottom: 0.4rem;
}

.item-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  margin: 0 2.5rem 0.6rem 0;
}

.item-modal__lead {
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(185, 154, 97, 0.35);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ivy-green);
}

.item-modal__details {
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(33, 22, 15, 0.82);
  margin-bottom: 1.25rem;
}

.item-modal__details p {
  margin: 0 0 0.9rem;
}

.item-modal__details h4 {
  margin: 1.1rem 0 0.45rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivy-green);
}

.item-modal__details ul {
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.item-modal__details li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.3rem;
}

.item-modal__details li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.item-modal__details strong {
  color: var(--espresso);
  font-weight: 600;
}

.item-modal__foot {
  padding-top: 1rem;
  border-top: 1px solid rgba(33, 22, 15, 0.08);
}

@media (max-width: 767px) {
  .item-modal__panel {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }

  .item-modal__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .item-modal__body {
    padding: 1.5rem 1.25rem 1.25rem;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-modal[open] {
    animation: none;
  }
}
