/* nola-commerce: Claude Design "Nola Kids v2" screens — live search, wishlist, lookbook, cart and mini cart. */

/* Live search (design r04) */
.nk-search-dim { position: fixed; inset: 0; z-index: 38; background: var(--dim); }
.nk-search-panel {
  z-index: 70; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-align: right;
}
.nk-search-panel[hidden] { display: none; }
.nk-search-panel.is-desktop {
  position: fixed; top: var(--search-top, 132px); left: 50%; width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--search-top, 132px) - 24px); border-radius: calc(var(--r) + 6px); transform: translateX(-50%);
}
.nk-search:not(:focus-within) .nk-search-panel { display: none; }
.nk-search .nk-search-panel .icon { width: 19px; height: 19px; }
.nk-search-panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); color: var(--ink); }
.nk-search-echo { overflow: hidden; font-size: 17px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.nk-search-echo.is-placeholder { color: var(--muted); font-weight: 400; }
.nk-search-panel-head kbd { margin-inline-start: auto; padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; background: none; color: var(--muted); font: 600 14px/1.2 var(--font); }
.nk-search-summary { padding: 14px 24px 6px; font-size: 14px; font-weight: 600; letter-spacing: .3px; color: var(--muted); }
.nk-search-summary[hidden] { display: none; }
.nk-search-panel .search-suggestions {
  position: static; inset: auto; width: auto; max-width: none; max-height: none; margin: 0; padding: 0 0 6px; overflow: auto;
  border: 0; border-radius: 0; background: none; box-shadow: none; list-style: none;
}
.nk-search-panel .search-suggestions[hidden] { display: none; }
.nk-search-panel .search-suggestions a { display: flex; align-items: center; gap: 14px; min-height: 0; padding: 11px 24px; border-radius: 0; color: var(--ink); }
.nk-search-panel .search-suggestions [aria-selected=true] a, .nk-search-panel .search-suggestions a:hover { background: var(--soft); }
.nk-search-thumb { display: block; flex: none; width: 52px; height: 62px; overflow: hidden; border-radius: 10px; background: var(--soft); }
.nk-search-panel .nk-search-thumb img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.nk-search-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.nk-search-text b { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.nk-search-text span { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-search-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-size: 14px; font-weight: 600; }
.nk-search-price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-search-price s { font-size: 12px; color: var(--muted); }
.nk-search-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--line); }
.nk-search-foot[hidden] { display: none; }
.nk-search-foot-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-search-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; background: var(--soft);
  color: var(--ink); font-size: 14px; font-weight: 600;
}
.nk-search-chip:hover { background: var(--tint); }
.nk-search-more { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: auto; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.nk-search-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 44px 28px 40px; text-align: center; }
.nk-search-empty[hidden] { display: none; }
.nk-search-empty-icon { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.nk-search-panel .nk-search-empty-icon .icon { width: 38px; height: 38px; }
.nk-search-empty > b { font-size: 17px; font-weight: 600; }
.nk-search-empty-text { font-size: 14px; line-height: 2; color: var(--muted); }
.nk-search-empty-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nk-search-empty .nk-search-chip { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); background: var(--surface); }
.nk-search-empty .nk-btn { margin-top: 6px; font-size: 14px; }
.nk-search-panel.is-mobile {
  position: absolute; top: 100%; right: 0; left: 0; max-height: calc(100dvh - 140px); overflow: auto;
  border-width: 0 0 1px; border-radius: 0; background: var(--bg);
}
.nk-search-panel.is-mobile .nk-search-panel-head { display: none; }
.nk-search-panel.is-mobile .search-suggestions a, .nk-search-panel.is-mobile .nk-search-summary, .nk-search-panel.is-mobile .nk-search-foot { padding-inline: 16px; }
@media (max-width: 1200px) {
  .nk-search .nk-search-panel { position: fixed; width: min(760px, calc(100vw - 32px)); height: auto; opacity: 1; pointer-events: auto; }
}
.nk-search-panel.is-mobile:not([hidden]) { min-height: calc(100dvh - 206px); }

/* Mobile page bar variants used by commerce pages */
.nk-page-bar-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.nk-page-bar-spacer { flex: none; width: 44px; height: 44px; }
@media (max-width: 800px) {
  .nk-page-bar.nk-page-bar-center { justify-content: center; }
  .nk-page-bar-center .nk-page-bar-title { min-height: 44px; justify-content: center; }
}
.nk-empty-icon-tint { background: var(--tint); color: var(--accent-dark); }

/* Wishlist (design r05, r31) */
.nk-wish { max-width: 1440px; margin: 0 auto; padding: 32px var(--gutter) 56px; }
.nk-wish-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.nk-wish-title { display: flex; flex-direction: column; gap: 4px; }
.nk-wish-eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.nk-wish-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nk-wish-actions .nk-btn { font-size: 14px; }
.nk-wish-filters { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.nk-wish-filters::-webkit-scrollbar { display: none; }
.nk-wish-filters .nk-chip { flex: none; min-height: 40px; white-space: nowrap; }
@media (max-width: 800px) {
  .nk-wish { padding: 12px 0 24px; }
  .nk-wish-head { display: none; }
  .nk-wish-filters { margin: 0 0 10px; padding: 0 var(--gutter) 4px; }
  .nk-wish-filters .nk-chip { min-height: 44px; }
  .nk-wish-grid, .nk-wish .nk-empty, .nk-wish .nk-pagination { margin-inline: var(--gutter); }
  .nk-wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
  .nk-wish .nk-empty { padding: 64px 28px 70px; }
}

/* Wishlist sharing */
.nk-share { display: flex; flex-direction: column; gap: 20px; }
.nk-share-head h1 { font-size: 28px; line-height: 1.4; }
.nk-share-head p { margin-top: 6px; font-size: 14px; line-height: 2; color: var(--muted); }
.nk-share-link { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--tint); }
.nk-share-link label { font-size: 14px; font-weight: 600; }
.nk-share-copy { display: flex; gap: 10px; }
.nk-share-copy input { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.nk-share-copy .nk-btn { font-size: 14px; }
.nk-share-revoke { color: var(--red); font-size: 14px; font-weight: 600; }
.nk-share-form { display: flex; flex-direction: column; gap: 16px; }
.nk-share-form fieldset { margin: 0; padding: 0; border: 0; }
.nk-share-form legend { margin-bottom: 12px; font-size: 17px; font-weight: 600; }
.nk-share-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.nk-share-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.nk-share-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.nk-share-option:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.nk-share-option:has(input:focus-visible) { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.nk-share-thumb { display: block; flex: none; width: 54px; height: 64px; overflow: hidden; border-radius: 10px; background: var(--soft); }
.nk-share-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nk-share-name { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.7; }
.nk-share-option .nk-checkbox { display: flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: transparent; }
.nk-share-option .nk-checkbox .icon { width: 14px; height: 14px; stroke-width: 3; }
.nk-share-option:has(input:checked) .nk-checkbox { border-color: var(--btn); background: var(--btn); color: var(--on-btn); }
.nk-share-form > .nk-btn { align-self: flex-start; }
@media (max-width: 800px) {
  .nk-share-copy { flex-direction: column; }
  .nk-share-form > .nk-btn { align-self: stretch; }
}

/* Lookbook: collections, collection and shoppable look (design r06) */
.nk-lookbook, .nk-look { max-width: 1440px; margin: 0 auto; }
.nk-lookbook { padding-bottom: 56px; }
.nk-lookbook-crumbs { padding: 32px var(--gutter) 0; }
.nk-look-head { display: flex; flex-direction: column; gap: 6px; padding: 32px var(--gutter) 14px; }
.nk-lookbook-crumbs + .nk-look-head { padding-top: 8px; }
.nk-look-eyebrow { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--accent-dark); }
a.nk-look-eyebrow { display: inline-flex; align-items: center; min-height: 32px; }
.nk-look-head h1 { font-size: 40px; line-height: 1.4; }
.nk-look-head p { max-width: 720px; font-size: 17px; line-height: 1.9; color: var(--muted); }
.nk-tales { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 10px var(--gutter) 0; }
.nk-tale, .nk-look-card { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--soft); color: var(--ink); }
.nk-tale { aspect-ratio: 3/4; }
.nk-tale img, .nk-look-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease-out; }
.nk-tale:hover img, .nk-look-card:hover img { transform: scale(1.035); }
.nk-tale-bar {
  position: absolute; right: 14px; bottom: 14px; left: 14px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px;
  border-radius: calc(var(--r) * .7); background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nk-tale-bar b { font-size: 17px; font-weight: 600; line-height: 1.6; }
.nk-tale-bar span { font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--muted); }
.nk-tales .nk-empty { grid-column: 1 / -1; }
.nk-collection-banner { display: block; width: calc(100% - 2 * var(--gutter)); height: 420px; margin: 10px var(--gutter) 0; border-radius: calc(var(--r) + 8px); object-fit: cover; }
.nk-lookbook-section { padding-top: 48px; }
.nk-section-count { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-look-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nk-look-card { height: 520px; border-radius: calc(var(--r) + 8px); }

.nk-look-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; padding: 10px var(--gutter) 56px; }
.nk-look-photo { position: relative; height: 660px; overflow: hidden; border-radius: calc(var(--r) + 8px); background: var(--soft); }
.nk-look-photo > img { width: 100%; height: 100%; object-fit: cover; }
.nk-look-missing { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-hotspot.look-hotspot {
  position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--ink); transform: translate(-50%, -50%);
}
.nk-hotspot span {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px;
  background: var(--surface); font-size: 17px; font-weight: 600; line-height: 1; transition: background-color .15s ease-out, transform .15s ease-out;
}
.nk-hotspot:hover span { transform: scale(1.08); }
.nk-hotspot.is-active span { background: var(--btn); color: var(--on-btn); }
.nk-hotspot-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; width: 270px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.nk-hotspot-card[hidden] { display: none; }
.nk-look-thumb { display: block; flex: none; width: 54px; height: 64px; overflow: hidden; border-radius: 10px; background: var(--soft); }
.nk-hotspot-card .nk-look-thumb { width: 56px; height: 66px; }
.nk-look-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nk-hotspot-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.nk-hotspot-text b, .nk-hotspot-text > span { font-size: 14px; font-weight: 600; line-height: 1.6; }
.nk-hotspot-text small { font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-hotspot-text a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.nk-look-glass { display: none; }
.nk-look-card .nk-look-glass, .nk-look-photo .nk-look-glass {
  position: absolute; right: 14px; bottom: 14px; left: 14px; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: var(--r); background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
}
.nk-look-card .nk-look-glass { display: flex; }
.nk-look-glass > span { display: flex; flex-direction: column; min-width: 0; }
.nk-look-glass > span b { font-size: 14px; font-weight: 600; line-height: 1.6; }
.nk-look-glass > span span { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-look-glass > b { flex: none; font-size: 17px; font-weight: 600; }
.nk-look-glass > b small { font-size: 12px; color: var(--muted); }
.nk-look-buy {
  position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 24px;
  border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); background: var(--surface);
}
.nk-look-buy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nk-look-buy-head h2 { font-size: 17px; line-height: 1.6; }
.nk-look-error, .nk-look-field-error { font-size: 14px; font-weight: 600; color: var(--red); }
.nk-look-error ul, .nk-look-field-error ul { margin: 0; padding: 0; list-style: none; }
.nk-look-rows { display: flex; flex-direction: column; gap: 12px; }
.nk-look-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.nk-look-row-text { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.nk-look-row-text b { font-size: 14px; font-weight: 600; line-height: 1.6; }
.nk-look-row-text b span { color: var(--muted); }
.nk-look-row select {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); font: 600 14px/1.2 var(--font);
}
.nk-look-out { font-size: 14px; font-weight: 600; color: var(--red); }
.nk-look-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.nk-look-price { font-size: 14px; font-weight: 600; }
.nk-look-check { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--soft); color: transparent; font-size: 14px; font-weight: 600; }
.nk-look-row:has(select:valid) .nk-look-check { background: var(--green); color: #fff; }
.nk-look-totals { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.nk-look-totals > div { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-look-totals .nk-look-saving { color: var(--green); }
.nk-look-totals .nk-look-final { align-items: baseline; color: var(--ink); }
.nk-look-final b:first-child { font-size: 17px; font-weight: 600; }
.nk-look-final b:last-child { font-size: 21px; font-weight: 600; }
.nk-look-final b span { font-size: 14px; color: var(--muted); }
.nk-look-cta { min-height: 52px; }
.nk-look-note { font-size: 14px; font-weight: 600; line-height: 1.8; text-align: center; color: var(--muted); }
.nk-look-bar { display: none; }

@media (max-width: 1080px) {
  .nk-tales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nk-look-layout { grid-template-columns: 1fr; }
  .nk-look-buy { position: static; }
  .nk-look-card { height: 420px; }
}
@media (max-width: 800px) {
  .nk-lookbook-crumbs { display: none; }
  .nk-lookbook .nk-look-head { padding: 16px var(--gutter) 8px; }
  .nk-look-head h1 { font-size: 28px; }
  .nk-look-head p { font-size: 14px; }
  .nk-tales { grid-template-columns: 1fr; gap: 12px; }
  .nk-tale { aspect-ratio: 16/12; }
  .nk-collection-banner { height: 240px; }
  .nk-lookbook-section { padding-top: 28px; }
  .nk-look-cards { grid-template-columns: 1fr; gap: 12px; }
  .nk-look-card { height: 380px; border-radius: var(--r); }
  .nk-look > .nk-look-head { display: none; }
  .nk-look-layout { display: block; padding: 0 0 24px; }
  .nk-look-photo { height: 470px; border-radius: 0; }
  .nk-look-photo .nk-look-glass { display: flex; }
  .nk-hotspot span { width: 26px; height: 26px; }
  .nk-hotspot-card { right: 14px; bottom: 14px; left: 14px; width: auto; }
  .nk-look-buy { gap: 10px; padding: 16px; border: 0; border-radius: 0; background: none; }
  .nk-look-buy-head, .nk-look-totals, .nk-look-cta { display: none; }
  .nk-look-row { gap: 12px; background: var(--surface); }
  .nk-look-row .nk-look-thumb { width: 48px; height: 58px; border-radius: 9px; }
  .nk-look-note { padding-bottom: 8px; }
  .nk-look-bar {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 49; display: flex; gap: 10px; align-items: center;
    padding: 10px 16px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .nk-look-bar .nk-btn { flex: 1; min-height: 52px; }
  body.nk-look-page .nk-footer { padding-bottom: 96px; }
}

/* Cart page, cart items and mini-cart drawer (design r07) */
.nk-cart { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.nk-cart-head { display: flex; flex-direction: column; gap: 6px; padding: 32px 0 18px; }
.nk-cart-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 14px 18px; border: 1px solid color-mix(in oklab, var(--red) 40%, var(--line)); border-radius: var(--r); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--red); }
.nk-cart-alert .nk-btn { font-size: 14px; }
.nk-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.nk-cart-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nk-cart-items { display: flex; flex-direction: column; gap: 12px; }
.nk-cart-item { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.nk-cart-thumb { display: block; flex: none; width: 88px; height: 104px; overflow: hidden; border-radius: 10px; background: var(--soft); }
.nk-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nk-cart-item-body { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.nk-cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nk-cart-item-top form { margin: -8px -8px 0 0; }
.nk-cart-name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.7; }
.nk-cart-name a { color: var(--ink); }
.nk-cart-name a:hover { color: var(--accent-dark); }
.nk-cart-remove { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.nk-cart-remove:hover { background: var(--soft); color: var(--red); }
.nk-cart-remove .icon { width: 16px; height: 16px; }
.nk-cart-meta { font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-cart-warn { margin: 0; font-size: 12px; font-weight: 600; color: var(--red); }
.nk-cart-item-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.nk-qty-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.nk-qty-pill { display: inline-flex; align-items: center; height: 36px; padding: 0 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.nk-qty-pill button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--accent-dark); font: 600 17px/1 var(--font); cursor: pointer; }
.nk-qty-pill button:first-child { color: var(--muted); }
.nk-qty-pill button:disabled { opacity: .35; cursor: not-allowed; }
.nk-qty-pill input {
  width: 30px; min-height: 0; height: 32px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink);
  font: 600 14px/1 var(--font); text-align: center; -moz-appearance: textfield;
}
.nk-qty-pill input::-webkit-inner-spin-button, .nk-qty-pill input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.nk-qty-save { min-height: 36px; padding: 0 8px; border: 0; background: none; color: var(--accent-dark); font: 600 14px/1 var(--font); cursor: pointer; }
.nk-qty-enhanced .nk-qty-form:not(.is-dirty) .nk-qty-save { display: none; }
.nk-cart-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nk-cart-price small { font-size: 12px; color: var(--muted); }
.nk-coupon { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.nk-coupon h2 { font-size: 14px; font-weight: 600; line-height: 1.6; }
.nk-coupon-form { display: flex; gap: 10px; margin: 0; }
.nk-coupon-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; }
.nk-coupon-form .nk-btn { font-size: 14px; }
.nk-coupon-applied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); }
.nk-coupon-applied.is-error { color: var(--red); }
.nk-coupon-applied form { margin: 0; }
.nk-coupon-applied .nk-link-button { color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.nk-cart-back { align-self: flex-start; }
.nk-cart-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.nk-free-ship { display: flex; flex-direction: column; gap: 9px; padding: 14px 18px; border-radius: var(--r); background: var(--tint); }
.nk-free-ship-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.nk-free-ship-done { color: var(--green); }
.nk-free-ship-goal { color: var(--muted); }
.nk-free-ship-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.nk-free-ship-track span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.nk-free-ship.is-done .nk-free-ship-track span { background: var(--green); }
.nk-cart-summary.order-summary { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.nk-cart-summary-title { margin-bottom: 4px; font-size: 17px; line-height: 1.6; }
.nk-cart-summary .summary-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-cart-summary .summary-row.success-text, .nk-cart-summary .summary-row.is-free { color: var(--green); }
.nk-cart-summary .summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0 0; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; }
.nk-cart-summary .summary-total strong { font-size: 17px; font-weight: 600; }
.nk-cart-summary .summary-total small { font-size: 14px; color: var(--muted); }
.nk-cart-cta { min-height: 52px; margin-top: 6px; }
.nk-cart-note { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.8; color: var(--muted); }
.nk-cart-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--red); }

.cart-drawer.nk-drawer {
  width: min(450px, 100vw); max-width: 100vw; padding: 0; border: 0; border-radius: 0; background: var(--surface);
  display: none; flex-direction: column;
}
.cart-drawer.nk-drawer[open] { display: flex; }
.nk-drawer::backdrop { background: var(--dim); }
.nk-drawer-head { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.nk-drawer-head h2 { font-size: 17px; line-height: 1.6; }
.nk-drawer-head h2 span { color: var(--muted); }
.nk-drawer-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.nk-drawer-close .icon { width: 16px; height: 16px; }
.nk-drawer-body { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.nk-drawer-body > p[role=alert] { margin: 12px 26px 0; font-size: 14px; font-weight: 600; color: var(--red); }
.nk-mini { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.nk-mini .nk-free-ship { flex: none; margin: 18px 26px 0; }
.nk-mini-items { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 18px 26px; overflow: auto; }
.nk-mini .nk-cart-item { background: var(--bg); }
.nk-mini .nk-cart-thumb { width: 64px; height: 76px; }
.nk-mini .nk-qty-pill { height: 34px; background: var(--surface); }
.nk-mini-foot { display: flex; flex: none; flex-direction: column; gap: 12px; padding: 18px 26px 24px; border-top: 1px solid var(--line); }
.nk-mini-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-mini-row.is-saving { color: var(--green); }
.nk-mini-total { display: flex; align-items: baseline; justify-content: space-between; }
.nk-mini-total span { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-mini-total b { font-size: 21px; font-weight: 600; }
.nk-mini-total small { font-size: 14px; color: var(--muted); }
.nk-mini-cta { min-height: 52px; }
.nk-mini-link { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.nk-mini-empty { align-items: center; justify-content: center; gap: 12px; padding: 40px 26px; text-align: center; }
.nk-mini-empty b { font-size: 17px; }
.nk-mini-empty p { font-size: 14px; line-height: 2; color: var(--muted); }

@media (max-width: 1080px) {
  .nk-cart-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
}
@media (max-width: 800px) {
  .nk-cart { padding: 14px var(--gutter) 24px; }
  .nk-cart-head { display: none; }
  .nk-cart-layout { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .nk-cart-main { display: contents; }
  .nk-cart-items { order: 1; gap: 10px; }
  .nk-cart-summary.order-summary { order: 2; }
  .nk-coupon { order: 3; }
  .nk-cart-item { gap: 12px; padding: 10px; }
  .nk-cart-thumb { width: 58px; height: 70px; }
  .nk-qty-pill { height: 32px; }
  .nk-qty-pill button { width: 30px; height: 30px; }
  .nk-cart-aside { position: static; display: contents; }
  .nk-cart-aside .nk-free-ship { order: 0; }
  .nk-cart-summary.order-summary { margin-top: 4px; }
  .nk-cart-summary-title { display: none; }
  .nk-cart-back { order: 5; align-self: center; }
  .nk-cart-empty { padding: 70px 28px 76px; }
}
