/* Bill Lin Photography — self-hosted rebuild of the Squarespace site */
:root {
  --gray: #bfbfbf;
  --sage: rgb(175, 184, 168);
  --sage-hover: rgb(160, 170, 152);
  --black: #000;
  --white: #fff;
  --serif: "Cormorant Garamond", "Orpheus Pro", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 4vw;
  --max: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 14.4px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--black);
  background: var(--gray);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.14; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.2; }
h3 { font-size: clamp(24px, 2.9vw, 32px); line-height: 1.24; }
h4 { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.29; }

/* Photos can't be dragged out, selected, or long-pressed to save (see js/main.js) */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bg-section { -webkit-touch-callout: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 66px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--white);
  transition: background .3s, backdrop-filter .3s;
}
.site-header.scrolled { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(0,0,0,.06); }
.site-title { font-family: var(--serif); font-size: 18.7px; justify-self: start; }
.site-nav { display: flex; gap: 14px; }
.site-nav a { font-size: 14.4px; padding: 2px 0; background: linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat; transition: background-size .25s; }
.site-nav a:hover, .site-nav a.active { background-size: 100% 1px; }
.header-icons { justify-self: end; display: flex; gap: 22px; align-items: center; }
.header-icons svg { width: 20px; height: 20px; display: block; }
.header-icons .cart svg { width: 26px; }
.header-icons .cart, .header-mobile .cart { position: relative; display: flex; align-items: center; }
.cart-count { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--sage); color: #000; font: 600 10.5px/17px var(--sans); text-align: center; }
.header-mobile { display: none; }
.header-mobile .cart svg { width: 26px; height: 20px; display: block; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--gray);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  font-family: var(--serif); font-size: 30px; color: var(--black);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu .mm-social { display: flex; gap: 22px; margin-top: 6px; }
.mobile-menu .mm-social a { padding: 6px; }
.mobile-menu .mm-social svg { width: 28px; height: 28px; display: block; }
.mobile-menu .close { position: absolute; top: 20px; right: var(--gutter); font-size: 34px; background: none; border: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--serif); font-weight: 500; font-size: 16px;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--sage); color: var(--black);
  padding: 19px 32px; border: 0; cursor: pointer; transition: background .2s, opacity .2s;
}
.btn:hover { background: var(--sage-hover); }
.btn-black { background: var(--black); color: var(--white); text-transform: none; letter-spacing: 0; font-weight: 400; padding: 18px 20px; min-width: 100%; text-align: center; }
.btn-black:hover { background: #222; }

/* ---------- Sections with photo backgrounds ---------- */
.bg-section { position: relative; color: var(--white); background-color: #000; background-size: cover; background-position: center; overflow: hidden; }
.bg-section::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--overlay, .3)); pointer-events: none; }
.bg-section > * { position: relative; }
@media (min-width: 1025px) and (hover: hover) { .parallax { background-attachment: fixed; } }

.inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Home ---------- */
.hero { min-height: 605px; height: 100vh; background-position: center bottom; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero .inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 50px; }
.hero h3 { font-style: italic; margin-bottom: 30px; }

.about-intro { min-height: 703px; display: flex; align-items: center; --overlay: .35; }
.about-intro .inner { display: grid; grid-template-columns: 38fr 4fr 42fr; align-items: start; padding: 120px 8vw; max-width: none; }
.about-intro .photo { grid-column: 1; }
.about-intro .text { grid-column: 3; padding-top: 30px; }
.about-intro .text h4 + h4 { margin-top: 22px; }
.about-intro .text .btn { display: block; width: max-content; margin: 18px 0 0 38%; padding-left: 64px; padding-right: 64px; }

/* Shop collage: text on the left; three overlapping photos on the right, measured from the original site.
   Stacking order, bottom to top: Tokyo street (c3), market grill (c2), flowers (c1). */
.shop-collage { min-height: 663px; display: flex; align-items: center; }
.shop-collage .stage {
  display: grid; grid-template-columns: 8% 34% 3.9% 50.95% 1fr; align-items: center;
  max-width: 1400px; padding: 90px 0;
}
.shop-collage .cta { grid-column: 2; text-align: center; }
.shop-collage .cta .btn { padding-left: 40px; padding-right: 40px; }
.shop-collage .cta h4 { margin-top: 36px; }
.shop-collage .collage { grid-column: 4; position: relative; aspect-ratio: 1019 / 860; }
.shop-collage .collage img { position: absolute; display: block; height: auto; object-fit: cover; }
.shop-collage .c1 { left: 0;     top: 11.3%; width: 47.1%; aspect-ratio: 2 / 3; z-index: 3; }
.shop-collage .c2 { left: 32.4%; top: 0;     width: 59.9%; aspect-ratio: 3 / 2; z-index: 2; }
.shop-collage .c3 { left: 24.4%; top: 40.3%; width: 75.6%; aspect-ratio: 3 / 2; z-index: 1; }

/* ---------- About ---------- */
.about-hero { min-height: 570px; height: 75vh; display: flex; align-items: center; justify-content: center; text-align: center; --overlay: 0; }
.about-hero h2 { line-height: 1.6; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.spacer-section { height: 504px; background: var(--gray); }
.about-bio { padding: 110px var(--gutter) 130px; }
.about-bio-inner { max-width: 720px; margin: 0 auto; }
.about-bio h3 { text-align: center; font-size: 30px; margin-bottom: 36px; }
.about-bio p { font-family: var(--serif); font-size: 19px; line-height: 1.7; margin-bottom: 20px; }

/* ---------- Gallery ---------- */
/* World map of cities: greyscale land over the colour photo, so the bright pins stand out.
   Bright amber pins link to albums, small white pins are coming soon.
   Hovering a pin draws a leader line up and to the right, ending in a solid black name label. */
.city-section { min-height: 504px; display: flex; align-items: center; --overlay: .55; }
.map-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 100px var(--gutter) 70px; }
.map-eyebrow { text-align: center; font-size: 18px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 28px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.world-map { display: block; width: 100%; height: auto; overflow: visible; }
.world-map .land { fill: #a9a9a9; stroke: #e4e4e4; stroke-width: .6; stroke-linejoin: round; }
.world-map .hit { fill: transparent; }
.world-map .pin { cursor: pointer; outline: none; }
.world-map .live .dot { fill: #ffc533; stroke: #fff6d6; stroke-width: 1.5; filter: drop-shadow(0 0 4px #ffc533); transition: r .2s; }
.world-map .live .halo { fill: none; stroke: #ffc533; stroke-width: 1.8; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s ease-out infinite; }
.world-map .live:hover .dot, .world-map .live:focus-visible .dot { r: 7; }
.world-map .soon { cursor: default; }
.world-map .soon .dot { fill: #fff; stroke: #222; stroke-width: .8; transition: r .2s; }
.world-map .soon:hover .dot, .world-map .soon:focus .dot { r: 4.5; }
/* callout, hidden until the pointer or keyboard focus is on its pin */
.world-map .callout { pointer-events: none; visibility: hidden; }
.world-map .leader { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 1.5px #000); transition: stroke-dashoffset .25s ease-out; }
.world-map .label-box { fill: #111; transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform .2s ease-out .18s; }
.world-map .label, .world-map .tip { fill: #fff; opacity: 0; transition: opacity .15s .3s; }
.world-map .label { font-family: var(--serif); font-size: 21px; }
.world-map .tip { font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; fill: #b9b9b9; }
.world-map .pin:is(:hover, :focus) .callout { visibility: visible; }
.world-map .pin:is(:hover, :focus) .leader { stroke-dashoffset: 0; }
.world-map .pin:is(:hover, :focus) .label-box { transform: scaleX(1); }
.world-map .pin:is(:hover, :focus) :is(.label, .tip) { opacity: 1; }
@keyframes pin-pulse { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .world-map .live .halo { animation: none; } }
/* city list: shown under the map on small screens, where pins are too small to tap */
.city-list { display: none; }

.gray { background: var(--gray); }
.gallery-wrap { padding: 45px var(--gutter); }
.section-title { text-align: center; padding: 60px var(--gutter) 30px; }
.section-title h2, .section-title h1 { font-style: italic; }
.portrait-row { display: grid; grid-template-columns: repeat(3, 21%); justify-content: space-evenly; padding: 30px var(--gutter) 45px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 var(--gutter) 45px; }
.grid-3 figure { aspect-ratio: 3 / 2; overflow: hidden; }
.grid-3.ny figure { aspect-ratio: 4 / 3; }
.grid-3 img, .portrait-row img { width: 100%; height: 100%; object-fit: cover; }
.portrait-row figure { aspect-ratio: 2 / 3; overflow: hidden; }
figure.zoom { cursor: zoom-in; }
figure.zoom img { transition: opacity .3s; }
figure.zoom:hover img { opacity: .9; }

/* Masonry */
.masonry { display: flex; gap: var(--gap, 5px); align-items: flex-start; }
.masonry .col { flex: 1; display: flex; flex-direction: column; gap: var(--gap, 5px); min-width: 0; }
.masonry figure img { width: 100%; height: auto; }

/* Boston */
.page-title { padding: 130px var(--gutter) 60px; text-align: center; }

/* ---------- Blog ---------- */
/* Blog index: magazine-style list. Newest post is a large featured card (photo left, text right);
   older posts sit in a two-column grid below with the photo on top. */
.blog-page { padding: 130px var(--gutter) 100px; }
.blog-head, .post-card, .post-grid { max-width: 1120px; margin-left: auto; margin-right: auto; }
.blog-head { padding-bottom: 34px; margin-bottom: 56px; border-bottom: 1px solid #111; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.blog-head h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.post-card { display: grid; gap: 22px; }
.post-card-img { display: block; overflow: hidden; }
.post-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.post-card-meta > * + *::before { content: "·"; margin: 0 10px; }
.post-card h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; text-wrap: balance; margin: 14px 0 16px; }
.post-card h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.post-card:hover h2 a { background-size: 100% 1px; }
.post-card-excerpt { font-family: var(--serif); font-size: 18px; line-height: 1.6; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-more { display: inline-block; margin-top: 24px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid #111; }
.post-card-more span { display: inline-block; transition: transform .25s; }
.post-card-more:hover span { transform: translateX(4px); }
.post-card.featured { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 56px; align-items: center; }
.post-card.featured .post-card-img img { aspect-ratio: 4 / 5; }
.post-card.featured h2 { font-size: clamp(36px, 4.6vw, 60px); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; margin-top: 80px; }
.post-grid:empty { display: none; }
@media (max-width: 760px) {
  .post-card.featured { grid-template-columns: 1fr; gap: 24px; }
  .post-card.featured .post-card-img img { aspect-ratio: 3 / 2; object-position: center 78%; }
  .post-grid { grid-template-columns: 1fr; }
}

.post { max-width: 820px; margin: 0 auto; padding: 136px var(--gutter) 80px; }
.post h1 { text-align: center; margin: 0 0 14px; }
.post .post-date { text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 48px; }
.post p { font-family: var(--serif); font-size: 17px; line-height: 1.55; margin-bottom: 14px; text-align: justify; }
.post figure { margin: 34px 0; }
.post figcaption { font-family: var(--serif); font-size: 18.7px; text-align: center; margin-top: 14px; }
.post-footer { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(0,0,0,.2); display: flex; justify-content: space-between; font-family: var(--serif); font-size: 16px; }

/* ---------- Shop ---------- */
.shop { padding: 120px var(--gutter) 80px; }
.shop h2 { text-align: center; }
.shop-cats { display: flex; justify-content: center; margin: 22px 0 30px; }
.shop-cats a { padding: 0 16px; font-size: 13px; border-left: 1px solid rgba(0,0,0,.25); }
.shop-cats a:first-child { border-left: 0; }
.shop-cats a.active { font-weight: 600; }
/* Shop grid.
   Computer/tablet: justified rows — every photo in a row has the same height and its own width (--ar = width/height,
   set on each card), nothing cropped, no frames. Phone: one print per row, shown whole with a soft shadow. */
.product-grid { display: flex; flex-wrap: wrap; gap: 40px 22px; --rh: 300px; }
.product-grid::after { content: ""; flex-grow: 999; }
.product-card { display: block; flex: var(--ar, 1) 1 calc(var(--ar, 1) * var(--rh)); min-width: 0; }
.product-card .ph { aspect-ratio: var(--ar, 1); overflow: hidden; }
.product-card .ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .ph img { transform: scale(1.03); }
.product-card h3 { font-size: 17px; margin-top: 14px; }
.product-card p { font-family: var(--serif); font-size: 16px; margin-top: 6px; }
.empty { text-align: center; padding: 60px 0; display: none; }

.product { padding: 120px var(--gutter) 80px; }
.crumbs { font-size: 13px; margin-bottom: 18px; }
.crumbs span { margin: 0 6px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; align-items: start; }
/* Portrait/square prints: the whole photo fits on screen without scrolling */
.product-layout figure img { display: block; max-width: 100%; max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); width: auto; height: auto; margin: 0 auto; }
/* Landscape/panorama prints (.wide, set from the photo's shape): photo on top, text and buying below in two columns */
.product-layout.wide { grid-template-columns: 1fr; gap: 40px; }
.product-layout.wide figure img { width: 100%; max-height: 72vh; object-fit: contain; }
.product-layout.wide .product-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3vw; align-items: start; }
.product-info h1 { font-size: clamp(28px, 2.9vw, 38px); }
.product-info .price { font-family: var(--serif); font-size: 18px; margin: 16px 0 14px; }
.product-info .desc { font-family: var(--serif); font-size: 17px; line-height: 1.7; margin-bottom: 24px; }
.opt-label { font-size: 13px; margin-bottom: 10px; }
.opt-chosen { color: rgba(0,0,0,.55); margin-left: 6px; }
.opt-group { margin-bottom: 20px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.options button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 13px 10px; cursor: pointer;
  font: 14px var(--sans); color: #000; background: rgba(255,255,255,.22); border: 1px solid rgba(0,0,0,.22); border-radius: 8px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.options button small { font-size: 12px; color: rgba(0,0,0,.6); }
.options button:hover { border-color: rgba(0,0,0,.5); }
.options button.soldout { opacity: .45; text-decoration: line-through; }
.product-options { margin-bottom: 6px; }
.add-cart:disabled:not(.adding) { background: #777; cursor: not-allowed; }
.bundle-box:empty { display: none; }
.bundle-box { margin-top: 18px; }
.bundle { padding: 14px 16px 12px; border: 1px solid rgba(0,0,0,.14); border-radius: 10px; background: rgba(255,255,255,.3); }
.drawer .bundle, .cart-view .bundle { background: #fff; margin-bottom: 12px; }
.bundle-title { font-size: 14px; font-weight: 500; }
.bundle-bar { height: 5px; margin: 12px 0 6px; border-radius: 3px; background: rgba(0,0,0,.1); overflow: hidden; }
.bundle-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8f9a86, var(--sage)); border-radius: 3px; transition: width .3s; }
.bundle-steps { position: relative; height: 30px; font-size: 11px; color: rgba(0,0,0,.55); }
.bundle-steps span { position: absolute; transform: translateX(-100%); text-align: right; white-space: nowrap; }
.bundle-steps b { display: block; color: #000; font-weight: 600; }
.bundle-sub { font-size: 12px; color: rgba(0,0,0,.55); margin-top: 4px; }
.bundle-link { display: inline-block; font-size: 13px; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.options button[aria-checked="true"] { background: rgba(255,255,255,.55); border-color: #000; box-shadow: 0 0 0 1px #000 inset; }
.product-info .product-options + .price { font-family: var(--sans); font-size: 24px; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.add-cart { width: 100%; height: 54px; padding: 0; border-radius: 999px; background: #000; color: #fff; text-transform: none; letter-spacing: 0; font: 500 15px var(--sans); display: flex; align-items: center; justify-content: center; gap: 10px; }
.add-cart:hover { background: #222; }
.add-cart.adding { background: #555; cursor: default; }
.add-cart.adding::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
.form-note { font-size: 12px; margin-top: 10px; min-height: 18px; }


/* ---------- Cart ---------- */
/* button busy state: label hidden, small spinner in its place */
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* cart drawer (modelled on skypathstudio.com) */
html.no-scroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 90; --drawer-bg: #f3f3f1; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(40,40,40,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--drawer-bg); color: #111; transform: translateX(100%); transition: transform .32s cubic-bezier(.32,.72,0,1); box-shadow: -10px 0 40px rgba(0,0,0,.12); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,.1); }
.drawer-head h2 { font-family: var(--serif); font-size: 22px; }
.drawer-close { background: none; border: 0; cursor: pointer; color: #333; padding: 4px; display: flex; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-body ul { list-style: none; display: grid; gap: 12px; }
.drawer-line { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 12px; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 10px; }
.drawer-thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.drawer-title { font-size: 15px; font-weight: 500; line-height: 1.3; }
.drawer-variant { font-size: 13px; color: rgba(0,0,0,.55); margin-top: 3px; }
.drawer-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.drawer-price { flex: 1; font-size: 15px; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; height: 32px; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; }
.stepper button { width: 30px; height: 100%; background: none; border: 0; font-size: 17px; cursor: pointer; color: #333; }
.stepper button:disabled { color: #bbb; cursor: default; }
.stepper span { min-width: 18px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.remove { background: none; border: 0; cursor: pointer; color: #666; padding: 4px; display: flex; }
.remove:hover { color: #000; }
.drawer-empty { height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #555; font-size: 14px; }
.drawer-empty svg { width: 34px; height: 26px; }
.drawer-empty a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid rgba(0,0,0,.1); }
.drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer-subtotal span:last-child { font-size: 20px; font-variant-numeric: tabular-nums; }
.drawer-ship { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 11px; border-radius: 8px; background: rgba(175,184,168,.35); font-size: 14px; }
.drawer-checkout { width: 100%; height: 52px; margin-top: 14px; border: 0; border-radius: 999px; background: #000; color: #fff; font: 500 15px var(--sans); cursor: pointer; }
.drawer-checkout:hover { background: #222; }
.drawer-checkout.loading { color: transparent; position: relative; pointer-events: none; }
.drawer-checkout.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
.drawer-note { font-size: 13px; margin-top: 10px; text-align: center; }
.drawer-note:empty { display: none; }
.drawer-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12px; color: rgba(0,0,0,.5); }

/* cart page (same cart view as the drawer) */
.cart-page { padding: 150px var(--gutter) 120px; min-height: 70vh; }
.cart-page h1 { font-size: 30px; margin-bottom: 26px; text-align: center; }
.cart-view { max-width: 620px; margin: 0 auto; }
.cart-view-body ul { list-style: none; display: grid; gap: 12px; }
.cart-view-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.15); }
.cart-view .drawer-empty { min-height: 200px; }
.drawer-line.busy { opacity: .55; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #999; border-right-color: transparent; animation: spin .7s linear infinite; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 22px var(--gutter); }
.has-footer { position: relative; }
main { min-height: 100vh; display: flex; flex-direction: column; }
main > .has-footer { flex: 1 0 auto; }
.has-footer > .site-footer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.bg-section > .site-footer { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(191,191,191,.97); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox { overflow: hidden; touch-action: none; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; cursor: zoom-in; touch-action: none; transform-origin: center; will-change: transform; }
.lightbox.zoomed img { cursor: grab; }
.lightbox.zoomed img:active { cursor: grabbing; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next, .lightbox .lb-zoom { z-index: 2; }
.lightbox .lb-zoom { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; background: rgba(255,255,255,.7); border-radius: 999px; padding: 2px 6px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.lightbox .lb-zoom button { position: static; font-size: 26px; padding: 6px 16px; }
.lightbox button { position: absolute; background: none; border: 0; cursor: pointer; font-size: 38px; line-height: 1; padding: 20px; color: #000; }
.lightbox .lb-close { top: 10px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 6vw; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav, .header-icons { display: none; }
  .header-mobile { display: flex; align-items: center; gap: 22px; justify-self: end; }
  .menu-toggle { display: block; }
  .about-intro .inner { grid-template-columns: 1fr; gap: 34px; padding: 90px var(--gutter); }
  .about-intro .text { grid-column: 1; padding-top: 0; }
  .about-intro .text .btn { margin-left: 0; }
  .shop-collage .stage { grid-template-columns: 1fr; gap: 44px; padding: 90px var(--gutter); }
  .shop-collage .collage { grid-column: 1; grid-row: 1; }
  .shop-collage .cta { grid-column: 1; grid-row: 2; }
  .world-map .label { font-size: 28px; }
  .world-map .tip { font-size: 14px; }
  .portrait-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-grid { --rh: 220px; }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .product-layout.wide .product-info { grid-template-columns: 1fr; gap: 0; }
  .product-layout figure img { max-height: 78vh; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .product-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
  .product-grid::after { display: none; }
  .product-card .ph { aspect-ratio: auto; overflow: visible; display: flex; justify-content: center; }
  .product-card .ph img { width: auto; height: auto; max-width: 100%; max-height: 62vh; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
  .product-card:hover .ph img { transform: none; }
  .product-card h3 { font-size: 19px; margin-top: 18px; }
  .portrait-row { grid-template-columns: 1fr; }
  }

/* Touch screens have no hover: hide the callouts and show tappable city buttons under the map instead */
@media (hover: none) {
  .world-map .callout { display: none; }
  .city-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 34px; }
  .city-list a, .city-list span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 6px; font-family: var(--serif); font-size: 16px; text-align: center; }
  .city-list a { background: var(--sage); color: #000; }
  .city-list span { background: #111; color: #d8d8d2; }
  .city-list small { font-family: var(--sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #9a9b94; }
}
