/* Nüdel global layer: loaded on every page after the base theme CSS. */

/* Reset text behaviour the base theme sets on <body> (inherited), so sections render like the static designs. */
:where(.nd-scope, .nd-header, .nd-footer, .nd-ticker) { word-break: normal; overflow-wrap: normal; letter-spacing: normal; font-size: 16px; text-transform: none; }
/* The base theme's body font (typography setting, default Poppins 300) puts weight 300 on <body> through .body0.
   The designs never set a body weight, so their text renders at the browser default 400 and <b> (bolder) at 700.
   Restore that default; zero specificity, so every weight the design CSS sets still wins. */
:where(.nd-scope, .nd-header, .nd-footer, .nd-ticker, .nd-cd, .nd-policy) { font-weight: 400; }

/* Let Nüdel design sections behave like the original static designs: undo base theme element
   defaults that the designs never had (list bullets, heading typography, summary display). */
:where(.nd-scope) :is(ol, ul) { list-style: revert; }
/* SHOPLINE image tags carry the original width/height attributes; the designs had none. Neutralise both so rules that
   size only one side (icons, logos, badges) keep the aspect ratio instead of stretching. */
:where(.nd-scope, .nd-header, .nd-footer, .nd-ticker, .nd-cd) img { width: auto; height: auto; max-width: 100%; }
:where(.nd-scope) :is(h1, h2, h3, h4, h5, h6) {
  font: revert;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  line-height: normal;
  margin-block: 0;
}
:where(.nd-scope) summary { display: list-item; position: static; user-select: auto; }
:where(.nd-scope) button:disabled { opacity: 1; }
:where(.nd-scope) [hidden] { display: none !important; }

/* Loading state for Nüdel add-to-cart buttons */
[data-nd-add].is-loading { opacity: .7; cursor: progress; pointer-events: none; }

/* Nüdel cart drawer (components/cart/cart-drawer.html), matching the design's slide-in cart */
.nd-cart-drawer [data-placement="right"] > details[open]::before { background: rgba(15,25,40,.44); }
.nd-cart-drawer .cart-drawer__body.nd-cd {
  width: min(400px, 94vw); height: 100%; height: 100dvh; display: flex; flex-direction: column;
  background: #fff; color: var(--nd-ink, #22384e); font-family: var(--nd-font-body);
  box-shadow: -18px 0 48px rgba(15,25,40,.22); line-height: 1.6; font-size: 16px; border: 0; outline: 0; border-radius: 0;
  word-break: normal; letter-spacing: normal; text-transform: none;
}
.nd-cd * { box-sizing: border-box; }
.nd-cd .cd-head { position: static; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #e6edf4; }
.nd-cd .cd-head::after { display: none; }
.nd-cd .cd-head h3 { margin: 0; font-family: var(--nd-font-heading); font-weight: 400; font-size: calc(1.45 * var(--nd-rem,1rem) * var(--nd-hs,1)); line-height: 1.12; letter-spacing: .01em; text-transform: none; color: inherit; }
.nd-cd .cd-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--nd-coral, #ef6a5a); color: #fff; font-family: var(--nd-font-body); font-size: calc(.78 * var(--nd-rem,1rem)); font-weight: 800; vertical-align: 4px; }
.nd-cd .cd-close { position: static; border: none; background: none; cursor: pointer; font-size: calc(1.05 * var(--nd-rem,1rem)); line-height: 1; color: var(--nd-ink, #22384e); padding: 6px; }
.nd-cd .cart-drawer__inner.cd-inner { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #fff; }
.nd-cd .cd-items { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px; }
.nd-cd .cd-empty { padding: 26px 0; color: #5b6b7d; text-align: center; }
.nd-cd .cd-empty p { margin: 0; }
.nd-cd .cd-empty a { display: inline-block; margin-top: 12px; font-weight: 800; color: var(--nd-deep, #184176); text-decoration: underline; }
.nd-cd .cart-item.nd-cd-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eef3f8; align-items: center; }
.nd-cd .nd-cd-item__img { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #eef4fa; }
.nd-cd .nd-cd-item__img img, .nd-cd .nd-cd-item__img svg { width: 64px; height: 64px; object-fit: cover; display: block; }
.nd-cd .nd-cd-item__info { min-width: 0; }
.nd-cd .ci-name { display: block; font-weight: 800; font-size: calc(.9 * var(--nd-rem,1rem)); line-height: 1.35; color: inherit; text-decoration: none; }
.nd-cd .ci-var { font-size: calc(.78 * var(--nd-rem,1rem)); color: #5b6b7d; margin-top: 2px; }
.nd-cd .ci-disc { color: #20623b; }
.nd-cd .ci-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.nd-cd theme-input-number.ci-qty { display: inline-flex; align-items: center; width: auto; height: auto; min-height: 0; padding: 0; border: 1.5px solid #dfe7ef; border-radius: 9px; background: #fff; }
.nd-cd theme-input-number.ci-qty::before, .nd-cd theme-input-number.ci-qty::after { display: none; }
.nd-cd .ci-qty button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: none; background: none; cursor: pointer; font-weight: 800; color: var(--nd-ink, #22384e); }
.nd-cd .ci-qty button:disabled { opacity: .35; cursor: default; }
.nd-cd .ci-qty button svg { width: 10px; height: 10px; }
.nd-cd .ci-qty input { width: 22px; min-width: 20px; height: 27px; padding: 0; border: none; background: none; text-align: center; font: inherit; font-size: calc(.85 * var(--nd-rem,1rem)); font-weight: 800; color: inherit; -moz-appearance: textfield; appearance: textfield; }
.nd-cd .ci-qty input::-webkit-outer-spin-button, .nd-cd .ci-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nd-cd .ci-remove { display: inline; border: none; background: none; padding: 0; cursor: pointer; font-size: calc(.76 * var(--nd-rem,1rem)); font-weight: 700; color: #5b6b7d; text-decoration: underline; }
.nd-cd .ci-remove:hover { color: var(--nd-coral, #ef6a5a); }
.nd-cd .cart-item__fail:not(:has(.cart-item__fail-tip:not(:empty))) { display: none; }
.nd-cd .cart-item__fail { margin-top: 6px; font-size: calc(.76 * var(--nd-rem,1rem)); color: #a4372a; }
.nd-cd .ci-price { position: relative; align-self: start; padding-top: 2px; font-weight: 800; font-size: calc(.92 * var(--nd-rem,1rem)); text-align: right; white-space: nowrap; }
.nd-cd .ci-price b { font-weight: 800; }
.nd-cd .ci-price s { display: block; font-size: calc(.76 * var(--nd-rem,1rem)); font-weight: 600; color: #8595a6; }
.nd-cd .cart-item__total-loading { position: absolute; inset: 0; display: none; place-items: center end; }
.nd-cd .cart-item__total-loading.loading { display: grid; }
.nd-cd .cart-item__total-loading.loading ~ * { visibility: hidden; }
.nd-cd .cart-item__total-loading svg { width: 16px; height: 16px; }
.nd-cd .cart-item__disabled { pointer-events: none; opacity: .7; }
.nd-cd .cd-foot { flex: none; border-top: 1px solid #e6edf4; padding: 14px 18px 18px; background: #fff; }
.nd-cd .cd-line { display: flex; justify-content: space-between; font-size: calc(.86 * var(--nd-rem,1rem)); color: #5b6b7d; margin-bottom: 4px; }
.nd-cd .cd-line--disc span:last-child { color: #20623b; font-weight: 700; }
.nd-cd .cd-sub { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: calc(1.02 * var(--nd-rem,1rem)); }
.nd-cd .cd-sub b { font-weight: 900; } /* design: <b> (bolder) inside the 800 subtotal line */
.nd-cd .cd-micro { margin: 6px 0 0; font-size: calc(.78 * var(--nd-rem,1rem)); color: #5b6b7d; }
.nd-cd .cd-note { margin: 12px 0 0; background: #fff7e6; border: 1px dashed #e8c86a; border-radius: 12px; padding: 10px 12px; font-size: calc(.8 * var(--nd-rem,1rem)); font-weight: 700; color: #6b6047; text-align: center; }
.nd-cd .cd-foot form { margin: 0; }
.nd-cd .cd-checkout { display: block; width: 100%; margin-top: 12px; padding: 15px 18px; border: none; border-radius: 999px; background: var(--nd-coral, #ef6a5a); color: #fff; font-family: var(--nd-font-body); font-weight: 800; font-size: calc(1.02 * var(--nd-rem,1rem)); text-align: center; cursor: pointer; transition: filter .18s ease, transform .18s ease; }
.nd-cd .cd-checkout:hover { filter: brightness(.95); transform: translateY(-1px); }
.nd-cd .cart-drawer__loading { position: absolute; inset: 0; display: none; place-items: center; background: rgba(255,255,255,.75); z-index: 2; }
.nd-cd .cart-drawer__inner--loading .cart-drawer__loading { display: grid; }
.nd-cd .cart-drawer__loading-inn { padding: 0; }

/* SHOPLINE form tags ({{#customer_form}}, {{#contact_form}}) add their own <form> element around the design's
   form markup. Let that wrapper disappear from layout so the design's flex/grid rules apply as before. */
.nd-home-access form, .nd-home-recap form, .nd-kart-lead form { display: contents; }

/* Price text weights matching the HTML design (HTML body is 400, so <b> renders 700) */
.pc-cmp>div{font-weight:400}
.pc-tag b{font-weight:700}
.pcard .pr s{font-weight:400}
.vp-was{font-weight:400}
.pp-opts button b{font-weight:700}
.pricebar b{font-weight:700}
