/* Green Island — concept bottle store. Builds on ../styles.css (tokens, type, buttons, gate,
   nav). The store is one dark cabinet: bottles stand on brass shelves that run the full width
   of each row, and every packshot fades at its edges into the page. */

body.shop { background: var(--black); }
body.shop::after { opacity: .045; }                          /* lighter grain than the film */
body.has-drawer { overflow: hidden; }

/* Nav: solid here, there is no film behind it */
.shop .nav { background: rgb(7 11 9 / .92); border-bottom: 1px solid rgba(236,230,216,.08); height: 64px; }
@supports (backdrop-filter: blur(8px)) { .shop .nav { background: rgb(7 11 9 / .78); backdrop-filter: blur(10px); } }
.nav nav a[aria-current="page"] { color: var(--bone); }
.cartbtn {
  display: inline-flex; align-items: center; gap: .5rem; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--mist); text-decoration: none;
}
.cartbtn:hover { color: var(--bone); }
.cartbtn svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .nav nav .cartbtn { margin-right: 1.1rem; } }
.cartbtn__n {
  min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 99px; display: inline-grid; place-items: center;
  background: var(--brass); color: var(--black); font-size: .75rem; font-weight: 600; line-height: 1;
}
.cartbtn__n[hidden] { display: none; }

main.shopmain { padding-top: 64px; }

/* Concept notice */
.concept-note { color: var(--mist); font-size: .8125rem; margin: 0; }
.concept-note strong { color: var(--bone); font-weight: 500; }

/* ---------- Store front ---------- */
.shop-hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
.shop-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .92; letter-spacing: -.01em; }
.shop-hero__sub { color: var(--mist); max-width: 34rem; margin: 1.25rem 0 0; font-size: 1.0625rem; }
.shop-hero__sub a { color: var(--brass-hi); }
.shop-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0; border-top: 1px solid rgba(236,230,216,.1); border-bottom: 1px solid rgba(236,230,216,.1);
}
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.filters button {
  font: 500 .875rem/1 var(--text); color: var(--mist); background: none; cursor: pointer;
  border: 1px solid rgba(236,230,216,.18); border-radius: 99px; padding: .6rem 1rem; transition: color .2s, border-color .2s, background-color .2s;
}
.filters button:hover { color: var(--bone); border-color: rgba(236,230,216,.45); }
.filters button[aria-pressed="true"] { background: var(--bone); color: var(--black); border-color: var(--bone); }
.shop-bar__count { color: var(--mist); font-size: .875rem; }

/* Shelves: no column gap, so each card's shelf line joins its neighbours' into one */
.grid { list-style: none; margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: clamp(2.5rem, 5vw, 4rem); }
.bottle { display: flex; flex-direction: column; padding: 0 clamp(.6rem, 1.6vw, 1.4rem); }
.bottle[hidden] { display: none; }
.bottle__link { display: flex; flex-direction: column; text-decoration: none; flex: 1; }
.bottle__img { position: relative; display: block; margin: 0 calc(-1 * clamp(.6rem, 1.6vw, 1.4rem)); padding-bottom: 0; }
.bottle__img img {
  width: 100%; aspect-ratio: 688 / 1024; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 56% at 50% 50%, #000 58%, transparent 100%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.bottle__img::after {                                   /* the shelf */
  content: ""; position: absolute; left: 0; right: 0; bottom: 9%; height: 1px;
  background: linear-gradient(90deg, rgba(185,152,92,.28), rgba(212,181,122,.55) 50%, rgba(185,152,92,.28));
  box-shadow: 0 1px 14px rgba(212,181,122,.12);
}
.bottle__link:hover .bottle__img img { transform: translateY(-6px); }
.bottle__line { color: var(--brass); font-size: .8125rem; letter-spacing: .02em; margin-top: -.25rem; }
.bottle__name { font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.1; margin-top: .3rem; transition: color .2s; }
.bottle__link:hover .bottle__name { color: var(--brass-hi); }
.bottle__meta { color: var(--mist); font-size: .875rem; margin-top: .35rem; }
.bottle__buy { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.bottle__price { font-size: 1rem; font-weight: 500; }
.bottle__add {
  font: 500 .875rem/1 var(--text); color: var(--bone); background: none; cursor: pointer;
  border: 1px solid rgba(236,230,216,.3); border-radius: 2px; padding: .65rem 1rem; min-width: 5.5rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bottle__add:hover { background: var(--brass); color: var(--black); border-color: var(--brass); }
.bottle__add.is-added { background: var(--brass); color: var(--black); border-color: var(--brass); }

.shop-info {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
  margin: clamp(4rem, 9vw, 7rem) 0 0; padding: 2.5rem 0; border-top: 1px solid rgba(236,230,216,.1);
}
.shop-info h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.shop-info p { margin: 0; color: var(--mist); font-size: .9375rem; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(2rem, 5vw, 4rem) 0; align-items: start; }
.pdp__img { position: sticky; top: 64px; }
.pdp__img img {
  width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 688 / 1024; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 60% 56% at 50% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 56% at 50% 50%, #000 60%, transparent 100%);
}
.pdp__info { padding-top: clamp(0rem, 4vw, 3rem); max-width: 34rem; }
.crumbs { display: flex; gap: .6rem; color: var(--mist); font-size: .875rem; margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--bone); }
.pdp h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.pdp__price { font-size: 1.375rem; margin: 1rem 0 1.5rem; }
.pdp__text { color: rgba(236,230,216,.82); margin: 0 0 2rem; }
.pdp__buy { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.pdp__add { flex: 1; min-width: 12rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(236,230,216,.3); border-radius: 2px; min-height: 50px; }
.qty button { width: 46px; align-self: stretch; background: none; border: 0; color: var(--bone); font-size: 1.15rem; cursor: pointer; }
.qty button:hover { color: var(--brass-hi); }
.qty span { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; }
.qty--sm { min-height: 34px; margin-top: .6rem; } .qty--sm button { width: 34px; font-size: 1rem; }
.pdp__ship { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; color: var(--mist); font-size: .9375rem; display: grid; gap: .35rem; }
.pdp__ship li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin: 0 .7rem .15rem 0; }
.pdp__facts, .pdp__notes { margin: 0; display: grid; border-top: 1px solid rgba(236,230,216,.12); }
.pdp__facts div, .pdp__notes div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(236,230,216,.12); }
.pdp__facts dt, .pdp__notes dt { color: var(--mist); }
.pdp__facts dd, .pdp__notes dd { margin: 0; }
.pdp__notes { margin-top: 2.5rem; }
.pdp__notes dt { font-family: var(--display); font-size: 1.3rem; color: var(--bone); }
.more { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); border-top: 1px solid rgba(236,230,216,.08); }
.more h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

/* ---------- Cart drawer ---------- */
.cart { position: fixed; inset: 0; z-index: 55; }
.cart[hidden] { display: none; }
.cart__scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .55); opacity: 0; transition: opacity .3s ease; border: 0; width: 100%; cursor: pointer; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(27rem, 100%); background: var(--ink);
  border-left: 1px solid rgba(236,230,216,.1); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
.cart.is-open .cart__scrim { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(236,230,216,.1); }
.cart__head h2 { font-size: 1.6rem; }
.cart__close { background: none; border: 0; color: var(--mist); font: inherit; cursor: pointer; padding: .4rem; }
.cart__close:hover { color: var(--bone); }
.cart__body { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
.cart__empty { padding: 3rem 0; display: grid; gap: 1.25rem; justify-items: start; color: var(--mist); }
.cart__empty p { margin: 0; }
.cart__foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid rgba(236,230,216,.1); display: grid; gap: .9rem; }
.cart__foot[hidden] { display: none; }
.cart__row { display: flex; justify-content: space-between; font-size: 1.0625rem; }
.cart__foot .btn { width: 100%; }
.free { margin: 1.25rem 0 0; color: var(--mist); font-size: .875rem; display: grid; gap: .55rem; }
.free.is-free { color: var(--brass-hi); }
.free__bar { height: 2px; background: rgba(236,230,216,.12); }
.free__bar span { display: block; height: 100%; background: var(--brass); transition: width .4s ease; }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(236,230,216,.08); align-items: start; }
.line__img img { width: 64px; aspect-ratio: 688 / 1024; object-fit: cover; border-radius: 2px; }
.line__body { display: grid; gap: .15rem; min-width: 0; }
.line__name { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; text-decoration: none; }
.line__name:hover { color: var(--brass-hi); }
.line__meta { color: var(--mist); font-size: .8125rem; }
.line__end { display: grid; justify-items: end; gap: .5rem; }
.line__price { font-variant-numeric: tabular-nums; }
.line__remove { background: none; border: 0; padding: 0; color: var(--mist); font: .8125rem var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.line__remove:hover { color: var(--bone); }
.line--empty { display: block; color: var(--mist); }

/* ---------- Checkout ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); align-items: start; }
.co h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; margin-bottom: .75rem; }
.co fieldset { border: 0; padding: 0; margin: 2.75rem 0 0; min-width: 0; }
.co legend { font-family: var(--display); font-size: 1.7rem; padding: 0; margin-bottom: 1.1rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; }
.choice { position: relative; display: grid; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid rgba(236,230,216,.2); border-radius: 2px; cursor: pointer; transition: border-color .2s; }
.choice:hover { border-color: rgba(236,230,216,.45); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.choice b { font-weight: 500; }
.choice span { color: var(--mist); font-size: .875rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; margin-top: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--mist); font-size: .875rem; }
.field input, .field select {
  font: inherit; color: var(--bone); background: rgb(236 230 216 / .03); border: 1px solid rgba(236,230,216,.2); border-radius: 2px;
  padding: .8rem .9rem; min-height: 48px; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field select option { background: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brass); }
.is-collect .is-deliver-only { display: none; }
.collect-only { display: none; color: var(--mist); margin: 1.25rem 0 0; }
.is-collect .collect-only { display: block; }
.agree { display: flex; gap: .75rem; align-items: flex-start; margin-top: 2.25rem; color: rgba(236,230,216,.85); cursor: pointer; }
.agree.is-error { color: var(--brass-hi); }
.agree.is-error span::after { content: " Please confirm to continue."; }
.agree input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--brass); flex: none; }
.co__place { width: 100%; margin-top: 1.5rem; }
.co__place:disabled { opacity: .45; cursor: not-allowed; }
.co .concept-note { margin-top: 1rem; }
.summary { position: sticky; top: 88px; background: var(--ink); border: 1px solid rgba(236,230,216,.08); padding: 1.5rem; }
.summary h2 { font-size: 1.6rem; margin-bottom: .25rem; }
.summary dl { margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.summary dl div { display: flex; justify-content: space-between; }
.summary dt { color: var(--mist); } .summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary .total { padding-top: .8rem; margin-top: .3rem; border-top: 1px solid rgba(236,230,216,.12); font-size: 1.15rem; }
.summary .total dt { color: var(--bone); }
.done { padding: clamp(5rem, 12vw, 9rem) 0; max-width: 40rem; }
.done[hidden] { display: none; }
.done h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; margin-bottom: 1.25rem; }
.done p { color: rgba(236,230,216,.85); }
.done .concept-note { margin: 2rem 0; padding: 1rem 1.25rem; border-left: 2px solid var(--brass); background: rgb(236 230 216 / .03); font-size: .9375rem; }

/* ---------- Footer ---------- */
.shop .foot { padding-bottom: 3.5rem; }

/* ---------- Small screens ---------- */
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-info { grid-template-columns: 1fr; gap: 1.5rem; }
  .pdp, .co { grid-template-columns: 1fr; }
  .pdp__img { position: static; } .pdp__img img { max-width: 340px; }
  .summary { position: static; order: -1; }
  .fields { grid-template-columns: 1fr; }
  .bottle__buy { flex-direction: column; align-items: stretch; gap: .6rem; }
  .bottle__add { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bottle__img img, .cart__panel, .cart__scrim { transition: none; }
}
