/* Neotori Wishlist */
:root {
	--ntw-heart: #e0245e;
	--ntw-accent: var(--primary-color, #446084);
	--ntw-border: rgba(0, 0, 0, .1);
	--ntw-muted: rgba(0, 0, 0, .55);
	--ntw-bg-soft: rgba(0, 0, 0, .035);
	--ntw-radius: 8px;
}

.ntw-icon { fill: none; stroke: currentColor; stroke-width: 2; vertical-align: middle; transition: fill .15s, stroke .15s, transform .15s; }
.is-active > .ntw-icon,
.is-active .ntw-icon { fill: var(--ntw-heart); stroke: var(--ntw-heart); }
.is-loading { opacity: .6; pointer-events: none; }
.ntw-muted { color: var(--ntw-muted); }

/* ---------- Product page ---------- */
.ntw-product { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1em; width: 100%; margin: .75em 0 0; clear: both; }
.ntw-product .ntw-save { display: inline-flex; align-items: center; gap: .45em; margin: 0; }
.ntw-product .ntw-save:hover .ntw-icon { transform: scale(1.12); }
.ntw-product-note { font-size: .9em; }
.ntw-save-new { background: none; border: 0; padding: 0; margin: 0; font-size: .85em; text-decoration: underline; cursor: pointer; color: var(--ntw-muted); min-height: 0; line-height: 1.4; text-transform: none; }

/* ---------- Loop hearts ---------- */
.ntw-loop--default { position: absolute; top: 8px; right: 8px; z-index: 5; }
li.product, .product-small { position: relative; }
.ntw-heart { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ntw-loop--default .ntw-heart { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #333; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.ntw-loop--flatsome { margin-bottom: 5px; }
.ntw-loop--flatsome .ntw-heart { margin: 0; background: rgba(255, 255, 255, .92); }
.ntw-loop--flatsome .ntw-heart .ntw-icon { width: 16px; height: 16px; }
.ntw-heart:hover .ntw-icon { transform: scale(1.15); }

/* ---------- Header icon ---------- */
.ntw-header-icon { position: relative; display: inline-flex; align-items: center; gap: .35em; color: inherit; }
.ntw-header-icon .ntw-icon { width: 22px; height: 22px; }
.ntw-count { position: absolute; top: -7px; left: 13px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ntw-heart); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.ntw-count.is-empty { display: none; }

/* Header heart next to the cart (auto-placed) */
.ntw-header-item { display: inline-flex; align-items: center; list-style: none; }
.ntw-header-item .ntw-header-icon { padding: 10px 0; line-height: 1; color: currentColor; opacity: .85; transition: opacity .15s, color .15s; }
.ntw-header-item .ntw-header-icon:hover { opacity: 1; color: var(--ntw-heart); }
.ntw-header-item .ntw-header-icon .ntw-icon { width: 21px; height: 21px; stroke-width: 2; }
.ntw-header-item .ntw-count { top: 5px; left: auto; right: -9px; padding: 0 3px; line-height: 17px; background: var(--fs-color-primary, var(--primary-color, #f6a500)); box-shadow: 1px 1px 3px rgba(0, 0, 0, .25); font-family: Arial, sans-serif; font-size: 11px; }
.ntw-header-icon:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.nav > li.ntw-header-item { margin: 0 1.1em 0 .55em; }

/* ---------- Toast ---------- */
.ntw-toast { position: fixed; left: 50%; bottom: 24px; z-index: 99999; display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--ntw-radius); background: #222; color: #fff; font-size: 15px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.ntw-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.ntw-toast.is-error { background: #b3261e; }
.ntw-toast a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ---------- Modal (list chooser) ---------- */
.ntw-modal { position: fixed; inset: 0; z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.ntw-modal-box { width: 100%; max-width: 380px; padding: 22px; border-radius: var(--ntw-radius); background: #fff; color: #222; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.ntw-modal-box h3 { margin: 0 0 .8em; }
.ntw-modal-opt { display: flex; align-items: center; gap: .5em; margin: 0 0 .5em; font-weight: normal; cursor: pointer; }
.ntw-modal-opt input { margin: 0; }
.ntw-modal-new { width: 100%; margin: .2em 0 .8em; }
.ntw-modal-actions { display: flex; justify-content: flex-end; gap: .5em; margin-top: .8em; }
.ntw-modal-actions .button { margin: 0; }

/* ---------- Wishlist page ---------- */
.ntw-wishlist {
	--ntw-accent: var(--primary-color, #f5a300);
	--ntw-surface: #fff;
	--ntw-line: #ebe5dc;
	--ntw-soft: #6f6a63;
	--ntw-sheet: #faf6ef;
	--ntw-danger: #b3261e;
	max-width: 1080px;
	margin: 0 auto 3em;
	padding-top: 1.5em;
	text-transform: none;
	letter-spacing: normal;
}
.ntw-wishlist p { margin: 0; }
.ntw-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Alerts */
.ntw-alert { display: flex; gap: .7em; align-items: flex-start; margin: 0 0 1.2em; padding: .85em 1.1em; border: 1px solid var(--ntw-line); border-radius: 10px; background: var(--ntw-surface); font-size: .93em; line-height: 1.5; }
.ntw-alert .ntw-i { margin-top: .15em; color: var(--ntw-soft); }
.ntw-alert a { font-weight: 600; white-space: nowrap; margin-left: .25em; }
.ntw-alert--sold { border-color: #f1d9a8; background: #fff8e8; }
.ntw-alert--sold .ntw-i { color: #a66a00; }
.ntw-alert--sold p + p { margin-top: .35em; }

/* Header */
.ntw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8em 1.5em; margin: 0 0 .4em; }
.ntw-wishlist .ntw-title { margin: 0; font-size: 2em; line-height: 1.15; }
.ntw-sub { margin-top: .25em !important; color: var(--ntw-soft); font-size: .95em; }
.ntw-head-actions { display: flex; flex-wrap: wrap; gap: .25em; }
.ntw-tool { display: inline-flex; align-items: center; gap: .4em; margin: 0; padding: .45em .75em; min-height: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: inherit; font-size: .9em; font-weight: 500; line-height: 1.3; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ntw-tool:hover, .ntw-tool[aria-expanded="true"] { border-color: var(--ntw-line); background: var(--ntw-surface); }
.ntw-tool--danger { color: var(--ntw-danger); }

/* Tabs */
.ntw-tabs { display: flex; flex-wrap: wrap; gap: 0 1.4em; margin: 0 0 1.4em; border-bottom: 1px solid var(--ntw-line); }
.ntw-tab { position: relative; display: inline-flex; align-items: center; gap: .4em; margin: 0 0 -1px; padding: .7em 0; min-height: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ntw-soft); font-size: .95em; font-weight: 500; line-height: 1.3; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ntw-tab:hover { color: inherit; }
.ntw-tab.is-active { border-bottom-color: var(--ntw-accent); color: inherit; font-weight: 600; }
.ntw-tab-count { min-width: 1.5em; padding: 0 .45em; border-radius: 999px; background: var(--ntw-line); color: inherit; font-size: .78em; line-height: 1.6; text-align: center; }
.ntw-tab.is-active .ntw-tab-count { background: var(--ntw-accent); color: #fff; }
.ntw-tab--new { color: var(--ntw-accent); }
.ntw-tab--new .ntw-i { width: 15px; height: 15px; }

/* Panels (new list, share) */
.ntw-panel { margin: -.4em 0 1.4em; padding: 1em 1.1em; border: 1px solid var(--ntw-line); border-radius: 10px; background: var(--ntw-surface); }
.ntw-panel label { display: block; margin: 0 0 .5em; font-size: .9em; font-weight: 500; }
.ntw-row { display: flex; gap: .5em; }
.ntw-row input { flex: 1; min-width: 0; margin: 0; }
.ntw-row .button { margin: 0; white-space: nowrap; }
.ntw-share .ntw-textbtn { margin-top: .6em; }

/* Text buttons */
.ntw-textbtn { display: inline; margin: 0; padding: 0; min-height: 0; border: 0; background: none; color: var(--ntw-soft); font-size: .88em; font-weight: 400; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ntw-textbtn:hover { color: inherit; }
.ntw-textbtn--danger { color: var(--ntw-danger); }

/* Items */
.ntw-items { display: grid; gap: 1em; margin: 0; padding: 0; list-style: none; }
.ntw-item { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 1.4em; margin: 0; padding: 1.1em; border: 1px solid var(--ntw-line); border-radius: 12px; background: var(--ntw-surface); transition: opacity .25s, transform .25s; }
.ntw-item.is-removing { opacity: 0; transform: translateX(12px); }
.ntw-item.is-unavailable { opacity: .55; }
.ntw-item-media { display: block; align-self: start; overflow: hidden; border-radius: 8px; background: var(--ntw-sheet); aspect-ratio: 1; }
.ntw-item-media img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.ntw-item.is-out .ntw-item-media img { filter: grayscale(.7); }

.ntw-item-body { display: flex; flex-direction: column; gap: .9em; min-width: 0; }
.ntw-item-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .2em 1.2em; align-items: start; }
.ntw-wishlist .ntw-item-name { margin: 0 0 .3em; font-size: 1.3em; line-height: 1.25; }
.ntw-item-name a { color: inherit; }
.ntw-item-name a:hover { color: var(--ntw-accent); }
.ntw-tag { display: inline-block; margin: 0 .35em .2em 0; padding: .15em .65em; border-radius: 999px; background: var(--ntw-line); font-size: .78em; font-weight: 500; line-height: 1.5; }
.ntw-tag--unique { background: #fff1d6; color: #7a4b00; }
.ntw-tag--out { background: #fde8e7; color: var(--ntw-danger); }

.ntw-item-price { text-align: right; white-space: nowrap; }
.ntw-price { display: block; font-size: 1.25em; font-weight: 700; line-height: 1.2; }
.ntw-price del { font-size: .75em; font-weight: 400; opacity: .6; }
.ntw-price ins { text-decoration: none; }
.ntw-item-price small { display: block; margin-top: .15em; color: var(--ntw-soft); font-size: .78em; white-space: normal; max-width: 15em; margin-left: auto; }

.ntw-remove { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: -.35em -.35em 0 0; padding: 0; min-height: 0; border: 0; border-radius: 50%; background: none; color: var(--ntw-soft); cursor: pointer; }
.ntw-remove:hover { background: #fde8e7; color: var(--ntw-danger); }

/* Configuration = the build sheet of the toy */
.ntw-spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 1.6em; padding: .55em 1em; border-left: 3px solid var(--ntw-accent); border-radius: 0 8px 8px 0; background: var(--ntw-sheet); font-size: .9em; }
.ntw-spec-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1em .8em; padding: .42em 0; border-bottom: 1px dashed var(--ntw-line); }
.ntw-spec-label { color: var(--ntw-soft); }
.ntw-spec-value { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ntw-spec-row.is-plain .ntw-spec-value { font-weight: 500; text-align: left; }
.ntw-spec .ntw-spec-row:nth-last-child(1) { border-bottom: 0; }

/* Footer of an item */
.ntw-item-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .7em 1em; margin-top: auto; }
.ntw-item-foot .button { margin: 0; }
.ntw-item-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em; margin-left: auto; }
.ntw-move { width: auto; max-width: 200px; height: auto; margin: 0; padding: .35em 2em .35em .7em; font-size: .85em; border-radius: 8px; }

.ntw-stepper { display: inline-flex; align-items: stretch; height: 2.6em; border: 1px solid var(--ntw-line); border-radius: 8px; overflow: hidden; background: var(--ntw-surface); }
.ntw-stepper button { display: inline-flex; align-items: center; justify-content: center; width: 2.4em; margin: 0; padding: 0; min-height: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.ntw-stepper button:hover { background: var(--ntw-sheet); }
.ntw-stepper button .ntw-i { width: 14px; height: 14px; }
.ntw-stepper input { width: 2.8em; height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--ntw-line); border-right: 1px solid var(--ntw-line); border-radius: 0; box-shadow: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.ntw-stepper input::-webkit-outer-spin-button, .ntw-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ntw-item-msg { font-size: .9em; color: #1e7d32; }
.ntw-item-msg:empty { display: none; }
.ntw-item-msg.is-error { color: var(--ntw-danger); }

/* Summary */
.ntw-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6em 1.6em; margin-top: 1.4em; padding: 1em 1.1em; border: 1px solid var(--ntw-line); border-radius: 12px; background: var(--ntw-surface); }
.ntw-summary-total { display: flex; align-items: baseline; gap: .7em; margin-right: auto; }
.ntw-summary-total span { color: var(--ntw-soft); }
.ntw-summary-total strong { font-size: 1.35em; }
.ntw-summary-msg { flex-basis: 100%; order: 3; font-size: .9em; color: var(--ntw-danger); }
.ntw-summary-msg:empty { display: none; }
.ntw-cart-all { margin: 0; white-space: nowrap; }

/* Empty */
.ntw-empty { max-width: 30em; margin: 2em auto; padding: 2.5em 1.5em; text-align: center; }
.ntw-empty-mark { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 1em; border-radius: 50%; background: #fff1d6; color: var(--ntw-accent); }
.ntw-empty-mark .ntw-i { width: 34px; height: 34px; }
.ntw-wishlist .ntw-empty h2 { margin: 0 0 .4em; font-size: 1.5em; }
.ntw-empty p { margin: 0 0 1.3em; color: var(--ntw-soft); }
.ntw-empty--list { margin: 1em auto; padding: 2em 1em; }

/* Focus */
.ntw-wishlist :is(a, button, input, select):focus-visible { outline: 2px solid var(--ntw-accent); outline-offset: 2px; }

@media (max-width: 760px) {
	.ntw-wishlist { padding-top: .8em; }
	.ntw-wishlist .ntw-title { font-size: 1.6em; }
	.ntw-item { grid-template-columns: 88px minmax(0, 1fr); gap: .8em .9em; padding: .9em; }
	.ntw-item-body { display: contents; }
	.ntw-item-media { grid-column: 1; grid-row: 1; }
	.ntw-item-top { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr) auto; }
	.ntw-item-price { grid-column: 1; grid-row: 2; text-align: left; }
	.ntw-item-price small { margin-left: 0; }
	.ntw-remove { grid-column: 2; grid-row: 1; }
	.ntw-spec, .ntw-item-foot, .ntw-item-msg { grid-column: 1 / -1; }
	.ntw-spec { grid-template-columns: 1fr; }
	.ntw-item-foot .ntw-cta { flex: 1; }
	.ntw-item-links { margin-left: 0; width: 100%; }
	.ntw-summary { position: sticky; bottom: 0; z-index: 20; margin: 1em -1px 0; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
	.ntw-summary { flex-direction: column; align-items: stretch; gap: .6em; padding: .9em; }
	.ntw-summary-total { justify-content: space-between; margin-right: 0; }
	.ntw-cart-all { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ntw-item, .ntw-toast { transition: none; }
}

/* ---------- Cart: save for later ---------- */
.ntw-later { margin-top: .3em; font-size: .85em; }
.ntw-later-link { display: inline-flex; align-items: center; gap: .3em; }
.ntw-later-link .ntw-icon { width: 14px; height: 14px; }
