/* Formulare magazin: cont, autentificare, cos, checkout. Doar tokeni. */

.pullup:has(.sheet),
.pullup:has(.acct),
.pullup:has(.chk) {
  padding-bottom: clamp(72px, 10vw, 128px);
}

.sheet {
  width: min(560px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sheet--wide,
.sheet.sheet--wide {
  width: min(980px, 100%);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fld {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fld__control {
  position: relative;
  display: flex;
  align-items: center;
}

.fld__control .fld__in {
  width: 100%;
}

.fld__reveal {
  position: absolute;
  right: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--c-ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.fld__hint {
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-ink-2);
}

.fld__control:has(.fld__reveal) .fld__in {
  padding-right: 88px;
}

.fld__in {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-inner);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-size: 16px;
  padding: 12px 16px;
}

textarea.fld__in {
  min-height: 120px;
  resize: vertical;
}

.fld__in:focus {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

.fld__in.is-err {
  border-color: var(--c-red);
}

.fld__err {
  color: var(--c-red);
  font-size: 14px;
}

.fld--choice.is-err .choice input[type="checkbox"] {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
}

[data-accept-termeni-wrap] .fld__err {
  min-height: 1.35em;
  margin: 4px 0 0;
}

.acct {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.acct__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 96px;
}

.acct__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--c-ink);
}

.acct__nav a.is-on,
.acct__nav a:hover {
  background: var(--c-brown);
  color: var(--c-cream);
}

.acct__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.acct__main .stack {
  max-width: 640px;
}

.addr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addr {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
}

.addr__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  min-height: 44px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.pager {
  display: flex;
  gap: 10px;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: calc(var(--nav-bar-h, 88px) + 16px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  padding: 8px 8px 8px 20px;
  border-radius: var(--r-card);
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  box-shadow: var(--sh-float);
  animation: toast-in .28s var(--ease) both;
}

.toast__rows {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px 6px 0;
}

.toast__row {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--c-ink);
}

.toast__dot {
  width: 6px;
  height: 6px;
  margin-top: 0.48em;
  border-radius: 50%;
  flex: none;
  background: var(--c-ink-3);
}

.toast__row--ok .toast__dot { background: var(--c-green); }
.toast__row--warn .toast__dot { background: var(--c-brown); }
.toast__row--err .toast__dot { background: var(--c-red); }

.toast__msg {
  min-width: 0;
}

.toast__close {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}

@media (hover: hover) and (pointer: fine) {
  .toast__close:hover {
    background: var(--c-brown);
    color: var(--c-white);
  }
}

.toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 2px 0 0;
}

.toast__actions a,
.toast__actions button {
  font: inherit;
  font-size: 15px;
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  color: var(--c-ink);
  text-decoration: underline;
  cursor: pointer;
}

.cart-coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 0;
}

.cart-coupon .fld {
  flex: 1 1 140px;
  min-width: 0;
}

.cart-line__meta {
  margin: 2px 0 0;
  color: var(--c-ink-2);
}

.cart-line[aria-busy="true"] {
  opacity: 0.55;
}

.chk-lines {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chk-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.chk-line__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chk-line__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.chk-line__price {
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.conf__stock-hint {
  margin: -4px 0 8px;
  color: var(--c-ink-2);
}

.qty button[disabled],
.qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-stock-fix {
  margin: 4px 0 0;
}

.cart-stock-fix .btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.chk__submit[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.swatch-tip {
  position: absolute;
  z-index: 1200;
  max-width: min(240px, 90vw);
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--c-ink);
  color: var(--c-page);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  animation: toast-in 0.12s var(--ease) both;
}

.conf__sw .sw {
  position: relative;
}

.chk-line__img {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-page);
}

.chk-line__img .pcard-photo,
.chk-line__img .prodimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chk-line__title {
  color: inherit;
  text-decoration: none;
}

.chk-lines__edit {
  margin: 0 0 12px;
}

.toast.is-leaving {
  animation: toast-out .2s var(--ease) both;
  pointer-events: none;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.is-leaving { animation: none; }
}

.added {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  overflow: auto;
}

.added:not(.is-on) {
  position: relative;
  inset: auto;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 16px var(--gutter) 0;
  overflow: visible;
}

.added:not(.is-on) .added__scrim {
  display: none;
}

.added__scrim {
  position: absolute;
  inset: 0;
  background: var(--c-scrim);
  animation: added-scrim .2s var(--ease) both;
}

.added__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin: auto;
  padding: 28px 28px 24px;
  border-radius: var(--r-modal);
  background: var(--c-surface);
  box-shadow: var(--sh-modal);
  animation: added-in .28s var(--ease) both;
}

.added__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.added__head {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-right: 52px;
}

.added__title {
  margin: 0;
  min-width: 0;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.01em;
  --idot-t: .12em;
  --idot-s: .13em;
}

.added__title .idot {
  line-height: 1;
  height: 1em;
  vertical-align: baseline;
}

.added__note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: var(--r-inner);
  background: var(--c-page);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--c-ink);
}

.added__note + .added__note {
  margin-top: 10px;
}

.added__product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 12px;
  border-radius: var(--r-inner);
  background: var(--c-page);
}

.added__thumb {
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-thumb);
  overflow: hidden;
  background: var(--c-image-well);
}

.added__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.added__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.added__name {
  margin: 0;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.added__qty {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--c-ink-2);
}

.added__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.added__actions .btn {
  font-size: 16px;
}

.added.is-leaving {
  pointer-events: none;
}

.added.is-leaving .added__scrim {
  animation: added-scrim .16s var(--ease) reverse both;
}

.added.is-leaving .added__panel {
  animation: added-out .16s var(--ease) both;
}

@keyframes added-scrim {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes added-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes added-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 479px) {
  .added {
    padding: 0;
    align-items: flex-end;
  }

  .added__panel {
    width: 100%;
    padding: 22px 18px max(18px, env(safe-area-inset-bottom, 0px));
    border-radius: var(--r-modal) var(--r-modal) 0 0;
  }

  .added__title {
    font-size: 24px;
  }

  .added__product {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }

  .added__thumb {
    width: 80px;
  }
}

@media (max-height: 640px) and (min-width: 480px) {
  .added {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .added__scrim,
  .added__panel,
  .added.is-leaving .added__scrim,
  .added.is-leaving .added__panel {
    animation: none;
  }
}

.sum {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 500;
}

.cart-sum {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-sum__row {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-ink-2);
}

.cart-sum__row .price {
  font-size: 15px;
  font-weight: 400;
  color: var(--c-ink-2);
}

.cart-sum__total {
  margin: 6px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--c-ink);
}

.cart-sum__total .price {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.addr.cart-line {
  position: relative;
  display: grid;
  grid-template-areas: "img body acts";
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 14px 14px 14px;
  padding-inline-end: 14px;
}

.cart-line__img {
  grid-area: img;
}

.cart-line__body {
  grid-area: body;
}

.addr__acts.cart-line__acts {
  grid-area: acts;
}

.cart-line__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
}

.cart-line__remove-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: color var(--t-fast);
}

.cart-line__remove-btn svg {
  width: 10px;
  height: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .cart-line__remove-btn:hover {
    background: transparent;
    border-color: transparent;
    color: var(--c-red);
  }

  .cart-line__remove-btn:hover svg [data-acc] {
    stroke: currentColor;
  }
}

.cart-page__main {
  gap: clamp(16px, 2.5vw, 20px);
}

.cart-line__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline-end: 4px;
}

.cart-line__title {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.cart-line__unit {
  margin: 0;
}

.addr__acts.cart-line__acts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.cart-line__total {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.cart-line__img {
  position: relative;
  flex: none;
  width: clamp(128px, 18vw, 152px);
  aspect-ratio: 1;
  border-radius: var(--r-inner);
  overflow: hidden;
  background: var(--c-surface);
  display: block;
}

.cart-line__img .design-img,
.cart-line__img .pcard-photo,
.cart-line__img > .prodimg {
  position: absolute;
  box-sizing: border-box;
  display: block;
}

.cart-line__img .pcard-photo--fill,
.cart-line__img .design-img.pcard-photo--fill {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cart-line__img .pcard-photo--fit,
.cart-line__img .design-img.pcard-photo--fit {
  left: 50%;
  top: 50%;
  width: 86%;
  height: 86%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
}

.cart-line__img > .prodimg {
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-line__img .prodimg__ph {
  object-fit: contain;
  object-position: center;
}

.cart-line__img .pcard-photo--fit.prodimg__ph,
.cart-line__img > .prodimg .prodimg__ph {
  width: 43%;
  height: 43%;
  max-width: 43%;
  max-height: 43%;
}

.cart-qty {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--c-ink);
  border-radius: var(--r-pill);
  flex: none;
  overflow: hidden;
  background: var(--c-surface);
}

.cart-qty input[type="hidden"] {
  display: none;
}

.cart-qty button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 44px;
  min-width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.cart-qty button:first-of-type {
  border-radius: 999px 0 0 999px;
  color: var(--c-ink);
}

.cart-qty button:last-of-type {
  border-radius: 0 999px 999px 0;
  color: var(--c-green);
}

@media (hover: hover) and (pointer: fine) {
  .cart-qty button:first-of-type:hover {
    background: var(--c-page);
  }

  .cart-qty button:last-of-type:hover {
    background: var(--c-page);
  }
}

.cart-qty span {
  min-width: 28px;
  padding: 0 2px;
  text-align: center;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .acct {
    grid-template-columns: 1fr;
  }

  .acct__nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .addr:not(.cart-line) {
    flex-direction: column;
    align-items: flex-start;
  }

  .addr.cart-line {
    grid-template-areas:
      "img body"
      "acts acts";
    grid-template-columns: auto minmax(0, 1fr);
    padding-inline-end: 14px;
  }

  .cart-line__body {
    padding-inline-end: 36px;
  }

  .addr__acts.cart-line__acts {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    align-self: stretch;
    padding-block-start: 4px;
  }

  .cart-line__total {
    order: 0;
  }
}

.chk {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 320px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  box-sizing: border-box;
}

.chk__main {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
  min-width: 0;
}

.chk__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: sticky;
  top: 96px;
}

.chk__aside > .chk__sum {
  position: static;
}

.chk__block,
.chk__sum {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
}

.chk__block {
  gap: 16px;
}

.chk__block > .t-h3 {
  margin: 0;
}

.chk__sum {
  position: sticky;
  top: 96px;
  gap: clamp(12px, 2vw, 16px);
}

.chk__sum-title {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
}

.chk__sum-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chk__sum-rows .cart-sum__row,
.chk__sum-rows .cart-sum__total {
  margin: 0;
}

.chk__sum-rows .cart-sum__row .price {
  font-size: 15px;
  font-weight: 400;
  color: var(--c-ink);
}

.chk__sum-rows .cart-sum__total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--c-line);
}

.chk__sum-rows .cart-sum__total .price {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.chk__submit {
  margin-top: 8px;
}

.chk__submit .btn {
  min-height: 52px;
  padding-inline: clamp(24px, 4vw, 36px);
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  padding: 8px 0;
}

.choice input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--c-brown);
}

@media (max-width: 767px) {
  .chk {
    grid-template-columns: 1fr;
  }

  .chk__sum,
  .chk__aside {
    position: static;
  }
}

.nav__search {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: 44px;
  height: 44px;
  flex: none;
  flex-shrink: 0;
  z-index: 6;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav__search-toggle {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .nav__search-toggle:hover {
    background: rgba(255, 255, 255, .6);
  }
}

.nav__search-toggle:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

.nav__search-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition:
    opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav__search-glyph svg {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
}

.nav__search-glyph--close svg {
  width: 22px;
  height: 22px;
}

.nav__search-glyph--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.85);
}

.nav-shell.is-search-open .nav__search-glyph--search {
  opacity: 0;
  transform: rotate(90deg) scale(0.85);
}

.nav-shell.is-search-open .nav__search-glyph--close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav__search-input {
  position: absolute;
  top: 50%;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0 44px 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 42px;
  opacity: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transform: translateY(-50%);
  transform-origin: right center;
  transition:
    width 320ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 180ms ease,
    background-color 180ms ease;
}

.nav__search-input::placeholder {
  color: var(--c-ink-3);
  opacity: 0.85;
}

.nav__search-input::-webkit-search-decoration,
.nav__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.nav__search-input:focus {
  outline: none;
}

.nav-shell.is-search-open {
  overflow: visible;
}

.nav-shell.is-search-open .nav {
  overflow: visible;
}

.nav__r {
  overflow: visible;
}

.nav-shell.is-search-open .nav__search {
  z-index: 40;
}

.nav-shell.is-search-open .nav__search-input {
  width: var(--nav-search-width, min(70vw, 920px));
  height: 48px;
  line-height: 46px;
  padding: 0 48px 0 18px;
  opacity: 1;
  pointer-events: auto;
  border-color: var(--c-line-2);
  background: var(--c-surface);
}

.nav-search__hits {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: var(--nav-search-width, min(400px, 92vw));
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: min(480px, 70vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-card);
  box-shadow: var(--sh-float);
}

.nav-search__hits.is-fixed {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
}

.nav-search__hits[hidden] {
  display: none !important;
}

.nav-search__hit {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 8px 18px;
  color: inherit;
  border-top: 1px solid var(--c-line);
}

.nav-search__hit:first-child {
  border-top: 0;
}

.nav-search__hit img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--r-inner);
  background: var(--c-image-well);
}

.cms-body p {
  margin: 0 0 1em;
}

.cms-body a {
  color: inherit;
  border-bottom: 1px solid currentColor;
}

.stock-alert {
  margin-top: 8px;
  max-width: 420px;
}

.stock-alert__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}

.stock-alert__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
  flex: 1 1 10rem;
}

.stock-alert__solo {
  margin: 0;
}

/* Admin edit overlay (storefront, sesiune admin) — ca Nuvia */
.admin-edit-zone {
  position: relative;
}

.hero.admin-edit-zone {
  position: relative;
}

.pcard.admin-edit-zone {
  position: relative;
}

.catrow.admin-edit-zone {
  position: relative;
}

a.admin-edit-btn,
.admin-edit-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 40;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #c62828;
  text-decoration: none;
  cursor: pointer;
  flex: none;
  line-height: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero a.admin-edit-btn{
  top: 100px;
}
@media (hover: hover) and (pointer: fine) {
  a.admin-edit-btn:hover,
  .admin-edit-btn:hover {
    background: #fff;
    transform: scale(1.06);
    color: #b71c1c;
  }
}

a.admin-edit-btn svg,
.admin-edit-btn svg {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
}
