/* Jewel Oral Care Digital Catalog */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Manrope', system-ui, sans-serif; background: #101a22; color: #1D2A38; }
::selection { background: #C2E23A; color: #12202b; }
button { font-family: inherit; }
.hidden { display: none !important; }

button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid #8CC63F; outline-offset: 2px;
}

.jw-hide-sb::-webkit-scrollbar { height: 8px; }
.jw-hide-sb::-webkit-scrollbar-thumb { background: rgba(29,42,56,.18); border-radius: 8px; }

@keyframes jwFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes jwRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jwSpin { to { transform: rotate(360deg); } }

/* ========================= LOGIN ========================= */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 78% -10%, #22333f 0%, #16232e 42%, #0e1820 100%);
}
.login-blob-a {
  position: absolute; width: 640px; height: 640px; top: -180px; right: -160px;
  background: #C2E23A; opacity: .14; border-radius: 0 100% 0 100% / 100% 0 100% 0; filter: blur(6px);
}
.login-blob-b {
  position: absolute; width: 420px; height: 420px; bottom: -160px; left: -140px;
  background: #7E9EC7; opacity: .12; border-radius: 0 100% 0 100% / 100% 0 100% 0;
}
.login-card {
  position: relative; width: 100%; max-width: 420px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.09); border-radius: 26px;
  padding: 44px 38px 38px; box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: jwRise .6s ease both;
}
.login-logo { height: 78px; width: auto; display: block; margin: 0 auto 26px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.32)); }
.login-kicker { font-family: 'Space Grotesk'; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #C2E23A; font-weight: 600; margin-bottom: 8px; }
.login-title { font-family: 'Space Grotesk'; font-size: 30px; line-height: 1.08; font-weight: 700; color: #fff; margin: 0 0 8px; letter-spacing: -.01em; }
.login-sub { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.55); margin: 0 0 26px; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); margin: 0 0 7px; letter-spacing: .02em; }
.field-input {
  width: 100%; height: 48px; padding: 0 15px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #fff; font-family: 'Manrope'; font-size: 15px; outline: none; margin-bottom: 16px;
}
.field-input:focus { border-color: rgba(194,226,58,.55); }
.field-input::placeholder { color: rgba(255,255,255,.5); }
.btn-login.idle { opacity: .6; box-shadow: none; }
#login-pass { margin-bottom: 10px; }
.login-error { font-size: 13px; color: #ff9c8a; margin: 2px 0 12px; font-weight: 600; }
.btn-login {
  width: 100%; height: 50px; margin-top: 8px; border: none; border-radius: 12px;
  background: #C2E23A; color: #16232e; font-family: 'Space Grotesk'; font-size: 15px; font-weight: 700;
  letter-spacing: .01em; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px rgba(194,226,58,.28);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(194,226,58,.4); }
.login-demo { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.5; }
.login-demo b { color: #C2E23A; font-weight: 600; }

/* ========================= APP SHELL ========================= */
.app-wrap { min-height: 100vh; background: #F4F5EF; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,245,239,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29,42,56,.09);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 24px 10px;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 24px; row-gap: 8px; align-items: center;
}
.header-logo { grid-row: 1 / 3; height: 84px; width: auto; cursor: pointer; }
.header-top { display: flex; align-items: center; gap: 18px; min-width: 0; }
.search-outer { flex: 1; display: flex; justify-content: center; min-width: 0; }
.search-wrap { position: relative; width: 100%; max-width: 460px; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-input {
  width: 100%; height: 44px; padding: 0 44px 0 42px; border-radius: 22px;
  border: 1px solid rgba(29,42,56,.14); background: #fff; color: #16232e;
  font-family: 'Manrope'; font-size: 14px; font-weight: 500; outline: none;
  box-shadow: 0 2px 8px rgba(22,35,46,.04);
}
.search-input:focus { border-color: rgba(29,42,56,.3); }
.search-input::placeholder { color: #66757f; }
.search-clear {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(29,42,56,.06); color: #5a6b78; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.btn-signout {
  height: 38px; padding: 0 16px; border-radius: 20px;
  border: 1px solid rgba(29,42,56,.18); background: transparent; color: #1D2A38;
  font-family: 'Manrope'; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cat-rail { grid-column: 2; display: flex; gap: 8px; overflow-x: auto; min-width: 0; padding-bottom: 2px; }
.chip {
  flex: none; height: 36px; padding: 0 16px; border-radius: 20px;
  border: 1px solid rgba(29,42,56,.14); background: #fff; color: #4a5a66;
  font-family: 'Space Grotesk'; font-size: 13.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: all .18s ease;
}
.chip:hover:not(.active) { border-color: rgba(29,42,56,.32); color: #16232e; }
.chip.active { border-color: transparent; background: #16232e; color: #fff; }
@media (max-width: 1100px) {
  .cat-rail {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
}

/* ========================= BROWSE ========================= */
.browse-main { max-width: 1240px; margin: 0 auto; padding: 34px 24px 80px; }
.browse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.browse-kicker { font-family: 'Space Grotesk'; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #7e8b96; font-weight: 600; margin-bottom: 8px; }
.browse-headline { font-family: 'Space Grotesk'; font-size: clamp(30px,5vw,46px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; color: #16232e; margin: 0; }
.browse-blurb { font-size: 15px; color: #5a6b78; max-width: 520px; margin: 12px 0 0; line-height: 1.55; }
.count-pill { font-family: 'Space Grotesk'; font-size: 13px; font-weight: 600; color: #16232e; background: #C2E23A; padding: 8px 16px; border-radius: 20px; }
.no-results { text-align: center; padding: 64px 20px; }
.no-results-title { font-family: 'Space Grotesk'; font-size: 22px; font-weight: 600; color: #16232e; }
.no-results-sub { font-size: 14.5px; color: #7e8b96; margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  cursor: pointer; background: #fff; border: 1px solid rgba(29,42,56,.08);
  border-radius: 20px; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(22,35,46,.14); }
.card-stage { position: relative; height: 230px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-cat { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #16232e; background: rgba(255,255,255,.72); padding: 5px 10px; border-radius: 12px; }
.badge-360 { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 5px; background: #16232e; color: #C2E23A; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 5px 9px; border-radius: 12px; }
.mini-brush { display: flex; align-items: center; justify-content: center; animation: jwFloat 5s ease-in-out infinite; }
.mini-brush svg { height: 200px; width: auto; display: block; }
.card-body { padding: 18px 18px 20px; }
.card-name { font-family: 'Space Grotesk'; font-size: 19px; font-weight: 600; color: #16232e; letter-spacing: -.01em; }
.card-tag { font-size: 13.5px; color: #5a6b78; margin-top: 4px; line-height: 1.45; }
.dots { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.dots-label { font-size: 12px; color: #66757f; margin-left: 4px; }

/* ========================= PRODUCT DETAIL ========================= */
.product-main { max-width: 1240px; margin: 0 auto; padding: 22px 24px 90px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 10px;
  border-radius: 20px; border: 1px solid rgba(29,42,56,.15); background: #fff; color: #1D2A38;
  font-family: 'Manrope'; font-size: 13px; font-weight: 600; cursor: pointer; margin-bottom: 18px;
}
.detail-flex { display: flex; flex-wrap: wrap; gap: 34px; align-items: stretch; }
.stage-panel {
  flex: 1 1 560px; min-width: 320px; position: relative;
  background: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #eef0e8 60%, #e6e9df 100%);
  border: 1px solid rgba(29,42,56,.08); border-radius: 26px; padding: 20px; overflow: hidden;
}

/* feature pins */
.pin {
  position: absolute; z-index: 6; width: clamp(140px, 16vw, 200px);
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border: 1px solid rgba(29,42,56,.1); border-radius: 14px; padding: 11px 13px;
  box-shadow: 0 10px 26px rgba(22,35,46,.1);
  opacity: 0; pointer-events: none;
  transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1);
}
.pin.left { left: 6px; transform: translateX(-18px); }
.pin.right { right: 6px; transform: translateX(18px); }
.pin.on { opacity: 1; transform: translateX(0); pointer-events: auto; }
.pin-head { display: flex; align-items: center; gap: 8px; }
.pin-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #16232e; color: #C2E23A; font-family: 'Space Grotesk'; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pin-title { font-family: 'Space Grotesk'; font-size: 13.5px; font-weight: 600; color: #16232e; line-height: 1.15; }
.pin-desc { font-size: 12px; color: #5a6b78; line-height: 1.45; margin-top: 6px; }

/* 360 viewer */
.viewer {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1/1;
  border-radius: 22px; overflow: hidden; background: #ffffff;
  border: 1px solid rgba(29,42,56,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 18px 50px rgba(22,35,46,.1);
  cursor: grab; touch-action: none;
}
.viewer-img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center center; transition: transform .08s ease-out; }
.viewer-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #f4f5ef; z-index: 8; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(29,42,56,.12); border-top-color: #8CC63F; border-radius: 50%; animation: jwSpin .72s linear infinite; }
.load-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8b97a1; font-weight: 600; }
.viewer-badge {
  position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(29,42,56,.08); padding: 5px 11px; border-radius: 999px; z-index: 6;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #8CC63F; box-shadow: 0 0 8px #8CC63F; }
.badge-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #16232e; }
.hint {
  position: absolute; bottom: 14px; background: rgba(22,35,46,.72); backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px; pointer-events: none; transition: opacity .9s; z-index: 6;
}
.hint-rotate { left: 14px; }
.hint-zoom { right: 14px; }

/* controls pill */
.controls-pill {
  position: relative; z-index: 5; margin: 16px auto 0;
  display: flex; align-items: center; gap: 8px; row-gap: 8px; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(29,42,56,.09); border-radius: 26px; padding: 9px 12px;
  box-shadow: 0 8px 26px rgba(22,35,46,.08); max-width: 100%;
}
.icon-btn {
  width: 38px; height: 38px; min-width: 38px; border-radius: 19px;
  border: 1px solid rgba(29,42,56,.14); background: #fff; color: #16232e;
  font-size: 17px; font-weight: 600; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.seg-group { display: flex; background: rgba(29,42,56,.05); border: 1px solid rgba(29,42,56,.08); border-radius: 18px; padding: 3px; }
.seg { height: 30px; padding: 0 13px; border: none; background: transparent; border-radius: 15px; font-family: 'Space Grotesk'; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; color: #7e8b96; }
.seg.active { background: #16232e; color: #fff; }
.divider { width: 1px; height: 20px; background: rgba(29,42,56,.1); }
.zoom-label { font-size: 12px; color: #66757f; min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.text-btn { height: 38px; padding: 0 15px; border-radius: 19px; border: 1px solid rgba(29,42,56,.14); background: #fff; color: #16232e; font-family: 'Space Grotesk'; font-size: 13px; font-weight: 600; cursor: pointer; }
.feat-btn { height: 38px; padding: 0 15px; border-radius: 19px; border: none; background: #C2E23A; color: #16232e; font-family: 'Space Grotesk'; font-size: 13px; font-weight: 600; cursor: pointer; }
.feat-btn.on { background: #16232e; color: #fff; }

/* concept render */
.concept-stage {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1/1;
  border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 25%, #ffffff 0%, #f2f4ec 60%, #eceee4 100%);
  border: 1px solid rgba(29,42,56,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 18px 50px rgba(22,35,46,.1);
  display: flex; align-items: center; justify-content: center;
}
.brush-wrap { perspective: 900px; animation: jwFloat 5.5s ease-in-out infinite; }
.brush-sway { animation: jwSway 8s ease-in-out infinite; transform-style: preserve-3d; }
#concept-svg svg { height: 400px; width: auto; display: block; }
@keyframes jwSway { 0%, 100% { transform: rotateY(-13deg); } 50% { transform: rotateY(13deg); } }
.concept-row { position: relative; z-index: 5; margin: 16px auto 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.concept-note { font-size: 12px; color: #66757f; font-weight: 500; }

/* colorways */
.colorway-block { position: relative; z-index: 5; margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.colorway-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #7e8b96; font-weight: 600; }
.colorway-label b { color: #16232e; font-weight: 600; }
.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(0,0,0,.1); outline: none;
  box-shadow: 0 3px 8px rgba(0,0,0,.12); transition: transform .15s ease; padding: 0;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: #16232e; outline: 2px solid #C2E23A; outline-offset: 2px; }

/* info panel */
.info-panel { flex: 0 1 380px; min-width: 290px; display: flex; flex-direction: column; }
.info-cat { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #16232e; background: #C2E23A; padding: 6px 12px; border-radius: 14px; }
.prod-name { font-family: 'Space Grotesk'; font-size: clamp(28px,4vw,40px); line-height: 1.03; font-weight: 700; letter-spacing: -.02em; color: #16232e; margin: 16px 0 0; }
.prod-tagline { font-size: 16px; color: #3f7e6a; font-weight: 600; margin-top: 8px; }
.prod-desc { font-size: 14.5px; line-height: 1.6; color: #4a5a66; margin: 16px 0 0; }
.specs-block { margin-top: 24px; border-top: 1px solid rgba(29,42,56,.1); padding-top: 18px; }
.specs-title { font-family: 'Space Grotesk'; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #7e8b96; font-weight: 600; margin-bottom: 12px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(29,42,56,.07); }
.spec-label { font-size: 13.5px; color: #7e8b96; }
.spec-value { font-size: 13.5px; color: #16232e; font-weight: 600; text-align: right; }
.info-spacer { flex: 1; }
.nav-row { display: flex; gap: 12px; margin-top: 24px; }
.btn-prev { flex: 1; height: 48px; border-radius: 14px; border: 1px solid rgba(29,42,56,.16); background: #fff; color: #16232e; font-family: 'Space Grotesk'; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.btn-next { flex: 1; height: 48px; border-radius: 14px; border: none; background: #16232e; color: #fff; font-family: 'Space Grotesk'; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.btn-prev:hover, .btn-next:hover, .btn-interested:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,35,46,.12); }

/* ========================= SHORTLIST + ENGAGEMENT ========================= */
.btn-shortlist {
  height: 38px; padding: 0 14px; border-radius: 20px;
  border: 1px solid rgba(29,42,56,.18); background: #fff; color: #E8705B;
  font-family: 'Manrope'; font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.btn-shortlist #fav-count { color: #16232e; font-size: 13px; }
.card-heart {
  position: absolute; bottom: 12px; right: 12px; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.85);
  color: #5a6b78; font-size: 17px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 3px 10px rgba(22,35,46,.12); transition: color .15s ease;
}
.card-heart.active { color: #E8705B; }
@keyframes jwPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.card-heart.pop, .btn-fav.pop { animation: jwPop .3s ease; }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(16,26,34,.4); z-index: 55;
  opacity: 0; pointer-events: none; transition: opacity .24s ease;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 92vw);
  background: #fff; z-index: 60; display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(16,26,34,.25);
  transform: translateX(105%); visibility: hidden;
  transition: transform .24s cubic-bezier(.2,.7,.2,1), visibility 0s .24s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .24s cubic-bezier(.2,.7,.2,1); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; border-bottom: 1px solid rgba(29,42,56,.1); }
.drawer-title { font-family: 'Space Grotesk'; font-size: 18px; font-weight: 700; color: #16232e; }
.drawer-close { width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(29,42,56,.06); color: #5a6b78; font-size: 14px; cursor: pointer; }
.drawer-list { flex: 1; overflow-y: auto; padding: 10px 20px; }
.drawer-empty { font-size: 13.5px; color: #7e8b96; line-height: 1.55; padding: 18px 0; }
.drawer-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(29,42,56,.07); }
.drawer-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.drawer-item-body { flex: 1; cursor: pointer; min-width: 0; }
.drawer-item-name { font-family: 'Space Grotesk'; font-size: 14.5px; font-weight: 600; color: #16232e; }
.drawer-item-cat { font-size: 12px; color: #66757f; margin-top: 2px; }
.drawer-remove { flex: none; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(29,42,56,.05); color: #5a6b78; font-size: 12px; cursor: pointer; }
.drawer-share { padding: 16px 20px 20px; border-top: 1px solid rgba(29,42,56,.1); }
.drawer-share-label { font-family: 'Space Grotesk'; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7e8b96; font-weight: 600; margin-bottom: 10px; }
.drawer-share-row { display: flex; gap: 8px; }
.share-btn {
  flex: 1; height: 38px; border-radius: 19px; border: 1px solid rgba(29,42,56,.14);
  background: #fff; color: #16232e; font-family: 'Space Grotesk'; font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.share-btn:hover { background: rgba(29,42,56,.05); border-color: rgba(29,42,56,.26); }

.howto { margin-top: 16px; border-top: 1px solid rgba(29,42,56,.1); padding-top: 14px; }
.howto summary {
  font-family: 'Space Grotesk'; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #7e8b96; font-weight: 600; cursor: pointer; list-style-position: inside;
}
.howto[open] summary { color: #16232e; }
.howto ol { margin: 12px 0 0; padding-left: 20px; }
.howto li { font-size: 13.5px; color: #4a5a66; line-height: 1.55; margin-bottom: 8px; }

.cta-row { display: flex; gap: 12px; margin-top: 24px; }
.btn-fav {
  flex: 0 0 auto; height: 48px; padding: 0 18px; border-radius: 14px;
  border: 1px solid rgba(29,42,56,.16); background: #fff; color: #E8705B;
  font-family: 'Space Grotesk'; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-fav.active { background: #E8705B; border-color: #E8705B; color: #fff; }
.btn-interested {
  flex: 1; height: 48px; border-radius: 14px; border: none; background: #C2E23A; color: #16232e;
  font-family: 'Space Grotesk'; font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px);
  background: #16232e; color: #fff; font-family: 'Manrope'; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 22px; box-shadow: 0 12px 32px rgba(16,26,34,.3);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 70;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .login-card { animation: none; }
  .mini-brush, .brush-wrap, .brush-sway { animation: none; }
  .card-heart.pop, .btn-fav.pop { animation: none; }
  .spinner { animation-duration: 1.4s; }
  .card, .btn-login, .swatch, .pin, .viewer-img, .chip,
  .drawer, .drawer-backdrop, .toast, .btn-prev, .btn-next, .btn-interested { transition: none; }
}

@media (max-width: 900px) {
  .pin { position: static; width: auto; opacity: 1; transform: none; pointer-events: auto; margin: 8px 0; display: none; }
  .pin.on { display: block; }
}

@media (max-width: 640px) {
  .header-inner { column-gap: 12px; }
  .header-logo { grid-row: 1; height: 50px; }
  .cat-rail { grid-column: 1 / 3; }
  .header-top { gap: 10px; }
}

@media (max-width: 480px) {
  .login-card { padding: 32px 24px 28px; }
}
