/* The Evergreen frame keeps the artwork separate from the shop controls. */
body {
  --frame-width: 820px;
  background: #eee8dc;
  overflow-x: visible;
  isolation: isolate;
}
.shop-frame {
  width: min(calc(100% - 32px), var(--frame-width));
  margin: 12px auto 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 70px);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #203927;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at top, #fffcf2 15%, transparent 70%),
    linear-gradient(90deg, #efe1c3, #faf3e4 7%, #faf6ec 50%, #faf3e4 93%, #efe1c3);
  box-shadow: 0 8px 24px #392e2226;
}
.shop-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 6;
  pointer-events: none;
  border: 1px solid #c6a159;
  border-radius: 15px;
  box-shadow: 0 0 0 1px #f9e9ba70;
}
.testbar {
  background: #25271e;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .07em;
}
.brand {
  height: 122px;
  border: 0;
  box-shadow: none;
  background: none;
  isolation: isolate;
}
.brand-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  display: block;
  filter: drop-shadow(0 3px 3px #53421b30);
}
.brand > .evergreen-header-art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 184px;
  object-fit: fill;
  clip-path: polygon(0 0,100% 0,100% 100%,88% 100%,81% 53%,19% 53%,12% 100%,0 100%);
  pointer-events: none;
}
.brand > .brand-inner {
  min-height: 0;
  height: 105px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
}
.brand a.logo {
  grid-column: 2;
  display: block;
  width: 87px;
  filter: drop-shadow(0 2px 2px #102415);
}
.brand a.logo > img { width: 100%; height: auto; display: block; }
.nav {
  justify-self: end;
  grid-column: 3;
  flex-wrap: nowrap;
  gap: 5px;
}
.nav a {
  min-height: 42px;
  padding: 6px 11px;
  font-size: 13px;
  white-space: nowrap;
  color: #fff8e7;
  text-shadow: 0 1px 3px #102415;
}
.nav a:hover, .nav a.on {
  background: linear-gradient(#fff8e7, #ead7a9);
  color: #233a28;
  border-color: #fbebc2;
  text-shadow: none;
  box-shadow: 0 2px 6px #10241565;
}
main { padding: 22px 30px 20px; }
.gallery-heading { text-align: center; }
.gallery-heading h1, .hero h1 {
  font: 700 clamp(32px, 5vw, 49px)/1.07 Georgia, serif;
  margin: 0 0 7px;
  color: #203b29;
}
.gold-rule {
  width: 176px;
  height: 24px;
  margin: 8px auto 11px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20176%2024%22%3E%3Cpath%20stroke%3D%22%23b18432%22%20fill%3D%22none%22%20d%3D%22M0%2012h55m-5-3%205%203-5%203m126-3h-55m5-3-5%203%205%203%22%2F%3E%3Cg%20transform%3D%22translate(59%201)%20scale(1.25)%22%3E%3Cpath%20fill%3D%22%23838c55%22%20d%3D%22M18%2017Q9%2014%203%203q6%201%208%207Q7%205%209%201q4%203%204%2010%201-4%204-5%200%205-3%207%203%200%206%203z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%236b7544%22%20stroke-width%3D%22.7%22%20d%3D%22M20%2018Q11%2014%206%207%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(117%201)%20scale(-1.25%201.25)%22%3E%3Cpath%20fill%3D%22%23838c55%22%20d%3D%22M18%2017Q9%2014%203%203q6%201%208%207Q7%205%209%201q4%203%204%2010%201-4%204-5%200%205-3%207%203%200%206%203z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%236b7544%22%20stroke-width%3D%22.7%22%20d%3D%22M20%2018Q11%2014%206%207%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%239b2926%22%20stroke%3D%22%23701f1e%22%20stroke-width%3D%22.7%22%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2210%22%20r%3D%223.2%22%2F%3E%3Ccircle%20cx%3D%2284%22%20cy%3D%2215%22%20r%3D%223.2%22%2F%3E%3Ccircle%20cx%3D%2292%22%20cy%3D%2215%22%20r%3D%223.2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat;
  box-shadow: none;
}
.gallery-heading p.sub {
  margin: 0 auto 27px;
  max-width: 55ch;
  color: #30372b;
  font-size: 14px;
  line-height: 1.5;
}
.gallery-heading .sub span { display: block; }
.gallery-heading .sub a { white-space: nowrap; text-underline-offset: 2px; font-weight: 650; }
.opts {
  gap: 9px;
  margin: 0 5px;
}
.opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 110px;
  padding: 14px 6px 10px;
  text-align: center;
  border: 1px solid #dfcba7;
  border-radius: 15px;
  background: linear-gradient(145deg, #fffaf1, #f6eedc);
  box-shadow: 0 2px 4px #735b2820, inset 0 0 0 1px #fffaf1;
}
.opt.on {
  background: linear-gradient(145deg, #fffaec, #f1e4c7);
  border-color: #a3751a;
  box-shadow: 0 3px 5px #735b2840, inset 0 0 0 2px #fff9e9;
}
.opt b { font: 700 clamp(23px, 4vw, 35px)/1 Georgia, serif; color: #203b29; white-space: nowrap; }
.opt:is(:first-child,.best) b::before, .opt:is(:first-child,.best) b::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: clamp(9px, 2.2vw, 18px);
  height: 16px;
  margin: 0 5px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2022%2020%22%3E%3Cpath%20fill%3D%22%23838c55%22%20d%3D%22M18%2017Q9%2014%203%203q6%201%208%207Q7%205%209%201q4%203%204%2010%201-4%204-5%200%205-3%207%203%200%206%203z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%236b7544%22%20stroke-width%3D%22.7%22%20d%3D%22M20%2018Q11%2014%206%207%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
.opt:is(:first-child,.best) b::after { transform: scaleX(-1); }
.opt span { margin-top: 7px; color: #31382e; font-size: 13px; line-height: 1.25; }
.badge { background: #916018; color: #fff9eb; font-size: 10px; padding: 3px 9px; letter-spacing: .035em; }
.pp { margin-top: 4px; color: #805410; font-size: 12px; line-height: 1.23; }
.stepline { margin: 13px 5px 0; color: #31382e; }
.grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 12px 0 18px; }
.tile, .tile.on {
  padding: 0;
  border: 1px solid #d5b676;
  border-radius: 12px;
  box-shadow: 0 1px 3px #735b2820;
}
.tile img { aspect-ratio: 1; border-radius: 0; }
.tick {
  right: 3px;
  top: 3px;
  background: #263e2b;
  color: #fff8eb;
  border-color: #ead7a999;
  padding: 2px 6px;
  font-size: 11px;
}
.bar {
  position: static;
  padding: 0 5px;
  background: none;
  box-shadow: none;
  border: 0;
  backdrop-filter: none;
}
.bar .err:empty { display: none; }
.bar button.primary, .dlallb {
  border-radius: 999px;
  border: 1px solid #94753a;
  background: linear-gradient(#364d35, #233b29);
  box-shadow: 0 2px 4px #41371d35, inset 0 1px #efe0ac80;
  color: #fffbec;
}
.bar button.primary:not(:disabled)::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: none;
  margin-right: 8px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff8e6%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M12%203v12m-5-5%205%205%205-5M3%2015v5h18v-5%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
.foot {
  position: relative;
  isolation: isolate;
  padding: 6px 12px 130px;
  min-height: 145px;
  border: 0;
  background: none;
  color: #4c4f3f;
}
.foot span { position: relative; z-index: 1; }
.foot .evergreen-footer-art {
  display: block;
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: auto;
  object-fit: fill;
  pointer-events: none;
}
@media (max-width: 600px) {
  .shop-frame { width: calc(100% - 12px); margin: 6px auto 12px; border-radius: 14px; }
  .shop-frame::after { inset: 3px; border-radius: 10px; }
  .brand { height: 150px; }
  .brand > .evergreen-header-art { height: 169px; }
  .brand > .brand-inner { height: 134px; padding: 11px 12px 0; grid-template-columns: 1fr; grid-template-rows: 73px 44px; justify-items: center; gap: 1px; }
  .brand a.logo { grid-column: 1; width: 71px; }
  .nav { grid-column: 1; justify-self: center; }
  .nav a { min-height: 44px; font-size: 12px; padding-inline: 10px; }
  main { padding: 13px 13px 12px; }
  .gallery-heading p.sub { font-size: 12px; margin-bottom: 22px; }
  .gold-rule { width: 142px; height: 21px; margin-bottom: 7px; }
  .opts { gap: 5px; margin: 0; }
  .opt { padding: 14px 3px 7px; min-height: 96px; border-radius: 11px; }
  .opt span, .pp { font-size: 11px; }
  .opt:is(:first-child,.best) b::before, .opt:is(:first-child,.best) b::after { margin-inline: 3px; }
  .stepline { margin: 10px 2px 0; }
  .grid { gap: 5px; margin: 9px 0 13px; }
  .tile, .tile.on { border-radius: 8px; }
  .tick { font-size: 9px; padding: 1px 4px; }
  .bar { padding: 0; }
  .bar button.primary { font-size: 13px; padding-inline: 10px; }
  .foot { min-height: 113px; padding: 4px 12px 77px; font-size: 11px; }
}


/* Phone header: logo sits inside the art; buttons sit below the curve on the cream, so nothing depends on the curve or Safari grid sizing. */
@media (max-width: 600px) {
  .brand { margin-bottom: 52px; }
  .brand > .brand-inner { display: block; position: absolute; inset: 0; height: 150px; padding: 0; }
  .brand a.logo { position: absolute; top: 26px; left: 50%; width: 64px; height: 67px; margin: 0 0 0 -32px; }
  .brand a.logo > img { width: 64px; height: 67px; object-fit: contain; display: block; }
  .brand .nav { position: absolute; top: 153px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
  .nav a { min-height: 28px; padding: 1px 13px; font-size: 12px; line-height: 24px; color: #233a28; text-shadow: none; background: #fffaf0; border: 1px solid #b78d41; }
  .nav a.on { background: linear-gradient(#fff8e7, #ead7a9); box-shadow: 0 2px 6px #10241540; }
}
@media (max-width: 600px) { .brand.nonav { margin-bottom: 14px; } }

@media (min-width: 601px) {
  .brand .nav { grid-column: 1 / -1; justify-self: stretch; position: absolute; left: 0; right: 0; top: 50px; display: flex; justify-content: space-between; padding: 0 20%; pointer-events: none; }
  .nav a { pointer-events: auto; min-height: 30px; padding: 2px 15px; font-size: 13px; line-height: 24px; color: #233a28; text-shadow: none; background: #fffaf0; border: 1px solid #b78d41; }
  .nav a.on { background: linear-gradient(#fff8e7, #ead7a9); }
  .nav a:only-child { margin-left: auto; }
}

/* Wide desktop: a more landscape frame. Phones and tablets keep the layout above. */
@media (min-width: 1100px) {
  body { --frame-width: 1120px; }
  .brand { height: 160px; }
  .brand > .evergreen-header-art { height: 252px; }
  .brand > .brand-inner { height: 142px; padding: 0 46px; }
  .brand a.logo { width: 108px; }
  .brand .nav { top: 68px; padding: 0 21%; }
  .nav a { font-size: 14px; min-height: 32px; padding: 3px 18px; }
  main { max-width: 1040px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width:1100px) {
  .bar div { text-align: center; }
  .bar button.primary { width: auto; padding-inline: 44px; }
  .card button.primary#pay { width: auto; padding-inline: 40px; }
}
@media (min-width:1100px) {
  main > .card { text-align: center; }
}
