/* ADI — products page */
.page-shop { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 84px); } /* room for the floating cart */
html.sheet-open { overflow: hidden; }

.shop-hero { padding-top: 26px; padding-bottom: 26px; }
.shop-title { font-size: clamp(42px, 12vw, 80px); font-weight: 400; }
.shop-intro { margin-top: 16px; font-size: 17px; max-width: 34ch; }

/* ---------- Brand tiles ---------- */
.brand-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brand-tile {
  position: relative; overflow: hidden; border: 0; cursor: pointer; text-align: start; border-radius: 22px;
  min-height: 232px; padding: 18px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  transition: transform .3s var(--ease), box-shadow .3s; -webkit-tap-highlight-color: transparent;
}
.brand-tile:active { transform: scale(.98); }
.brand-hava { background: var(--plum); color: var(--blush); }
.brand-2080 { background: var(--rose-soft); color: var(--plum); }
.bt-latin { font-family: var(--font-display); font-size: 11.5px; letter-spacing: .16em; opacity: .8; white-space: nowrap; }
.bt-name { font-family: var(--font-display); font-size: clamp(25px, 7vw, 36px); line-height: 1.05; margin-top: 6px; position: relative; z-index: 1; }
.bt-tag { font-size: 13px; line-height: 1.4; opacity: .85; max-width: 15ch; position: relative; z-index: 1; margin-top: 6px; }
.bt-count { margin-top: auto; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.bt-count svg { width: 18px; height: 10px; }
.bt-img {
  position: absolute; width: 44%; height: auto; bottom: -5%; left: -5%;
  border-radius: 12px; transform: rotate(-5deg); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .55);
}
.brand-tile.is-active { box-shadow: inset 0 0 0 2px var(--rose), 0 16px 30px -22px rgba(84, 36, 62, .9); }
.brand-2080.is-active { box-shadow: inset 0 0 0 2px var(--plum); }
.has-brand .brand-tile:not(.is-active) { opacity: .78; }

/* compact sticky switch once a brand is chosen */
.brand-switch { position: sticky; top: 0; z-index: 30; background: rgba(252, 244, 243, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--plum-12); margin-top: 22px; }
.brand-switch-inner { display: flex; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.switch-btn {
  flex: 1; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; font-weight: 500; font-size: 15px;
}
.switch-btn.is-active { background: var(--plum); color: var(--blush); border-color: var(--plum); }

/* ---------- Catalog ---------- */
.catalog { padding-top: 22px; }
.catalog-title { font-size: 30px; margin-bottom: 4px; }
.group { margin-top: 22px; }
.group-title { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--plum-70); padding-bottom: 10px; border-bottom: 1px solid var(--plum-12); margin-bottom: 14px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-open { background: none; border: 0; padding: 0; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 2px; -webkit-tap-highlight-color: transparent; }
.card-img { display: block; aspect-ratio: 1; background: var(--paper); border-radius: 16px; overflow: hidden; margin-bottom: 10px; box-shadow: inset 0 0 0 1px var(--plum-06); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s var(--ease); }
.card-img.is-photo img { object-fit: cover; padding: 0; } /* 2080 studio shots: fill the tile, pack stays centred */
.card-open:hover .card-img img { transform: scale(1.04); }
.card-name { font-size: 13.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.3; text-align: right; overflow-wrap: anywhere; }
.card-he { font-size: 14px; color: var(--plum-70); line-height: 1.35; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 14px; }
.card-meta .size { color: var(--plum-70); }
.price { font-weight: 600; white-space: nowrap; }
.price-unknown { font-weight: 500; font-size: 13px; color: var(--plum); background: var(--rose-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.add-btn {
  margin-top: 10px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--plum); background: transparent; cursor: pointer;
  font-weight: 500; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.add-btn:hover, .add-btn:active { background: var(--plum); color: var(--blush); }
.add-btn .in-cart:empty { display: none; }
.add-btn .in-cart { min-width: 22px; height: 22px; border-radius: 999px; background: var(--plum); color: var(--blush); font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.add-btn:hover .in-cart, .add-btn:active .in-cart { background: var(--blush); color: var(--plum); }
.catalog-note { margin-top: 26px; font-size: 14px; color: var(--plum-70); max-width: 44ch; }

/* "not sure what fits" — plum card with Adi's face, the page's warm closing note */
.shop-help {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 52px; padding: 30px 24px 28px; border-radius: 28px;
  background: var(--plum); color: var(--blush); box-shadow: 0 26px 50px -30px rgba(84, 36, 62, .9);
}
.shop-help::before { /* soft rose glow behind the portrait */
  content: ''; position: absolute; z-index: -1; top: -70px; inset-inline-start: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 154, 171, .45), rgba(201, 154, 171, 0) 70%);
}
.help-face {
  width: 66px; height: 66px; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  border: 2px solid var(--rose-light); margin-bottom: 18px;
}
.shop-help-title { font-family: var(--font-display); font-size: clamp(30px, 8.4vw, 42px); line-height: 1.08; margin-bottom: 12px; }
.shop-help-title em { font-style: normal; color: var(--rose-light); }
.shop-help p { font-size: 16px; color: rgba(252, 244, 243, .86); max-width: 34ch; }
.shop-help .btn { margin-top: 22px; min-height: 52px; gap: 10px; }
.help-wa { width: 22px; height: 22px; }

/* ---------- Floating cart (bottom left, above nav) ---------- */
.cart-fab {
  position: fixed; z-index: 45; left: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--plum); color: var(--blush); display: grid; place-items: center;
  box-shadow: 0 14px 28px -12px rgba(84, 36, 62, .75), 0 0 0 4px rgba(252, 244, 243, .9);
  -webkit-tap-highlight-color: transparent;
}
.cart-fab svg { width: 26px; height: 26px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: var(--rose); color: var(--plum); font-size: 13px; font-weight: 600; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--blush);
}
.cart-badge[hidden] { display: none; }
.cart-fab.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.14); } 60% { transform: scale(.96); } }

/* ---------- Sheets ---------- */
dialog.sheet {
  border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92svh; color: var(--plum);
  background: var(--blush); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .35);
}
dialog.sheet::backdrop { background: rgba(45, 15, 30, .45); }
dialog.sheet[open] { animation: sheetUp .38s var(--ease); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet-inner { display: flex; flex-direction: column; max-height: 92svh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; border-bottom: 1px solid var(--plum-12); }
.sheet-head h2 { font-size: 26px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(24px + var(--safe-b)); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--plum-06); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }

/* product sheet */
.ps-brand { font-size: 14px; font-weight: 500; color: var(--plum-70); }
.ps-img { background: var(--paper); border-radius: 18px; margin-top: 14px; display: grid; place-items: center; height: min(42svh, 340px); overflow: hidden; }
.ps-img img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.ps-title { margin-top: 16px; font-family: var(--font-body); font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.ps-title .ltr { display: inline-block; }
.ps-he { color: var(--plum-70); }
.ps-facts { display: flex; gap: 28px; margin: 14px 0 0; }
.ps-facts dt { font-size: 13px; color: var(--plum-70); }
.ps-facts dd { margin: 0; font-weight: 600; }
.ps-desc { margin-top: 14px; }
.ps-note { margin-top: 10px; font-size: 14px; color: var(--plum-70); }
.ps-actions { display: grid; gap: 10px; margin-top: 18px; }
.ps-actions .btn { width: 100%; }
.ps-source { margin-top: 14px; font-size: 13px; text-align: center; }
.ps-source a { color: var(--plum-70); }

/* cart */
.cart-empty { padding: 30px 0 10px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.ce-title { font-family: var(--font-display); font-size: 26px; }
.cart-empty .btn { margin-top: 8px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cl { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--plum-12); }
.cl-img { width: 72px; height: 72px; object-fit: contain; background: var(--paper); border-radius: 12px; padding: 4px; }
.cl-info { min-width: 0; }
.cl-name { font-size: 14px; font-weight: 600; letter-spacing: .03em; text-align: right; }
.cl-meta { font-size: 13.5px; color: var(--plum-70); }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--plum-12); border-radius: 999px; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; border-radius: 50%; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; }
.cl-price { text-align: left; display: grid; justify-items: end; }
.cl-total { font-weight: 600; }
.cl-unit { font-size: 12.5px; color: var(--plum-70); }
.cl-remove { margin-top: 0; min-height: 44px; background: none; border: 0; padding: 6px 0; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--plum-70); cursor: pointer; }

.cart-summary { padding: 16px 0 6px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.sum-row strong { font-size: 20px; }
.sum-warning { margin-top: 10px; background: var(--rose-soft); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; }
.sum-note { margin-top: 10px; font-size: 13px; color: var(--plum-70); }

.fulfillment { border: 0; margin: 14px 0 0; padding: 0; }
.fulfillment legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.ff-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--plum-12); cursor: pointer; margin-bottom: 8px; transition: border-color .2s, background-color .2s; }
.ff-opt:has(input:checked) { border-color: var(--plum); background: var(--rose-soft); }
.ff-opt input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--plum); flex: none; }
.ff-text { display: grid; }
.ff-label { font-weight: 500; }
.ff-note { font-size: 13.5px; color: var(--plum-70); line-height: 1.5; }
.ff-error { color: #8a1c3c; font-size: 14px; font-weight: 500; margin-top: 4px; }
.ff-error:empty { display: none; }
.ff-opt { border-color: var(--line-strong); }
.site-header .head-actions { display: flex; align-items: center; gap: 10px; }
.shop-foot { margin-top: 36px; padding-top: 18px; padding-bottom: 8px; border-top: 1px solid var(--plum-12); font-size: 14px; color: var(--plum-70); }
.shop-foot a { color: var(--plum); text-underline-offset: 3px; display: inline-block; padding: 12px 2px; margin: -12px 0; }
.fulfillment.needs .ff-opt { border-color: var(--rose); }

.checkout { margin-top: 12px; }
.checkout .btn { width: 100%; }
.checkout-explain { margin-top: 10px; font-size: 13.5px; color: var(--plum-70); text-align: center; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .brand-tile { min-height: 280px; padding: 26px; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
  .cart-fab { left: 28px; bottom: 28px; }
  dialog.sheet { margin: auto; max-width: 520px; border-radius: 24px; max-height: 88vh; }
  .sheet-inner { max-height: 88vh; }
  .shop-hero { padding-top: 48px; }
}
