/* Power Pick shared components. Page-specific styles live in their own files. */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--stack, var(--s4)); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s3)); }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.i--sm { width: 1em; height: 1em; }
.i--lg { width: 1.6em; height: 1.6em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.right { text-align: right; }

/* Buttons */
.btn { --bg: var(--blue); --fg: #fff; --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 2.75rem; padding: .6rem 1.2rem;
  font: 600 var(--t-sm)/1.2 var(--f-body); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--r);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.btn:hover { --bg: var(--blue-deep); --bd: var(--blue-deep); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { --bg: var(--wash); --fg: #726B8C; --bd: var(--line); cursor: not-allowed; transform: none; }
.btn--ink { --bg: var(--ink); --bd: var(--ink); }
.btn--ink:hover { --bg: #221B40; --bd: #221B40; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bg: var(--paper); --fg: var(--ink); --bd: var(--ink-3); }
.btn--danger { --bg: transparent; --fg: var(--fault); --bd: #E6B5B1; }
.btn--danger:hover { --bg: var(--fault-wash); --fg: var(--fault); --bd: var(--fault); }
.btn--sm { min-height: 2.25rem; padding: .4rem .85rem; font-size: var(--t-xs); }
.btn--lg { min-height: 3.25rem; padding: .8rem 1.6rem; font-size: var(--t-base); }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-btn:hover { color: var(--blue-deep); }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; background: transparent; border: 1px solid transparent; border-radius: var(--r); color: inherit; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: rgb(128 148 180 / .16); color: inherit; }

/* Forms: label above, hint under, error in fault red with an icon, never colour alone */
.field { display: grid; gap: var(--s1); margin-bottom: var(--s4); }
.field > label, .field-label { font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.field .hint, .helptext { font-size: var(--t-xs); color: var(--ink-3); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; min-height: 2.9rem; padding: .65rem .85rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid #BDB7D4; border-radius: var(--r);
  transition: border-color var(--fast), box-shadow var(--fast); }
textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234D596D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash), 0 0 0 4px var(--blue); }
input:disabled, select:disabled, textarea:disabled { background: var(--wash); color: var(--ink-3); cursor: not-allowed; }
input[aria-invalid="true"], .field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--fault); }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; margin: 0; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--fault); font-size: var(--t-xs); font-weight: 600; }
.errorlist li::before { content: "! "; font-weight: 800; }
.form-stack p { margin: 0 0 var(--s4); display: grid; gap: var(--s1); max-width: none; }
.form-stack label { font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.form-stack .helptext { font-weight: 400; }
.form-stack ul:not(.errorlist) { font-size: var(--t-xs); color: var(--ink-3); padding-left: 1.1rem; }

/* Panels, tags, notices */
.panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 22px; padding: var(--s5); }
.panel--flat { background: transparent; }
.panel > h2:first-child, .panel > h3:first-child { margin-bottom: var(--s4); }
.tag { display: inline-flex; align-items: center; gap: .4em; padding: .2em .65em; font-size: var(--t-xs); font-weight: 600; line-height: 1.4; color: var(--ink-2); background: var(--wash); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.tag--ok { color: var(--ok); background: var(--ok-wash); border-color: #B7E1CE; }
.tag--live { color: var(--live-deep); background: var(--live-wash); border-color: #A6E8D2; }
.tag--warn { color: var(--warn-deep); background: var(--warn-wash); border-color: #F3D68A; }
.tag--fault { color: var(--fault); background: var(--fault-wash); border-color: #F0BDB9; }
.tag--blue { color: var(--blue-deep); background: var(--blue-wash); border-color: #CEC3FA; }
.notice { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: var(--t-sm); }
.notice--ok { background: var(--ok-wash); border-color: #B7E1CE; color: #0A4F37; }
.notice--live { background: var(--live-wash); border-color: #A6E8D2; color: #075B44; }
.notice--warn { background: var(--warn-wash); border-color: #F3D68A; color: #5E3E00; }
.notice--fault { background: var(--fault-wash); border-color: #F0BDB9; color: #8E1F19; }
.notice--blue { background: var(--blue-wash); border-color: #CEC3FA; color: var(--blue-deep); }

/* Toasts (Django messages) */
.toasts { position: fixed; z-index: 60; top: 5.2rem; right: var(--gutter); display: grid; gap: var(--s2); width: min(26rem, calc(100vw - 2 * var(--gutter))); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: var(--s3); align-items: flex-start; padding: .8rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); font-size: var(--t-sm); color: var(--ink); animation: toast-in var(--med) var(--ease); }
.toast .i { margin-top: .15em; }
.toast--success { border-color: #9DD6BC; } .toast--success .i { color: var(--ok); }
.toast--error { border-color: #EAA9A4; } .toast--error .i { color: var(--fault); }
.toast--warning { border-color: #F0CD7A; } .toast--warning .i { color: var(--warn-deep); }
.toast--info .i { color: var(--blue); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 2px; }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: all var(--med) var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* Breadcrumb, section head, title block */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: var(--t-xs); color: var(--ink-3); padding-block: var(--s4); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs li { list-style: none; display: inline-flex; align-items: center; gap: var(--s2); }
.crumbs li + li::before { content: "/"; color: #A19ABD; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.sec-head p { color: var(--ink-3); margin-top: var(--s2); }
.titleblock { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); display: grid; }
.titleblock > * { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.titleblock > :first-child { border-top: 0; }
.cell-label { display: block; font: 600 var(--t-xs)/1.2 var(--f-body); letter-spacing: 0; color: var(--ink-3); margin-bottom: .2rem; }

/* Price, stock gauge, spec list, quantity */
.price { font-family: var(--f-display); font-weight: 700; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price small { font: 500 var(--t-xs)/1 var(--f-body); color: var(--ink-3); letter-spacing: 0; margin-right: .3em; }
.stock { display: inline-flex; align-items: center; gap: .5em; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.stock > span { display: inline-flex; gap: 2px; align-items: flex-end; }
.stock i { display: inline-block; width: .5rem; height: 1rem; border-radius: 2px; background: var(--line); transform-origin: bottom; }
.stock--high i { background: var(--ok); }
.stock--low i:nth-child(-n+2) { background: var(--warn); }
.stock--last i:nth-child(1) { background: var(--fault); }
.stock--out { color: var(--fault); }
.spec-list { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; margin: 0; border-top: 1px solid var(--line); }
.spec-list dt, .spec-list dd { padding: .65rem 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.spec-list dt { color: var(--ink-3); font-size: var(--t-sm); }
.spec-list dd { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #BDB7D4; border-radius: var(--r); background: var(--paper); overflow: hidden; }
.qty button { width: 2.6rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qty button:hover:not(:disabled) { background: var(--wash); }
.qty button:disabled { color: #A19ABD; cursor: not-allowed; }
.qty input { width: 3.2rem; min-height: 2.75rem; border: 0 !important; border-inline: 1px solid var(--line) !important; border-radius: 0 !important; text-align: center; box-shadow: none !important; padding-inline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Tables */
.tbl-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.tbl { font-size: var(--t-sm); }
.tbl th { text-align: left; font: 600 var(--t-xs)/1.3 var(--f-body); color: var(--ink-3); background: var(--wash); padding: .7rem var(--s4); white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: .8rem var(--s4); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #F9F8FD; }
.tbl .num { text-align: right; }

/* Empty, loading */
.empty { display: grid; justify-items: center; text-align: center; gap: var(--s3); padding: var(--s8) var(--s5); border: 1px dashed #BDB7D4; border-radius: var(--r-lg); background: rgb(255 255 255 / .55); }
.empty .i { width: 2.4rem; height: 2.4rem; color: var(--ink-3); }
.empty p { color: var(--ink-3); }
.skeleton { background: linear-gradient(90deg, var(--wash) 25%, #F7F6FC 50%, var(--wash) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-sm); min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Shell: floating midnight island, Shop mega-menu, quiet category chips ---------- */
:root { --mast-h: 5.75rem; --r-xl: 24px; --r-2xl: 32px; --glow: #D4B4FA; --hi: #FFC400; }
.mast { position: sticky; top: 0; z-index: 40; padding: 12px clamp(10px, 2vw, 24px) 0; color: var(--on-ink); pointer-events: none; }
.mast > * { pointer-events: auto; }
.mast-top { position: relative; max-width: calc(var(--wrap) + 48px); margin-inline: auto; display: flex; align-items: center; gap: clamp(.4rem, 1.2vw, 1rem);
  min-height: 4.25rem; padding: .55rem .6rem .55rem .9rem; background: var(--ink); border: 1px solid rgb(255 255 255 / .08); border-radius: var(--r-xl);
  box-shadow: 0 20px 40px -24px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .06); transition: background var(--med) var(--ease), border-color var(--med) var(--ease), box-shadow var(--med) var(--ease); }
.logo { display: inline-flex; align-items: center; flex: none; color: #fff; text-decoration: none; border-radius: 12px; }
.logo-img { display: block; height: 2.9rem; width: auto; }
.logo:hover { color: #fff; }
.mast-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 40rem; margin-inline: auto; }
.mast-search input:not([type=checkbox]):not([type=radio]):not([type=range]) { min-height: 3rem; padding: 0 6.2rem 0 2.9rem; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); color: #fff; border-radius: 999px; }
.mast-search input::placeholder { color: #A9A3CC; }
.mast-search input:not([type=checkbox]):not([type=radio]):not([type=range]):hover:not(:disabled) { border-color: rgb(255 255 255 / .24); }
.mast-search input:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible { background: rgb(255 255 255 / .1); border-color: var(--live); box-shadow: 0 0 0 3px rgb(47 221 166 / .3); }
.mast-search > .i { position: absolute; left: 1.05rem; top: 50%; translate: 0 -50%; color: var(--on-ink-2); pointer-events: none; }
.mast-search-go { position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 600 var(--t-sm)/1 var(--f-body); cursor: pointer; transition: background var(--fast); }
.mast-search-go:hover { background: #6E54FF; }
.mast-actions { display: flex; align-items: center; gap: .25rem; flex: none; }
.mast-link { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; min-width: 2.9rem; justify-content: center; padding: 0 .8rem; color: var(--on-ink); text-decoration: none;
  font: 600 var(--t-sm)/1 var(--f-body); border-radius: 999px; background: none; border: 0; cursor: pointer; white-space: nowrap; transition: background var(--fast); }
.mast-link:hover { background: rgb(255 255 255 / .09); color: #fff; }
.mast-link .label { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.cart-tag { background: var(--live); color: var(--ink); padding-inline: 1rem .45rem; gap: .55rem; }
.cart-tag:hover { background: #63E8BE; color: var(--ink); }
.cart-tag b { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding-inline: .4rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1; }
.wish-tag b { position: absolute; top: .2rem; right: .1rem; display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding-inline: .25rem; border-radius: 999px; background: var(--hi); color: var(--ink); font-size: .68rem; line-height: 1; }
.wish-tag b[hidden] { display: none; }
.search-toggle { display: none; }
.acct-menu, .shop-menu { position: relative; flex: none; }
.acct-menu summary, .shop-menu summary { list-style: none; cursor: pointer; }
.acct-menu summary::-webkit-details-marker, .shop-menu summary::-webkit-details-marker { display: none; }
.acct-menu[open] > summary, .shop-menu[open] > summary { background: rgb(255 255 255 / .12); }
.acct-pop { position: absolute; right: 0; top: calc(100% + .7rem); min-width: 15rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--lift); padding: var(--s2); display: grid; z-index: 5; }
.acct-pop a, .acct-pop button { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 500; background: none; border: 0; text-align: left; width: 100%; cursor: pointer; font-family: inherit; }
.acct-pop a:hover, .acct-pop button:hover { background: var(--blue-wash); color: var(--ink); }
.acct-pop .who { padding: .6rem .8rem; border-bottom: 1px solid var(--line-soft); margin-bottom: var(--s1); font-size: var(--t-xs); color: var(--ink-3); }
.acct-pop .who b { display: block; color: var(--ink); font-size: var(--t-sm); }

/* Shop toggle and mega-menu */
.shop-toggle { padding-inline: .9rem 1rem; background: rgb(255 255 255 / .06); }
.shop-toggle .i-close, .shop-menu[open] .i-open { display: none; }
.shop-menu[open] .i-close { display: block; }
.shop-toggle .i-chev { transition: transform var(--med) var(--ease); }
.shop-menu[open] .i-chev { transform: rotate(180deg); }
.shop-panel { position: fixed; left: 50%; translate: -50% 0; top: calc(var(--mast-top-h, 5.25rem) + 10px); width: min(calc(var(--wrap) + 48px), calc(100vw - 2 * clamp(10px, 2vw, 24px)));
  max-height: calc(100dvh - var(--mast-top-h, 5.25rem) - 24px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); border-radius: var(--r-xl); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .45), 0 0 0 1px rgb(13 11 46 / .06); animation: panel-in var(--med) var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px) scale(.99); } }
.shop-panel-in { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--s5); padding: var(--s5); }
.shop-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem; }
.shop-cats a { display: flex; align-items: center; gap: .85rem; padding: .8rem; border-radius: 18px; color: var(--ink); text-decoration: none; transition: background var(--fast); min-height: 4.25rem; }
.shop-cats a:hover, .shop-cats a[aria-current] { background: var(--blue-wash); }
.shop-cats b { display: block; font: 650 var(--t-sm)/1.25 var(--f-display); }
.shop-cats small { color: var(--ink-3); font-size: var(--t-xs); }
.shop-ico { display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: linear-gradient(150deg, #EFEBFF, #E2D4FD); color: var(--blue-deep); }
.shop-side { display: grid; align-content: start; gap: .7rem; padding: var(--s4); border-radius: 20px; background: var(--sheet); }
.shop-side h2 { font: 600 var(--t-xs)/1.2 var(--f-body); color: var(--ink-3); margin-top: .5rem; }
.shop-brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.shop-brands a, .rail a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .85rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: var(--t-xs); font-weight: 600; text-decoration: none; }
.shop-brands a:hover { border-color: var(--blue); color: var(--blue-deep); }
.shop-acct { display: none; }
.shop-acct a { display: block; padding: .55rem 0; color: var(--ink); font-weight: 600; text-decoration: none; }

/* Quiet category chips under the island (not on home) */
.rail { max-width: calc(var(--wrap) + 48px); margin: 8px auto 0; }
.rail ol { list-style: none; margin: 0; padding: 2px 4px 10px; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.rail ol::-webkit-scrollbar { display: none; }
.rail li { flex: none; }
.rail a { background: rgb(255 255 255 / .82); backdrop-filter: blur(10px); border-color: rgb(13 11 46 / .08); color: var(--ink-2); font-weight: 600; }
.rail a:hover { color: var(--blue-deep); border-color: #CEC3FA; }
.rail a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Home: the island floats over the afterglow hero, transparent until scrolled */
.mast-top::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.is-home .mast-top { background: rgb(13 11 46 / .35); border-color: rgb(255 255 255 / .12); box-shadow: none; isolation: isolate; }
.is-home .mast-top::before { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.is-home .mast.is-stuck .mast-top { background: var(--ink); box-shadow: 0 20px 40px -24px rgb(0 0 0 / .45); }

/* Toasts sit under the island, never over it */
.toasts { top: calc(var(--mast-top-h, 5.25rem) + 14px); }

/* Footer: midnight, with an afterglow edge */
.foot { position: relative; margin-top: var(--s9); color: var(--on-ink-2); padding-bottom: 5.5rem; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, rgb(91 61 245 / .55), transparent 60%), var(--ink); border-radius: var(--r-2xl) var(--r-2xl) 0 0; }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--glow), var(--blue), var(--glow), transparent); opacity: .8; }
.foot a { color: var(--on-ink); text-decoration: none; }
.foot a:hover { color: var(--live); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s6) var(--s5); padding-top: var(--s8); }
.foot-grid > * { display: grid; align-content: start; gap: .7rem; font-size: var(--t-sm); }
.foot-grid h2 { font: 600 var(--t-sm)/1.2 var(--f-display); color: #fff; margin-bottom: .2rem; }
.foot-brand .logo-img { height: 4.5rem; }
.foot-brand .logo { margin-left: -.85rem; }
.foot-brand p { max-width: 32ch; }
.foot-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); margin-top: var(--s7); padding: var(--s4) var(--s5); border-radius: 20px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); font-size: var(--t-sm); color: var(--on-ink); font-weight: 600; }
.foot-pay ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.foot-pay img { display: block; height: 20px; width: auto; padding: 7px 10px; box-sizing: content-box; background: #fff; border-radius: 10px; }
.foot-note { padding-block: var(--s5) 0; font-size: var(--t-xs); max-width: none; }

@media (max-width: 1080px) {
  .mast-link .label { display: none; }
  .shop-toggle .label, .cart-tag .label { display: inline; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .shop-panel-in { grid-template-columns: 1fr; }
  .shop-acct { display: grid; }
  .rail ol { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .mast { padding: 8px 8px 0; }
  .mast-top { flex-wrap: wrap; gap: .25rem; padding: .4rem .4rem .4rem .35rem; min-height: 3.75rem; border-radius: 20px; }
  .shop-toggle { order: -1; padding: 0; background: none; }
  .shop-toggle .label, .shop-toggle .i-chev { display: none; }
  .logo { margin-right: auto; }
  .logo-img { height: 2.5rem; }
  .cart-tag .label { display: none; }
  .cart-tag { padding-inline: .75rem .35rem; }
  .mast-search { order: 5; flex-basis: 100%; max-width: none; margin: .2rem 0 .1rem; }
  .js .mast-search { display: none; }
  .js .mast.is-searching .mast-search { display: block; }
  .js .search-toggle { display: inline-flex; }
  .mast.is-searching .search-toggle { background: rgb(255 255 255 / .12); }
  .wish-tag { display: none; }
  .shop-panel { left: 8px; right: 8px; width: auto; translate: none; top: calc(var(--mast-top-h, 4.5rem) + 14px); max-height: calc(100dvh - var(--mast-top-h, 4.5rem) - 24px); }
  .shop-panel-in { padding: var(--s3); gap: var(--s3); }
  .shop-cats { grid-template-columns: 1fr; gap: 0; }
  .shop-cats a { min-height: 3.5rem; padding: .55rem; }
  .shop-ico { width: 2.5rem; height: 2.5rem; }
  .toasts { top: calc(var(--mast-top-h, 4.5rem) + 14px); }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list dt { padding-bottom: 0; border-bottom: 0; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-pay { padding: var(--s4); }
}
@media (max-width: 359px) {
  .logo-img { height: 2.15rem; }
  .mast-link { min-width: 2.75rem; padding: 0 .55rem; }
}
@media (prefers-reduced-motion: reduce) { .shop-panel { animation: none; } }
@media print { .mast, .foot, .toasts, .pp-help, .no-print { display: none !important; } body { background: #fff; } }
.shop-brands a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.rail ol a, .rail a { min-height: 2.75rem; }
