/*
Theme Name:  Kadence Child – Magazin jucării
Template:    kadence
Description: Child theme pentru magazinul de jucării educative. Identitate vizuală (paletă, fonturi, header, footer, carduri); logica stă în plugin-ul ds-core.
Version:     0.3.0
Author:      DFD SOFTWARE SRL
Text Domain: kadence-child
*/

/* =========================================================================
   Tokens. Layout: white header with a soft sand top bar, warm off-white page,
   coral primary used sparingly (buttons, price), five age colours as the one playful element.
   ========================================================================= */
:root {
	--kc-ink: #1e2a44;
	--kc-ink-soft: #4a5570;
	--kc-muted: #8b94a8;
	--kc-line: #ebe5dc;
	--kc-bg: #fffdf9;
	--kc-surface: #ffffff;
	--kc-sand: #fbf3ea;
	--kc-sand-deep: #f3e6d6;
	--kc-primary: #f26b3a;
	--kc-primary-deep: #d9532a;
	--kc-primary-soft: #ffe9df;
	--kc-sun: #ffc83d;
	--kc-mint: #2fbf8f;
	--kc-sky: #4f8fe8;
	--kc-berry: #c957a7;
	--kc-age-0: #e8739a;
	--kc-age-1: #2fbf8f;
	--kc-age-3: #ffb703;
	--kc-age-5: #f26b3a;
	--kc-age-7: #4f8fe8;
	--kc-age-9: #c957a7;
	--kc-radius: 16px;
	--kc-radius-sm: 10px;
	--kc-shadow: 0 1px 2px rgba(30, 42, 68, .05), 0 12px 32px -12px rgba(30, 42, 68, .14);
	--kc-shadow-hover: 0 2px 4px rgba(30, 42, 68, .06), 0 24px 40px -16px rgba(30, 42, 68, .22);
	--kc-display: "Baloo 2", "Nunito Sans", system-ui, sans-serif; /* Fredoka (Google) lacks ș, ț, ă; Baloo 2 has the full Romanian set. */
	--kc-font-display: var(--kc-display);
	--kc-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--kc-container: 1400px;

	/* Kadence global palette follows the tokens so its own components match. */
	--global-palette1: var(--kc-primary);
	--global-palette2: var(--kc-primary-deep);
	--global-palette3: var(--kc-ink);
	--global-palette4: var(--kc-ink);
	--global-palette5: var(--kc-ink-soft);
	--global-palette6: var(--kc-muted);
	--global-palette7: var(--kc-sand);
	--global-palette8: var(--kc-bg);
	--global-palette9: var(--kc-surface);
	--global-heading-font-family: var(--kc-display);
	--global-body-font-family: var(--kc-body);
	--global-content-width: var(--kc-container);
}

/* ---- Base ---- */
body { font-family: var(--kc-body); color: var(--kc-ink); background: var(--kc-bg); font-size: 16px; line-height: 1.55; }
h1, h2, h3, h4, .product_title { font-family: var(--kc-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; color: var(--kc-ink); text-wrap: balance; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
a { color: var(--kc-primary-deep); }
.kc-container { max-width: var(--kc-container); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.site-container, .content-container { max-width: var(--kc-container); }
.kc-icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
:focus-visible { outline: 3px solid var(--kc-sun); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- Buttons ---- */
.button, button.button, .wp-element-button, .single_add_to_cart_button, .checkout-button, .wc-block-components-button, .wc-forward,
.woocommerce #respond input#submit, .woocommerce button.button, .woocommerce input.button, .woocommerce a.button {
	/* One box model for every button: same border (transparent on solid buttons), flex-centred text, fixed line-height. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px;
	font-family: var(--kc-body);
	font-weight: 800;
	font-size: .95rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	border-radius: 999px;
	padding: 0 1.4em;
	background: var(--kc-primary);
	color: #fff;
	border: 2px solid transparent;
	box-shadow: 0 6px 16px -6px rgba(242, 107, 58, .6);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button svg, .woocommerce a.button svg, .woocommerce button.button svg { flex: none; width: 1.15em; height: 1.15em; }
/* WooCommerce/Kadence set the cart checkout button to display:block with its own padding; keep it on the shared box model. */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 1.4em; font-size: 1rem; line-height: 1.2; margin: 0; }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .single_add_to_cart_button:hover, .checkout-button:hover { background: var(--kc-primary-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(242, 107, 58, .7); }
/* Secondary button (Dorin, 2026-11-13): always the look it used to have only on hover (light sand, sand outline,
   soft warm shadow), so it stands apart from the orange main button next to it. Same in every state. */
.button--ghost, .woocommerce a.button.button--ghost,
.button--ghost:hover, .button--ghost:focus, .button--ghost:active,
.woocommerce a.button.button--ghost:hover, .woocommerce a.button.button--ghost:focus, .woocommerce a.button.button--ghost:active,
body a.button.button--ghost, body a.button.button--ghost:hover, body a.button.button--ghost:focus, body a.button.button--ghost:active { background: var(--kc-sand) !important; color: var(--kc-ink) !important; border: 2px solid var(--kc-sand-deep) !important; box-shadow: var(--kc-btn-shadow) !important; transform: none; }
.button--ghost:focus-visible { outline: 2px solid var(--kc-ink); outline-offset: 2px; }
.woocommerce a.button.loading::after { color: #fff; }

/* =========================================================================
   Header
   ========================================================================= */
.kc-header, #masthead.kc-header { position: sticky !important; top: calc(-1 * var(--kc-header-skip, 0px)); z-index: 1000 !important; background: var(--kc-surface); border-bottom: 1px solid var(--kc-line); transition: box-shadow .2s; overflow: visible; }
.kc-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(30, 42, 68, .18); }
.kc-topbar { background: var(--kc-sand); color: var(--kc-ink-soft); font-size: .82rem; font-weight: 600; }
.kc-topbar__inner { display: flex; gap: 2rem; justify-content: center; padding-block: .4rem; }
.kc-topbar__inner span { display: inline-flex; align-items: center; gap: .4rem; }
.kc-topbar .kc-icon { color: var(--kc-primary); }
.kc-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }

.kc-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--kc-ink); flex: none; }
.kc-brand__text { font-family: var(--kc-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; }
.kc-brand img.custom-logo { max-height: 48px; width: auto; }
.kc-brand__logo { width: 40px; height: 40px; flex: none; }
.kc-brand__text small { font-size: .55em; font-weight: 700; color: var(--kc-muted); margin-left: 1px; letter-spacing: 0; }
.kc-brand--footer .kc-brand__text small { color: rgba(255, 255, 255, .6); }

.kc-nav { flex: 1; }
.kc-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.kc-nav__item { position: relative; }
.kc-nav__item > a { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; padding: 0 .7rem; white-space: nowrap; border-radius: 999px; font-weight: 700; color: var(--kc-ink); text-decoration: none; font-size: .98rem; }
.kc-nav__item > a:hover, .kc-nav__item.is-focus > a { background: var(--kc-sand); }
.kc-nav__chevron { width: 1em; height: 1em; opacity: .6; }
.kc-nav__sub-toggle { display: none; }
.kc-nav__sub { position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 1001; margin: .35rem 0 0; padding: .5rem; list-style: none; background: var(--kc-surface); border: 1px solid var(--kc-line); border-radius: var(--kc-radius-sm); box-shadow: var(--kc-shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease; z-index: 50; }
.kc-nav__item:hover .kc-nav__sub, .kc-nav__item.is-focus .kc-nav__sub { opacity: 1; visibility: visible; transform: none; }
.kc-nav__sub a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .7rem; border-radius: 8px; color: var(--kc-ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.kc-nav__sub a:hover { background: var(--kc-sand); }
.kc-nav__count { font-size: .75rem; color: var(--kc-muted); font-variant-numeric: tabular-nums; }

.kc-search { position: relative; display: flex; align-items: center; width: 280px; flex: 0 1 280px; min-width: 150px; }
.kc-search input[type="search"] { width: 100%; height: 44px; border: 1.5px solid var(--kc-line); background: var(--kc-sand); border-radius: 999px; padding: 0 1rem 0 2.7rem; font-size: .92rem; font-family: inherit; color: var(--kc-ink); box-shadow: none; transition: border-color .15s, background .15s; appearance: none; -webkit-appearance: none; }
.kc-search input[type="search"]::placeholder { color: var(--kc-muted); }
.kc-search input[type="search"]:focus { outline: 0; background: var(--kc-surface); border-color: var(--kc-ink); }
.kc-search input[type="search"]::-webkit-search-decoration, .kc-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.kc-search button, .kc-search button:hover, .kc-search button:focus { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--kc-muted); display: grid; place-items: center; cursor: pointer; box-shadow: none; border-radius: 999px; transform: none; }
.kc-search button .kc-icon { width: 20px; height: 20px; stroke-width: 2; }
.kc-search button:hover { color: var(--kc-primary-deep); }
.kc-search input:focus ~ button, .kc-search:focus-within button { color: var(--kc-ink); }
.kc-cart { display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 .9rem 0 .85rem; border-radius: 999px; background: var(--kc-ink); color: #fff; text-decoration: none; font-weight: 700; line-height: 1; flex: none; }
.kc-cart svg { display: block; width: 20px; height: 20px; flex: none; }
.kc-cart__label { display: block; line-height: 1; }
.kc-cart:hover { background: var(--kc-primary); color: #fff; }
body .kc-cart__count { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 22px; min-width: 22px; padding: 0 .45em; background: var(--kc-sun); color: var(--kc-ink); border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.kc-fav { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--kc-sand); color: var(--kc-ink); text-decoration: none; flex: none; transition: background .2s, color .2s; }
.kc-fav svg { width: 21px; height: 21px; }
.kc-fav:hover { background: var(--kc-primary-soft); color: var(--kc-primary-deep); }
.kc-fav__count { position: absolute; top: -4px; right: -4px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 20px; min-width: 20px; padding: 0 .35em; border-radius: 999px; background: var(--kc-primary); color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; }
.kc-fav__count[hidden] { display: none; }
.kc-fav.is-bump { animation: ds-bump .45s ease; }
.kc-nav-toggle { display: none; }
/* Theme controls: every state defined, so Kadence's global button rules never leak in. */
button.kc-nav-toggle, button.kc-nav-toggle:hover, button.kc-nav-toggle:focus { background: var(--kc-sand); color: var(--kc-ink); box-shadow: none; border: 0; }
button.kc-nav__sub-toggle, button.kc-nav__sub-toggle:hover, button.kc-nav__sub-toggle:focus { background: transparent; color: var(--kc-muted); box-shadow: none; border: 0; padding: 0; line-height: 1; }
:focus:not(:focus-visible) { outline: 0; }

@media (max-width: 1024px) {
	.kc-search { width: 200px; }
	.kc-nav__item > a { padding-inline: .6rem; font-size: .92rem; }
}
/* Phones, tablets and small laptops: below 1200px the full menu, search and cart do not fit on one row. */
@media (max-width: 1199px) {
	.kc-topbar__inner { gap: 1rem; font-size: .76rem; }
	.kc-topbar__inner > span:nth-child(3) { display: none; }
	.kc-header__inner { gap: .75rem; min-height: 64px; }
	.kc-nav-toggle, button.kc-nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; margin: 0; border: 0; background: var(--kc-sand); border-radius: 12px; color: var(--kc-ink); cursor: pointer; order: 0; line-height: 0; }
	.kc-nav-toggle svg { display: block; width: 22px; height: 22px; grid-area: 1 / 1; }
	.kc-nav-toggle svg.kc-nav-toggle__close, .is-nav-open .kc-nav-toggle svg.kc-nav-toggle__open { display: none; }
	.is-nav-open .kc-nav-toggle svg.kc-nav-toggle__close { display: block; }
	.kc-brand { order: 1; margin-right: auto; min-width: 0; gap: .45rem; }
	.kc-brand__text { font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.kc-brand__logo { width: 32px; height: 32px; }
	.kc-search { order: 3; width: 100%; flex: 1 1 100%; margin-top: 0; }
	.kc-header__inner { flex-wrap: wrap; row-gap: .7rem; padding: .7rem 16px .8rem; min-height: 0; }
	.kc-fav-wrap { order: 2; }
	.kc-fav { order: 2; width: 42px; height: 42px; }
	.kc-cart-wrap { order: 2; }
	.kc-cart { order: 2; height: 42px; padding: 0 .7rem; flex: none; }
	.kc-cart__label { display: none; }
	.kc-nav { order: 4; width: 100%; display: none; }
	.is-nav-open .kc-nav { display: block; }
	.kc-nav__list { flex-direction: column; gap: 0; padding: .5rem 0 .25rem; border-top: 1px solid var(--kc-line); }
	.kc-nav__item { display: flex; flex-wrap: wrap; align-items: center; }
	.kc-nav__item > a { flex: 1; padding: .7rem .5rem; font-size: 1.02rem; }
	.kc-nav__chevron { display: none; }
	.kc-nav__sub-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--kc-muted); cursor: pointer; transition: transform .15s; }
	.kc-nav__item.is-open .kc-nav__sub-toggle { transform: rotate(180deg); }
	.kc-nav__sub { position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--kc-sand); margin: 0 0 .5rem; }
	.kc-nav__item.is-open .kc-nav__sub { display: block; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.kc-footer { background: var(--kc-ink); color: #c8cfe0; margin-top: 4rem; }
.kc-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.kc-footer .kc-brand { color: #fff; margin-bottom: 1rem; }
.kc-footer__about p { max-width: 34ch; font-size: .95rem; }
.kc-footer__badges { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.kc-footer__badges li { display: flex; align-items: center; gap: .5rem; }
.kc-footer__badges .kc-icon { color: var(--kc-sun); }
.kc-footer__title { font-family: var(--kc-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 1rem; font-weight: 800; }
.kc-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.kc-footer__links a { color: #c8cfe0; text-decoration: none; font-size: .95rem; }
.kc-footer__links a:hover { color: var(--kc-sun); }
.kc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.kc-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; }
.kc-footer__legal { display: flex; gap: 1.25rem; }
.kc-footer__legal a { color: #c8cfe0; text-decoration: none; }
@media (max-width: 900px) { .kc-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .kc-footer__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Product cards (shop loop, recommendations, homepage)
   ========================================================================= */
ul.products { gap: 1.25rem !important; }
/* Catalog grid: as many cards as fit (min 215px each): 4 at 1366px, 5 on wider screens; Kadence's column classes are bypassed. */
@media (min-width: 720px) {
	.ds-catalog ul.products, .woocommerce .ds-catalog ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap: 1.1rem !important; }
	.ds-catalog ul.products li.product.loop-entry { width: auto !important; margin: 0 !important; }
}
ul.products li.product.loop-entry {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--kc-surface);
	border: 1px solid var(--kc-line);
	border-radius: var(--kc-radius);
	padding: .75rem;
	box-shadow: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
ul.products li.product.loop-entry:hover { transform: translateY(-3px); box-shadow: var(--kc-shadow-hover); border-color: transparent; }
ul.products li.product .product-image img, ul.products li.product img { border-radius: var(--kc-radius-sm); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--kc-sand); display: block; }
body .woocommerce ul.products li.product .product-details, ul.products li.product .product-details { display: flex; flex-direction: column; flex: 1; padding: .85rem .25rem 0 !important; }
/* The brand and age line starts where the title, price and button start (the details box is inset 8px + its own padding). */
ul.products li.product > .ds-card-meta { margin: .75rem calc(8px + .25rem) 0; }
body .woocommerce ul.products li.product .ds-card-meta + .product-details, ul.products li.product .ds-card-meta + .product-details { padding-top: .3rem !important; }
ul.products li.product .kc-card-brand { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kc-muted); margin: 0 0 .3rem; }
ul.products li.product .woocommerce-loop-product__title { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 2.7em; font-family: var(--kc-body); font-size: .98rem; font-weight: 700; line-height: 1.35; min-height: 2.7em; color: var(--kc-ink); margin: 0 0 .5rem !important; padding: 0 !important; }
ul.products li.product .price { font-family: var(--kc-display); font-weight: 600; font-size: 1.2rem; color: var(--kc-ink); margin: 0 0 .85rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
ul.products li.product .price del { color: var(--kc-muted); font-weight: 400; font-size: .85em; margin-right: .3em; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .product-action-wrap { margin-top: auto !important; padding: 0 !important; }
ul.products li.product .product-action-wrap a.button, ul.products li.product a.button { display: flex !important; align-items: center; justify-content: center; gap: .4em; width: 100%; height: 44px; margin: 0; padding: 0 1em; font-size: .9rem; font-weight: 800; line-height: 1; letter-spacing: 0; text-transform: none; text-decoration: none; background: var(--kc-ink); color: #fff; border-radius: 999px; box-shadow: none; }
ul.products li.product a.button:hover { background: var(--kc-primary); color: #fff; transform: none; }
ul.products li.product a.button.product_type_simple:not(.ajax_add_to_cart) { background: var(--kc-sand); color: var(--kc-ink); }
ul.products li.product a.button::after, ul.products li.product a.button::before { content: none !important; display: none !important; }
ul.products li.product a.button.loading { opacity: .7; }
/* The toast already offers "Vezi coșul"; WooCommerce's extra link would overflow the card. */
ul.products li.product .added_to_cart { display: none !important; }
ul.products li.product .ds-stock-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
ul.products li.product.outofstock img { filter: grayscale(.6); opacity: .8; }
.kadence-product-toggle-container, .kadence-shop-top-row, .product-archive-hero-section { display: none !important; }

/* =========================================================================
   Single product
   ========================================================================= */
.single-product div.product { margin-top: 1.5rem; }
.single-product div.product .product_title { font-size: 2rem; margin-bottom: .5rem; }
.single-product div.product p.price { font-family: var(--kc-display); font-size: 1.9rem; font-weight: 600; color: var(--kc-ink); margin: .75rem 0 1rem; }
.single-product div.product .woocommerce-product-gallery { border-radius: var(--kc-radius); overflow: hidden; }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--kc-radius); }
/* Kadence overlays the thumbnails on the main image; keep them on their own row below it. */
body.single-product.woocommerce div.product div.images .flex-control-thumbs { position: static; display: flex; justify-content: center; gap: .5rem; max-width: 100%; margin: .75rem 0 0; padding: 0; transform: none; overflow: visible; }
body.single-product.woocommerce div.product div.images .flex-control-thumbs li { width: 72px; height: auto; margin: 0; padding: 0; float: none; background: transparent; }
body.single-product.woocommerce div.product div.images .flex-control-thumbs li img { border: 0; opacity: .6; }
body.single-product.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; }
.single-product div.product .woocommerce-product-gallery { overflow: visible; }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { border-radius: var(--kc-radius); overflow: hidden; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; opacity: .6; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--kc-primary); }
.single-product div.product form.cart { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 1.25rem 0; }
.single-product div.product form.cart .quantity .qty { border-radius: 999px; border: 2px solid var(--kc-line); padding: .6em .4em; width: 5em; text-align: center; font-weight: 700; }
.single-product div.product form.cart .single_add_to_cart_button { padding: .85em 2.2em; font-size: 1.05rem; line-height: 1.3; height: auto; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.single-product div.product form.cart .quantity .qty { min-height: 52px; }
.single-product div.product .product_meta { font-size: .85rem; color: var(--kc-muted); border-top: 1px solid var(--kc-line); padding-top: 1rem; }
/* Product tabs: a row of pills with its own spacing; WooCommerce's underline and tab "ears" are removed. */
.single-product div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; border: 0; overflow: visible; }
.single-product div.product .woocommerce-tabs ul.tabs::before, .single-product div.product .woocommerce-tabs ul.tabs::after { display: none; content: none; border: 0; }
.single-product div.product .woocommerce-tabs ul.tabs li { display: flex; margin: 0; padding: 0; border-radius: 999px; border: 2px solid var(--kc-line); background: var(--kc-surface); box-shadow: none; }
.single-product div.product .woocommerce-tabs ul.tabs li::before, .single-product div.product .woocommerce-tabs ul.tabs li::after { display: none; content: none; border: 0; box-shadow: none; }
.single-product div.product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1em; line-height: 1.2; font-weight: 700; color: var(--kc-ink); text-decoration: none; }
.single-product div.product .woocommerce-tabs ul.tabs li:hover { border-color: var(--kc-sand-deep); background: var(--kc-sand); }
.single-product div.product .woocommerce-tabs ul.tabs li.active { background: var(--kc-ink); border-color: var(--kc-ink); }
.single-product div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
@media (max-width: 600px) {
	.single-product div.product .woocommerce-tabs ul.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.single-product div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
	.single-product div.product .woocommerce-tabs ul.tabs li { flex: none; }
	.single-product div.product .woocommerce-tabs ul.tabs li a { padding: 0 1em; white-space: nowrap; }
}
/* On phones the parent theme frames the whole tabs block; the description panel already has its own border. */
.single-product div.product .woocommerce-tabs { border: 0 !important; }
.single-product div.product .woocommerce-tabs .panel { background: var(--kc-surface); border: 1px solid var(--kc-line); border-radius: var(--kc-radius); padding: 1.5rem; }
.single-product div.product .woocommerce-tabs .panel > :first-child, .single-product div.product .woocommerce-tabs .panel > :first-child > :first-child { margin-top: 0; }
.single-product div.product .woocommerce-tabs .panel > :last-child { margin-bottom: 0; }
.single-product div.product .woocommerce-tabs .woocommerce-Reviews-title { display: none; }
/* Phones: the product page is one long column, so the gaps between its blocks are kept small. */
@media (max-width: 719px) {
	.single-product div.product h1.product_title { font-size: 1.5rem; line-height: 1.2; }
	body.single-product div.product p.price { font-size: 1.6rem; line-height: 1.2; margin: .8rem 0 .3rem !important; }
	body.single-product div.product .stock { margin: .25rem 0 !important; }
	.single-product div.product form.cart { margin: .75rem 0; }
	.single-product div.product .woocommerce-tabs { margin-bottom: 1.25rem; }
	.single-product div.product .woocommerce-tabs ul.tabs { margin-bottom: .75rem; }
	.single-product div.product .woocommerce-tabs ul.tabs li a { min-height: 36px; font-size: .9rem; }
	/* No box around the description on phones: the text uses the full width. */
	.single-product div.product .woocommerce-tabs .panel { padding: .25rem 0 0; border: 0; border-radius: 0; background: transparent; font-size: .95rem; line-height: 1.55; }
	.single-product div.product .woocommerce-tabs .panel p { margin: 0 0 .7rem; }
	.single-product div.product .woocommerce-tabs .panel h2, .single-product div.product .woocommerce-tabs .panel h3 { font-size: 1.1rem; line-height: 1.3; margin: 1rem 0 .5rem; }
	.single-product .ds-reco { margin-top: 2rem; }
}
.single-product .entry-hero, .single-product .product-hero-section { display: none; }

/* =========================================================================
   Cart & checkout (classic shortcodes)
   ========================================================================= */
.woocommerce .cart-empty.woocommerce-info { background: transparent; border: 0; box-shadow: none; padding: 1rem 0 0; margin: 0; font-size: 1.1rem; color: var(--kc-ink-soft); font-weight: 600; }
.woocommerce .cart-empty.woocommerce-info::before { display: none; }
.woocommerce .return-to-shop { margin: .5rem 0 1rem; }
.woocommerce-cart .entry-hero, .woocommerce-checkout .entry-hero, .woocommerce-account .entry-hero, .page .entry-hero.page-hero-section { display: none; }
.kc-page-title { font-size: 2.2rem; margin: 0 0 1.25rem !important; }
.kc-nowrap { white-space: nowrap; }
/* Kadence adds 80px above the content area plus 32px inside the white card; tighten it on cart/checkout/account. */
body.woocommerce-cart #primary.content-area, body.woocommerce-checkout #primary.content-area, body.woocommerce-account #primary.content-area { margin-top: 1.5rem; }
body.woocommerce-cart .entry-content-wrap, body.woocommerce-checkout .entry-content-wrap, body.woocommerce-account .entry-content-wrap { padding-top: 1.5rem; }
.woocommerce-cart .site-main > .content-container, .woocommerce-checkout .site-main > .content-container { padding-top: 0; }
.ds-reco--cart { margin: 0; padding-top: 3rem; clear: both; }
.woocommerce table.shop_table { border: 1px solid var(--kc-line); border-radius: var(--kc-radius); background: var(--kc-surface); border-collapse: separate; }
.woocommerce table.shop_table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kc-muted); }
.woocommerce .cart_totals, .woocommerce-checkout #order_review { background: var(--kc-sand); border-radius: var(--kc-radius); padding: 1.25rem; }
.woocommerce .cart_totals table.shop_table, .woocommerce-checkout #order_review table.shop_table { border: 0; background: transparent; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single { border: 2px solid var(--kc-line); border-radius: var(--kc-radius-sm); padding: .7em .9em; font-family: inherit; }
.woocommerce form .form-row input.input-text:focus { border-color: var(--kc-primary); outline: 0; }
.woocommerce-checkout #order_review { padding: 1.25rem 1.25rem 1.5rem; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table { border-spacing: 0; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout #order_review table.shop_table tr > th, .woocommerce-checkout #order_review table.shop_table tr > td { padding: .85rem 0 !important; border: 0 !important; border-top: 1px solid rgba(30, 42, 68, .1) !important; vertical-align: middle !important; line-height: 1.4 !important; }
.woocommerce-checkout #order_review table.shop_table tbody tr:first-child > td { border-top: 0 !important; padding-top: 0 !important; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-total, .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td { text-align: right; white-space: nowrap; }
.woocommerce-checkout #order_review table.shop_table td.product-total { width: 1% !important; }
.kc-review-item { display: flex; align-items: center; gap: .75rem; }
.kc-review-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--kc-surface); }
.kc-review-item__text { display: flex; flex-direction: column; gap: .15rem; }
.kc-review-item__name { font-weight: 600; line-height: 1.3; }
.kc-review-item__qty { color: var(--kc-muted); font-weight: 600; font-size: .85rem; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kc-muted); font-weight: 800; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td { font-weight: 700; }
.woocommerce-checkout #order_review table.shop_table tr.order-total > th, .woocommerce-checkout #order_review table.shop_table tr.order-total > td { border-top: 2px solid rgba(30, 42, 68, .14) !important; padding-top: 1rem !important; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th { font-size: .9rem; color: var(--kc-ink); }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total .woocommerce-Price-amount { font-family: var(--kc-font-display); font-size: 1.45rem; color: var(--kc-ink); }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total .includes_tax { display: block; font-size: .78rem; font-weight: 500; color: var(--kc-muted); white-space: nowrap; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total .includes_tax .woocommerce-Price-amount { display: inline; font-size: inherit; font-family: inherit; color: inherit; }
.woocommerce-checkout #shipping_method { list-style: none; margin: 0; padding: 0; }
.kc-pay__heading { font-size: 1.05rem; margin: 1.5rem 0 .75rem; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; margin-top: 0; }
.woocommerce-checkout #payment ul.payment_methods { border: 0; padding: 0; margin: 0; }
.woocommerce-checkout #payment ul.payment_methods li, .kc-pay-soon { position: relative; background: var(--kc-surface); border-radius: var(--kc-radius-sm); padding: .9rem 1rem; margin: 0 0 .5rem; border: 2px solid var(--kc-line); transition: border-color .15s ease; }
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) { border-color: var(--kc-primary); box-shadow: 0 0 0 4px var(--kc-primary-soft); }
/* Kadence hides the native radio and draws its own via label::before; restyle that instead of fighting it. */
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label, .woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label:hover, .woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method input[type="radio"]:first-child:checked + label { display: flex; align-items: center; gap: .65rem; margin: 0; padding: 0; border: 0; background: transparent; font-weight: 800; color: var(--kc-ink); cursor: pointer; }
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label::before, .woocommerce-checkout #payment ul.wc_payment_methods li:first-child:last-child > label::before, .kc-pay-soon::before { content: ""; display: block !important; box-sizing: border-box; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 2px solid var(--kc-line); background: #fff; flex: none; }
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method input[type="radio"]:first-child:checked + label::before { border-color: var(--kc-primary); background: radial-gradient(circle, var(--kc-primary) 0 5px, #fff 6px); }
.kc-pay-soon::before { border-style: dashed; }
.kc-pay__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--kc-sand); color: var(--kc-primary-deep); flex: none; }
.kc-pay__icon .kc-icon { width: 20px; height: 20px; }
.woocommerce-checkout #payment div.payment_box { background: transparent; padding: .35rem 0 0 4.2rem; margin: 0; font-size: .92rem; color: var(--kc-ink-soft); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }
.kc-pay-soon { display: flex; align-items: center; gap: .65rem; padding-left: 1rem; opacity: .7; border-style: dashed; }
.kc-pay-soon__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.kc-pay-soon__sub { font-size: .82rem; color: var(--kc-muted); font-weight: 600; }
.kc-pay-soon__badge { margin-left: auto; flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--kc-sand); color: var(--kc-ink-soft); border-radius: 999px; padding: .35em .7em; white-space: nowrap; }
@media (max-width: 480px) {
	.kc-pay-soon { flex-wrap: wrap; row-gap: .5rem; }
	.kc-pay-soon__text { flex: 1 1 0; }
	.kc-pay-soon::after { content: ""; flex-basis: 100%; height: 0; order: 2; }
	.kc-pay-soon__badge { order: 3; flex: 0 0 auto; margin-left: calc(20px + 36px + 1.3rem); }
}
.woocommerce-checkout #payment .place-order { display: flex; flex-direction: column; padding: .25rem 0 0; }
.woocommerce-checkout #payment .place-order .kc-pay-soon { order: -1; margin-bottom: 1rem; }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text { font-size: .85rem; color: var(--kc-ink-soft); }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { margin: 0 0 .75rem; }
.woocommerce-checkout #payment #place_order { width: 100%; margin-top: .5rem; padding: 1em; font-size: 1.05rem; }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .form-row { margin-bottom: 0; }
.kc-pay__note { display: flex; align-items: flex-start; gap: .5rem; margin: .9rem 0 0; font-size: .85rem; line-height: 1.4; color: var(--kc-ink-soft); }
.kc-pay__note .kc-icon { width: 18px; height: 18px; flex: none; margin-top: .1em; color: var(--kc-mint); }
.woocommerce-checkout .woocommerce-billing-fields h3, .woocommerce-checkout .woocommerce-additional-fields h3, .woocommerce-checkout #ship-to-different-address { font-size: 1.15rem; margin: 0 0 1rem; }
.woocommerce-checkout #ship-to-different-address { margin: 1.5rem 0 1rem; padding: .9rem 1rem; background: var(--kc-sand); border-radius: var(--kc-radius-sm); }
.woocommerce-checkout #ship-to-different-address label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.woocommerce-checkout #ship-to-different-address input { width: 20px; height: 20px; margin: 0; accent-color: var(--kc-primary); }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 1.5rem; }
.woocommerce form .form-row label { font-weight: 700; font-size: .92rem; line-height: 1.3; min-height: 1.3em; }
.woocommerce form .form-row label .optional { font-weight: 500; color: var(--kc-muted); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { display: flex; flex-direction: column; justify-content: flex-end; }
/* "Cumperi ca": WooCommerce renders radio inputs as siblings of their labels inside .woocommerce-input-wrapper. */
.woocommerce form .form-row.ds-customer-type > label { margin-bottom: .5rem; }
.woocommerce form .form-row.ds-customer-type .required { display: none; }
.ds-customer-type .woocommerce-input-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ds-customer-type input.input-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.woocommerce form .form-row.ds-customer-type label.radio { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .8rem 1rem; border: 2px solid var(--kc-line); border-radius: var(--kc-radius-sm); background: var(--kc-surface); font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; transition: border-color .15s ease; }
.ds-customer-type label.radio::before { content: ""; display: block; box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--kc-line); background: #fff; flex: none; }
.ds-customer-type input.input-radio:checked + label.radio { border-color: var(--kc-primary); box-shadow: 0 0 0 4px var(--kc-primary-soft); }
.ds-customer-type input.input-radio:checked + label.radio::before { border-color: var(--kc-primary); background: radial-gradient(circle, var(--kc-primary) 0 5px, #fff 6px); }
.ds-customer-type input.input-radio:focus-visible + label.radio { outline: 3px solid var(--kc-sun); outline-offset: 2px; }
.woocommerce form .form-row.ds-required label .optional { display: none; }
/* CUI lookup: input + "Caută firma" button, status line below. */
.woocommerce form .form-row .ds-cui-lookup { display: flex; gap: .5rem; align-items: stretch; }
.woocommerce form .form-row .ds-cui-lookup input.input-text { flex: 1; min-width: 0; }
body .ds-cui-lookup__btn { flex: none; padding: 0 1rem; border: 2px solid var(--kc-ink); border-radius: var(--kc-radius-sm); background: var(--kc-ink); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: none; }
@media (hover: hover) { body .ds-cui-lookup__btn:hover { background: var(--kc-primary); border-color: var(--kc-primary); color: #fff; } }
body .ds-cui-lookup__btn:focus:not(:focus-visible) { background: var(--kc-ink); border-color: var(--kc-ink); }
body .ds-cui-lookup__btn:disabled { opacity: .6; cursor: wait; }
/* CUI lookup status: own full-width row; hidden while empty. */
.woocommerce form .form-row.ds-cui-status-row { clear: both; margin-top: -.4rem; }
.woocommerce form .form-row.ds-cui-status-row:has(.ds-cui-status:empty) { display: none !important; }
/* Prenume always starts a new row, whatever the height of the CUI / Reg. Com. columns (errors, lookup status). */
.woocommerce form .form-row#billing_first_name_field, .woocommerce form .form-row#shipping_first_name_field { clear: both; }
/* Error summary at the top of the checkout: plain text, only the link underlined. */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout { margin-bottom: 1.5rem; }
.woocommerce-NoticeGroup-checkout .woocommerce-error li.ds-error-summary { font-weight: 600; text-decoration: none; }
.woocommerce-NoticeGroup-checkout .woocommerce-error li.ds-error-summary a { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ds-cui-status { display: block; margin-top: .35rem; font-size: .85rem; line-height: 1.4; color: var(--kc-ink-soft); hyphens: manual; -webkit-hyphens: manual; }
.ds-cui-status:empty { display: none; }
.ds-cui-status.is-ok { color: var(--kc-mint); font-weight: 600; }
.ds-cui-status.is-warn { color: var(--kc-primary-deep); font-weight: 600; }
.ds-cui-status.is-error { color: #c0392b; }
.woocommerce form .form-row.ds-required label::after { content: " *"; color: var(--kc-primary); }
.woocommerce form .form-row.ds-hidden-field { display: none !important; }
/* Account: login box and the button + "Ține-mă minte" row. */
.woocommerce-account .woocommerce-form-login, .woocommerce-account .woocommerce-form-register { border: 1px solid var(--kc-line); border-radius: var(--kc-radius); padding: 1.5rem; max-width: 560px; }
.woocommerce-account .woocommerce-form-login .form-row:has(> button[name="login"]) { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.woocommerce-account .woocommerce-form-login .form-row:has(> button[name="login"]) button { margin: 0; order: -1; }
.woocommerce-account .woocommerce-form-login .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.woocommerce-account .woocommerce-form-login .woocommerce-form__label-for-checkbox input { margin: 0; width: 18px; height: 18px; accent-color: var(--kc-primary); }
/* Less dead space between the white content card and the footer. */
body.woocommerce-cart #primary.content-area, body.woocommerce-checkout #primary.content-area, body.woocommerce-account #primary.content-area, body.single-product #primary.content-area { margin-bottom: 2.5rem; }
/* Cart: own template (woocommerce/cart/cart.php) — a list of product cards on a fixed grid. */
.woocommerce-cart .woocommerce-cart-form { margin: 0; }
ul.kc-cart-list, .entry-content ul.kc-cart-list, .woocommerce ul.kc-cart-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--kc-line); border-radius: var(--kc-radius); background: var(--kc-surface); }
.kc-cart-list > li { margin: 0; list-style: none; }
.kc-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 170px 110px 32px; grid-template-areas: "thumb info qty subtotal remove"; column-gap: 1.25rem; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--kc-line); }
.kc-cart-item__thumb { grid-area: thumb; }
.kc-cart-item__thumb img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--kc-sand); }
.kc-cart-item__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.kc-cart-item__title a, .kc-cart-item__title a:link, .kc-cart-item__title a:visited { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--kc-ink); font-weight: 700; line-height: 1.3; text-decoration: none; }
.kc-cart-item__title a:hover { color: var(--kc-primary-deep); }
.kc-cart-meta { font-size: .88rem; color: var(--kc-ink-soft); }
.kc-cart-item__unit { font-size: .95rem; color: var(--kc-muted); }
.kc-cart-item__unit-label { margin-left: 0; }
.kc-cart-item .variation { margin: 0; font-size: .85rem; color: var(--kc-muted); }
.kc-cart-item__qty { grid-area: qty; justify-self: center; }
.kc-cart-item__subtotal { grid-area: subtotal; justify-self: end; font-family: var(--kc-display); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.kc-cart-item__actions { grid-area: remove; justify-self: end; }
body .kc-cart-item__remove, body .woocommerce a.remove.kc-cart-item__remove { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--kc-sand); color: var(--kc-muted) !important; font-size: 1.3rem; line-height: 1; text-decoration: none; }
@media (hover: hover) { body .woocommerce a.remove.kc-cart-item__remove:hover { background: #c0392b; color: #fff !important; } }
/* Quantity stepper (cart + product page). */
.woocommerce .quantity { display: inline-flex; align-items: center; height: 44px; border: 2px solid var(--kc-line); border-radius: 999px; background: var(--kc-surface); overflow: hidden; margin: 0; }
.woocommerce .quantity .qty, .single-product div.product form.cart .quantity .qty { width: 2.6em; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; text-align: center; font-weight: 800; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.woocommerce .quantity .qty::-webkit-outer-spin-button, .woocommerce .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body .woocommerce .quantity button.kc-qty__btn, body.single-product form.cart .quantity button.kc-qty__btn, body .quantity button.kc-qty__btn:focus { width: 40px; height: 100%; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent !important; color: var(--kc-ink) !important; font-size: 1.25rem; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: none !important; display: grid; place-items: center; }
/* Hover only where there is a mouse: on touch screens :hover sticks after a tap (grey "+"). A short press state instead. */
@media (hover: hover) { body .woocommerce .quantity button.kc-qty__btn:hover:not(:disabled), body.single-product form.cart .quantity button.kc-qty__btn:hover:not(:disabled) { background: var(--kc-sand) !important; color: var(--kc-primary-deep) !important; } }
/* Stock limit reached: "+" visibly off, short note under the stepper. */
body .woocommerce .quantity button.kc-qty__btn:disabled, body.single-product form.cart .quantity button.kc-qty__btn:disabled { opacity: .3; cursor: not-allowed; background: transparent !important; }
.quantity.kc-qty--single .kc-qty__btn { display: none !important; }
.quantity.kc-qty--single { border: 0; }
.kc-qty__limit { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 700; line-height: 1.3; color: var(--kc-primary-deep); white-space: nowrap; }
.single-product div.product form.cart .kc-qty__limit { flex-basis: 100%; order: 3; margin: 0; }
.kc-cart-item__qty .kc-qty__limit { text-align: center; }
@media (max-width: 900px) { .kc-cart-item__qty .kc-qty__limit { text-align: left; } }
body .woocommerce .quantity button.kc-qty__btn:active, body.single-product form.cart .quantity button.kc-qty__btn:active { background: var(--kc-sand) !important; }
.single-product div.product form.cart .quantity { height: 52px; }
.single-product div.product form.cart .quantity .qty { width: 3em; font-size: 1.05rem; }
/* Coupon row: collapsed link; the cart updates itself, the update button only exists for the script. */
.kc-cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .9rem 1.25rem; }
.kc-cart-actions .coupon { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; flex: 1; }
.kc-cart-actions .coupon .input-text, .kc-cart-actions .coupon .button { display: none; }
.kc-cart-actions .coupon.is-open .input-text { display: block; }
.kc-cart-actions .coupon.is-open .button { display: inline-flex; }
.kc-cart-actions .coupon.is-open .kc-coupon-toggle { display: none; }
body .kc-coupon-toggle, body .kc-coupon-toggle:hover, body .kc-coupon-toggle:focus { background: transparent; border: 0; padding: 0; box-shadow: none; color: var(--kc-primary-deep); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body .kc-cart-actions .coupon .input-text { height: 44px; margin: 0; padding: 0 .9em; border: 2px solid var(--kc-line); border-radius: var(--kc-radius-sm); font-family: inherit; min-width: 0; flex: 1 1 160px; max-width: 280px; }
body .kc-cart-actions .coupon .input-text:focus { border-color: var(--kc-primary); outline: 0; }
body .kc-cart-actions .coupon .button { height: 44px; padding: 0 1.2em; align-items: center; }
/* Visually hidden but still clickable by WooCommerce's script; no border/shadow (the shadow showed as an orange bar). */
body .kc-cart-actions .kc-cart-update { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; box-shadow: none !important; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; pointer-events: none; }
.kc-cart-actions .coupon-error-notice { flex-basis: 100%; order: 10; margin: .25rem 0 0; padding: .6rem .8rem; border-radius: var(--kc-radius-sm); background: #fdecea; color: #a8281e; font-size: .9rem; font-weight: 600; line-height: 1.35; }
body .kc-cart-actions .coupon .input-text.has-error { border-color: #c0392b; }
/* CUI lookup failed: error border even if WooCommerce marks the (filled) field valid. */
.woocommerce form .form-row.ds-cui-bad input.input-text, .woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #c0392b !important; }
html { scroll-padding-top: var(--kc-header-h, 160px); }
/* Delivery-first checkout: WooCommerce's own "ship to a different address" heading/box is driven by our inverse box. */
.woocommerce-checkout #ship-to-different-address { display: none; }
.woocommerce form .form-row.ds-same-billing { clear: both; margin: .5rem 0 0; padding: .9rem 1rem; background: var(--kc-sand); border-radius: var(--kc-radius-sm); }
/* Checkbox + text as a row; the text wraps beside the box, not under it (beats the generic form-row label rule). */
.woocommerce form .form-row.ds-same-billing label.ds-same-billing__label { display: flex; align-items: flex-start; gap: .65rem; margin: 0; font-size: 1rem; font-weight: 700; color: var(--kc-ink); cursor: pointer; line-height: 1.35; }
.woocommerce form .form-row.ds-same-billing label.ds-same-billing__label input { flex: none; width: 20px; height: 20px; margin: calc((1.35em - 20px) / 2) 0 0; accent-color: var(--kc-primary); }
.woocommerce form .form-row.ds-same-billing label.ds-same-billing__label span { flex: 1 1 auto; min-width: 0; }
.woocommerce-checkout .ds-billing-heading { font-size: 1.15rem; margin: 1.5rem 0 1rem; }
/* Inline checkout errors under the field. */
.woocommerce form .form-row .checkout-inline-error-message { margin: .35rem 0 0; color: #a8281e; font-size: .85rem; font-weight: 600; line-height: 1.35; }
/* No green "valid" border: an empty optional field is not a success. Neutral when valid, red when invalid. */
.woocommerce form .form-row.woocommerce-validated input.input-text, .woocommerce form .form-row.woocommerce-validated select, .woocommerce form .form-row.woocommerce-validated .select2-container .select2-selection { border-color: var(--kc-line); }
.woocommerce form .form-row.woocommerce-invalid label { color: #a8281e; }
@media (max-width: 600px) {
	/* CUI + "Caută firma" need the full width on phones; Nr. Reg. Com. goes on its own row. */
	.woocommerce form .form-row#billing_cui_field, .woocommerce form .form-row#billing_reg_com_field { width: 100%; float: none; }
}
@media (max-width: 900px) {
	.kc-cart-item { position: relative; grid-template-columns: 80px minmax(0, 1fr); grid-template-areas: "thumb info" "bottom bottom"; column-gap: .9rem; row-gap: .8rem; padding: 1rem; align-items: start; }
	.kc-cart-item__thumb img { width: 80px; height: 80px; }
	.kc-cart-item__info { padding-right: 40px; }
	.kc-cart-item__qty { grid-area: bottom; justify-self: start; align-self: center; }
	.kc-cart-item__subtotal { grid-area: bottom; justify-self: end; align-self: center; }
	.kc-cart-item__actions { position: absolute; top: .75rem; right: .75rem; }
	.woocommerce .kc-cart-item .quantity { height: 40px; }
	body .woocommerce .kc-cart-item .quantity button.kc-qty__btn { width: 34px; }
	.woocommerce .kc-cart-item .quantity .qty { width: 2.2em; }
	.kc-cart-actions { padding: .9rem 1rem; }
	body .kc-cart-actions .coupon .input-text { max-width: none; flex-basis: 100%; }
	body .kc-cart-actions .coupon .button { width: 100%; justify-content: center; }
}
@media (max-width: 768px) {
	.woocommerce form .form-row.ds-customer-type .woocommerce-input-wrapper { grid-template-columns: 1fr; }
	/* Checkout summary: rows as flex so the product name gets the width, not the table algorithm. */
	.woocommerce-checkout #order_review table.shop_table, .woocommerce-checkout #order_review table.shop_table tbody, .woocommerce-checkout #order_review table.shop_table tfoot { display: block; width: 100%; max-width: 100%; }
	.woocommerce-checkout #order_review table.shop_table tr { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: .85rem 0; border-top: 1px solid rgba(30, 42, 68, .1); }
	.woocommerce-checkout #order_review table.shop_table tbody tr:first-child { border-top: 0; padding-top: 0; }
	.woocommerce-checkout #order_review table.shop_table tr.order-total { border-top: 2px solid rgba(30, 42, 68, .14); padding-top: 1rem; }
	.woocommerce-checkout #order_review table.shop_table tr > th, .woocommerce-checkout #order_review table.shop_table tr > td, .woocommerce-checkout #order_review table.shop_table tr.order-total > th, .woocommerce-checkout #order_review table.shop_table tr.order-total > td { border: 0 !important; padding: 0 !important; }
	.woocommerce-checkout #order_review table.shop_table tr > th { flex: none; }
	.woocommerce-checkout #order_review table.shop_table tr > td.product-name { flex: 1 1 0; min-width: 0; }
	.woocommerce-checkout #order_review table.shop_table tr > td.product-total, .woocommerce-checkout #order_review table.shop_table tfoot td { flex: 0 0 auto; width: auto !important; max-width: 60%; text-align: right; }
	.kc-review-item__text { min-width: 0; }
	.woocommerce-checkout #order_review table.shop_table tfoot td, .woocommerce-checkout #order_review table.shop_table tfoot td label { white-space: normal !important; }
	.woocommerce-checkout #order_review table.shop_table tr.order-total .includes_tax { white-space: normal; }
}
/* iOS Safari zooms into any field under 16px; keep every control at 16px on touch screens. */
@media (max-width: 768px) {
	input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="url"], select, textarea,
	.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single, .select2-container .select2-search__field,
	.kc-search input, .woocommerce-cart table.cart td.actions .coupon .input-text, .woocommerce .quantity .qty, .ds-price input { font-size: 16px !important; }
}
/* ===== Review 2026-11-08, group B ===== */
/* 6. County select (select2): same box as the text inputs, text centred, same left padding. */
.woocommerce form .form-row .select2-container--default .select2-selection--single { height: 55px; padding: 0; display: flex; align-items: center; border: 2px solid var(--kc-line); border-radius: var(--kc-radius-sm); background: #fff; }
.woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 2.6rem 0 .9em; line-height: 1.3; color: var(--kc-ink); }
.woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: .6rem; height: 100%; display: flex; align-items: center; }
.woocommerce form .form-row .select2-container--default.select2-container--open .select2-selection--single, .woocommerce form .form-row .select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--kc-primary); }
/* 8. PF / PJ: two equal columns whatever the label length. */
.woocommerce form .form-row.ds-customer-type .woocommerce-input-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce form .form-row.ds-customer-type label.radio { min-width: 0; }
/* 10. Product card titles: normal wrapping (balance broke them after two words). */
ul.products li.product .woocommerce-loop-product__title { text-wrap: wrap; }
/* 10. Cart totals: "(include X lei TVA)" on its own line, never split. */
.cart_totals .order-total .includes_tax { display: block; white-space: nowrap; font-size: .78rem; font-weight: 500; color: var(--kc-muted); }
.cart_totals .order-total .includes_tax .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
/* 12. Payment: description starts under the title (radio 20px + icon 36px + two gaps). */
.woocommerce-checkout #payment ul.payment_methods li div.payment_box { padding-left: calc(20px + 36px + 1.3rem) !important; }
/* Checkbox absolutely placed, text + required star flow inline (as flex items the star drifted to the right). */
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox { display: block; position: relative; padding-left: 28px; font-size: .9rem; font-weight: 500; line-height: 1.45; color: var(--kc-ink-soft); }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox input { position: absolute; left: 0; top: .15em; width: 18px; height: 18px; margin: 0; accent-color: var(--kc-primary); }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .required { margin-left: .1em; text-decoration: none; }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox .woocommerce-terms-and-conditions-checkbox-text { font-weight: inherit; }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox a { font-weight: 600; }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text p { margin: 0 0 .6rem; font-size: .9rem; line-height: 1.45; }
@media (max-width: 768px) {
	.woocommerce form .form-row.ds-customer-type .woocommerce-input-wrapper { grid-template-columns: 1fr; }
	.woocommerce form .form-row .select2-container--default .select2-selection--single { height: 52px; }
}
/* 14. My account (logged out): the login/register heading sits as close to the header as the cart title. */
.woocommerce-account .entry-content .woocommerce h2 { margin-top: 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--kc-radius-sm); border-top-width: 3px; background: var(--kc-surface); box-shadow: var(--kc-shadow); }
.woocommerce-message { border-top-color: var(--kc-mint); }
.woocommerce-message::before { color: var(--kc-mint); }
.woocommerce-info { border-top-color: var(--kc-sky); }
.woocommerce-info::before { color: var(--kc-sky); }

/* =========================================================================
   Homepage
   ========================================================================= */
.ds-home .site-main { padding-top: 0; }
.kc-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; padding: 3rem 0 2.5rem; }
.kc-hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--kc-primary-deep); background: var(--kc-primary-soft); padding: .4em .9em; border-radius: 999px; }
.kc-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 1rem 0 .9rem; max-width: 14ch; }
.kc-hero h1 em { font-style: normal; color: var(--kc-primary); }
.kc-hero p { font-size: 1.12rem; color: var(--kc-ink-soft); max-width: 46ch; margin: 0 0 1.5rem; }
.kc-hero__strip { display: none; }
.kc-hero__actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.kc-hero__brands { margin-top: 2rem; font-size: .8rem; color: var(--kc-muted); display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; align-items: center; }
.kc-hero__brands strong { color: var(--kc-ink-soft); font-weight: 800; letter-spacing: .04em; }
.kc-hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: end; }
.kc-hero__blob { position: absolute; inset: 6% 4%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: linear-gradient(145deg, var(--kc-sun), var(--kc-primary-soft) 55%, var(--kc-sand)); }
.kc-hero__card { position: absolute; width: 50%; background: var(--kc-surface); border-radius: 14px; padding: .55rem; box-shadow: var(--kc-shadow-hover); display: block; text-decoration: none; color: var(--kc-ink); }
.kc-hero__card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
.kc-hero__card > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; font-weight: 700; margin-top: .5rem; line-height: 1.3; }
.kc-hero__card small .amount { font-size: .85rem; color: var(--kc-primary-deep); display: inline; }
.kc-hero__card small .amount span { display: inline; }
.kc-hero__card small { display: block; color: var(--kc-muted); font-weight: 600; white-space: nowrap; }
.kc-hero__card:nth-child(2) { top: 2%; left: 2%; transform: rotate(-7deg); }
.kc-hero__card:nth-child(3) { top: 18%; right: 0; transform: rotate(5deg); }
.kc-hero__card:nth-child(4) { bottom: 0; left: 22%; transform: rotate(-2deg); z-index: 1; }
.kc-hero__card:hover { transform: rotate(0) scale(1.03); z-index: 2; }
/* Hero with the photo: the photo fills the art area, two real product cards float over its corners. */
.kc-hero__art:has(.kc-hero__photo) { aspect-ratio: auto; max-width: 580px; }
.kc-hero__photo { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--kc-shadow-hover); }
.kc-hero__cards { display: contents; }
.kc-hero__art:has(.kc-hero__photo) .kc-hero__card { width: 27%; padding: .4rem; }
.kc-hero__art:has(.kc-hero__photo) .kc-hero__card > span { font-size: .72rem; }
/* Both cards sit on the rug (lower edge), never over the faces. */
.kc-hero__art:has(.kc-hero__photo) .kc-hero__card:nth-child(1) { top: auto; bottom: -9%; left: -5%; right: auto; transform: rotate(-5deg); }
.kc-hero__art:has(.kc-hero__photo) .kc-hero__card:nth-child(2) { top: auto; bottom: -11%; right: 4%; left: auto; transform: rotate(4deg); }
@media (max-width: 900px) { .kc-hero__art:has(.kc-hero__photo) .kc-hero__cards { display: none; } .kc-hero__art:has(.kc-hero__photo) { max-width: 560px; justify-self: stretch; } }
.kc-hero__art:has(.kc-hero__photo) .kc-hero__card:hover { transform: rotate(0) scale(1.03); }

.kc-section { margin-top: 3.5rem; }
.kc-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.kc-section__head h2 { margin: 0; }
.kc-section__head p { margin: .25rem 0 0; color: var(--kc-ink-soft); }
.kc-section__more { font-weight: 800; color: var(--kc-primary-deep); text-decoration: none; white-space: nowrap; }
.kc-section__more:hover { text-decoration: underline; }

.kc-band { background: var(--kc-ink); color: #fff; border-radius: 24px; padding: 2.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; margin-top: 3.5rem; }
.kc-band h2 { color: #fff; margin: 0 0 .5rem; }
.kc-band p { color: #c8cfe0; margin: 0; max-width: 50ch; }
.kc-band__steps { display: grid; gap: .75rem; }
.kc-band__step { display: flex; gap: .9rem; align-items: flex-start; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: .9rem 1rem; }
.kc-band__step b { display: grid; place-items: center; box-sizing: border-box; padding-top: 2px; line-height: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--kc-sun); color: var(--kc-ink); flex: none; font-family: var(--kc-display); }
.kc-band__step span { font-size: .95rem; }

@media (max-width: 900px) {
	.kc-band { grid-template-columns: 1fr; padding: 1.75rem; }
}
/* Tablets keep text and photo side by side, a little tighter. */
@media (min-width: 720px) and (max-width: 900px) {
	.kc-hero { grid-template-columns: 1.05fr 1fr; gap: 1.5rem; padding: 2rem 0; }
	.kc-hero h1 { font-size: 2.1rem; margin: .8rem 0 .7rem; }
	.kc-hero p { font-size: 1rem; margin-bottom: 1.1rem; }
	.kc-hero__eyebrow { font-size: .66rem; letter-spacing: .08em; white-space: nowrap; }
	.kc-hero__actions { gap: .5rem; flex-wrap: nowrap; }
	.kc-hero__actions .button { padding-inline: .85em; font-size: .92rem; white-space: nowrap; }
	.kc-hero__brands { margin-top: 1.25rem; }
}
@media (max-width: 719px) {
	.kc-hero { grid-template-columns: minmax(0, 1fr); }
	.kc-hero > div { min-width: 0; }
}
/* Phones: photo first, the label as a chip on it, short headline and line, main button on the first screen. */
@media (max-width: 719px) {
	.kc-hero { position: relative; gap: 1.1rem; padding: 1rem 0 1.75rem; }
	.kc-hero__art, .kc-hero__art:has(.kc-hero__photo) { order: -1; max-width: none; justify-self: stretch; }
	.kc-hero__photo { aspect-ratio: 16 / 10; object-fit: cover; object-position: 70% 60%; border-radius: 20px; }
	.kc-hero__eyebrow { position: absolute; top: 1.7rem; left: .7rem; z-index: 1; max-width: calc(100% - 1.4rem); background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(30, 42, 68, .12); font-size: .62rem; letter-spacing: .08em; white-space: nowrap; padding: .5em .85em; }
	.kc-hero__eyebrow svg { width: 13px; height: 13px; flex: none; }
	/* One line on any phone: the headline is ~14.8 times as wide as its font size; 15.2 leaves a small margin. */
	.kc-hero h1 { font-size: min(1.9rem, calc((100vw - 32px) / 15.2)); line-height: 1.15; white-space: nowrap; margin: 0 0 .5rem; max-width: none; }
	.kc-hero > div > p, .kc-hero__brands { display: none; }
	.kc-hero h1 { margin-bottom: .8rem; }
	.kc-hero__actions { flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: .5rem; }
	.kc-hero .kc-hero__actions .button { flex: 1 1 0; width: auto; min-width: 0; min-height: 0; height: 42px; padding: 0 .5em; font-size: .86rem; line-height: 1; white-space: nowrap; }
	/* Product strip: scrolls sideways, bleeds to the screen edges. */
	.kc-hero__strip { display: block; margin-top: 1.25rem; }
	.kc-hero .kc-hero__strip-title { display: block; margin: 0 0 .55rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kc-muted); }
	.kc-hero__strip-row { display: flex; gap: .75rem; margin-inline: -16px; padding: 0 16px .25rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.kc-hero__strip-row::-webkit-scrollbar { display: none; }
	.kc-strip-card { flex: 0 0 132px; width: 132px; display: flex; flex-direction: column; padding: .5rem .5rem .55rem; border-radius: 14px; border: 1px solid var(--kc-line); background: var(--kc-surface); scroll-snap-align: start; }
	.kc-strip-card__link, .kc-strip-card__link:hover, .kc-strip-card__link:focus, .kc-strip-card__link:active { display: block; color: var(--kc-ink); text-decoration: none; }
	.kc-strip-card__link img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
	.kc-strip-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .5rem .15rem 0; min-height: 2.5em; font-size: .74rem; font-weight: 600; line-height: 1.25; }
	/* Price on the left, a small square cart button in the bottom-right corner (like eMAG, in the shop's colours). */
	.kc-strip-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-top: auto; padding: .3rem 0 0 .15rem; }
	.kc-strip-card__price { font-size: .84rem; font-weight: 800; color: var(--kc-ink); white-space: nowrap; }
	.kc-strip-card__price .amount { color: inherit; }
	.kc-strip-card__price del { display: none; }
	body .kc-hero__strip a.kc-strip-card__add { display: grid; place-items: center; flex: none; width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: 10px; background: var(--kc-primary); color: #fff; box-shadow: none; text-decoration: none; transform: none; }
	body .kc-hero__strip a.kc-strip-card__add:hover, body .kc-hero__strip a.kc-strip-card__add:focus { background: var(--kc-primary-deep); color: #fff; transform: none; }
	body .kc-hero__strip a.kc-strip-card__add svg { width: 18px !important; height: 18px !important; stroke-width: 2.1; }
	body .kc-hero__strip a.kc-strip-card__add.ds-is-added { background: var(--kc-primary); }
	body .kc-hero__strip a.kc-strip-card__add::after, .kc-hero__strip .added_to_cart, .kc-hero__strip .kadence-svg-iconset { display: none !important; }
}
@media (max-width: 719px) {
	/* Same 16px side gutter on every page (the parent theme uses 24px on listings, product, cart and checkout). */
	:root, body { --global-content-edge-padding: 16px; }
	body { font-size: 16px; }
	ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .75rem !important; }
	/* Phones: smaller text and three title lines, so more of each name fits on the card. */
	body .woocommerce ul.products li.product .woocommerce-loop-product__title, ul.products li.product .woocommerce-loop-product__title { margin: 0 0 .35rem !important; font-size: .86rem !important; line-height: 1.3 !important; -webkit-line-clamp: 3; min-height: 3.9em; max-height: 3.9em; }
	ul.products li.product .product-details { padding-top: .6rem; }
	ul.products li.product .price { font-size: 1rem; margin-bottom: .55rem; }
	ul.products li.product .ds-card-meta { font-size: .66rem; }
	ul.products li.product.loop-entry { width: auto !important; margin: 0 !important; padding: .5rem .5rem .75rem; }
	ul.products li.product .ds-stock-badge { top: .7rem; left: .7rem; font-size: .64rem; height: 20px; }
	body .woocommerce ul.products li.product .product-details .button, ul.products li.product a.button { height: 36px !important; min-height: 0 !important; font-size: .78rem !important; padding: 0 .4em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	body .woocommerce ul.products li.product .product-details, ul.products li.product .product-details { padding: .6rem 0 0 !important; }
	ul.products li.product > .ds-card-meta { margin: .55rem 8px 0; }
}
@media (max-width: 560px) {
	h1 { font-size: 2rem; }
	.kc-section { margin-top: 2.5rem; }
	.kc-section__head { flex-direction: column; align-items: flex-start; }
}

/* Cart totals: prices a step larger, the total clearly the biggest number. */
.woocommerce .cart_totals table.shop_table td .woocommerce-Price-amount { font-size: 1.1rem; font-weight: 700; }
.woocommerce .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount { font-family: var(--kc-display); font-size: 1.7rem; font-weight: 700; color: var(--kc-ink); }

/* =========================================================================
   Order in two steps (2026-11-12): step bar, cart without address form, checkout as numbered sections
   ========================================================================= */
.kc-steps { list-style: none; display: flex; align-items: center; gap: .6rem; max-width: 760px; margin: 0 0 1.5rem; padding: 0; }
.kc-steps__item { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 700; font-size: .95rem; color: var(--kc-muted); white-space: nowrap; }
.kc-steps__item:not(:first-child) { flex: 1 1 auto; }
.kc-steps__item:not(:first-child)::before { content: ""; flex: 1 1 0; min-width: 1rem; height: 3px; border-radius: 3px; background: var(--kc-line); }
.kc-steps__item.is-current::before, .kc-steps__item.is-done::before { background: var(--kc-mint); }
.kc-steps__item a { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.kc-steps__item a:hover .kc-steps__label { text-decoration: underline; text-underline-offset: 3px; }
.kc-steps__num { flex: none; display: grid; place-items: center; box-sizing: border-box; padding-top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--kc-sand-deep); color: var(--kc-ink-soft); font-family: var(--kc-display); font-size: .95rem; font-weight: 700; line-height: 1; }
.kc-steps__num .kc-icon { width: 16px; height: 16px; stroke-width: 3; }
.kc-steps__item.is-current { color: var(--kc-ink); }
.kc-steps__item.is-current .kc-steps__num { background: var(--kc-ink); color: #fff; }
.kc-steps__item.is-done { color: var(--kc-ink-soft); }
.kc-steps__item.is-done .kc-steps__num { background: var(--kc-mint); color: #fff; padding-top: 0; }

/* Cart: the address is asked at checkout, the cart shows only the cost. */
.woocommerce-cart .cart_totals .woocommerce-shipping-destination, .woocommerce-cart .cart_totals .woocommerce-shipping-calculator { display: none; }

/* Checkout: sections on the left, summary on the right. */
.woocommerce-checkout form.checkout.kc-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 1.5rem 2rem; align-items: start; }
.kc-checkout::before, .kc-checkout::after { display: none !important; }
/* WooCommerce inserts its error summary as the form's first child: it gets its own full-width row. */
.kc-checkout > .woocommerce-NoticeGroup, .kc-checkout > .woocommerce-error, .kc-checkout > .woocommerce-message { grid-column: 1 / -1; min-width: 0; margin: 0; }
.kc-checkout > .kc-checkout__main { grid-column: 1; }
.kc-checkout > .kc-checkout__side { grid-column: 2; }
.kc-checkout__main, .kc-checkout__details { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.woocommerce-checkout .kc-checkout #customer_details, .woocommerce-checkout .kc-checkout #order_review, .woocommerce-checkout .kc-checkout #order_review_heading { float: none; width: auto; clear: none; }
.kc-checkout__side { position: sticky; top: calc(var(--kc-header-h, 110px) + 1rem); min-width: 0; }
.woocommerce-checkout .kc-checkout #order_review_heading { margin: 0 0 .75rem; font-size: 1.25rem; }
.woocommerce-checkout .kc-checkout #order_review { padding-bottom: .5rem; }
.woocommerce-checkout .kc-checkout #order_review table.shop_table { margin-bottom: 0; }
.kc-step { min-width: 0; background: var(--kc-surface); border: 1px solid var(--kc-line); border-radius: var(--kc-radius); }
.kc-step__head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--kc-line); }
.kc-step__num { flex: none; display: grid; place-items: center; box-sizing: border-box; padding-top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--kc-ink); color: #fff; font-family: var(--kc-display); font-size: 1rem; font-weight: 700; line-height: 1; }
.woocommerce-checkout .kc-step__title { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.kc-step__body { padding: 1.25rem; }
.kc-step__body::after { content: ""; display: block; clear: both; }
.woocommerce-checkout .kc-step p.kc-step__lead { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; color: var(--kc-ink-soft); font-weight: 600; }
.kc-step__lead .kc-icon { flex: none; width: 22px; height: 22px; color: var(--kc-primary); }
/* The section header replaces WooCommerce's own headings. */
.woocommerce-checkout .kc-step .woocommerce-billing-fields > h3, .woocommerce-checkout .kc-step .woocommerce-additional-fields > h3 { display: none; }
.woocommerce-checkout .kc-step .woocommerce-billing-fields__field-wrapper::after, .woocommerce-checkout .kc-step .woocommerce-shipping-fields__field-wrapper::after { content: ""; display: block; clear: both; }
.woocommerce-checkout .kc-step form .form-row:last-child, .woocommerce-checkout .kc-step .woocommerce-additional-fields__field-wrapper .form-row { margin-bottom: 0; }
.woocommerce form .kc-step .form-row.ds-same-billing { margin: 0; }
.woocommerce-checkout .kc-step .ds-billing-heading { margin: 1.25rem 0 1rem; }
.woocommerce-checkout .kc-step .woocommerce-additional-fields { margin-top: 1.25rem; }
.woocommerce-checkout .kc-step #payment .place-order { padding-bottom: 0; margin-bottom: 0; }
.woocommerce-checkout .kc-step #payment p.kc-pay__note { margin-bottom: 0; }

@media (max-width: 980px) {
	/* One column; the summary sits right before payment, so the total is seen before "Plasează comanda". */
	.woocommerce-checkout form.checkout.kc-checkout { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
	.kc-checkout__main, .kc-checkout__details { display: contents; }
	.kc-step--billing { order: 1; }
	.kc-step--shipping { order: 2; }
	.kc-checkout__side { order: 3; position: static; }
	.kc-step--payment { order: 4; }
}
@media (max-width: 600px) {
	.kc-steps { gap: .4rem; margin-bottom: 1rem; }
	.kc-steps__item { gap: .4rem; font-size: .9rem; }
	.kc-steps__item:not(.is-current) .kc-steps__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.kc-step__head { padding: .85rem 1rem; }
	/* One field per row on phones (the county and locality lists need the width). */
	.woocommerce form .kc-step .form-row-first, .woocommerce form .kc-step .form-row-last { float: none; width: 100%; }
	.kc-step__body { padding: 1rem; }
	.woocommerce-checkout .kc-step__title { font-size: 1.1rem; }
}
/* County select: the same red border as the text fields when it is left empty. */
.woocommerce form .form-row.woocommerce-invalid .select2-container--default .select2-selection--single { border-color: #c0392b !important; }

/* Footer legal row: withdrawal link, cookie settings, the ANPC pictogram (250x50, as the order requires). */
.kc-footer__bottom-inner { align-items: center; }
.kc-footer__bottom-inner > span:first-child a { color: inherit; text-decoration: none; }
.kc-footer__legal { align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.kc-footer__legal a { white-space: nowrap; }
.kc-footer__sal { display: block; width: 250px; height: 50px; flex: none; border-radius: 6px; background: #fff; overflow: hidden; }
.kc-footer__sal img { display: block; width: 250px; height: 50px; object-fit: contain; }
/* NETOPIA logo slot: their script fills it with a 250x50 white logo; the box is reserved so nothing jumps. */
.kc-footer__netopia { display: block; width: 250px; height: 50px; flex: none; }
.kc-footer__netopia a, .kc-footer__netopia img { display: block; width: 100%; height: 100%; }

/* Text pages: visible title, readable measure. */
body.kc-text-page .entry-content-wrap { max-width: 800px; margin-inline: auto; }
body.kc-text-page .entry-header { margin-bottom: 1.25rem; }
body.kc-text-page h1.entry-title { margin: 0; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.15; }
body.kc-text-page .entry-content h2 { margin: 2rem 0 .6rem; font-size: 1.3rem; }
body.kc-text-page .entry-content p, body.kc-text-page .entry-content li { line-height: 1.65; }
body.kc-text-page .entry-content ul { margin: 0 0 1rem; padding-left: 1.25rem; }
body.kc-text-page .entry-content li + li { margin-top: .35rem; }

/* Top strip: contact e-mail (and phone, once set) instead of Contact/Livrare in the main menu. */
.kc-topbar__contact { gap: 1rem; }
.kc-topbar__contact a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; white-space: nowrap; }
.kc-topbar__contact a:hover { color: var(--kc-primary-deep); }
@media (max-width: 1024px) { .kc-topbar__inner { gap: 1.25rem; } }
@media (max-width: 600px) { .kc-topbar__inner span.kc-topbar__contact { display: none; } }

/* Product page: the picture opens the full-screen viewer on click. */
.woocommerce div.product .woocommerce-product-gallery__image a { cursor: zoom-in; }
/* Less empty space between the header and the breadcrumb on product and catalog pages. */
body.single-product #primary.content-area, body.post-type-archive-product #primary.content-area, body.tax-product_cat #primary.content-area, body.tax-product_brand #primary.content-area, body.search-results #primary.content-area, body.kc-listing-page #primary.content-area { margin-top: 1.75rem; }

/* Long order button label („Comandă și plătește la livrare”) on the narrowest phones: one line. */
@media (max-width: 400px) { .woocommerce-checkout #payment #place_order { padding-inline: .5em; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; } }
@media (max-width: 345px) { .woocommerce-checkout #payment #place_order { font-size: .86rem; } }
/* Card button on the narrowest phones: the text shrinks a little so „Adaugă în coș” is never cut. */
@media (max-width: 380px) { body .woocommerce ul.products li.product .product-details .button, ul.products li.product a.button { font-size: .74rem !important; padding: 0 .2em !important; gap: .25em !important; letter-spacing: -.01em; } }
@media (max-width: 340px) { body .woocommerce ul.products li.product .product-details .button, ul.products li.product a.button { font-size: .68rem !important; } }

/* Desktop cards (Dorin, 2026-11-12): three title lines instead of two, a slimmer button and less padding.
   Kept at the end of the file and prefixed with body so they win over the base card rules above. */
@media (min-width: 720px) {
	body ul.products li.product.loop-entry { padding: .5rem .5rem .7rem; }
	body ul.products li.product .product-details, body .woocommerce ul.products li.product .product-details { margin-inline: 4px !important; padding: .3rem 0 0 !important; }
	body ul.products li.product > .ds-card-meta { margin: .6rem 4px 0; }
	body ul.products li.product .woocommerce-loop-product__title { -webkit-line-clamp: 3; font-size: .93rem !important; line-height: 1.35 !important; min-height: 4.05em; max-height: 4.05em; margin: 0 0 .35rem !important; }
	body ul.products li.product .price { font-size: 1.12rem; margin-bottom: .6rem; }
	body ul.products li.product a.button, body ul.products li.product .product-action-wrap a.button { height: 38px !important; min-height: 0 !important; font-size: .84rem !important; }
}

/* Phone cards (Dorin, 2026-11-12): less padding, the heart up in the corner of the photo. */
@media (max-width: 719px) {
	body ul.products li.product.loop-entry { padding: 5px 5px 9px !important; }
	body ul.products li.product .product-details, body .woocommerce ul.products li.product .product-details { margin-inline: 5px !important; }
	body ul.products li.product > .ds-card-meta { margin: .5rem 5px 0; }
	body ul.products li.product .ds-fav { top: 7px; right: 7px; width: 32px; height: 32px; }
	body ul.products li.product .ds-fav .ds-fav__icon { width: 22px; height: 22px; }
	body ul.products li.product .ds-stock-badge { top: 11px; left: 11px; }
}

/* Main buttons (Dorin, 2026-11-13: 52-58px looked heavy): one slimmer height everywhere, 44px,
   with the quantity stepper next to "Adaugă în coș" at the same height. */
body .woocommerce .wc-proceed-to-checkout a.checkout-button,
body.single-product div.product form.cart .single_add_to_cart_button,
body.woocommerce-checkout #payment #place_order { min-height: 0 !important; height: 44px; padding-top: 0; padding-bottom: 0; font-size: .95rem; line-height: 1; }
body.single-product div.product form.cart .single_add_to_cart_button { padding-inline: 1.8em; }
body.single-product div.product form.cart .quantity { height: 44px; }
body.single-product div.product form.cart .quantity .qty { min-height: 0; font-size: 1rem; }
/* Phones: the cart's product list and the totals were touching. */
@media (max-width: 768px) {
	body.woocommerce-cart .cart-collaterals { margin-top: 1rem; }
}

/* Card "Adaugă în coș": the cart icon was small and thin next to the bold text and looked low;
   a bit larger and bolder, centred on the capital letters (Dorin, 2026-11-13). */
body ul.products li.product a.button .ds-btn__icon { width: 1.25em !important; height: 1.25em !important; stroke-width: 2.1; transform: translateY(-0.1em); }

/* Product page "Adaugă în coș" = the card button (Dorin, 2026-11-13: the same cart button everywhere):
   cart icon, same height, text size and icon size; the quantity stepper next to it follows the height. */
body.single-product div.product form.cart .single_add_to_cart_button { height: 38px; font-size: .84rem; gap: .4em; padding-inline: 1.4em; }
body.single-product div.product form.cart .single_add_to_cart_button::before { content: ""; flex: none; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1.5'/%3E%3Ccircle cx='18' cy='21' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.4a1 1 0 0 0 1 .8h9.7a1 1 0 0 0 1-.8L21 8H6.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1.5'/%3E%3Ccircle cx='18' cy='21' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.4a1 1 0 0 0 1 .8h9.7a1 1 0 0 0 1-.8L21 8H6.2'/%3E%3C/svg%3E") center / contain no-repeat; transform: translateY(-0.1em); }
body.single-product div.product form.cart .single_add_to_cart_button.loading::before { display: none; }
body.single-product div.product form.cart .quantity { height: 38px; }

/* One button height everywhere (Dorin, 2026-11-13): 38 px on desktop, 36 px on phones, like "Adaugă în coș" on the cards.
   Covers the homepage buttons, product tabs, catalog toolbar and filters, "Încarcă mai multe", cart and checkout. */
:root { --kc-btn-h: 38px; }
@media (max-width: 719px) { :root { --kc-btn-h: 36px; } }
body .kc-hero .kc-hero__actions .button,
body .ds-load-more__btn, body button.ds-load-more__btn,
body button.ds-sidebar__apply, body button.ds-sidebar__apply:hover, body button.ds-sidebar__apply:focus,
body button.ds-toolbar__filters, body button.ds-toolbar__filters:hover, body button.ds-toolbar__filters:focus,
body .ds-toolbar__sort select,
body .woocommerce .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout #payment #place_order,
body .entry-content a.button, body .ds-favorites a.button, body .ds-age-guide a.button, body .ds-guide__links a.button { height: var(--kc-btn-h) !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1 !important; }
body .kc-hero .kc-hero__actions .button, body .ds-load-more__btn, body button.ds-sidebar__apply, body .woocommerce .wc-proceed-to-checkout a.checkout-button, body.woocommerce-checkout #payment #place_order { font-size: .9rem !important; }
/* Product tabs: the pill (2px border included) is as tall as the buttons. */
body.single-product div.product .woocommerce-tabs ul.tabs li a { min-height: calc(var(--kc-btn-h) - 4px) !important; font-size: .86rem; }

/* Text in pills sits a little high with Nunito Sans; nudged to the middle, measured by pixels (2026-11-13). */
body.single-product div.product .woocommerce-tabs ul.tabs li a { padding-top: 3px !important; }
body .ds-stock-badge { padding-top: 2px; }
@media (max-width: 719px) { body .ds-stock-badge { padding-top: 1px; } }

/* Product photo viewer (PhotoSwipe 4) as a centred window, not full screen (Dorin, 2026-11-13).
   PhotoSwipe sizes the photo from .pswp__scroll-wrap, so the window is that element; the page stays dimmed around it. */
.pswp .pswp__bg { background: rgba(30, 42, 68, .62) !important; opacity: 1 !important; }
.pswp .pswp__scroll-wrap { left: max(24px, calc(50% - 480px)) !important; right: max(24px, calc(50% - 480px)) !important; top: max(24px, calc(50% - 400px)) !important; bottom: max(24px, calc(50% - 400px)) !important; width: auto !important; height: auto !important; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); }
.pswp .pswp__top-bar { background: transparent !important; }
.pswp .pswp__counter { color: var(--kc-ink-soft, #4a5570); opacity: 1; font-weight: 700; }
.pswp .pswp__button--share, .pswp .pswp__button--fs, .pswp .pswp__button--zoom { display: none !important; }
/* Close button pinned to the window's top-right corner (the loading indicator floats beside it on phones). */
.pswp .pswp__button--close { position: absolute; top: 8px; right: 8px; z-index: 2; float: none; width: 40px; height: 40px; margin: 0; border-radius: 999px; background: var(--kc-sand, #fbf3ea) !important; opacity: 1; }
.pswp .pswp__button--close, .pswp .pswp__button--close:hover { background-image: none !important; }
.pswp .pswp__button--close::before, .pswp .pswp__button--close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.4px; margin: -1.2px 0 0 -8px; border-radius: 2px; background: var(--kc-ink, #1e2a44); transform: rotate(45deg); }
.pswp .pswp__button--close::after { transform: rotate(-45deg); }
.pswp .pswp__button--arrow--left::before, .pswp .pswp__button--arrow--right::before { background-color: var(--kc-ink, #1e2a44) !important; border-radius: 999px; }
.pswp .pswp__caption { display: none; }
.pswp .pswp__preloader { position: absolute; top: 8px; right: 56px; }
@media (max-width: 719px) {
	/* Phones: a window just taller than the (square) photo, centred. */
	.pswp .pswp__scroll-wrap { left: 12px !important; right: 12px !important; top: max(12px, calc(50% - 50vw + 12px - 44px)) !important; bottom: max(12px, calc(50% - 50vw + 12px - 44px)) !important; border-radius: 18px; }
}

/* Phones, product page (Dorin, 2026-11-13): compact stepper, the button takes the rest of the row; a sticky bar
   (ds-core .ds-buybar) repeats the button once it scrolls away. */
@media (max-width: 719px) {
	/* In the page: a compact stepper, the button takes the rest of the row. */
	body.single-product div.product form.cart { display: flex; align-items: center; gap: .6rem; }
	body.single-product div.product form.cart .quantity { flex: none; height: 44px; }
	body.single-product div.product form.cart .quantity .qty { width: 2.2em; }
	body .woocommerce.single-product div.product form.cart .quantity button.kc-qty__btn, body.single-product form.cart .quantity button.kc-qty__btn { width: 32px; }
	body.single-product div.product form.cart .single_add_to_cart_button { flex: 1 1 auto !important; width: auto !important; max-width: none !important; height: 44px; font-size: .95rem; margin: 0 !important; }
	body.single-product div.product form.cart .quantity { margin: 0 !important; }
	body.single-product div.product form.cart::before, body.single-product div.product form.cart::after { display: none !important; }
}

/* Product gallery thumbnails: one row that scrolls sideways (they wrapped onto a second row on phones). */
body.single-product.woocommerce div.product div.images .flex-control-thumbs { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 3px 3px 4px !important; }
body.single-product.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar { display: none; }
body.single-product.woocommerce div.product div.images .flex-control-thumbs li { flex: 0 0 72px !important; width: 72px !important; scroll-snap-align: start; }
body.single-product.woocommerce div.product div.images .flex-control-thumbs li:first-child { margin-left: auto !important; }
body.single-product.woocommerce div.product div.images .flex-control-thumbs li:last-child { margin-right: auto !important; }
@media (max-width: 719px) {
	body.single-product.woocommerce div.product div.images .flex-control-thumbs { margin-inline: -16px !important; padding-inline: 16px !important; max-width: none !important; }
	body.single-product.woocommerce div.product div.images .flex-control-thumbs li { flex-basis: 64px !important; width: 64px !important; }
}

/* Main and secondary buttons share one look (Dorin, 2026-11-13): the same soft shadow and the same small lift on hover. */
:root { --kc-btn-shadow: 0 6px 14px -8px rgba(242, 107, 58, .45); }
.button, button.button, .woocommerce a.button, .woocommerce button.button, .single_add_to_cart_button, .checkout-button, .kc-hero__actions .button { box-shadow: var(--kc-btn-shadow); }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .single_add_to_cart_button:hover, .checkout-button:hover,
.button:focus, .button:active, .woocommerce a.button:focus, .woocommerce a.button:active { transform: none !important; box-shadow: var(--kc-btn-shadow); }
body a.button.button--ghost:hover { background: var(--kc-sand-deep) !important; }
/* A small lift on hover, the same on both (mouse only; on phones the tap would leave it lifted). */
@media (hover: hover) {
	.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .single_add_to_cart_button:hover, .checkout-button:hover, body a.button.button--ghost:hover { transform: translateY(-2px) !important; box-shadow: 0 10px 18px -10px rgba(242, 107, 58, .55) !important; }
}

/* Order addresses (confirmation page, account): cards with an icon per line. */
.kc-addresses { display: grid; gap: 1rem; margin: 1.5rem 0 0; }
.kc-addresses--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 719px) { .kc-addresses--two { grid-template-columns: 1fr; } }
.kc-addr { padding: 1.1rem 1.2rem; border: 1px solid var(--kc-line); border-radius: var(--kc-radius); background: var(--kc-surface); }
.kc-addr__title { margin: 0 0 .8rem; font-size: 1.15rem; }
.kc-addr__lines { display: grid; gap: .6rem; margin: 0 !important; padding: 0 !important; list-style: none; }
.kc-addr__line { display: flex; align-items: flex-start; gap: .65rem; margin: 0; line-height: 1.45; color: var(--kc-ink); overflow-wrap: anywhere; }
.kc-addr__icon { flex: none; width: 18px; height: 18px; margin-top: .15em; color: var(--kc-primary); }
.kc-addr__muted { color: var(--kc-ink-soft); }

/* Order confirmation: the "Număr comandă / Dată / Total / Metodă" summary as a card, like the status and address cards
   (WooCommerce draws it as bare text with dashed separators). */
body .woocommerce ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.2rem; margin: 0 0 1.75rem !important; padding: 1.1rem 1.2rem !important; list-style: none; border: 1px solid var(--kc-line); border-radius: var(--kc-radius); background: var(--kc-surface); }
body .woocommerce ul.woocommerce-order-overview::before, body .woocommerce ul.woocommerce-order-overview::after { display: none !important; }
body .woocommerce ul.woocommerce-order-overview li { float: none; margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--kc-muted); line-height: 1.3; min-width: 0; }
body .woocommerce ul.woocommerce-order-overview li strong { display: block; margin-top: .3rem; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--kc-ink); overflow-wrap: anywhere; }
body .woocommerce ul.woocommerce-order-overview li.woocommerce-order-overview__email { grid-column: span 2; }
@media (max-width: 719px) { body .woocommerce ul.woocommerce-order-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.woocommerce-order > p.woocommerce-thankyou-order-received { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; color: var(--kc-ink); }
/* The order steps bar keeps no list indent (Kadence's ul padding won over .kc-steps). */
body ul.kc-steps, body ol.kc-steps { padding: 0 !important; }
.woocommerce-order p.woocommerce-thankyou-order-received:empty { display: none; }

/* Reductions on cards: a small first row "149,00 lei  -35%", the new price below (like the big marketplaces); it
   uses the free space above the button, so cards in a row stay aligned. */
body ul.products li.product .price:has(del) { display: flex !important; flex-wrap: wrap; align-items: center; column-gap: .4em; row-gap: .1em; }
body ul.products li.product .price:has(del) del { order: 1; margin: 0 !important; font-size: .78rem !important; font-weight: 500; line-height: 1.2; }
body ul.products li.product .price:has(del) .ds-off { order: 2; margin: 0; font-size: .7rem !important; vertical-align: 0; }
body ul.products li.product .price:has(del) ins { order: 3; flex-basis: 100%; }
body ul.products li.product .price .screen-reader-text { position: absolute; }
.kc-strip-card__price .ds-off { display: none; }
body ul.products li.product .price:has(del) del .amount, body ul.products li.product .price:has(del) del bdi { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }

/* "Reduceri" in the menu (only while something is on sale): the shop's accent colour. */
.kc-nav__sale > a, .kc-nav__sale > a:hover { color: var(--kc-primary-deep); }

/* Product gallery: a fixed square frame, each photo fitted and centred on white (portrait or landscape alike), so the
   page does not jump when the photo changes. Thumbnails the same way. */
body.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image { background: #fff; }
body.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image > a { display: flex !important; align-items: center; justify-content: center; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: #fff; }
body.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image > a img { width: 100% !important; height: 100% !important; max-height: none; object-fit: contain; border-radius: 0; }
body.single-product.woocommerce div.product div.images .flex-viewport { height: auto !important; }
body.single-product.woocommerce div.product div.images .flex-control-thumbs li img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: contain; background: #fff; }


/* Product page on phones: a one-line breadcrumb without the product name (the title right below repeats it), so
   more of the page fits on the first screen. */
@media (max-width: 719px) {
	.ds-breadcrumb--product { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.ds-breadcrumb--product .ds-breadcrumb__item:last-child, .ds-breadcrumb--product .ds-breadcrumb__sep:has(+ .ds-breadcrumb__item:last-child) { display: none; }
}

/* Product meta (SKU, Categorii, Brand) now sits after the description: one fixed size, wherever it lands. */
body.single-product div.product .product_meta { font-size: 13.5px !important; line-height: 1.6; margin-top: .5rem; }
body.single-product div.product .product_meta * { font-size: inherit !important; }

/* Card payment pages (2026-11-17): "redirecting to NETOPIA" and the failed-payment thank-you page.
   Buttons side by side with a gap, the pay button with a card icon, cancel as the secondary button. */
.kc-pay-redirect { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0 1rem; padding: 1rem 1.15rem; border: 2px solid var(--kc-line); border-radius: var(--kc-radius-sm); background: var(--kc-surface); }
.kc-pay-redirect__spinner { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--kc-sand-deep); border-top-color: var(--kc-primary); animation: kc-pay-spin .8s linear infinite; }
@keyframes kc-pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kc-pay-redirect__spinner { animation: none; } }
.kc-pay-redirect__text p { margin: 0; line-height: 1.45; }
.kc-pay-redirect__title { font-weight: 800; color: var(--kc-ink); margin-bottom: .2rem !important; }
.kc-pay-redirect__actions form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.woocommerce p.woocommerce-thankyou-order-failed-actions,
.woocommerce-order .order-actions-button { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.woocommerce-order .order-actions-button .button { margin: 0 !important; }
body .kc-pay-btn, .woocommerce a.button.pay, .woocommerce .woocommerce-thankyou-order-failed-actions a.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: var(--kc-btn-h); min-height: 0; padding: 0 1.15rem; line-height: 1; margin: 0; }
body .kc-pay-btn--card::before, .woocommerce a.button.pay::before { content: ""; flex: none; width: 1.2em; height: 1.2em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M6.5 15h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M6.5 15h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.woocommerce a.button.cancel, .woocommerce a.button.cancel:hover, .woocommerce a.button.cancel:focus,
.woocommerce .woocommerce-thankyou-order-failed-actions a.button:not(.pay), .woocommerce .woocommerce-thankyou-order-failed-actions a.button:not(.pay):hover { background: var(--kc-sand) !important; color: var(--kc-ink) !important; border: 2px solid var(--kc-sand-deep) !important; }
.woocommerce a.button.cancel:hover, .woocommerce .woocommerce-thankyou-order-failed-actions a.button:not(.pay):hover { background: var(--kc-sand-deep) !important; }
p.woocommerce-thankyou-order-failed { padding: .9rem 1.1rem; border-radius: var(--kc-radius-sm); background: #fdecea; color: var(--kc-ink); border: 1px solid #f5c6c0; line-height: 1.5; }
/* The plugin's blockUI box while redirecting: our colours instead of a grey frame. */
body .blockUI.blockMsg { border: 0 !important; border-radius: var(--kc-radius-sm) !important; box-shadow: 0 18px 40px -18px rgba(30, 42, 68, .45) !important; color: var(--kc-ink) !important; font-weight: 700; padding: 1.1rem 1.25rem !important; }
/* WooCommerce gives "Contul meu" (logged-in only) the same "button pay" classes as "Plătește": secondary, no card icon. */
.woocommerce .woocommerce-thankyou-order-failed-actions a.button.pay + a.button.pay,
.woocommerce .woocommerce-thankyou-order-failed-actions a.button.pay + a.button.pay:hover,
.woocommerce .woocommerce-thankyou-order-failed-actions a.button.pay + a.button.pay:focus { background: var(--kc-sand) !important; color: var(--kc-ink) !important; border: 2px solid var(--kc-sand-deep) !important; }
.woocommerce .woocommerce-thankyou-order-failed-actions a.button.pay + a.button.pay:hover { background: var(--kc-sand-deep) !important; }
.woocommerce .woocommerce-thankyou-order-failed-actions a.button.pay + a.button.pay::before { content: none; }

/* Checkout summary at every width (2026-11-17, cerință Dorin): rows as flex, as below 768px, so the product name
   takes the free width instead of wrapping in a narrow table column next to a far-away price. */
.woocommerce-checkout #order_review table.shop_table, .woocommerce-checkout #order_review table.shop_table tbody, .woocommerce-checkout #order_review table.shop_table tfoot { display: block; width: 100%; max-width: 100%; }
.woocommerce-checkout #order_review table.shop_table tr { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: .85rem 0; border-top: 1px solid rgba(30, 42, 68, .1); }
.woocommerce-checkout #order_review table.shop_table tbody tr:first-child { border-top: 0; padding-top: 0; }
.woocommerce-checkout #order_review table.shop_table tr.order-total { border-top: 2px solid rgba(30, 42, 68, .14); padding-top: 1rem; }
.woocommerce-checkout #order_review table.shop_table tr > th, .woocommerce-checkout #order_review table.shop_table tr > td, .woocommerce-checkout #order_review table.shop_table tr.order-total > th, .woocommerce-checkout #order_review table.shop_table tr.order-total > td { border: 0 !important; padding: 0 !important; }
.woocommerce-checkout #order_review table.shop_table tr > th { flex: none; }
.woocommerce-checkout #order_review table.shop_table tr > td.product-name { flex: 1 1 0; min-width: 0; }
.woocommerce-checkout #order_review table.shop_table tr > td.product-total, .woocommerce-checkout #order_review table.shop_table tfoot td { flex: 0 0 auto; width: auto !important; max-width: 60%; text-align: right; }
.kc-review-item__text { min-width: 0; }
.woocommerce-checkout #order_review table.shop_table tfoot td, .woocommerce-checkout #order_review table.shop_table tfoot td label { white-space: normal !important; }

/* Coupon row (cart + checkout totals): code badge, discount and a round × on one line. */
.kc-coupon-line { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .4rem .5rem; }
.kc-coupon-code { display: inline-block; padding: .15rem .5rem; border-radius: 999px; background: #e6f6ee; color: #1b7a4b; font-size: .78rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4; white-space: nowrap; }
.kc-coupon-amount { white-space: nowrap; }
.kc-coupon-amount a.woocommerce-remove-coupon { margin-left: .45rem; vertical-align: .1em; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(30, 42, 68, .08); color: var(--kc-ink); font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; }
.kc-coupon-amount a.woocommerce-remove-coupon:hover, .kc-coupon-amount a.woocommerce-remove-coupon:focus-visible { background: #fde3dc; color: #c0392b; }
.woocommerce .cart_totals table.shop_table tr.cart-discount th { white-space: nowrap; }

/* Cart totals on phones: "Livrare" on its own line, then each option as radio + text, left aligned
   (the floated "Livrare:" label used to sit next to the first radio, the options right-aligned). */
@media (max-width: 768px) {
	.woocommerce .cart_totals tr.woocommerce-shipping-totals td { text-align: left !important; }
	.woocommerce .cart_totals tr.woocommerce-shipping-totals td::before { display: block; float: none !important; margin: 0 0 .5rem; text-align: left; }
	.woocommerce .cart_totals ul#shipping_method { list-style: none; margin: 0; padding: 0; width: 100%; text-align: left; }
	.woocommerce .cart_totals ul#shipping_method li { display: flex; align-items: center; gap: .55rem; width: 100%; margin: 0 0 .45rem; padding: .55rem .7rem; border-radius: 12px; background: rgba(255, 255, 255, .6); text-align: left; }
	.woocommerce .cart_totals ul#shipping_method li:last-child { margin-bottom: 0; }
	.woocommerce .cart_totals ul#shipping_method li input.shipping_method { flex: none; margin: 0; }
	.woocommerce .cart_totals ul#shipping_method li label { flex: 1 1 auto; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0; text-align: left; line-height: 1.35; }
	.woocommerce .cart_totals ul#shipping_method li label .woocommerce-Price-amount { flex: none; white-space: nowrap; }
}

/* Speed (2026-11-17): what lies below the first screen is not styled and laid out until it comes near the
   viewport (PageSpeed on a phone: ~1 s of style & layout on the homepage, most of it for sections nobody sees yet).
   "auto" remembers each block's real height once rendered, so scrolling back does not jump. */
.ds-home .kc-section,
.kc-footer { content-visibility: auto; contain-intrinsic-size: auto 640px; }
/* Listings: cards after the first two rows (three columns on desktop) and, on phones, the filter sheet (off-screen
   until opened). The width hint is tiny so a skipped card never widens its grid column. */
.woocommerce ul.products li.product:nth-child(n+7) { content-visibility: auto; contain-intrinsic-size: auto 1px auto 380px; }
@media (max-width: 900px) {
	.ds-sidebar:not(.is-open) .ds-filters { content-visibility: auto; contain-intrinsic-size: auto 1px auto 600px; }
}

/* Text pages: tables (e.g. the cookie list) become one card per row on phones, each value with its column name. */
body.kc-text-page .wp-block-table td { overflow-wrap: anywhere; }
@media (max-width: 640px) {
	body.kc-text-page .wp-block-table { overflow: visible; }
	body.kc-text-page .wp-block-table table,
	body.kc-text-page .wp-block-table tbody,
	body.kc-text-page .wp-block-table tr,
	body.kc-text-page .wp-block-table td { display: block; width: 100%; }
	body.kc-text-page .wp-block-table thead { display: none; }
	body.kc-text-page .wp-block-table tr { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--kc-line); border-radius: 14px; background: var(--kc-surface); }
	body.kc-text-page .wp-block-table td { padding: 2px 0; border: 0; text-align: left; }
	body.kc-text-page .wp-block-table td:first-child { margin-bottom: 4px; font-weight: 700; color: var(--kc-ink); }
	body.kc-text-page .wp-block-table td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--kc-ink-soft); }
}
