/*
Theme Name: ASTY
Theme URI: https://asty.ro
Author: ASTY
Description: Tema magazinului ASTY — rapidă, responsive, construită pentru WooCommerce și pluginul ASTY Core.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
WC requires at least: 9.6
License: Proprietar
Text Domain: asty
*/

/* ------------------------------------------------------------------ Tokens */
:root {
	--brand: #0e6b62;
	--brand-dark: #0a524b;
	--brand-soft: #e6f2f0;
	--accent: #f26a4b;
	--accent-dark: #c9472a;
	--ink: #10201f;
	--muted: #5c6b6a;
	--line: #dfe5e4;
	--bg: #f6f8f8;
	--surface: #ffffff;
	--ok: #1a7f37;
	--warn: #9a6700;
	--err: #b32d2e;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(16, 32, 31, .05), 0 6px 20px rgba(16, 32, 31, .06);
	--shadow-lg: 0 12px 40px rgba(16, 32, 31, .14);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 1280px;
	--gutter: 16px;
}

/* ------------------------------------------------------------------ Bază */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.icon { flex: none; vertical-align: middle; }

/* ------------------------------------------------------------------ Butoane */
.btn, .button, button.button, a.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
	border: 1px solid var(--brand); border-radius: 10px; background: var(--brand); color: #fff; font-weight: 650; font-size: 15px;
	line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-cta, .woocommerce a.button.alt, .woocommerce button.button.alt, .single_add_to_cart_button { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.btn-cta:hover, .woocommerce button.button.alt:hover, .single_add_to_cart_button:hover { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg); }
.woocommerce a.added_to_cart { display: none; }
.button.loading { opacity: .7; }
.button.added::after { content: " ✓"; }

/* ------------------------------------------------------------------ Bara de sus */
.topbar { background: var(--brand-dark); color: #e2f1ee; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.trust-list { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.trust-list li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__link { white-space: nowrap; }

/* ------------------------------------------------------------------ Antet */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; min-height: 72px; }
.header__search { width: 100%; max-width: 680px; justify-self: center; }
.menu-toggle { display: none; }
.site-logo, .custom-logo-link { display: inline-flex; align-items: center; }
.logo-svg { display: block; width: 118px; height: 36px; }
.header__search { min-width: 0; }
.header__actions { display: flex; gap: 4px; }
.action { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; }
.action:hover { background: var(--bg); color: var(--ink); }
.count-badge { position: absolute; top: 2px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count[data-count="0"] { display: none; }

/* Căutare */
.search-form { position: relative; display: flex; }
.search-form input[type=search] { width: 100%; height: 48px; padding: 0 52px 0 18px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 15px; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
.search-form input[type=search]:focus { outline: none; border-color: var(--brand); background: #fff; }
.search-form__btn { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search-form__btn:hover { background: var(--brand-dark); }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; max-height: 70vh; overflow: auto; }
.suggest__label { padding: 6px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.suggest__item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.suggest__item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.suggest__item .price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.suggest__item .price del { display: none; }
.suggest__item.is-active, .suggest__item:hover { background: var(--brand-soft); }
.suggest__cat { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.suggest__cat.is-active, .suggest__cat:hover { background: var(--brand-soft); }
.suggest__all { display: block; margin-top: 4px; padding: 10px; text-align: center; font-weight: 650; border-top: 1px solid var(--line); text-decoration: none; }
.suggest__empty { padding: 12px 10px; color: var(--muted); }

/* Navigație categorii */
.catnav { border-top: 1px solid var(--line); background: #fff; }
.catnav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.catnav__list > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 12px; color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav__list > li > a:hover, .catnav__list > li:focus-within > a, .catnav__list > li.has-mega:hover > a { color: var(--brand); border-bottom-color: var(--brand); }
.catnav__all > a { color: var(--brand) !important; }
.has-mega { position: static; }
.catnav .container { position: relative; }
.mega { position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; z-index: 60; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .12s, transform .12s, visibility .12s; pointer-events: none; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.mega__inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 28px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); }
.mega__title { display: block; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.mega__title:hover { color: var(--brand); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.mega li a:hover { color: var(--brand); }
.mega__all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; font-weight: 650; text-decoration: none; }

/* Drawer (meniu mobil, filtre) */
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 200; width: min(88vw, 360px); background: #fff; transform: translateX(-105%); transition: transform .22s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.drawer__body { overflow-y: auto; padding: 12px 16px 24px; flex: 1; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(16, 32, 31, .45); }
body.drawer-open { overflow: hidden; }
#mobile-menu { display: none; }
.mobile-cats, .mobile-links { list-style: none; margin: 0; padding: 0; }
.mobile-cats > li { border-bottom: 1px solid var(--line); }
.mobile-cats a, .mobile-cats summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; list-style: none; }
.mobile-cats summary::-webkit-details-marker { display: none; }
.mobile-cats details[open] summary .icon { transform: rotate(180deg); }
.mobile-cats ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 10px; }
.mobile-cats ul a { padding: 8px 2px; font-weight: 500; }
.mobile-links { margin-top: 16px; }
.mobile-links a { display: flex; gap: 10px; align-items: center; padding: 10px 2px; color: var(--ink); text-decoration: none; }

/* ------------------------------------------------------------------ Prima pagină */
.hero { background: linear-gradient(135deg, #0e6b62 0%, #0a524b 60%, #08413c 100%); color: #fff; padding: clamp(32px, 6vw, 72px) 0 0; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); max-width: 14ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: #ffd2c6; margin-bottom: 10px; }
.hero__lead { font-size: 1.1rem; max-width: 52ch; color: #d8eeea; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.hero__art { position: relative; height: 280px; }
.hero__tile { position: absolute; border-radius: 26px; }
.hero__tile--a { width: 180px; height: 180px; right: 120px; top: 20px; background: rgba(255, 255, 255, .12); transform: rotate(-8deg); }
.hero__tile--b { width: 150px; height: 150px; right: 10px; top: 90px; background: #f26a4b; transform: rotate(10deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .2); }
.hero__tile--c { width: 110px; height: 110px; right: 200px; top: 160px; background: #fff; transform: rotate(6deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .18); }
.hero__dot { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #ffd2c6; right: 70px; top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 34px 0 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero__trust li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.home-section { margin: clamp(32px, 5vw, 56px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.cat-tile { --hue: calc(var(--tile) * 47 + 160); display: flex; flex-direction: column; height: 100%; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s, border-color .15s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; color: var(--ink); }
.cat-tile__media { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: hsl(var(--hue) 45% 94%); }
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__initial { font-size: 44px; font-weight: 800; color: hsl(var(--hue) 45% 35%); }
.cat-tile__name { font-weight: 700; line-height: 1.25; }
.cat-tile__count { font-size: 13px; color: var(--muted); margin-top: 2px; }
.brand-strip { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.brand-strip a { display: inline-block; padding: 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-strip a:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------------ Carduri produs */
.woocommerce ul.products, ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px !important; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.product-card { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.product-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { position: relative; background: #fff; }
.product-card__img { display: block; aspect-ratio: 1; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; margin: 0 !important; transition: transform .25s; }
.product-card:hover .product-card__img img { transform: scale(1.03); }
.product-card .onsale, .woocommerce span.onsale { position: absolute; top: 10px; left: 10px; right: auto; min-width: 0; min-height: 0; margin: 0; padding: 3px 9px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.4; }
.wish-btn { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--muted); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); transition: color .15s, transform .1s; }
.wish-btn:hover { color: var(--accent); }
.wish-btn[aria-pressed=true] { color: var(--accent); }
.wish-btn[aria-pressed=true] svg { fill: currentColor; }
.wish-btn:active { transform: scale(.92); }
.wish-btn--inline { position: static; width: 48px; height: 48px; border: 1px solid var(--line); box-shadow: none; border-radius: 10px; }
.wish-standalone { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); }
.product-card__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.product-card__brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.product-card__title { margin: 0 !important; padding: 0 !important; font-size: 15px !important; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-card__title a { color: var(--ink); text-decoration: none; }
.product-card__title a:hover { color: var(--brand); }
.product-card .star-rating { font-size: 12px; margin: 2px 0 !important; }
.product-card__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 6px; }
.product-card__price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.product-card .price, .woocommerce ul.products li.product .price { margin: 0 !important; color: var(--ink) !important; font-size: 18px !important; font-weight: 800; }
.price del { color: var(--muted); font-weight: 500; font-size: .8em; opacity: 1; }
.price ins { text-decoration: none; color: var(--accent-dark); }
.product-card .btn, .product-card .button { width: 100%; }
.stock-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.stock-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-badge.is-in { color: var(--ok); }
.stock-badge.is-backorder { color: #0a66c2; }
.stock-badge.is-out { color: var(--err); }

/* ------------------------------------------------------------------ Arhive magazin */
.site-main { padding-top: 18px; padding-bottom: 48px; min-height: 50vh; }
.breadcrumbs, .woocommerce-breadcrumb { font-size: 13.5px; color: var(--muted); margin: 0 0 12px !important; }
.breadcrumbs a, .woocommerce-breadcrumb a { color: var(--muted) !important; text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand) !important; }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.woocommerce-products-header { margin-bottom: 8px; }
.woocommerce-products-header__title { margin-bottom: 8px; }
.term-description { color: var(--muted); max-width: 900px; }
.subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.subcat-chips--center { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip span { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip--active { background: var(--brand-soft); border-color: transparent; color: var(--brand-dark); }
.chip-clear { font-size: 14px; font-weight: 600; align-self: center; }
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-results { min-width: 0; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.shop-toolbar .woocommerce-result-count { margin: 0 !important; color: var(--muted); font-size: 14px; float: none !important; }
.shop-toolbar .woocommerce-ordering { margin: 0 0 0 auto !important; float: none !important; }
.woocommerce-ordering select, .filter-form select { height: 42px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.shop-filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 16px; scrollbar-width: thin; }
.shop-filters .drawer__head { display: none; }
.shop-filters .drawer__body { padding: 0; overflow: visible; }
.filter-group { border-bottom: 1px solid var(--line); padding: 10px 0; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group summary { cursor: pointer; font-weight: 700; padding: 4px 0; list-style: none; display: flex; justify-content: space-between; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "–"; color: var(--muted); }
.filter-group:not([open]) summary::after { content: "+"; }
.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree ul { padding-left: 12px; border-left: 2px solid var(--brand-soft); margin: 2px 0 4px 4px; }
.cat-tree a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.cat-tree a span { color: var(--muted); font-size: 12.5px; }
.cat-tree a:hover, .cat-tree .is-current > a { color: var(--brand); font-weight: 700; }
.price-range { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.price-range input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.check span { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.check-list { max-height: 260px; overflow-y: auto; margin-top: 4px; }
.filter-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.filter-actions .btn { flex: 1; }
.empty-state { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.woocommerce-pagination { margin-top: 24px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 42px; height: 42px; display: grid !important; place-items: center; padding: 0 10px !important; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--brand) !important; color: #fff !important; border-color: var(--brand); }

/* ------------------------------------------------------------------ Pagina de produs */
.shop-single div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); position: relative; }
.shop-single div.product div.images, .shop-single div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; min-width: 0; }
.shop-single div.product div.images { overflow: hidden; }
.shop-single div.product .woocommerce-tabs, .shop-single div.product .related, .shop-single div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 10px; display: flex; gap: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 8px; border: 1px solid var(--line); }
.woocommerce div.product div.images img { border-radius: 10px; }
.product-brand { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; margin-bottom: 6px; }
.woocommerce div.product .product_title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 2rem; font-weight: 800; margin: 6px 0 4px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); margin: 10px 0; }
.woocommerce div.product .stock { font-weight: 700; }
.woocommerce div.product .stock.in-stock { color: var(--ok); }
.woocommerce div.product .stock.available-on-backorder { color: #0a66c2; }
.woocommerce div.product .stock.out-of-stock { color: var(--err); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 !important; }
.woocommerce div.product form.cart div.quantity { margin: 0 !important; }
.woocommerce .quantity .qty { width: 72px; height: 48px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.woocommerce div.product form.cart .button { min-height: 48px; padding: 0 28px; font-size: 16px; flex: 1; max-width: 320px; }
.asty-delivery { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 14px 0; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; }
.asty-delivery__icon { width: 22px; height: 22px; flex: none; 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='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v9H3zM14 9h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='17' r='1.6'/%3E%3Ccircle cx='17' cy='17' r='1.6'/%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='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v9H3zM14 9h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='17' r='1.6'/%3E%3Ccircle cx='17' cy='17' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.product_meta { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.product_meta > span { display: block; margin-bottom: 2px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 10px 0 0 !important; border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 16px !important; color: var(--muted) !important; font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; border-bottom-color: var(--brand); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 18px 0; max-width: 900px; }
.woocommerce table.shop_attributes { border: 0; border-collapse: collapse; width: 100%; max-width: 760px; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; font-style: normal; background: none !important; text-align: left; }
.woocommerce table.shop_attributes th { width: 34%; color: var(--muted); font-weight: 600; }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }
.related > h2, .upsells > h2 { margin-top: 12px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; align-items: center; gap: 12px; padding: 10px var(--gutter); background: #fff; box-shadow: 0 -6px 20px rgba(16, 32, 31, .12); }
.sticky-buy__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sticky-buy__name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font-weight: 800; }
.sticky-buy__price del { display: none; }

/* ------------------------------------------------------------------ Notificări WooCommerce */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: 10px !important; border-top-width: 0 !important; border-left: 4px solid var(--brand) !important; background: #fff !important; box-shadow: var(--shadow); }
.woocommerce-error { border-left-color: var(--err) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brand) !important; }
.woocommerce-message .button { float: right; }

/* ------------------------------------------------------------------ Pagini */
.page-head { margin-bottom: 18px; }
.page-content .entry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); max-width: 920px; margin: 0 auto; }
.page-content .page-head .breadcrumbs { margin-bottom: 8px !important; }
.prose { font-size: 16.5px; line-height: 1.7; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.page-shop .page-head { text-align: left; }
.page-shop .entry-content { background: transparent; }
.page-shop .woocommerce, .page-shop .wp-block-woocommerce-cart, .page-shop .wp-block-woocommerce-checkout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 3vw, 30px); }
.wc-block-components-button:not(.is-link) { border-radius: 10px !important; min-height: 50px; font-weight: 700 !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--accent) !important; color: #fff !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: 8px !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce table.shop_table { border-radius: 10px; border-collapse: separate; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.post-card__title { font-size: 1.15rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__meta { color: var(--muted); font-size: 13px; }
.page-404 .notfound { max-width: 640px; margin: 40px auto; text-align: center; }
.notfound__code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; color: var(--brand-soft); margin: 0; line-height: 1; -webkit-text-stroke: 2px var(--brand); }
.page-404 .search-form { margin: 18px 0 28px; }

/* Formular contact, mărci, favorite (shortcode-uri ASTY Core) */
.asty-contact { display: grid; gap: 4px; max-width: 640px; margin-top: 20px; }
.asty-contact label { display: block; font-weight: 600; margin-bottom: 4px; }
.asty-contact input[type=text], .asty-contact input[type=email], .asty-contact textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.asty-contact__gdpr label { font-weight: 400; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.asty-hp { position: absolute !important; left: -9999px !important; }
.asty-notice { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-weight: 600; }
.asty-notice--ok { background: #dcf3e3; color: #135c28; }
.asty-notice--err { background: #fde2e1; color: #8e1f20; }
.asty-info-list { padding-left: 1.2em; }
.asty-brands__letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.asty-brands__letters a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; text-decoration: none; }
.asty-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 28px; }
.asty-brands h2 { font-size: 1.2rem; color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-top: 0 !important; }
.asty-brands ul { list-style: none; padding: 0 !important; margin: 0; }
.asty-brands li { display: flex; justify-content: space-between; padding: 4px 0; }
.asty-brands li span { color: var(--muted); font-size: 13px; }
.asty-wishlist { margin-top: 12px; }
.asty-wishlist ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-content .entry:has(.asty-wishlist) { max-width: var(--container); }
.wish-remove { position: absolute; top: 8px; right: 8px; }
.asty-missing { background: #fff1c7; padding: 0 4px; border-radius: 4px; }

/* ------------------------------------------------------------------ Subsol */
.site-footer { background: #0c1c1b; color: #b8c7c5; margin-top: 40px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 30px; }
.footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 7px; }
.site-footer a { color: #d9e6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__tagline { margin-top: 12px; }
.footer__company { font-style: normal; line-height: 1.7; margin-top: 12px; }
.footer__company strong { color: #fff; }
.footer__pay { margin-top: 14px; }
.footer__pay span { color: #fff; font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.anpc { display: flex; flex-wrap: wrap; gap: 10px; }
.anpc__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; font-size: 12.5px; background: rgba(255, 255, 255, .04); }
.anpc__badge span { padding: 4px 7px; border-radius: 5px; background: #fff; color: #0c1c1b; font-weight: 800; font-size: 11px; letter-spacing: .04em; }
.copyright { margin: 0; color: #8fa3a1; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1100px) {
	ul.products, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.action__label { display: none; }
	.action { min-width: 48px; }
	.count-badge { right: 2px; }
}
@media (max-width: 900px) {
	.catnav { display: none; }
	.menu-toggle { display: inline-grid; }
	#mobile-menu { display: flex; }
	.header__inner { grid-template-columns: auto 1fr auto; min-height: 60px; gap: 8px 8px; padding-bottom: 10px; }
	.header__logo { justify-self: start; }
	.header__search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.header__actions { grid-column: 3; grid-row: 1; }
	.shop-layout { grid-template-columns: 1fr; }
	.shop-filters { position: fixed; top: 0; bottom: 0; left: 0; max-height: none; width: min(88vw, 360px); border-radius: 0; border: 0; padding: 0; z-index: 200; }
	.shop-filters .drawer__head { display: flex; }
	.shop-filters .drawer__body { padding: 8px 16px 24px; overflow-y: auto; }
	.filter-toggle { display: inline-flex; }
	.shop-single div.product { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { display: none; }
	.sticky-buy { display: flex; }
	.sticky-buy[hidden] { display: none !important; }
	body.single-product { padding-bottom: 72px; }
	.asty-wishlist ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
	.shop-filters.drawer { transform: none; width: auto; z-index: auto; box-shadow: none; display: block; }
}
@media (max-width: 600px) {
	:root { --gutter: 14px; }
	body { font-size: 15px; }
	.topbar__link { display: none; }
	.trust-list { gap: 16px; }
	ul.products, .woocommerce ul.products, .asty-wishlist ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.product-card__body { padding: 10px; }
	.product-card__title { font-size: 14px !important; }
	.product-card .price { font-size: 16px !important; }
	.product-card .btn, .product-card .button { min-height: 38px; font-size: 13.5px; padding: 6px 8px; }
	.footer__grid { grid-template-columns: 1fr; gap: 22px; }
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.shop-toolbar .woocommerce-ordering { margin-left: 0 !important; flex: 1; }
	.shop-toolbar .woocommerce-ordering select { width: 100%; }
	.woocommerce div.product p.price { font-size: 1.6rem; }
	.section-head h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Bara de administrare WordPress (doar pentru utilizatorii autentificați) */
.admin-bar .site-header { top: 32px; }
.admin-bar .drawer, .admin-bar .shop-filters.drawer { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
	.admin-bar .drawer, .admin-bar .shop-filters.drawer { top: 46px; }
}
@media (min-width: 901px) {
	.admin-bar .shop-filters.drawer { top: 172px; }
}

/* Produse externe (afiliere): comerciant, buton spre ofertă, nota de transparență. */
.stock-badge.is-partner { color: var(--muted); font-weight: 600; white-space: normal; }
.stock-badge.is-partner::before { display: none; }
.asty-external { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0 .5rem; }
.asty-external__btn { text-decoration: none; }
.asty-affiliate-note { font-size: .85rem; line-height: 1.5; color: var(--muted); margin: .5rem 0 1rem; max-width: 60ch; }
