/* ds-core storefront components. Colours come from the theme tokens (--kc-*) with fallbacks. */
:root {
	--ds-primary: var(--kc-primary, #f26b3a);
	--ds-primary-deep: var(--kc-primary-deep, #d9532a);
	--ds-primary-soft: var(--kc-primary-soft, #ffe9df);
	--ds-ink: var(--kc-ink, #1e2a44);
	--ds-ink-soft: var(--kc-ink-soft, #4a5570);
	--ds-muted: var(--kc-muted, #8b94a8);
	--ds-line: var(--kc-line, #ebe5dc);
	--ds-surface: var(--kc-surface, #fff);
	--ds-sand: var(--kc-sand, #fbf3ea);
	--ds-sun: var(--kc-sun, #ffc83d);
	--ds-mint: var(--kc-mint, #2fbf8f);
	--ds-radius: var(--kc-radius, 16px);
	--ds-shadow: var(--kc-shadow, 0 12px 32px -12px rgba(30, 42, 68, .14));
	--ds-shadow-hover: var(--kc-shadow-hover, 0 24px 40px -16px rgba(30, 42, 68, .22));
	--ds-age-0: var(--kc-age-0, #e8739a);
	--ds-age-1: var(--kc-age-1, #2fbf8f);
	--ds-age-3: var(--kc-age-3, #ffb703);
	--ds-age-5: var(--kc-age-5, #f26b3a);
	--ds-age-7: var(--kc-age-7, #4f8fe8);
	--ds-age-9: var(--kc-age-9, #c957a7);
	--ds-ease: cubic-bezier(.2, .7, .2, 1);
}
.ds-icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* Kadence styles <button>, button:hover and button:focus globally; ds controls define every state themselves. */
button.ds-filters__more, button.ds-filters__more:hover, button.ds-filters__more:focus, button.ds-filters__more:active { background: var(--ds-surface); color: var(--ds-ink); border: 1.5px solid var(--ds-line); box-shadow: none; }
button.ds-filters__more:hover, button.ds-filters__more[aria-expanded="true"] { background: var(--ds-sand); border-color: var(--ds-sand); }

button.ds-filters__more:focus:not(:focus-visible) { outline: 0; }
button.ds-price__go, button.ds-price__go:hover, button.ds-price__go:focus { background: var(--ds-ink); color: #fff; box-shadow: none; border: 0; }
button.ds-price__go:hover { background: var(--ds-primary); }
button.ds-filters__reset, button.ds-filters__reset:hover, button.ds-filters__reset:focus { background: transparent; color: var(--ds-primary-deep); box-shadow: none; border: 0; }
button.ds-filters__reset:hover { background: var(--ds-primary-soft); }
.ds-pagination button, .ds-pagination button:hover, .ds-pagination button:focus { background: var(--ds-surface); color: var(--ds-ink); box-shadow: none; }
.ds-pagination button:hover { border-color: var(--ds-ink); }
.ds-pagination button[aria-current], .ds-pagination button[aria-current]:hover { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; }
.ds-chip input:focus:not(:focus-visible) + span { outline: 0; }

/* ---- Season deadline banner (in the header, under the top bar) ---- */
.ds-deadline { display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; background: var(--ds-primary); color: #fff; font-size: .9rem; font-weight: 600; padding: .5rem max(16px, env(safe-area-inset-left, 0px)); text-align: center; }
.ds-deadline .ds-icon { width: 1.25em; height: 1.25em; color: var(--ds-sun); }
.ds-deadline em { font-style: normal; background: rgba(255, 255, 255, .18); padding: .15em .6em; border-radius: 999px; font-weight: 800; }
@media (max-width: 600px) {
	.ds-deadline { font-size: .82rem; gap: .35rem; padding: .45rem 12px; line-height: 1.35; }
	/* The season line stays on one row on phones; the longer "orders paused" notice may wrap. */
	.ds-deadline:not(.ds-deadline--paused) { flex-wrap: nowrap; }
	.ds-deadline:not(.ds-deadline--paused) span { white-space: nowrap; font-size: clamp(.68rem, 3.3vw, .82rem); }
	.ds-deadline strong { display: none; }
	.ds-deadline .ds-icon { display: none; }
}
.ds-unavailable { background: var(--ds-sand); border-radius: 10px; padding: .75rem 1rem; font-weight: 700; color: var(--ds-ink-soft); }

/* ---- Cookie consent ---- */
.ds-consent { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 1300; max-width: 560px; margin: 0 auto; background: var(--ds-ink); color: #fff; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font-size: .92rem; }
.ds-consent p { margin: 0 0 .75rem; }
.ds-consent a { color: var(--ds-sun); }
.ds-consent__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ds-consent .button { padding: .55em 1.1em; font-size: .9rem; }
.ds-consent .button--ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .35); }

/* ---- Badges ---- */
.ds-age-badge { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 .8em; background: var(--ds-sun); color: var(--ds-ink); font-weight: 800; font-size: .76rem; line-height: 1; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.ds-card-meta { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; color: var(--ds-muted); margin: 0 0 .3rem; min-height: 1.2em; }
.ds-card-meta__brand { letter-spacing: .08em; text-transform: uppercase; }
.ds-card-meta__age { display: inline-flex; align-items: center; gap: .35em; color: var(--ds-ink-soft); }
.ds-card-meta__age::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ds-muted); }
.ds-card-meta__brand:empty + .ds-card-meta__age::before, .ds-card-meta__age:first-child::before { display: none; }
.ds-age-badge--large { font-size: .9rem; }
.ds-product-facts { display: flex; gap: .75rem; align-items: center; margin: 0 0 .75rem; }
.ds-product-facts .ds-brand { color: var(--ds-muted); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }

/* ---- Archive header ---- */
.ds-archive-head { margin: 1.5rem 0 1.25rem; }
.ds-breadcrumb { font-size: .92rem; color: var(--ds-ink-soft); margin-bottom: .6rem; }
.ds-breadcrumb a { color: var(--ds-ink-soft); text-decoration: none; }
.ds-breadcrumb a:hover { color: var(--ds-primary-deep); }
.ds-breadcrumb__sep { margin: 0 .5em; opacity: .6; }
.ds-archive-head__row { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ds-archive-head__title { margin: 0; font-size: 2.2rem; }
.ds-archive-head__count { color: var(--ds-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-archive-head__desc { color: var(--ds-ink-soft); max-width: 65ch; margin-top: .5rem; }

/* ---- Catalog layout: sidebar + main ---- */
.ds-archive-head { margin: 1.5rem 0 1.25rem; }
.ds-catalog { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.ds-catalog__main { min-width: 0; }
.ds-catalog ul.products { margin-top: 0; }

/* Toolbar above the grid */
.ds-toolbar { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.25rem; min-height: 44px; }
.ds-toolbar__count { color: var(--ds-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-toolbar__sort { position: relative; display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; }
.ds-toolbar__sort-label { font-size: .85rem; color: var(--ds-muted); font-weight: 700; }
.ds-toolbar__sort select { appearance: none; -webkit-appearance: none; min-height: 40px; padding: .4em 2.2em .4em 1em; border-radius: 999px; border: 1.5px solid var(--ds-line); background: var(--ds-surface); font: inherit; font-weight: 700; font-size: .9rem; color: var(--ds-ink); cursor: pointer; }
.ds-toolbar__sort-icon { position: absolute; right: .7em; pointer-events: none; color: var(--ds-muted); width: 1em; height: 1em; }
button.ds-toolbar__filters, button.ds-toolbar__filters:hover, button.ds-toolbar__filters:focus { display: none; align-items: center; gap: .45em; min-height: 40px; padding: 0 1em; border-radius: 999px; border: 1.5px solid var(--ds-line); background: var(--ds-surface); color: var(--ds-ink); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; box-shadow: none; white-space: nowrap; }
.ds-filters__active-count { background: var(--ds-primary); color: #fff; border-radius: 999px; font-size: .72rem; padding: .15em .5em; font-style: normal; }

/* Sidebar */
.ds-sidebar { position: static; }
.ds-filters { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); padding: 1rem 1.1rem 1.1rem; }
.ds-sidebar__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.ds-sidebar__title { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; font-size: 1.05rem; }
button.ds-filters__reset, button.ds-filters__reset:hover, button.ds-filters__reset:focus { margin-left: auto; border: 0; background: transparent; color: var(--ds-primary-deep); font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; padding: .2em .4em; border-radius: 6px; box-shadow: none; }
button.ds-filters__reset:hover { background: var(--ds-primary-soft); }
button.ds-sidebar__close, button.ds-sidebar__close:hover, button.ds-sidebar__close:focus { display: none; width: 36px; height: 36px; padding: 0; line-height: 1; border: 0; border-radius: 999px; background: var(--ds-sand); color: var(--ds-ink); place-items: center; cursor: pointer; box-shadow: none; }
.ds-facet { border: 0; margin: 0; padding: .9rem 0 0; border-top: 1px solid var(--ds-line); margin-top: .9rem; min-width: 0; }
.ds-facet__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ds-muted); font-weight: 800; padding: 0; margin-bottom: .5rem; }
.ds-facet__options { display: flex; flex-direction: column; gap: .15rem; }
.ds-option { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 36px; padding: .2rem .4rem; margin: 0 -.4rem; border-radius: 8px; cursor: pointer; font-size: .93rem; font-weight: 600; color: var(--ds-ink); }
.ds-option:hover { background: var(--ds-sand); }
.ds-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ds-option__box { width: 18px; height: 18px; flex: none; border: 2px solid #c9cfdb; border-radius: 5px; background: var(--ds-surface); transition: background .12s, border-color .12s; position: relative; }
.ds-option input:checked + .ds-option__box { background: var(--ds-ink); border-color: var(--ds-ink); }
.ds-option input:checked + .ds-option__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.ds-kb .ds-option input:focus + .ds-option__box { outline: 3px solid var(--ds-sun); outline-offset: 2px; }
.ds-option__label { flex: 1; min-width: 0; }
.ds-option__count { color: var(--ds-muted); font-size: .8rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.ds-option--age .ds-chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ds-chip-color, var(--ds-muted)); flex: none; }
.ds-option--age input:checked + .ds-option__box { background: var(--ds-chip-color); border-color: var(--ds-chip-color); }
.ds-chip--jucarii-bebelusi { --ds-chip-color: var(--ds-age-0); }
.ds-chip--1-2-ani { --ds-chip-color: var(--ds-age-1); }
.ds-chip--3-4-ani { --ds-chip-color: var(--ds-age-3); }
.ds-chip--5-6-ani { --ds-chip-color: var(--ds-age-5); }
.ds-chip--7-8-ani { --ds-chip-color: var(--ds-age-7); }
.ds-chip--9-12-ani { --ds-chip-color: var(--ds-age-9); }
.ds-option--switch { margin-top: .1rem; }
.ds-price { display: flex; align-items: center; gap: .4rem; }
.ds-price label { flex: 1; min-width: 0; }
.ds-price input[type="number"] { width: 100%; min-height: 38px; padding: .3em .7em; border-radius: 999px; border: 1.5px solid var(--ds-line); font: inherit; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ds-price input:focus { outline: 0; border-color: var(--ds-ink); }
.ds-price__sep { color: var(--ds-muted); }
button.ds-price__go, button.ds-price__go:hover, button.ds-price__go:focus { min-height: 38px; padding: 0 .9em; border-radius: 999px; border: 0; background: var(--ds-ink); color: #fff; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; box-shadow: none; flex: none; }
button.ds-price__go:hover { background: var(--ds-primary); }
.ds-price__quick { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
button.ds-price__preset, button.ds-price__preset:hover, button.ds-price__preset:focus { border: 1.5px solid var(--ds-line); background: var(--ds-surface); color: var(--ds-ink); border-radius: 999px; padding: .3em .75em; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: none; }
button.ds-price__preset:hover, button.ds-price__preset.is-active { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; }
.ds-sidebar__foot { display: none; }
.ds-sidebar__backdrop { position: fixed; inset: 0; background: rgba(30, 42, 68, .45); z-index: 1100; }
.ds-is-loading ul.products { opacity: .45; pointer-events: none; transition: opacity .2s; }
.ds-empty { text-align: center; padding: 3rem 1rem; color: var(--ds-ink-soft); background: var(--ds-sand); border-radius: var(--ds-radius); }
.ds-empty__icon { width: 2.4rem; height: 2.4rem; color: var(--ds-primary); }
.ds-empty__title { font-weight: 800; color: var(--ds-ink); margin: .5rem 0 .25rem; font-size: 1.1rem; }
.ds-pagination { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0; }
.ds-pagination button, .ds-pagination button:hover, .ds-pagination button:focus { min-width: 44px; min-height: 44px; padding: 0 .6em; border-radius: 12px; border: 1.5px solid var(--ds-line); background: var(--ds-surface); cursor: pointer; font: inherit; font-weight: 800; color: var(--ds-ink); box-shadow: none; }
.ds-pagination button:hover { border-color: var(--ds-ink); }
.ds-pagination button[aria-current], .ds-pagination button[aria-current]:hover { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; }

/* Mobile / tablet: sidebar becomes a bottom sheet */
@media (max-width: 900px) {
	.ds-catalog { grid-template-columns: 1fr; gap: 0; }
	button.ds-toolbar__filters, button.ds-toolbar__filters:hover, button.ds-toolbar__filters:focus { display: inline-flex; }
	button.ds-toolbar__filters:hover { background: var(--ds-sand); }
	.ds-toolbar { flex-wrap: wrap; gap: .6rem .9rem; }
	.ds-toolbar__count { white-space: nowrap; }
	.ds-toolbar__sort-label { display: none; }
	.ds-toolbar__sort select { max-width: 170px; }
	.ds-sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1200; max-height: 86vh; transform: translateY(105%); transition: transform .3s var(--ds-ease); }
	.ds-sidebar.is-open { transform: none; }
	.ds-sidebar .ds-filters { border-radius: 24px 24px 0 0; border: 0; box-shadow: 0 -20px 50px rgba(30, 42, 68, .25); max-height: 86vh; overflow: auto; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
	/* The close button sits at the right edge whether or not „Șterge tot” is shown. */
	button.ds-sidebar__close, button.ds-sidebar__close:hover, button.ds-sidebar__close:focus { display: grid; flex: none; margin-left: auto; }
	button.ds-filters__reset:not([hidden]) + button.ds-sidebar__close { margin-left: 0; }
	/* Title row and the apply button stay in place while the options scroll between them. */
	.ds-sidebar .ds-filters { padding: .75rem .75rem calc(1rem + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; }
	.ds-sidebar .ds-sidebar__head { position: sticky; top: -.75rem; z-index: 3; margin: -.75rem -.75rem .5rem; padding: .9rem .75rem .6rem; background: var(--ds-surface); border-radius: 24px 24px 0 0; }
	.ds-sidebar__foot { display: block; position: sticky; z-index: 3; bottom: calc(-1rem - env(safe-area-inset-bottom, 0px)); margin: 1rem -.75rem calc(-1rem - env(safe-area-inset-bottom, 0px)); padding: .75rem .75rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: var(--ds-surface); box-shadow: 0 -10px 18px -12px rgba(30, 42, 68, .25); }
	.ds-sidebar__apply { width: 100%; text-align: center; }
	body.ds-sheet-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ds-sidebar { transition: none; } }
@media (max-width: 420px) {
	.ds-toolbar__sort { margin-left: 0; width: 100%; }
	.ds-toolbar__sort select { width: 100%; max-width: none; }
}

.ds-stock-badge { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 .65em; background: var(--ds-primary); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .02em; line-height: 1; border-radius: 6px; white-space: nowrap; }
.ds-stock-badge--out { background: var(--ds-ink-soft); color: #fff; }

/* ---- Product page: facts under the buy button + collapsed details ---- */
.ds-facts { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--ds-line); display: flex; flex-direction: column; gap: .45rem; font-size: .92rem; font-weight: 600; color: var(--ds-ink-soft); }
.ds-facts li { display: flex; align-items: center; gap: .6rem; }
.ds-facts .ds-icon { width: 1.3em; height: 1.3em; color: var(--ds-primary); }
.ds-facts a { color: var(--ds-primary-deep); font-weight: 700; }
.ds-facts .amount { color: var(--ds-ink); }
.ds-details { margin: 1.25rem 0 0; border-top: 1px solid var(--ds-line); }
.ds-details__item { border-bottom: 1px solid var(--ds-line); }
.ds-details__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; cursor: pointer; font-weight: 800; list-style: none; }
.ds-details__item summary::-webkit-details-marker { display: none; }
.ds-details__icon { width: 1.1em; height: 1.1em; color: var(--ds-muted); transition: transform .2s var(--ds-ease); }
.ds-details__item[open] .ds-details__icon { transform: rotate(180deg); }
.ds-details__body { padding: 0 0 1rem; color: var(--ds-ink-soft); font-size: .95rem; max-width: 60ch; }
.ds-details__body p:last-child { margin-bottom: 0; }

/* ---- Load more ---- */
.ds-load-more { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 2rem 0 1rem; }
.ds-load-more__btn { min-width: 220px; }
.ds-load-more__status { font-size: .82rem; color: var(--ds-muted); font-variant-numeric: tabular-nums; }

/* ---- Recommendation blocks ---- */
.ds-reco { margin: 3.5rem 0 1rem; }
.ds-reco__title { font-size: 1.5rem; margin: 0 0 1rem; }
.ds-reco--compact { margin: 2rem 0; }
.ds-reco--compact ul.products li.product .woocommerce-loop-product__title { font-size: .9rem; min-height: 0; }

/* ---- Cart nudge ---- */
.ds-nudge { display: flex; flex-direction: column; gap: .6rem; background: var(--ds-sand); border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 1.25rem; font-weight: 700; color: var(--ds-ink); }
.ds-nudge__text { display: flex; align-items: flex-start; gap: .5rem; line-height: 1.35; }
.ds-nudge__text > span, .ds-nudge--ok > span { flex: 1 1 auto; min-width: 0; }
.ds-nudge__short { display: none; }
@media (max-width: 480px) {
	.ds-nudge__long { display: none; }
	.ds-nudge__short { display: inline; }
	.ds-nudge { padding: .8rem .9rem; }
	/* 14px: the short text fits one line at 390px (measured 256 of 269px); narrower phones wrap normally. */
	.ds-nudge__text { font-size: .875rem; gap: .45rem; }
}
.ds-nudge .ds-icon { flex: none; margin-top: .05em; }
.ds-nudge .ds-icon { color: var(--ds-primary); width: 1.4em; height: 1.4em; }
.ds-nudge--ok { background: #e8f8f1; flex-direction: row; align-items: center; gap: .5rem; }
.ds-nudge--ok .ds-icon { color: var(--ds-mint); }
.ds-nudge__bar { height: 8px; background: rgba(30, 42, 68, .08); border-radius: 999px; overflow: hidden; }
.ds-nudge__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ds-sun), var(--ds-primary)); border-radius: 999px; transition: width .5s var(--ds-ease); }

/* ---- Homepage: age cards, tiles ---- */
.ds-age-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.ds-age-card { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 1.4rem 1.25rem 1.2rem; border-radius: 20px; background: var(--ds-surface); border: 2px solid var(--ds-line); color: var(--ds-ink); text-decoration: none; overflow: hidden; transition: transform .25s var(--ds-ease), box-shadow .25s var(--ds-ease), border-color .25s; }
.ds-age-card::before { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--ds-age-color); opacity: .16; transition: transform .3s var(--ds-ease); }
.ds-age-card:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow-hover); border-color: var(--ds-age-color); color: var(--ds-ink); }
.ds-age-card:hover::before { transform: scale(1.25); }
.ds-age-card:active { transform: scale(.98); }
.ds-age-card__numeral { font-family: var(--kc-display, inherit); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--ds-age-color); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ds-age-card__label { font-weight: 800; font-size: 1.02rem; margin-top: .5rem; }
.ds-age-card__meta { font-size: .82rem; color: var(--ds-muted); }
.ds-age-card__arrow { position: absolute; right: 1rem; bottom: 1.1rem; width: 1.3rem; height: 1.3rem; color: var(--ds-age-color); opacity: 0; transform: translateX(-6px); transition: all .25s var(--ds-ease); }
.ds-age-card:hover .ds-age-card__arrow { opacity: 1; transform: none; }
.ds-age-card--jucarii-bebelusi { --ds-age-color: var(--ds-age-0); }
.ds-age-card--1-2-ani { --ds-age-color: var(--ds-age-1); }
.ds-age-card--3-4-ani { --ds-age-color: var(--ds-age-3); }
.ds-age-card--5-6-ani { --ds-age-color: var(--ds-age-5); }
.ds-age-card--7-8-ani { --ds-age-color: var(--ds-age-7); }
.ds-age-card--9-12-ani { --ds-age-color: var(--ds-age-9); }

.ds-tiles { display: grid; gap: 1rem; }
.ds-tiles--type { grid-template-columns: repeat(4, 1fr); }
.ds-tiles--budget { grid-template-columns: repeat(4, 1fr); }
/* Phones show six types in three even rows; the rest stay in the menu. */
/* Phones: the types are one row you swipe sideways (all of them), bleeding to the screen edges. */
@media (max-width: 719px) {
	.ds-tiles.ds-tiles--type { display: flex; gap: .6rem; margin-inline: -16px; padding: 0 16px .25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.ds-tiles--type::-webkit-scrollbar { display: none; }
	.ds-tiles--type .ds-tile { flex: 0 0 38%; min-width: 0; padding: .9rem .85rem; border-radius: 16px; scroll-snap-align: start; }
	.ds-tiles--type .ds-tile:hover { transform: none; }
	.ds-tiles--type .ds-tile__icon { width: 1.7rem; height: 1.7rem; margin-bottom: .35rem; }
	.ds-tiles--type .ds-tile__title { font-size: .9rem; line-height: 1.25; }
	.ds-tiles--type .ds-tile__meta { font-size: .75rem; }
}
.ds-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1.25rem; border-radius: 18px; background: var(--ds-sand); color: var(--ds-ink); text-decoration: none; transition: transform .25s var(--ds-ease), background .25s; min-height: 140px; }
.ds-tile:hover { transform: translateY(-3px); background: var(--ds-primary-soft); color: var(--ds-ink); }
.ds-tile__icon { width: 2.2rem; height: 2.2rem; color: var(--ds-primary); margin-bottom: .5rem; }
.ds-tile__figure { font-family: var(--kc-display, inherit); font-size: 2rem; font-weight: 700; color: var(--ds-primary); line-height: 1; margin-bottom: .5rem; letter-spacing: -.02em; }
.ds-tile__figure small { font-size: .9rem; margin-left: .25em; color: var(--ds-ink-soft); font-weight: 700; }
.ds-tile__title { font-weight: 800; font-size: 1rem; margin-top: auto; }
.ds-tile__meta { font-size: .8rem; color: var(--ds-muted); }

/* ---- Floating cart + toast ---- */
.ds-cart-fab { display: none; position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 999; align-items: center; gap: .4em; background: var(--ds-ink); color: #fff; border-radius: 999px; padding: .75em 1em; font-weight: 800; text-decoration: none; box-shadow: 0 12px 28px -8px rgba(30, 42, 68, .5); transition: transform .15s var(--ds-ease); }
.ds-cart-fab .ds-icon { width: 1.4em; height: 1.4em; }
.ds-cart-fab:hover { transform: scale(1.05); color: #fff; }
.ds-cart-fab__count { background: var(--ds-sun); color: var(--ds-ink); border-radius: 999px; padding: .15em .55em; font-size: .85em; font-variant-numeric: tabular-nums; }
.ds-cart-fab.is-bump, .kc-cart.is-bump { animation: ds-bump .45s var(--ds-ease); }
@keyframes ds-bump { 30% { transform: scale(1.18); } }
.ds-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); background: var(--ds-ink); color: #fff; padding: .85em 1.1em .85em .9em; border-radius: 14px; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ds-ease), visibility .2s; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .4); display: flex; gap: .9rem; align-items: center; font-weight: 700; max-width: calc(100vw - 32px); }
.ds-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ds-toast__icon { width: 1.5em; height: 1.5em; color: var(--ds-mint); }
.ds-toast a { color: var(--ds-sun); text-decoration: underline; white-space: nowrap; }

/* ---- Scroll reveal: content is always visible; only a small slide-in on first view ---- */
@media (prefers-reduced-motion: no-preference) {
	.js .ds-reveal { transform: translateY(12px); transition: transform .5s var(--ds-ease); }
	.js .ds-reveal.is-in { transform: none; }
}

@media (max-width: 900px) {
	.ds-age-grid { grid-template-columns: repeat(3, 1fr); }
	.ds-tiles--type { grid-template-columns: repeat(2, 1fr); }
	.ds-filters__tools { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
	.ds-age-grid { grid-template-columns: repeat(2, 1fr); }
	.ds-tiles--budget { grid-template-columns: 1fr 1fr; }
	.ds-age-card__numeral { font-size: 2.1rem; }
	.ds-archive-head__title { font-size: 1.7rem; }
	.ds-filters { padding: .75rem; }
	.ds-chip span { min-height: 40px; }
}

/* Brand index ([ds_brand_index], page /branduri/): instant filter + A–Z grid. */
.ds-brand-index { margin: 1rem 0 2.5rem; }
.ds-brand-search { position: relative; display: block; max-width: 420px; margin: 0 0 1.5rem; }
.ds-brand-head h1 { margin: 0 0 .35rem; }
.ds-brand-head p { margin: 0 0 1.5rem; color: var(--ds-ink-soft); }
.ds-brand-index .ds-brand-search input[type="search"] { width: 100%; height: 48px; padding: 0 1rem 0 2.75rem; border: 1px solid var(--ds-line, #ebe5dc); border-radius: 999px; background: var(--ds-sand); font-size: 16px; box-shadow: none; }
.ds-brand-index .ds-brand-search input[type="search"]:focus { outline: 2px solid var(--ds-primary); outline-offset: 2px; background: #fff; }
.ds-brand-search__icon { position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ds-muted, #8b94a8); pointer-events: none; }
.ds-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.ds-brand-card { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; background: var(--ds-sand); color: var(--ds-ink); text-decoration: none; transition: transform .2s var(--ds-ease), background .2s; }
.ds-brand-card:hover { transform: translateY(-2px); background: var(--ds-primary-soft); color: var(--ds-ink); }
.ds-brand-card[hidden] { display: none; }
.ds-brand-card__initial { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ds-primary); }
.ds-brand-card__name { font-weight: 800; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.ds-brand-card__meta { font-size: .85rem; color: var(--ds-muted, #8b94a8); }
.ds-brand-empty { color: var(--ds-muted, #8b94a8); }
@media (max-width: 480px) { .ds-brand-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .ds-brand-card { grid-template-columns: 1fr; padding: .8rem .9rem; } .ds-brand-card__initial { display: none; } .ds-brand-card__name { font-size: .98rem; } }

/* Age cards with a photo (theme filter ds_core_age_card_image). */
.ds-age-card--photo { padding-top: 0; }
.ds-age-card__photo { display: block; margin: 0 -1.25rem .9rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ds-sand); }
.ds-age-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ds-ease); }
.ds-age-card--photo:hover .ds-age-card__photo img { transform: scale(1.04); }
.ds-age-card--photo::before { top: auto; bottom: -40px; }
.ds-age-card--photo .ds-age-card__numeral { font-size: 2.1rem; }
.ds-age-card--photo .ds-age-card__label { margin-top: .25rem; }
/* Phones: the age cards are one row you swipe sideways, like the types. */
@media (max-width: 719px) {
	.ds-age-grid { display: flex; gap: .6rem; margin-inline: -16px; padding: 0 16px .35rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.ds-age-grid::-webkit-scrollbar { display: none; }
	.ds-age-grid .ds-age-card { flex: 0 0 42%; min-width: 0; padding: 0 .9rem .9rem; border-radius: 16px; scroll-snap-align: start; }
	.ds-age-grid .ds-age-card:hover { transform: none; }
	.ds-age-grid .ds-age-card__photo { margin: 0 -.9rem .6rem; }
	.ds-age-grid .ds-age-card__numeral { font-size: 1.6rem; }
	.ds-age-grid .ds-age-card__label { font-size: .9rem; }
	.ds-age-grid .ds-age-card__meta { font-size: .74rem; }
}

/* Season banner (theme filter ds_core_season_image). */
.ds-season-banner { display: block; margin: 0 0 1.5rem; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 1; background: var(--ds-sand); }
.ds-season-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .ds-season-banner { aspect-ratio: 2 / 1; border-radius: 18px; } }

/* Product cards: bigger price (beats Kadence's .woocommerce selector), cart icon, secondary "Vezi produsul". */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount { font-family: var(--kc-display, inherit); font-size: 1.3rem; font-weight: 700; color: var(--ds-ink); line-height: 1.2; }
.woocommerce ul.products li.product .price del .amount { font-size: .95rem; font-weight: 500; color: var(--ds-muted); }
.woocommerce ul.products li.product .price ins .amount { color: var(--ds-primary-deep); }
.woocommerce ul.products li.product a.button { display: inline-flex; align-items: center; justify-content: center; gap: .45em; }
.ds-btn__icon { width: 1.1em; height: 1.1em; flex: none; }
.woocommerce ul.products li.product a.button.ds-btn--secondary { background: transparent; color: var(--ds-ink); box-shadow: inset 0 0 0 2px var(--ds-ink); }
.woocommerce ul.products li.product a.button.ds-btn--secondary:hover { background: var(--ds-ink); color: #fff; }
@media (max-width: 560px) { .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .price .amount { font-size: 1.12rem; } }

/* Favorites heart: top right of the card image; on the product page an inline text button. */
ul.products li.product { position: relative; }
.ds-fav { position: absolute; top: .9rem; right: .9rem; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ds-ink); box-shadow: 0 4px 14px -6px rgba(30, 42, 68, .35); cursor: pointer; transition: transform .2s var(--ds-ease), color .2s; }
.ds-fav:hover { transform: scale(1.08); color: var(--ds-primary); }
.ds-fav__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.ds-fav.is-on { color: var(--ds-primary); }
.ds-fav.is-on .ds-fav__icon { fill: currentColor; }
.ds-fav.is-on .ds-fav__icon { animation: ds-fav-pop .3s var(--ds-ease); }
@keyframes ds-fav-pop { 50% { transform: scale(1.3); } }
.ds-fav--inline { position: static; display: inline-flex; gap: .5rem; width: auto; height: auto; margin: .75rem 0 0; padding: .55rem .9rem; border-radius: 999px; background: var(--ds-sand); box-shadow: none; font-weight: 700; font-size: .95rem; }
.ds-fav--inline:hover { transform: none; background: var(--ds-primary-soft); }
.ds-favorites { margin: 0 0 2.5rem; }
.ds-favorites .ds-brand-head { margin-bottom: 1.5rem; }
.ds-favorites .ds-brand-head p { margin: 0; }
.ds-favorites__empty p { color: var(--ds-ink-soft); margin: 0 0 1rem; }
@media (prefers-reduced-motion: reduce) { .ds-fav, .ds-fav.is-on .ds-fav__icon { transition: none; animation: none; } }

/* Age gift guides: comparison table, FAQ, links to neighbours. Product page "Pe scurt". */
.ds-table-wrap { overflow-x: auto; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.ds-table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; }
.ds-table th, .ds-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--ds-line); vertical-align: top; }
.ds-table thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted); background: var(--ds-sand); white-space: nowrap; }
.ds-table tbody tr:last-child th, .ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-table tbody th { font-weight: 700; min-width: 220px; }
.ds-table td:nth-child(3) { white-space: nowrap; font-weight: 700; }
.ds-faq__item { padding: 1rem 0; border-bottom: 1px solid var(--ds-line); max-width: 78ch; }
.ds-faq__item h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.ds-faq__item p { margin: 0; color: var(--ds-ink-soft); }
.ds-guide__links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 0; }
.ds-guide__intro { max-width: 70ch; font-size: 1.1rem; color: var(--ds-ink-soft); }
.ds-guide__updated { font-size: .85rem; color: var(--ds-muted); margin: .5rem 0 0; }
.ds-glance { margin: 1rem 0 0; padding: 1rem 1.1rem; border-radius: 16px; background: var(--ds-sand); }
.ds-glance__title { margin: 0 0 .5rem; font-size: 1rem; }
.ds-glance dl { margin: 0; display: grid; gap: .35rem; }
.ds-glance dl > div { display: grid; grid-template-columns: 150px 1fr; gap: .75rem; font-size: .95rem; }
.ds-glance dt { color: var(--ds-muted); font-weight: 600; }
.ds-glance dd { margin: 0; font-weight: 700; }
@media (max-width: 480px) { .ds-glance dl > div { grid-template-columns: 120px 1fr; } .ds-table th, .ds-table td { padding: .65rem .75rem; } }

/* Card button never wraps and keeps its icon. */
ul.products li.product { container-type: inline-size; }
.woocommerce ul.products li.product a.button { white-space: nowrap; padding-left: .6em; padding-right: .6em; }
/* The cart icon always stays; narrow cards get a slightly smaller label and tighter gaps instead. */
@container (max-width: 215px) { .woocommerce ul.products li.product a.button { font-size: .85rem; gap: .35em; padding-left: .5em; padding-right: .5em; } }
@container (max-width: 170px) { .woocommerce ul.products li.product a.button { font-size: .78rem; gap: .3em; padding-left: .35em; padding-right: .35em; } .woocommerce ul.products li.product a.button .ds-btn__icon { width: 1em; height: 1em; } }
/* The narrowest phones (360px, two cards per row): still one line, icon kept. */
@container (max-width: 150px) { .woocommerce ul.products li.product a.button { font-size: .72rem; gap: .25em; padding-left: .2em; padding-right: .2em; letter-spacing: -.01em; } .woocommerce ul.products li.product a.button .ds-btn__icon { width: .95em; height: .95em; } }

/* Card meta stays on one line: a long brand is cut with an ellipsis, the age never wraps. */
.ds-card-meta { flex-wrap: nowrap; min-width: 0; }
.ds-card-meta__brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-card-meta__age { flex: none; white-space: nowrap; }

/* "Pe scurt": the label column fits its longest label, nothing wraps mid-label. */
.ds-glance dl > div { grid-template-columns: minmax(0, max-content) 1fr; column-gap: 1rem; }
.ds-glance dl { grid-template-columns: max-content 1fr; column-gap: 1rem; }
.ds-glance dl > div { display: contents; }
.ds-glance dt { white-space: nowrap; }

/* Guide table on phones: one card per toy (name, then age · price, then what it develops), no side scroll. */
@media (max-width: 640px) {
	.ds-table-wrap { border: 0; background: none; overflow: visible; }
	.ds-table, .ds-table tbody, .ds-table tr, .ds-table th, .ds-table td { display: block; }
	.ds-table thead { display: none; }
	.ds-table tbody tr { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; row-gap: .15rem; padding: .85rem 1rem; margin-bottom: .6rem; border: 1px solid var(--ds-line); border-radius: 14px; background: var(--ds-surface); }
	.ds-table tbody th, .ds-table tbody td { padding: 0; border: 0; min-width: 0; }
	.ds-table tbody th { grid-column: 1 / -1; }
	.ds-table td:nth-child(2) { color: var(--ds-ink-soft); }
	.ds-table td:nth-child(3) { justify-self: end; }
	.ds-table td:nth-child(4) { grid-column: 1 / -1; font-size: .88rem; color: var(--ds-muted); }
}

/* Card button right after adding: same orange, the label gives way to a check mark that draws itself;
   after ~2.5 s the label fades back so the product can be added again. */
.ds-btn__check { width: 24px; height: 24px; flex: none; animation: ds-check-pop .35s var(--ds-ease) both; }
.ds-btn__check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: ds-check-draw .4s .1s ease-out forwards; }
.woocommerce ul.products li.product a.button.ds-is-back > * { animation: ds-label-in .35s var(--ds-ease) both; }
@keyframes ds-check-pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } to { transform: scale(1); } }
@keyframes ds-check-draw { to { stroke-dashoffset: 0; } }
@keyframes ds-label-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ds-btn__check, .ds-btn__check path, .woocommerce ul.products li.product a.button.ds-is-back > * { animation: none; stroke-dashoffset: 0; } }

/* Favorites heart: just the icon, no circle behind it; orange and filled when saved. */
.ds-fav, .ds-fav:hover, .ds-fav:focus, .ds-fav:active, .ds-fav.is-on { background: none !important; box-shadow: none !important; border: 0; }
.ds-fav { width: 36px; height: 36px; top: .75rem; right: .75rem; color: var(--ds-ink); }
.ds-fav__icon { width: 26px; height: 26px; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
.ds-fav:hover, .ds-fav.is-on { color: var(--ds-primary); transform: none; }
.ds-fav:hover .ds-fav__icon { transform: scale(1.1); }
.ds-fav--inline { padding: .35rem 0; color: var(--ds-ink); }
.ds-fav--inline .ds-fav__icon { filter: none; }
.ds-fav--inline:hover, .ds-fav--inline.is-on { color: var(--ds-primary-deep); }

/* "Încarcă mai multe": navy, so it is not mistaken for the orange buy button. */
.ds-load-more .ds-load-more__btn, .woocommerce .ds-load-more .ds-load-more__btn { background: var(--ds-ink); color: #fff; box-shadow: none; }
.ds-load-more .ds-load-more__btn:hover, .woocommerce .ds-load-more .ds-load-more__btn:hover { background: #2c3a5c; color: #fff; box-shadow: none; }
.ds-fav.ds-fav--inline { width: auto; height: auto; white-space: nowrap; }

/* Toast: message and link each on one line, also on phones. */
.ds-toast { max-width: calc(100vw - 24px); }
.ds-toast span, .ds-toast a { white-space: nowrap; }
@media (max-width: 420px) { .ds-toast { gap: .6rem; padding-left: .9rem; padding-right: .9rem; font-size: .92rem; } }

/* The check after adding survives the theme's "added" rules (font-size: 0, em-sized icons). */
.woocommerce ul.products li.product a.button.ds-is-added { font-size: .9rem !important; }
.woocommerce ul.products li.product a.button .ds-btn__check { width: 24px !important; height: 24px !important; display: block; }

/* Mini cart panel under the header cart button. */
.kc-cart-wrap { position: relative; flex: none; display: flex; }
.ds-minicart { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1100; width: 340px; max-width: calc(100vw - 24px); padding: 1rem; border-radius: 18px; background: var(--ds-surface); border: 1px solid var(--ds-line); box-shadow: 0 24px 48px -18px rgba(30, 42, 68, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.ds-minicart::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge between button and panel */
.kc-cart-wrap.is-open .ds-minicart, .kc-cart-wrap:focus-within .ds-minicart { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .kc-cart-wrap:hover .ds-minicart { opacity: 1; visibility: visible; transform: none; } }
.ds-minicart__title { margin: 0 0 .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-muted); }
.ds-minicart__list { list-style: none; margin: 0; padding: 0; }
.ds-minicart__item { display: grid; grid-template-columns: 1fr auto auto; align-items: start; column-gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--ds-line); font-size: .9rem; }
.ds-minicart__item:first-child { border-top: 0; }
.ds-minicart__link { display: flex; align-items: flex-start; gap: .65rem; min-width: 0; color: var(--ds-ink); text-decoration: none; }
.ds-minicart__item img { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 10px; background: var(--ds-sand); }
.ds-minicart__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .3rem; line-height: 1.3; font-weight: 600; }
.ds-minicart__qty { margin-top: .3rem; line-height: 1.3; color: var(--ds-muted); white-space: nowrap; }
.ds-minicart__side { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; margin-top: .3rem; }
.ds-minicart__price { line-height: 1.3; font-weight: 800; white-space: nowrap; }
/* Remove from cart: under the price, shown when the row is hovered or focused; always there on touch screens. */
.ds-minicart__remove { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ds-sand); color: var(--ds-ink-soft); opacity: 0; transition: opacity .15s, background-color .15s, color .15s; }
.ds-minicart__remove svg { width: 12px; height: 12px; stroke-width: 2.6; }
.ds-minicart__item:hover .ds-minicart__remove, .ds-minicart__remove:focus-visible { opacity: 1; }
.ds-minicart__remove:hover, .ds-minicart__remove:focus-visible { background: var(--ds-primary); color: #fff; }
@media (hover: none) { .ds-minicart__remove { opacity: 1; width: 26px; height: 26px; } }
.ds-minicart__item.is-removing { opacity: .45; pointer-events: none; }
/* Favourites panel under the header heart: same look as the mini cart, hover only (on phones the heart opens the page). */
.kc-fav-wrap { position: relative; flex: none; display: flex; }
.ds-minifav { display: none; }
@media (hover: hover) and (min-width: 700px) {
	.ds-minifav { display: block; }
	.kc-fav-wrap:hover .ds-minifav, .kc-fav-wrap:focus-within .ds-minifav { opacity: 1; visibility: visible; transform: none; }
}
.ds-minifav__item { grid-template-columns: 1fr auto; }
.ds-minifav .ds-minicart__list { margin-bottom: .8rem; padding-bottom: .3rem; border-bottom: 1px solid var(--ds-line); }
.ds-minifav .ds-minicart__more { margin: -.3rem 0 .8rem; }
.ds-minifav__inner--empty p { margin: 0; color: var(--ds-ink-soft); font-size: .92rem; line-height: 1.45; }
.ds-minifav__loading { margin: 0; color: var(--ds-muted); font-size: .9rem; }
.ds-minicart__more { margin: .35rem 0 0; font-size: .85rem; color: var(--ds-muted); }
.ds-minicart__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .7rem 0; padding-top: .7rem; border-top: 1px solid var(--ds-line); font-size: .95rem; }
.ds-minicart__total strong { font-size: 1.1rem; white-space: nowrap; }
.ds-minicart .button { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; white-space: nowrap; }
.ds-minicart__inner--empty p { margin: 0 0 .8rem; color: var(--ds-ink-soft); }
@media (prefers-reduced-motion: reduce) { .ds-minicart { transition: none; } }

/* ---- Checkout: locality suggestions for the chosen county ---- */
.ds-city-field .woocommerce-input-wrapper { position: relative; display: block; }
.woocommerce form .form-row ul.ds-city-list, ul.ds-city-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: 280px; margin: 0; padding: .35rem; list-style: none; overflow-y: auto; overscroll-behavior: contain; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 12px; box-shadow: 0 18px 36px -16px rgba(30, 42, 68, .35); }
.ds-city-list[hidden] { display: none; }
.woocommerce form .form-row ul.ds-city-list li, ul.ds-city-list li { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 0; padding: .55rem .7rem; list-style: none; border-radius: 8px; font-size: 1rem; line-height: 1.3; color: var(--ds-ink); cursor: pointer; }
.ds-city-list li.is-active, .ds-city-list li:hover { background: var(--ds-sand); }
.ds-city-list li small { flex: none; font-size: .82rem; color: var(--ds-muted); white-space: nowrap; }
.ds-city-list li.ds-city-list__hint { justify-content: flex-start; color: var(--ds-muted); font-size: .9rem; cursor: default; background: transparent; }
.ds-breadcrumb--product { margin-bottom: 1rem; line-height: 1.5; }

/* ---- Withdrawal from contract (online function) ---- */
.ds-withdrawal { max-width: 560px; margin-top: 1.25rem; }
.ds-withdrawal__row { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1rem; }
.ds-withdrawal__row label { font-weight: 700; font-size: .92rem; color: var(--ds-ink); }
.ds-withdrawal .ds-withdrawal__row input[type], .ds-withdrawal .ds-withdrawal__row textarea { width: 100%; box-sizing: border-box; padding: .8em .9em; border: 2px solid var(--ds-line); border-radius: 10px; background: var(--ds-surface); font: inherit; font-size: 16px; color: var(--ds-ink); }
.ds-withdrawal__row input:focus, .ds-withdrawal__row textarea:focus { border-color: var(--ds-primary); outline: 0; }
.ds-withdrawal__row.has-error input { border-color: #c0392b; }
.ds-withdrawal__error { color: #a8281e; font-size: .85rem; font-weight: 600; }
.ds-withdrawal__required { color: #c0392b; }
.ds-withdrawal__optional { font-weight: 500; color: var(--ds-muted); }
.ds-withdrawal__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ds-withdrawal__submit { margin: 1.25rem 0 .5rem; }
.ds-withdrawal__submit .button { white-space: nowrap; }
.ds-withdrawal__note { margin: 0; font-size: .88rem; color: var(--ds-ink-soft); }
.ds-withdrawal__notice { padding: 1rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; line-height: 1.5; }
.ds-withdrawal__notice.is-ok { background: #e7f6ef; color: #14573f; }
.ds-withdrawal__notice.is-error { background: #fdecea; color: #a8281e; font-weight: 600; }

/* ---- Sizes of the same item (costumes, clothes) ---- */
.ds-sizes { margin: 0 0 1.25rem; }
.ds-sizes__title { display: block; margin-bottom: .5rem; font-weight: 800; font-size: .92rem; color: var(--ds-ink); }
.ds-sizes__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.ds-size { display: inline-flex; flex-direction: column; gap: .1rem; min-width: 96px; padding: .55rem .9rem; border: 2px solid var(--ds-line); border-radius: 12px; background: var(--ds-surface); color: var(--ds-ink); text-decoration: none; line-height: 1.2; transition: border-color .15s ease; }
.ds-size__label { font-weight: 800; white-space: nowrap; }
.ds-size small { font-size: .78rem; color: var(--ds-muted); white-space: nowrap; }
a.ds-size:hover { border-color: var(--ds-primary); color: var(--ds-ink); }
.ds-size.is-current { border-color: var(--ds-primary); box-shadow: 0 0 0 4px var(--ds-primary-soft); }
.ds-size.is-out { opacity: .6; }

/* ---- Gift set card: the three toys side by side (one large, two small) ---- */
.ds-mosaic { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 1 / 1; width: 100%; box-sizing: border-box; padding: 6px; margin-bottom: .8rem; border-radius: 14px; background: var(--ds-sand); overflow: hidden; }
body .woocommerce ul.products li.product .ds-mosaic img, .ds-mosaic img { display: block; width: 100% !important; height: 100% !important; min-height: 0; margin: 0 !important; aspect-ratio: auto; object-fit: contain; border-radius: 9px; background: #fff; }
body .woocommerce ul.products li.product .ds-mosaic img:first-child, .ds-mosaic img:first-child { grid-row: 1 / span 2; grid-column: 1; }

/* Spinner in "Adaugă în coș" while the product is being added (cards, product page, assistant). */
.ds-btn__spinner { width: 1.25em; height: 1.25em; flex: none; animation: ds-spin .7s linear infinite; }
.ds-btn__spinner circle { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 40 100; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ds-btn__spinner { animation-duration: 1.6s; } }
ul.products li.product a.button.loading::after, .single-product form.cart .single_add_to_cart_button.loading::after { display: none !important; content: none !important; }
/* Kadence adds its own loading and done icons to the card button; ours (spinner, then check) replace them. */
ul.products li.product a.button .kadence-svg-iconset { display: none !important; }
ul.products li.product a.button.loading { opacity: 1 !important; }
.single-product form.cart .single_add_to_cart_button.loading, .single-product form.cart .single_add_to_cart_button.loading:disabled { gap: .45em; opacity: 1 !important; }

/* Sort menu (desktop): button like the other toolbar pills, a soft card for the options, the chosen one ticked. */
.ds-toolbar__sort.is-enhanced select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ds-toolbar__sort.is-enhanced .ds-toolbar__sort-icon { right: .85em; transition: transform .15s; }
.ds-toolbar__sort.is-open .ds-toolbar__sort-icon { transform: rotate(180deg); }
button.ds-sort__btn, button.ds-sort__btn:hover, button.ds-sort__btn:focus { display: inline-flex; align-items: center; height: var(--kc-btn-h, 38px); min-height: 0; padding: 0 2.4em 0 1.1em; border: 1.5px solid var(--ds-line); border-radius: 999px; background: var(--ds-surface); color: var(--ds-ink); font-family: inherit; font-size: .9rem; font-weight: 800; line-height: 1; white-space: nowrap; box-shadow: none; cursor: pointer; transform: none; }
button.ds-sort__btn:hover, .ds-toolbar__sort.is-open button.ds-sort__btn { border-color: var(--ds-ink); background: var(--ds-surface); color: var(--ds-ink); }
button.ds-sort__btn:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 2px; }
.ds-sort__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(30, 42, 68, .3); }
.ds-sort__menu[hidden] { display: none; }
.ds-sort__item { position: relative; display: flex; align-items: center; height: 38px; padding: 0 2.2rem 0 .85rem; border-radius: 10px; font-size: .9rem; font-weight: 700; color: var(--ds-ink-soft); cursor: pointer; white-space: nowrap; }
.ds-sort__item.is-active { background: var(--ds-sand); color: var(--ds-ink); }
.ds-sort__item.is-selected { color: var(--ds-primary-deep); font-weight: 800; }
.ds-sort__item.is-selected::after { content: ""; position: absolute; right: .8rem; top: 50%; width: 6px; height: 11px; margin-top: -7px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Catalog pages: numbered page links instead of "Încarcă mai multe" (pills, same height as the other buttons).
   body-prefixed: WooCommerce and Kadence style these links with long selectors. */
body .ds-catalog nav.woocommerce-pagination { margin: 2rem 0 1rem; text-align: center; }
body .ds-catalog nav.woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; border: 0 !important; list-style: none; }
body .ds-catalog nav.woocommerce-pagination ul.page-numbers li { margin: 0; padding: 0; border: 0 !important; float: none; overflow: visible; background: none; }
body .ds-catalog nav.woocommerce-pagination ul.page-numbers li .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--kc-btn-h, 38px); height: var(--kc-btn-h, 38px); padding: 0 .75em; border: 1.5px solid var(--ds-line) !important; border-radius: 999px !important; background: var(--ds-surface); color: var(--ds-ink); font-size: .9rem; font-weight: 800; line-height: 1; text-decoration: none; box-shadow: none; }
body .ds-catalog nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover { border-color: var(--ds-ink) !important; background: var(--ds-surface); color: var(--ds-ink); }
body .ds-catalog nav.woocommerce-pagination ul.page-numbers li span.current { background: var(--ds-ink); border-color: var(--ds-ink) !important; color: #fff; }
body .ds-catalog nav.woocommerce-pagination ul.page-numbers li span.dots { border-color: transparent !important; background: transparent; min-width: 0; padding: 0 .2em; color: var(--ds-muted); }

/* Phones, product page: sticky buy bar (storefront.js) and a compact quantity stepper with a full-width button. */
.ds-buybar { display: none; }
@media (max-width: 719px) {
	.ds-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 997; display: flex; align-items: center; gap: .75rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom, 0px)); background: var(--ds-surface); border-top: 1px solid var(--ds-line); box-shadow: 0 -10px 30px -18px rgba(30, 42, 68, .35); transform: translateY(110%); transition: transform .22s var(--ds-ease, ease); }
	.ds-buybar.is-visible { transform: none; }
	.ds-buybar__price { flex: none; font-family: var(--kc-display, inherit); font-size: 1.25rem; font-weight: 700; color: var(--ds-ink); white-space: nowrap; }
	.ds-buybar__price del { display: block; font-size: .75rem; color: var(--ds-muted); font-weight: 400; }
	.ds-buybar__price ins { text-decoration: none; }
	button.ds-buybar__btn, button.ds-buybar__btn:hover, button.ds-buybar__btn:focus { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45em; height: 48px; min-height: 0; margin: 0; padding: 0 1em; border: 0; border-radius: 999px; background: var(--ds-primary); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 800; line-height: 1; box-shadow: 0 10px 22px -10px rgba(242, 107, 58, .8); transform: none; }
	button.ds-buybar__btn:disabled { opacity: 1; }
	.ds-buybar__btn .ds-btn__icon, .ds-buybar__btn .ds-btn__spinner { width: 1.3em; height: 1.3em; }
	/* The assistant button moves above the bar. */
	body.ds-buybar-on .ds-ai-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transition: bottom .22s; }
	body.single-product .kc-footer { padding-bottom: 72px; }
}

/* Product page stock line: plain "În stoc" in green; the count (orange) only when few are left. */
body.single-product div.product p.stock.ds-stock--ok { color: #1f9d6f !important; font-weight: 700; }
body.single-product div.product p.stock.ds-stock--low { color: var(--ds-primary-deep) !important; font-weight: 700; }

/* After the spinner, the button's label fades back in (cards, product page, sticky bar, assistant). */
@keyframes ds-text-in { from { color: transparent; } }
a.button.ds-is-back, button.ds-is-back { animation: ds-text-in .4s ease both; }
@media (prefers-reduced-motion: reduce) { a.button.ds-is-back, button.ds-is-back { animation: none; } }
/* Check mark on the product-page button and the sticky bar, in the shop's green. */
/* Same look as the cards: the button stays orange and full colour, only the white check mark shows. */
body.single-product div.product form.cart .single_add_to_cart_button.ds-is-added, body.single-product div.product form.cart .single_add_to_cart_button.loading, button.ds-buybar__btn.is-added, button.ds-buybar__btn:disabled { background: var(--ds-primary) !important; color: #fff !important; opacity: 1 !important; }
body.single-product div.product form.cart .single_add_to_cart_button.ds-is-added::before { display: none; }
body .single_add_to_cart_button .ds-btn__check, body .ds-buybar__btn .ds-btn__check { width: 22px !important; height: 22px !important; }
.ds-ai__add .ds-btn__check { width: 18px; height: 18px; }
/* WooCommerce adds a "Vezi coșul" link next to the button after adding; the check mark and the cart badge say it already. */
a.added_to_cart.wc-forward { display: none !important; }
/* Coupon code field: capitals while typing (the value is sent as written; WooCommerce ignores the case). */
#coupon_code { text-transform: uppercase; }
#coupon_code::placeholder { text-transform: none; }

/* Order status on the confirmation page and in the account (OrderProgress): the e-mails' four steps. */
.ds-progress { margin: 0 0 1.5rem; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-surface); }
.ds-progress__title { margin: 0 0 .8rem; font-size: 1rem; color: var(--ds-ink-soft); }
.ds-progress__title strong { color: var(--ds-ink); }
.ds-progress__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 0 !important; padding: 0 !important; list-style: none; }
.ds-progress__step { list-style: none; }
.ds-progress__step { margin: 0; }
.ds-progress__bar { display: block; height: 6px; border-radius: 6px; background: var(--ds-line); }
.ds-progress__step.is-done .ds-progress__bar, .ds-progress__step.is-current .ds-progress__bar { background: var(--ds-primary); }
.ds-progress__label { display: block; margin-top: .45rem; font-size: .82rem; font-weight: 600; color: var(--ds-muted); }
.ds-progress__step.is-done .ds-progress__label { color: var(--ds-ink-soft); }
.ds-progress__step.is-current .ds-progress__label { color: var(--ds-ink); font-weight: 800; }
.ds-progress--off { border-color: #f3c7b8; background: #fff6f2; }
.ds-progress--off .ds-progress__title { margin: 0 0 .35rem; color: var(--ds-primary-deep); font-weight: 800; }
.ds-progress__note { margin: .2rem 0 0; font-size: .92rem; color: var(--ds-ink-soft); }
@media (max-width: 480px) { .ds-progress { padding: .9rem; } .ds-progress__label { font-size: .7rem; line-height: 1.25; } }

/* Reductions (Storefront\Reductions): "-35%" next to the price, note under the price on the product page. */
.ds-off { display: inline-block; margin-left: .35em; padding: .1em .45em; border-radius: 6px; background: var(--ds-primary); color: #fff; font-size: .72em; font-weight: 800; line-height: 1.35; vertical-align: .15em; white-space: nowrap; }
.price ins { text-decoration: none; }
.ds-off-note { margin: -.35rem 0 .8rem; font-size: .8rem; line-height: 1.4; color: var(--ds-muted); }

/* Checkout delivery: home or locker (Shipping\LockerCheckout, assets/lockers.js). */
.ds-delivery__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.ds-delivery__option { position: relative; display: flex; align-items: center; gap: .8rem; margin: 0; padding: .9rem 1rem; border: 1.5px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.ds-delivery__option:hover { border-color: #e7c9b4; }
.ds-delivery__option:has(input:checked) { border-color: var(--ds-primary); background: #fff8f4; box-shadow: 0 0 0 3px rgba(242, 107, 58, .12); }
.ds-delivery__option:has(input:focus-visible) { outline: 2px solid var(--ds-primary); outline-offset: 2px; }
.ds-delivery__option.is-disabled { cursor: default; opacity: .55; }
.ds-delivery__option input { position: absolute; opacity: 0; pointer-events: none; }
.ds-delivery__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ds-sand); color: var(--ds-primary); transition: background-color .15s, color .15s; }
.ds-delivery__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ds-delivery__option:has(input:checked) .ds-delivery__icon { background: var(--ds-primary); color: #fff; }
.ds-delivery__body { flex: 1; min-width: 0; }
.ds-delivery__body strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--ds-ink); }
.ds-delivery__body small { display: block; margin-top: .15rem; font-size: .78rem; line-height: 1.35; color: var(--ds-muted); }
.ds-delivery__price { flex: none; align-self: flex-start; padding: .2rem .55rem; border-radius: 999px; background: var(--ds-sand); font-weight: 800; font-size: .85rem; color: var(--ds-ink); white-space: nowrap; }
.ds-delivery__option:has(input:checked) .ds-delivery__price { background: #fff; color: var(--ds-primary-deep); }
.ds-delivery__price:empty { display: none; }

.ds-locker { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); box-shadow: 0 10px 24px -18px rgba(30, 42, 68, .35); }
.ds-locker[hidden], .ds-locker__picker[hidden], .ds-locker__chosen[hidden], .ds-locker__nets[hidden], .ds-locker__search[hidden] { display: none !important; }
.ds-locker__where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 0 .75rem; }
.ds-locker__field { display: flex; flex-direction: column; gap: .3rem; margin: 0; font-size: .78rem; font-weight: 700; color: var(--ds-ink-soft); }
.ds-locker__field select { width: 100%; height: 44px; margin: 0; padding: 0 .75rem; border: 1.5px solid var(--ds-line); border-radius: 12px; background-color: var(--ds-surface); color: var(--ds-ink); font: inherit; font-size: .92rem; font-weight: 600; }
.ds-locker__field select:disabled { background-color: var(--ds-sand); color: var(--ds-muted); }
.ds-locker__nets { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .6rem; }
button.ds-locker__net, button.ds-locker__net:hover, button.ds-locker__net:focus { display: inline-flex; align-items: center; gap: .4rem; min-height: 0; height: 36px; padding: 0 .85rem 0 .45rem; border: 1.5px solid var(--ds-line); border-radius: 999px; background: var(--ds-surface); color: var(--ds-ink); font-size: .82rem; font-weight: 700; line-height: 1; box-shadow: none; transform: none; }
button.ds-locker__net[data-network=""] { padding-left: .85rem; }
button.ds-locker__net.is-on { border-color: var(--ds-ink); background: var(--ds-ink); color: #fff; }
.ds-locker__net .ds-locker__logo { width: 22px; height: 22px; border-radius: 6px; }
.ds-locker__logo { flex: none; display: block; width: 28px; height: 28px; object-fit: contain; border-radius: 8px; background: #fff; }
.ds-locker__search.input-text { width: 100%; height: 42px; margin: 0; border-radius: 12px; }
.ds-delivery .ds-locker p.ds-locker__hint { margin: .5rem 0 .45rem !important; font-size: .78rem; font-weight: 700; color: var(--ds-muted); text-transform: uppercase; letter-spacing: .04em; }
.ds-delivery ul.ds-locker__list { max-height: 340px; margin: 0 !important; padding: 0 !important; overflow-y: auto; list-style: none; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-surface); overscroll-behavior: contain; }
.ds-locker__list:empty { display: none; }
.ds-locker__list li { margin: 0; border-bottom: 1px solid var(--ds-line); }
.ds-locker__list li:last-child { border-bottom: 0; }
button.ds-locker__item, button.ds-locker__item:hover, button.ds-locker__item:focus { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 0; height: auto; padding: .7rem .8rem; border: 0; border-radius: 0; background: transparent; color: var(--ds-ink); font-weight: 400; line-height: 1.3; text-align: left; box-shadow: none; transform: none; }
button.ds-locker__item:hover, button.ds-locker__item:focus-visible { background: #fff8f4; }
.ds-locker__item .ds-locker__logo { border: 1px solid var(--ds-line); }
.ds-locker__text { flex: 1; min-width: 0; }
.ds-locker__text strong { display: block; font-size: .9rem; }
.ds-locker__text small { display: block; margin-top: .1rem; font-size: .78rem; color: var(--ds-muted); }
.ds-locker__pick { flex: none; padding: .3rem .7rem; border-radius: 999px; background: var(--ds-sand); font-size: .76rem; font-weight: 800; color: var(--ds-primary-deep); }
button.ds-locker__item:hover .ds-locker__pick { background: var(--ds-primary); color: #fff; }
.ds-locker__chosen { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: 14px; background: #fff8f4; border: 1.5px solid var(--ds-primary); }
.ds-locker__chosen-text { flex: 1; display: flex; align-items: center; gap: .7rem; min-width: 0; }
.ds-locker__chosen .ds-locker__logo { width: 40px; height: 40px; border: 1px solid var(--ds-line); }
button.ds-locker__change, button.ds-locker__change:hover, button.ds-locker__change:focus { flex: none; min-height: 0; height: 34px; padding: 0 .85rem; border: 1.5px solid var(--ds-line); border-radius: 999px; background: var(--ds-surface); color: var(--ds-ink); font-size: .8rem; font-weight: 700; box-shadow: none; transform: none; }
.ds-delivery .ds-locker p.ds-locker__note { display: flex; gap: .5rem; margin: .8rem 0 0 !important; font-size: .8rem; line-height: 1.45; color: var(--ds-ink-soft); }
.ds-delivery .ds-locker p.ds-locker__error { margin: 0 0 .6rem !important; padding: .55rem .75rem; border-radius: 10px; background: #fdecea; color: #b42318; font-size: .85rem; font-weight: 700; }
/* The locker replaces the delivery address. */
form.checkout.ds-is-locker .woocommerce-shipping-fields, form.checkout.ds-is-locker p:has(#ds-same-billing), form.checkout.ds-is-locker .ds-same-billing { display: none !important; }
/* Order summary: the choice is made in section 2, the summary only shows it. */
#order_review #shipping_method li:has(input[type="radio"]:not(:checked)) { display: none; }
#order_review #shipping_method li input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
#order_review #shipping_method li label { margin: 0; }
@media (max-width: 600px) {
	.ds-delivery__options, .ds-locker__where { grid-template-columns: 1fr; }
	.ds-locker { padding: .8rem; }
}

/* /categorii/ (Shortcodes::all_categories): on phones types and ages scroll sideways like on the homepage. */
.ds-allcats__section { margin: 0 0 2.25rem; }
.ds-tiles--gifts { grid-template-columns: repeat(4, 1fr); }
.ds-allcats__brands { display: flex; flex-wrap: wrap; gap: .5rem; }
.ds-allcats__brand { display: inline-flex; align-items: baseline; gap: .35rem; padding: .5rem .9rem; border: 1.5px solid var(--ds-line); border-radius: 999px; background: var(--ds-surface); color: var(--ds-ink); font-weight: 700; font-size: .9rem; text-decoration: none; }
.ds-allcats__brand small { color: var(--ds-muted); font-weight: 600; font-size: .75rem; }
.ds-allcats__brand:hover { border-color: var(--ds-primary); color: var(--ds-primary-deep); }
@media (max-width: 720px) {
	/* Types, ages and gifts all scroll sideways, like the homepage rows (a long column of tiles looked heavy). */
	.ds-allcats .ds-tiles.ds-tiles--gifts { display: flex; gap: .6rem; margin-inline: -16px; padding: 0 16px .25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.ds-allcats .ds-tiles--gifts::-webkit-scrollbar { display: none; }
	.ds-allcats .ds-tiles--gifts .ds-tile { flex: 0 0 38%; min-width: 0; min-height: 0; padding: .9rem .85rem; border-radius: 16px; scroll-snap-align: start; }
	.ds-allcats .ds-tiles--gifts .ds-tile__icon { width: 1.7rem; height: 1.7rem; margin-bottom: .35rem; }
	.ds-allcats .ds-tiles--gifts .ds-tile__title { font-size: .9rem; line-height: 1.25; }
	.ds-allcats .ds-tiles--gifts .ds-tile__meta { font-size: .75rem; }
}
.ds-allcats > .ds-brand-head { margin: 0 0 1.75rem; }

/* Type cards with a photo (Shortcodes::type_grid): the picture across the top, then the name and the count. A product
   photo is fitted on white (nothing cut off); a generated scene fills the frame. */
.ds-tile--photo { padding-top: 0; overflow: hidden; }
.ds-tile__photo { display: block; margin: 0 -1.25rem .75rem; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.ds-tile__photo img { display: block; width: 100%; height: 100%; transition: transform .4s var(--ds-ease); }
.ds-tile__photo--product img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.ds-tile__photo--scene img { object-fit: cover; }
.ds-tile--photo:hover .ds-tile__photo img { transform: scale(1.04); }
@media (max-width: 720px) {
	.ds-tiles--type .ds-tile--photo { padding-top: 0; }
	.ds-tiles--type .ds-tile__photo { margin: 0 -.85rem .55rem; }
}
/* Searchable county / locality in the locker picker (selectWoo), the same box as the native selects there. */
.ds-locker__field .select2-container { width: 100% !important; }
.ds-locker__field .select2-container--default .select2-selection--single { display: flex; align-items: center; height: 44px; padding: 0; border: 1.5px solid var(--ds-line); border-radius: 12px; background: var(--ds-surface); }
.ds-locker__field .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 2.2rem 0 .75rem; line-height: 1.3; font-size: .92rem; font-weight: 600; color: var(--ds-ink); }
.ds-locker__field .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ds-muted); font-weight: 600; }
.ds-locker__field .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: .5rem; height: 100%; }
.ds-locker__field .select2-container--default.select2-container--disabled .select2-selection--single { background: var(--ds-sand); }
.select2-container--open .select2-dropdown { border: 1.5px solid var(--ds-line); border-radius: 12px; overflow: hidden; }
.select2-container--open .select2-search--dropdown .select2-search__field { height: 40px; border-radius: 10px; font-size: 16px; }
.select2-container--open .select2-dropdown .select2-results__options { margin: 0 !important; padding: 0 !important; list-style: none; }
.select2-container--open .select2-results__option { padding: .55rem .75rem; }

/* Locker map (assets/lockers-map.js): a large dialog, list on the left, map on the right; full screen and stacked on phones. */
button.ds-locker__map-btn, button.ds-locker__map-btn:hover, button.ds-locker__map-btn:focus { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 0; height: auto; margin: 0 0 .8rem; padding: .7rem .9rem; border: 1.5px dashed var(--ds-primary); border-radius: 12px; background: #fff8f4; color: var(--ds-primary-deep); font-size: .92rem; font-weight: 800; text-align: left; box-shadow: none; transform: none; }
.ds-locker__map-btn svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ds-locker__map-btn small { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--ds-muted); }
body.ds-lmap-open { overflow: hidden; }
.ds-lmap { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 28, 46, .55); }
.ds-lmap[hidden] { display: none; }
.ds-lmap__dialog { display: flex; flex-direction: column; width: min(1180px, 100%); height: min(760px, 100%); overflow: hidden; border-radius: 18px; background: var(--ds-surface); box-shadow: 0 30px 60px -20px rgba(20, 28, 46, .5); }
.ds-lmap__head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem .8rem 1.2rem; border-bottom: 1px solid var(--ds-line); font-size: 1.05rem; color: var(--ds-ink); }
button.ds-lmap__close, button.ds-lmap__close:hover, button.ds-lmap__close:focus { display: grid; place-items: center; width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: var(--ds-sand); color: var(--ds-ink); font-size: 1.5rem; line-height: 1; box-shadow: none; transform: none; }
.ds-lmap__body { flex: 1; display: grid; grid-template-columns: 340px 1fr; min-height: 0; }
.ds-lmap__side { display: flex; flex-direction: column; gap: .55rem; min-height: 0; padding: .9rem; border-right: 1px solid var(--ds-line); background: var(--ds-surface); }
.ds-lmap__side select { width: 100%; height: 42px; margin: 0; padding: 0 .7rem; border: 1.5px solid var(--ds-line); border-radius: 12px; background-color: #fff; color: var(--ds-ink); font: inherit; font-size: .92rem; font-weight: 600; }
.ds-lmap__nets { display: flex; flex-wrap: wrap; gap: .35rem; }
.ds-lmap__nets button, .ds-lmap__nets button:hover, .ds-lmap__nets button:focus { display: inline-flex; align-items: center; gap: .35rem; min-height: 0; height: 32px; padding: 0 .75rem; border: 1.5px solid var(--ds-line); border-radius: 999px; background: #fff; color: var(--ds-ink); font-size: .8rem; font-weight: 700; box-shadow: none; transform: none; }
.ds-lmap__nets button.is-on { border-color: var(--ds-ink); background: var(--ds-ink); color: #fff; }
.ds-lmap__nets .ds-locker__logo { width: 18px; height: 18px; border-radius: 4px; }
.ds-lmap__hint { margin: .2rem 0 0 !important; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-muted); }
ul.ds-lmap__list { flex: 1; min-height: 0; margin: 0 !important; padding: 0 !important; overflow-y: auto; list-style: none; border: 1px solid var(--ds-line); border-radius: 12px; overscroll-behavior: contain; }
.ds-lmap__list li { margin: 0; border-bottom: 1px solid var(--ds-line); }
.ds-lmap__list li:last-child { border-bottom: 0; }
button.ds-lmap__item, button.ds-lmap__item:hover, button.ds-lmap__item:focus { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 0; height: auto; padding: .6rem .7rem; border: 0; border-radius: 0; background: #fff; color: var(--ds-ink); font-weight: 400; text-align: left; box-shadow: none; transform: none; }
button.ds-lmap__item:hover, button.ds-lmap__item.is-chosen { background: #fff8f4; }
.ds-lmap__item > span { flex: 1; min-width: 0; }
.ds-lmap__item strong { display: block; font-size: .88rem; line-height: 1.3; }
.ds-lmap__item small { display: block; font-size: .76rem; color: var(--ds-muted); line-height: 1.3; }
.ds-lmap__item em { flex: none; font-style: normal; font-size: .76rem; font-weight: 800; color: var(--ds-primary-deep); }
.ds-lmap__map { position: relative; min-height: 0; background: #eef0f3; }
.ds-lmap__map .leaflet-container { font: inherit; }
.ds-lmap__map .leaflet-tile-pane { filter: saturate(.3) brightness(1.05) contrast(.92); }
button.ds-lmap__me, button.ds-lmap__me:hover, button.ds-lmap__me:focus { position: absolute; right: 12px; bottom: 28px; z-index: 1000; display: inline-flex; align-items: center; gap: .4rem; min-height: 0; height: 40px; padding: 0 .9rem; border: 0; border-radius: 999px; background: #fff; color: var(--ds-ink); font-size: .85rem; font-weight: 800; box-shadow: 0 6px 18px -6px rgba(20, 28, 46, .45); transform: none; }
.ds-lmap__me svg { width: 20px; height: 20px; fill: none; stroke: #2b7bf3; stroke-width: 2; }
.ds-lmap__me.is-busy { opacity: .6; }
.ds-lmap__pin span { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; background: var(--pin); box-shadow: 0 2px 6px rgba(20, 28, 46, .35); box-sizing: border-box; transition: transform .12s; }
.ds-lmap__pin:hover span { transform: scale(1.12); }
.ds-lmap__pin svg { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.ds-lmap__pin.is-chosen span { height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.ds-lmap__pin.is-chosen svg { transform: rotate(45deg); }
.ds-lmap__dot { border: 3px solid #fff; border-radius: 50%; background: #2b7bf3; box-shadow: 0 0 0 6px rgba(43, 123, 243, .22), 0 2px 6px rgba(20, 28, 46, .35); }
.ds-lmap__pop { display: flex; flex-direction: column; gap: .3rem; min-width: 190px; }
.ds-lmap__pop strong { font-size: .9rem; color: var(--ds-ink); }
.ds-lmap__pop span { font-size: .8rem; color: var(--ds-muted); }
.ds-lmap__pop a { font-size: .8rem; }
.ds-lmap__pop .ds-lmap__choose.button { margin-top: .3rem; height: 36px; min-height: 0; padding: 0 .9rem; border-radius: 999px; font-size: .82rem; }
@media (max-width: 760px) {
	.ds-lmap { padding: 0; }
	.ds-lmap__dialog { width: 100%; height: 100%; border-radius: 0; }
	.ds-lmap__body { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; overflow: hidden; }
	.ds-lmap__map { order: -1; }
	.ds-lmap__side { border-right: 0; border-top: 1px solid var(--ds-line); padding: .7rem 16px; }
}


/* Delivery cards: payment wording follows the chosen payment method (LockerCheckout::pay_kind + lockers.js). */
.ds-delivery[data-ds-pay="cod"] .ds-pay-online,
.ds-delivery[data-ds-pay="online"] .ds-pay-cod { display: none; }
