/* Generated product pages, generic collections, cart page, search, collections list, policies, account,
   password page, gift card, Partner Connect, checkout end page. Builds on the other sheets. */

/* generated product page */
.gpdp { padding-top: 128px; }
.gstage { position: sticky; top: 110px; }
.gstage__frame { border-radius: var(--r); overflow: clip; aspect-ratio: 1; background: radial-gradient(62% 56% at 50% 40%, #f6f5f1 0%, #e4e3df 55%, #cfcec9 100%); display: grid; place-items: center; }
.gstage__frame img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumb { width: 72px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: clip; background: var(--tile); cursor: pointer; opacity: 0.6; transition: opacity 200ms ease, border-color 200ms ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { opacity: 1; border-color: var(--fg); }
.seg label.is-na span { text-decoration: line-through; opacity: 0.45; }
.gdetail { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.gdetail__copy p { color: #cfcec9; font-size: 1.0625rem; margin-top: 18px; max-width: 64ch; }
.gdetail__copy .h2 + p { margin-top: 28px; }
.gdetail__glance { padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.gdetail__glance .facts--big { margin-top: 20px; font-size: 0.9375rem; }
.gdetail__glance .facts--big th { width: 110px; }
.rail--cards { grid-auto-columns: clamp(240px, 22vw, 300px); }
.ccard__roast--none { visibility: hidden; }

/* generic collection: in-collection finder */
.f-find { position: relative; display: inline-flex; align-items: center; flex: 1 1 240px; max-width: 360px; }
.f-find i { position: absolute; left: 16px; color: var(--fg-2); pointer-events: none; }
.f-find input { width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: inherit; font-size: 0.9375rem; }
.f-find input:focus { outline: none; border-color: var(--fg); }

/* cart page */
.cartpage { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.clines--page { padding: 0; overflow: visible; border-top: 1px solid var(--line); }
.clines--page .cline { padding: 22px 0; }
.clines--page .cline__img { width: 110px; }
.clines--page .cline__name { font-size: 1.75rem; }
.cempty--page { padding: 80px 0; justify-items: start; text-align: left; }
.summary { position: sticky; top: 120px; padding: clamp(24px, 3vw, 32px); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 14px; }
.summary h2 { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.summary .ship { padding: 0; border: 0; }
.summary__row { display: flex; justify-content: space-between; font-size: 1.125rem; font-weight: 500; padding-top: 14px; border-top: 1px solid var(--line); }
.summary__note { color: var(--fg-2); font-size: 0.8125rem; }
.summary__cta { width: 100%; }
.picks--4 { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }

/* search */
.search-hero { padding-bottom: 24px; }
.sbox { position: relative; display: flex; align-items: center; margin-top: 28px; }
.sbox i { position: absolute; left: 26px; font-size: 26px; color: var(--fg-2); pointer-events: none; }
.sbox input { width: 100%; height: 84px; padding: 0 70px 0 68px; border-radius: 999px; border: 1px solid rgba(236, 235, 231, 0.3); background: var(--bg-2); color: var(--fg); font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); }
.sbox input::placeholder { color: #6f6e69; }
.sbox input:focus { outline: none; border-color: var(--fg); }
.sbox input::-webkit-search-cancel-button { display: none; }
.sbox kbd { position: absolute; right: 28px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 6px; font: 500 0.8125rem var(--sans); color: var(--fg-2); }
.stry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.stry > span { color: var(--fg-2); font-size: 0.875rem; margin-right: 6px; }
.chip span { color: inherit; opacity: 0.6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.stabs { display: flex; flex-wrap: wrap; gap: 8px; }
.scount { margin: 20px 0 24px; color: var(--fg-2); font-size: 0.9375rem; }
.slist { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.slist:empty { display: none; }
.slist a { display: grid; grid-template-columns: 110px 1fr 24px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding 300ms var(--ease-out); }
.slist .k { font-size: 0.8125rem; color: var(--accent); font-weight: 500; }
.slist .t { font-family: var(--serif); font-size: 1.625rem; line-height: 1.1; }
.slist .x { display: block; color: var(--fg-2); font-size: 0.9375rem; margin-top: 4px; font-family: var(--sans); }
@media (hover: hover) and (pointer: fine) { .slist a:hover { padding-left: 10px; } }
mark { background: rgba(226, 85, 60, 0.28); color: inherit; border-radius: 3px; padding: 0 2px; }

/* all collections bento */
.cbento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 16px; padding-bottom: clamp(80px, 10vw, 140px); }
.ctile { position: relative; display: flex; align-items: flex-end; padding: 24px; border-radius: var(--r); background: var(--tile); color: var(--tile-fg); overflow: clip; isolation: isolate; }
.ctile--wide { grid-column: span 2; }
.ctile--tall { grid-row: span 2; }
.ctile img { position: absolute; z-index: -1; transition: transform 700ms var(--ease-out); }
.ctile--bag img { right: -24%; top: -8%; width: 80%; }
.ctile--wide.ctile--bag img { right: -4%; width: 46%; }
.ctile--cover { color: var(--fg); }
.ctile--cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ctile--cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,12,11,.9) 0%, rgba(12,12,11,.15) 65%); }
.ctile--bean img { right: 14%; top: 14%; width: 26%; }
.ctile--logo { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); }
.ctile--logo img { right: 18px; top: 18px; width: 72px; }
.ctile__txt { display: grid; gap: 4px; font-size: 0.9375rem; opacity: 0.85; }
.ctile__name { font-family: var(--serif); font-size: clamp(1.75rem, 2.4vw, 2.5rem); line-height: 1.02; opacity: 1; }
.ctile > i { position: absolute; right: 22px; bottom: 26px; font-size: 22px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ctile:hover img { transform: translateY(-6px); } .ctile:hover > i { transform: rotate(45deg); } }

/* policies */
.policy { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: space-between; gap: 48px; padding-bottom: clamp(80px, 10vw, 140px); }
.policy__nav { position: sticky; top: 120px; align-self: start; }
.policy__nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.policy__nav a { display: block; padding: 7px 0 7px 16px; color: var(--fg-2); font-size: 0.9375rem; position: relative; }
.policy__nav a[aria-current] { color: var(--fg); }
.policy__nav a[aria-current]::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--accent); }
.glancebox { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 24px; }
.glancebox div { padding: 18px 20px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.glancebox dt { font-size: 0.8125rem; color: var(--fg-2); }
.glancebox dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.psec { padding: 32px 0; border-top: 1px solid var(--line); }
.psec h2 { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.1; }
.psec p, .prose p, .prose li { color: #cfcec9; margin-top: 14px; max-width: 66ch; }
.prose h2, .prose h3 { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.1; margin-top: 40px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { border-bottom: 1px solid var(--line); }
.policy__more { margin-top: 32px; color: var(--fg-2); }

/* account */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 128px; padding-bottom: clamp(80px, 10vw, 140px); }
.auth__card { padding: clamp(28px, 4vw, 56px); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.auth__card .page-hero__title { margin-top: 28px; }
.auth__cta { margin-top: 36px; align-self: flex-start; }
.auth__note { margin-top: 16px; color: var(--fg-2); font-size: 0.875rem; }
.auth__side { border-radius: var(--r); overflow: clip; min-height: 520px; }
.auth__side img { width: 100%; height: 100%; object-fit: cover; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2); font-size: 0.9375rem; max-width: 760px; }
.notice i { color: var(--accent); font-size: 20px; margin-top: 1px; }
.acct { padding-bottom: clamp(80px, 10vw, 140px); }
.acct__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.acct__panel { margin-top: 24px; padding: clamp(32px, 5vw, 64px); border-radius: var(--r); border: 1px dashed rgba(236, 235, 231, 0.2); display: grid; justify-items: start; gap: 14px; }
.acct__panel > i { font-size: 34px; color: var(--accent); }
.acct__panel h2 { font-family: var(--serif); font-size: 2.25rem; line-height: 1; }
.acct__panel p { color: var(--fg-2); max-width: 52ch; }

/* password page */
.pw-page .nav, .pw-page .announce, .pw-page .footer { display: none; }
.pw { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 24px; isolation: isolate; }
.pw__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pw::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 12, 11, 0.7); }
.pw__card { width: min(560px, 100%); padding: clamp(28px, 5vw, 56px); border-radius: var(--r); background: rgba(21, 21, 20, 0.86); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); text-align: center; display: grid; justify-items: center; gap: 4px; }
.pw__card .page-hero__title { margin-inline: auto; }
.pw__card .signup__row { width: 100%; margin-top: 24px; }
.pw__card input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 1px solid rgba(236,235,231,.32); background: transparent; color: var(--fg); padding-inline: 22px; font: inherit; }
.pw__owner { margin-top: 20px; color: var(--fg-2); font-size: 0.875rem; width: 100%; }
.pw__owner summary { cursor: pointer; }

/* gift card */
.gift__stage { position: sticky; top: 120px; aspect-ratio: 1; border-radius: var(--r); display: grid; place-items: center; background: radial-gradient(62% 56% at 50% 40%, #2a2724 0%, var(--bg-2) 70%); perspective: 1200px; }
.gcard { width: 74%; aspect-ratio: 1.586; border-radius: 22px; padding: 7% 8%; position: relative; color: var(--tile-fg); background: linear-gradient(135deg, #f4f3ef 0%, #dcdad5 100%); box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.8); transform-style: preserve-3d; will-change: transform; overflow: hidden; }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(var(--shine, -60%)); pointer-events: none; }
.gcard__logo { position: absolute; right: 7%; top: 9%; width: 18%; }
.gcard__brand { font-family: var(--serif); font-size: clamp(1rem, 1.6vw, 1.375rem); line-height: 1.05; }
.gcard__amt { position: absolute; left: 8%; bottom: 14%; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; }
.gcard__lbl { position: absolute; right: 8%; bottom: 16%; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tile-fg-2); }

/* Partner Connect */
.pc-hero { position: relative; min-height: 88dvh; display: flex; align-items: flex-end; isolation: isolate; overflow: clip; margin-top: -38px; }
.pc-hero__bg { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.pc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,12,11,.95) 5%, rgba(12,12,11,.35) 60%, rgba(12,12,11,.6) 100%); }
.pc-hero__in { padding-bottom: clamp(48px, 8vh, 96px); padding-top: 160px; }
.pc-hero .page-hero__title { max-width: 16ch; }
.pc-hero .page-hero__title em { color: var(--fg); }
.pc-hero .about-cta { margin-top: 32px; }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.pc-stats > div { padding: 26px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.pc-stats__n { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.pc-stats p:not(.pc-stats__n) { color: var(--fg-2); margin-top: 10px; font-size: 0.9375rem; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 26px; border-top: 2px solid var(--accent); background: linear-gradient(180deg, var(--bg-2), transparent); border-radius: 0 0 var(--r) var(--r); }
.steps__n { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--fg-2); }
.steps h3 { font-family: var(--serif); font-size: 2rem; margin-top: 18px; }
.steps p { color: var(--fg-2); margin-top: 6px; }
.ctable td.hl { color: var(--fg); font-weight: 500; }
.pc-comp tbody th { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; white-space: normal; }
.shipbars { margin-top: 40px; display: grid; gap: 14px; max-width: 860px; }
.shipbar { display: grid; grid-template-columns: 90px 1fr 140px; gap: 18px; align-items: center; }
.shipbar__k { font-family: var(--serif); font-size: 1.5rem; }
.shipbar__track { height: 14px; border-radius: 999px; background: rgba(236,235,231,.08); }
.shipbar__fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--accent); transform-origin: left; }
.shipbar__v { color: var(--fg-2); font-size: 0.9375rem; text-align: right; font-variant-numeric: tabular-nums; }

/* checkout end page */
.co { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.co__end { padding: clamp(28px, 4vw, 48px); border-radius: var(--r); background: var(--tile); color: var(--tile-fg); }
.co__end h2 { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; }
.co__end p { color: var(--tile-fg-2); margin-top: 14px; max-width: 46ch; }
.co__end ol { margin: 20px 0 28px; padding-left: 1.2em; color: var(--tile-fg); display: grid; gap: 6px; }
.co__end .btn--light { background: var(--tile-fg); color: var(--fg); }

@media (max-width: 1100px) {
  .gstage { position: static; }
  .gdetail, .cartpage, .co { grid-template-columns: 1fr; }
  .summary { position: static; }
  .picks--4 { grid-template-columns: 1fr 1fr; }
  .cbento { grid-template-columns: repeat(2, 1fr); }
  .policy { grid-template-columns: 1fr; }
  .policy__nav { position: static; }
  .policy__nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; border: 0; }
  .policy__nav a { padding-left: 0; }
  .pc-stats, .steps { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { min-height: 280px; }
  .gift__stage { position: static; }
}
@media (max-width: 640px) {
  .gpdp { padding-top: 96px; }
  .picks--4, .glancebox { grid-template-columns: 1fr; }
  .cbento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .ctile--wide, .ctile--tall { grid-column: auto; grid-row: auto; }
  .sbox input { height: 64px; padding-left: 54px; font-size: 1.5rem; }
  .sbox i { left: 20px; font-size: 22px; }
  .sbox kbd { display: none; }
  .slist a { grid-template-columns: 1fr 20px; }
  .slist .k { grid-column: 1 / -1; }
  .pc-stats, .steps { grid-template-columns: 1fr; }
  .shipbar { grid-template-columns: 64px 1fr 108px; gap: 10px; }
  .clines--page .cline__img { width: 84px; }
}
.pc-whole__card { padding: clamp(28px, 4vw, 56px); border-radius: var(--r); background: var(--tile); color: var(--tile-fg); }
.pc-whole__card .lede { color: var(--tile-fg-2); margin-bottom: 28px; }
.pc-whole__card .btn--light { background: var(--tile-fg); color: var(--fg); }
.prose { overflow-wrap: anywhere; }
@media (max-width: 640px) { .pc-hero::before { background: linear-gradient(0deg, rgba(12,12,11,.96) 10%, rgba(12,12,11,.75) 70%, rgba(12,12,11,.7) 100%); } }

/* collection FAQ: clear of the product grid, its own band */
.c-faq--coll { margin-top: clamp(96px, 12vw, 168px); padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(96px, 12vw, 168px); border-top: 1px solid var(--line); }
