/* =====================================================================
   Storefront — stil configurabil din admin (/admin/aspect).
   Layout-ul public injectează în :root culorile + tokenii temei și pune pe <body> clasele:
     theme-classic | theme-modern      stilul general
     mode-light | mode-dark            (dark => <html data-bs-theme="dark">)
     btn-rounded | btn-pill | btn-sharp
     nav-light | nav-glass | nav-dark | nav-primary
     hero-soft | hero-gradient | hero-dark | hero-split
     foot-light | foot-dark
     cards-flat | cards-shadow | cards-border
   Vezi src/helpers/ThemeSkins.php pentru teme și tokeni.
   ===================================================================== */

/* ---------- 1. Tokeni (valorile reale vin din layout; aici doar fallback + culori derivate) ---------- */
:root {
  --ark-primary: #ff5b8d;
  --ark-primary-rgb: 255, 91, 141;
  --ark-accent: #ffd93d;
  --ark-bg: #ffffff;
  --ark-text: #2b2b2b;
  --ark-on-primary: #ffffff;
  --ark-on-accent: #2b2b2b;
  --ark-radius: 6px;
  --ark-btn-radius: 6px;
  --ark-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ark-font-heading: inherit;

  --ark-surface: #ffffff;
  --ark-sale: #e5484d;
  --ark-primary-hover: color-mix(in srgb, var(--ark-primary) 86%, #000);
  --ark-primary-soft:  color-mix(in srgb, var(--ark-primary) 9%, var(--ark-surface));
  --ark-primary-ring:  color-mix(in srgb, var(--ark-primary) 28%, transparent);
  --ark-border:        color-mix(in srgb, var(--ark-text) 12%, transparent);
  --ark-muted:         color-mix(in srgb, var(--ark-text) 62%, var(--ark-bg));
  --ark-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  --ark-shadow-md: 0 8px 20px -6px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --ark-shadow-lg: 0 22px 44px -14px rgba(16, 24, 40, .22);
}
html[data-bs-theme="dark"] {
  --ark-surface: color-mix(in srgb, var(--ark-bg) 86%, #ffffff);
  --ark-primary-soft: color-mix(in srgb, var(--ark-primary) 20%, var(--ark-surface));
  --ark-border: color-mix(in srgb, var(--ark-text) 16%, transparent);
  --ark-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --ark-shadow-md: 0 10px 24px -8px rgba(0, 0, 0, .55);
  --ark-shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
}

/* ---------- 2. Bază (toate temele) ---------- */
body {
  --bs-body-bg: var(--ark-bg);
  --bs-body-color: var(--ark-text);
  --bs-link-color-rgb: var(--ark-primary-rgb);
  --bs-link-hover-color-rgb: var(--ark-primary-rgb);
  background: var(--ark-bg);
  color: var(--ark-text);
  font-family: var(--ark-font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--ark-font-heading); }

a { color: var(--ark-primary); }
a:hover { color: var(--ark-primary-hover); }
.text-primary { color: var(--ark-primary) !important; }
.bg-primary   { background-color: var(--ark-primary) !important; color: var(--ark-on-primary); }
.brand-name   { color: var(--ark-primary); letter-spacing: -.02em; }

.btn { border-radius: var(--ark-btn-radius); }
.btn-primary {
  --bs-btn-color: var(--ark-on-primary);
  --bs-btn-bg: var(--ark-primary);
  --bs-btn-border-color: var(--ark-primary);
  --bs-btn-hover-color: var(--ark-on-primary);
  --bs-btn-hover-bg: var(--ark-primary-hover);
  --bs-btn-hover-border-color: var(--ark-primary-hover);
  --bs-btn-active-color: var(--ark-on-primary);
  --bs-btn-active-bg: var(--ark-primary-hover);
  --bs-btn-active-border-color: var(--ark-primary-hover);
  --bs-btn-disabled-color: var(--ark-on-primary);
  --bs-btn-disabled-bg: var(--ark-primary);
  --bs-btn-disabled-border-color: var(--ark-primary);
  --bs-btn-focus-shadow-rgb: var(--ark-primary-rgb);
}
.btn-outline-primary {
  --bs-btn-color: var(--ark-primary);
  --bs-btn-border-color: var(--ark-primary);
  --bs-btn-hover-color: var(--ark-on-primary);
  --bs-btn-hover-bg: var(--ark-primary);
  --bs-btn-hover-border-color: var(--ark-primary);
  --bs-btn-active-color: var(--ark-on-primary);
  --bs-btn-active-bg: var(--ark-primary);
  --bs-btn-active-border-color: var(--ark-primary);
  --bs-btn-focus-shadow-rgb: var(--ark-primary-rgb);
}
.form-control:focus, .form-select:focus {
  border-color: var(--ark-primary);
  box-shadow: 0 0 0 .2rem var(--ark-primary-ring);
}
.form-check-input:checked { background-color: var(--ark-primary); border-color: var(--ark-primary); }
.form-check-input:focus { border-color: var(--ark-primary); box-shadow: 0 0 0 .2rem var(--ark-primary-ring); }
.progress-bar { background-color: var(--ark-primary); color: var(--ark-on-primary); }
.page-link { color: var(--ark-primary); }
.active > .page-link, .page-link.active { background-color: var(--ark-primary); border-color: var(--ark-primary); color: var(--ark-on-primary); }
.dropdown-item:active { background-color: var(--ark-primary); color: var(--ark-on-primary); }

/* ---------- 3. Bară promoțională + antet ---------- */
.promo-bar {
  background: var(--ark-accent);
  color: var(--ark-on-accent);
  font-weight: 600;
  font-size: .85rem;
  text-align: center;
  padding: .45rem 1rem;
}

.site-navbar {
  --nav-fg: var(--ark-text);
  --nav-border: var(--ark-border);
  --nav-field-bg: color-mix(in srgb, var(--ark-text) 5%, transparent);
  --nav-hover-bg: var(--ark-primary-soft);
  background: var(--ark-surface);
  border-bottom: 1px solid var(--ark-border);
  padding-block: .55rem;
  z-index: 1030;
}
.site-navbar .navbar-brand img { max-height: 56px; width: auto; }
.site-navbar .nav-link { font-weight: 500; white-space: nowrap; border-radius: 8px; }
.site-navbar .dropdown-menu { border-radius: 12px; border-color: var(--ark-border); box-shadow: var(--ark-shadow-md); padding: .4rem; }
.site-navbar .dropdown-item { border-radius: 8px; padding: .45rem .7rem; }

.site-actions { display: flex; align-items: center; gap: .5rem; }
.site-phone { color: var(--nav-fg); opacity: .75; text-decoration: none; font-size: .88rem; white-space: nowrap; }
.site-phone:hover { opacity: 1; color: var(--nav-fg); }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 40px; min-width: 40px; padding: 0 .75rem;
  border: 1px solid var(--nav-border);
  border-radius: var(--ark-btn-radius);
  background: transparent;
  color: var(--nav-fg);
  font-size: .88rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.icon-btn:hover { background: var(--nav-hover-bg); color: var(--nav-fg); border-color: color-mix(in srgb, var(--nav-fg) 30%, transparent); }
.icon-btn .bi { font-size: 1.05rem; }
.icon-btn .count {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: var(--ark-sale); color: #fff;
  font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
}
.navbar-toggler { border: 1px solid var(--nav-border); height: 40px; padding: 0 .6rem; border-radius: var(--ark-btn-radius); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--ark-primary-ring); }

.site-search { position: relative; flex: 0 1 250px; min-width: 150px; }
.site-search .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; color: var(--nav-fg); }
.site-search input {
  width: 100%; height: 40px;
  padding: 0 .9rem 0 2.4rem;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: var(--nav-field-bg);
  color: var(--nav-fg);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.site-search input::placeholder { color: var(--nav-fg); opacity: .5; }
.site-search input:focus { border-color: var(--ark-primary); box-shadow: 0 0 0 .2rem var(--ark-primary-ring); background: var(--ark-surface); color: var(--ark-text); }

/* variante antet */
.nav-glass .site-navbar {
  background: color-mix(in srgb, var(--ark-bg) 76%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.nav-dark .site-navbar,
.nav-primary .site-navbar[data-bs-theme="dark"] {
  --nav-fg: #ffffff;
  --nav-border: rgba(255, 255, 255, .2);
  --nav-field-bg: rgba(255, 255, 255, .1);
  --nav-hover-bg: rgba(255, 255, 255, .14);
  --bs-navbar-color: rgba(255, 255, 255, .82);
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: #ffffff;
  --bs-navbar-brand-color: #ffffff;
  --bs-navbar-brand-hover-color: #ffffff;
  border-bottom-color: transparent;
}
.nav-dark .site-navbar { background: color-mix(in srgb, var(--ark-primary) 10%, #0a0c11); }
.nav-dark .site-navbar .brand-name,
.nav-primary .site-navbar[data-bs-theme="dark"] .brand-name { color: #ffffff; }
.nav-primary .site-navbar { background: var(--ark-primary); border-bottom-color: transparent; }
.nav-primary .site-navbar:not([data-bs-theme="dark"]) { --nav-fg: var(--ark-on-primary); --nav-border: color-mix(in srgb, var(--ark-on-primary) 25%, transparent); }
.nav-primary .site-navbar:not([data-bs-theme="dark"]) .brand-name { color: var(--ark-on-primary); }
.nav-primary .site-navbar .icon-btn .count { background: var(--ark-accent); color: var(--ark-on-accent); }

@media (max-width: 1199.98px) {
  /* antet restrâns: logo-ul se micșorează ca butoanele (cont, coș, meniu) să rămână pe același rând */
  /* rezervăm loc pentru cele 3 butoane (≈152px) + marginea brandului (8px) + puțin aer, altfel pe telefoane
     de 360-375px butoanele cad pe al doilea rând */
  .site-navbar .navbar-brand { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 174px); margin-right: .5rem; }
  .site-navbar .navbar-brand img { max-width: 100%; height: auto; max-height: 44px; }
  .site-navbar .navbar-brand .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-navbar .navbar-collapse { padding-top: .75rem; }
  .site-navbar .navbar-nav { gap: .1rem; }
  .site-search { flex: 1 1 100%; margin: .5rem 0 .25rem; }
}
@media (min-width: 1200px) {
  .site-navbar .nav-link { font-size: .93rem; padding-inline: .6rem; }
  .site-navbar .nav-link:hover { background: var(--nav-hover-bg); }
}

/* ---------- 4. Banner homepage (hero) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ark-border);
  border-radius: var(--ark-radius);
  background: linear-gradient(135deg, var(--ark-surface) 0%, var(--ark-primary-soft) 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.hero-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ark-primary); margin-bottom: .75rem; }
.hero-title { font-size: clamp(1.6rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .75rem; }
.hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ark-muted); margin: 0 0 1.4rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.3rem; font-size: .86rem; font-weight: 500; opacity: .85; }
.hero-chip { display: inline-flex; align-items: center; gap: .4rem; }
.hero-art { display: none; }

.theme-classic .hero-subtitle { margin-inline: auto; }
.theme-classic .hero-actions, .theme-classic .hero-chips { justify-content: center; }

/* ---------- 5. Secțiuni homepage ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-title { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 700; margin: 0; }
.section-link { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 3rem; }
.trust-item {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.1rem;
  background: var(--ark-surface);
  border: 1px solid var(--ark-border);
  border-radius: var(--ark-radius);
}
.trust-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ark-primary-soft); color: var(--ark-primary); font-size: 1.25rem; }
.trust-title { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.trust-text { font-size: .8rem; color: var(--ark-muted); line-height: 1.3; }
@media (max-width: 991.98px) { .trust-bar { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
@media (max-width: 479.98px) {
  .trust-item { padding: .7rem .75rem; gap: .6rem; }
  .trust-icon { flex-basis: 36px; height: 36px; font-size: 1.05rem; border-radius: 10px; }
  .trust-title { font-size: .82rem; }
  .trust-text { font-size: .72rem; }
}

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin: 0 0 3rem; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 1.1rem .75rem;
  text-align: center; text-decoration: none;
  color: var(--ark-text);
  background: var(--ark-surface);
  border: 1px solid var(--ark-border);
  border-radius: var(--ark-radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--ark-shadow-md); border-color: var(--ark-primary); color: var(--ark-text); }
.cat-tile-img { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 1px solid var(--ark-border); display: grid; place-items: center; overflow: hidden; color: var(--ark-primary); font-size: 1.6rem; }
.cat-tile-img img { width: 78%; height: 78%; object-fit: contain; }
.cat-tile-name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.cat-tile-count { font-size: .75rem; color: var(--ark-muted); }

/* ---------- 6. Card de produs ---------- */
.product-card {
  background: var(--ark-surface);
  border: var(--card-border-width, 1px) solid var(--card-border-color, #ffffff);
  border-radius: var(--image-radius, .375rem);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px color-mix(in srgb, var(--ark-primary) 14%, transparent); }
.pc-media { display: block; position: relative; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.pc-badges { position: absolute; top: .55rem; left: .55rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.pc-badge { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1; padding: .3rem .5rem; border-radius: 6px; }
.pc-badge-sale { background: var(--ark-sale); color: #fff; }
.pc-badge-new  { background: #198754; color: #fff; }
.pc-badge-out  { background: rgba(17, 24, 39, .78); color: #fff; }
.pc-body { padding: .9rem; }
.pc-title { font-size: .95rem; font-weight: 600; line-height: 1.35; margin: 0 0 .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pc-title a { color: var(--ark-text); text-decoration: none; }
.pc-title a:hover { color: var(--ark-primary); }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; }
.price-now { font-weight: 700; font-size: 1.15rem; color: var(--ark-sale); }
.price-old { font-size: .85rem; color: var(--ark-muted); text-decoration: line-through; }
.pc-actions { display: flex; gap: .35rem; margin-top: .7rem; }
.pc-actions .pc-add { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Card îngust (ex. 3 coloane pe tabletă): „Detalii" dispare ca „Adaugă în coș" să nu fie trunchiat —
   titlul și poza duc oricum la pagina produsului. Depinde de lățimea cardului, nu a ecranului. */
.product-card { container-type: inline-size; }
@container (max-width: 265px) {
  .pc-actions .pc-details { display: none; }
}

/* ---------- 7. Pagina de produs ---------- */
.product-description { line-height: 1.7; }
.product-description p { margin-bottom: .75rem; }
.product-gallery { align-items: flex-start; }
.product-thumbs { width: 80px; max-height: 520px; overflow-y: auto; flex-shrink: 0; }
.product-thumb {
  width: 80px; height: 80px;
  border: 2px solid var(--ark-border);
  border-radius: var(--image-radius, 6px);
  padding: 4px; background: #fff; cursor: pointer;
  transition: border-color .15s, transform .1s;
  display: flex; align-items: center; justify-content: center;
}
.product-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-thumb:hover { border-color: var(--ark-primary); }
.product-thumb.active { border-color: var(--ark-primary); border-width: 3px; }
.product-main-image { background: #fff; border: 1px solid var(--ark-border); border-radius: var(--image-radius, 6px); padding: 12px; text-align: center; }
.product-main-image img, #mainImg { max-height: 520px; object-fit: contain; border-radius: var(--image-radius, 0); }

.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: .9rem 0; }
.buy-price .price-now { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.buy-price .price-old { font-size: 1.05rem; }
.stock-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; padding: .32rem .75rem; border-radius: 999px; }
.stock-in  { background: color-mix(in srgb, #16a34a 14%, var(--ark-surface)); color: #15803d; }
.stock-out { background: color-mix(in srgb, #dc2626 13%, var(--ark-surface)); color: #b91c1c; }
.stock-low { color: #b45309; font-weight: 600; font-size: .86rem; margin-left: .5rem; }
html[data-bs-theme="dark"] .stock-in  { color: #4ade80; }
html[data-bs-theme="dark"] .stock-out { color: #f87171; }
html[data-bs-theme="dark"] .stock-low { color: #fbbf24; }
.buy-row { display: flex; gap: .6rem; align-items: stretch; margin: 1rem 0 0; }
.buy-row .buy-qty { width: 84px; text-align: center; }
.buy-row .btn { flex: 0 1 auto; }
.buy-perks { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .55rem; font-size: .9rem; }
.buy-perks li { display: flex; align-items: center; gap: .6rem; }
.buy-perks .bi { color: var(--ark-primary); font-size: 1.05rem; }

/* ---------- 8. Pagini CMS / diverse ---------- */
.static-page h2, .static-page h3 { margin-top: 1.5rem; }
.thumb:hover { border-color: var(--ark-primary) !important; }
.cms-page .page-content { line-height: 1.7; }
.cms-page .page-content h2, .cms-page .page-content h3 { margin-top: 1.5rem; }
.cms-page .page-content p { margin-bottom: .85rem; }
.cms-page .page-content ul, .cms-page .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ---------- 9. Subsol ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 2.75rem 0 1.5rem;
  background: color-mix(in srgb, var(--ark-text) 4%, var(--ark-bg));
  border-top: 1px solid var(--ark-border);
  font-size: .9rem;
}
.site-footer h6 { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }
.site-footer a { color: inherit; text-decoration: none; opacity: .85; }
.site-footer a:hover { color: var(--ark-primary); opacity: 1; }
.site-footer hr { border-color: var(--ark-border); opacity: 1; margin: 1.5rem 0 1rem; }
.foot-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; font-size: .82rem; opacity: .85; margin-top: 1.75rem; }
.foot-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.foot-dark .site-footer { background: color-mix(in srgb, var(--ark-primary) 9%, #0a0c11); color: #cbd5e1; border-top: 0; }
.foot-dark .site-footer h6 { color: #ffffff; }
.foot-dark .site-footer .text-muted { color: #94a3b8 !important; }
.foot-dark .site-footer hr { border-color: rgba(255, 255, 255, .12); }
.foot-dark .site-footer a:hover { color: #ffffff; text-decoration: underline; }

/* =====================================================================
   10. STIL MODERN
   ===================================================================== */
.theme-modern { letter-spacing: -.003em; }
.theme-modern h1, .theme-modern h2, .theme-modern h3, .theme-modern .h1, .theme-modern .h2, .theme-modern .h3 { letter-spacing: -.02em; font-weight: 700; }
.theme-modern .site-main > .container, .theme-modern .site-navbar > .container, .theme-modern .site-footer > .container { max-width: 1260px; }

.theme-modern .btn { font-weight: 600; padding-inline: 1.15em; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.theme-modern .btn-lg { padding: .8rem 1.6rem; font-size: 1.02rem; }
.theme-modern .btn-primary { box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--ark-primary) 70%, transparent); }
.theme-modern .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -8px color-mix(in srgb, var(--ark-primary) 75%, transparent); }
.theme-modern .btn-primary:active { transform: translateY(0); }
.theme-modern .btn:disabled, .theme-modern .btn.disabled { box-shadow: none; transform: none; }
.theme-modern .form-control, .theme-modern .form-select { border-radius: calc(var(--ark-radius) * .6 + 2px); border-color: var(--ark-border); padding-block: .55rem; }
.theme-modern .card { --bs-card-bg: var(--ark-surface); --bs-card-border-color: var(--ark-border); --bs-card-border-radius: var(--ark-radius); --bs-card-inner-border-radius: calc(var(--ark-radius) - 1px); }
.theme-modern .alert { border-radius: calc(var(--ark-radius) * .75 + 2px); border: 0; }
.theme-modern .breadcrumb { font-size: .84rem; --bs-breadcrumb-divider-color: var(--ark-muted); }
.theme-modern .breadcrumb a { color: var(--ark-muted); text-decoration: none; }
.theme-modern .breadcrumb a:hover { color: var(--ark-primary); }
.theme-modern .badge { font-weight: 600; }
.theme-modern .table { --bs-table-bg: transparent; }
.theme-modern .site-navbar { padding-block: .7rem; }
.theme-modern .promo-bar { font-size: .82rem; letter-spacing: .01em; }

/* hero modern */
.theme-modern .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  text-align: left;
  border: 0;
  border-radius: calc(var(--ark-radius) * 1.6);
  padding: clamp(1.75rem, 5vw, 4.25rem);
  min-height: clamp(280px, 34vw, 430px);
  margin-bottom: 1.5rem;
}
.theme-modern .hero.no-art { grid-template-columns: 1fr; text-align: center; }
.theme-modern .hero.no-art .hero-subtitle { margin-inline: auto; }
.theme-modern .hero.no-art .hero-actions, .theme-modern .hero.no-art .hero-chips { justify-content: center; }
.theme-modern .hero-copy { position: relative; z-index: 1; }
.theme-modern .hero-art {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr;
  gap: clamp(.6rem, 1.4vw, 1.1rem);
  max-width: 470px; width: 100%; margin-left: auto;
}
.theme-modern .hero-art-item {
  background: #fff;
  border-radius: calc(var(--ark-radius) * 1.1 + 4px);
  box-shadow: var(--ark-shadow-lg);
  padding: clamp(.6rem, 1.4vw, 1.1rem);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.theme-modern .hero-art-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.theme-modern .hero-art-item:nth-child(1) { grid-row: 1 / span 2; align-self: center; transform: rotate(-3deg); }
.theme-modern .hero-art-item:nth-child(2) { transform: translateY(6%) rotate(2.5deg); }
.theme-modern .hero-art-item:nth-child(3) { transform: translateY(-6%) rotate(-1.5deg); }
.theme-modern .hero:hover .hero-art-item:nth-child(1) { transform: rotate(-1deg) scale(1.02); }
.theme-modern .hero-art.one { grid-template-columns: 1fr; grid-template-rows: 1fr; max-width: 320px; }
.theme-modern .hero-art.two { grid-template-rows: 1fr; }
.theme-modern .hero-art.two .hero-art-item:nth-child(1) { grid-row: auto; }

.theme-modern.hero-soft .hero {
  background:
    radial-gradient(700px 320px at 95% 0%, color-mix(in srgb, var(--ark-accent) 26%, transparent), transparent 62%),
    var(--ark-primary-soft);
}
.theme-modern.hero-gradient .hero {
  background:
    radial-gradient(900px 420px at 0% 0%, color-mix(in srgb, var(--ark-primary) 30%, transparent), transparent 62%),
    radial-gradient(760px 420px at 100% 100%, color-mix(in srgb, var(--ark-accent) 40%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--ark-primary) 12%, var(--ark-surface)), color-mix(in srgb, var(--ark-accent) 14%, var(--ark-surface)));
}
.theme-modern.hero-dark .hero {
  background:
    radial-gradient(700px 380px at 100% 0%, color-mix(in srgb, var(--ark-accent) 26%, transparent), transparent 60%),
    radial-gradient(600px 340px at 0% 100%, color-mix(in srgb, var(--ark-primary) 40%, transparent), transparent 62%),
    color-mix(in srgb, var(--ark-primary) 12%, #0a0c11);
  color: #f1f5f9;
}
.theme-modern.hero-dark .hero-title { color: #ffffff; }
.theme-modern.hero-dark .hero-subtitle { color: rgba(255, 255, 255, .74); }
.theme-modern.hero-dark .hero-eyebrow { color: var(--ark-accent); }
.theme-modern.hero-dark .hero .btn-primary {
  --bs-btn-bg: var(--ark-accent); --bs-btn-border-color: var(--ark-accent); --bs-btn-color: var(--ark-on-accent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--ark-accent) 88%, #fff); --bs-btn-hover-border-color: color-mix(in srgb, var(--ark-accent) 88%, #fff); --bs-btn-hover-color: var(--ark-on-accent);
  --bs-btn-active-bg: var(--ark-accent); --bs-btn-active-border-color: var(--ark-accent); --bs-btn-active-color: var(--ark-on-accent);
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--ark-accent) 80%, transparent);
}
.theme-modern.hero-dark .hero .btn-outline-secondary { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .4); --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.theme-modern.hero-split .hero {
  background: linear-gradient(105deg, var(--ark-primary) 0 55%, color-mix(in srgb, var(--ark-accent) 30%, var(--ark-primary-soft)) 55% 100%);
  color: var(--ark-on-primary);
}
.theme-modern.hero-split .hero-title { color: var(--ark-on-primary); }
.theme-modern.hero-split .hero-subtitle { color: color-mix(in srgb, var(--ark-on-primary) 82%, transparent); }
.theme-modern.hero-split .hero-eyebrow { color: color-mix(in srgb, var(--ark-on-primary) 85%, var(--ark-accent)); }
.theme-modern.hero-split .hero.no-art { background: var(--ark-primary); }
.theme-modern.hero-split .hero .btn-primary {
  --bs-btn-bg: var(--ark-on-primary); --bs-btn-border-color: var(--ark-on-primary); --bs-btn-color: var(--ark-primary);
  --bs-btn-hover-bg: color-mix(in srgb, var(--ark-on-primary) 90%, var(--ark-primary)); --bs-btn-hover-border-color: var(--ark-on-primary); --bs-btn-hover-color: var(--ark-primary);
  --bs-btn-active-bg: var(--ark-on-primary); --bs-btn-active-border-color: var(--ark-on-primary); --bs-btn-active-color: var(--ark-primary);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35);
}
.theme-modern.hero-split .hero .btn-outline-secondary { --bs-btn-color: var(--ark-on-primary); --bs-btn-border-color: color-mix(in srgb, var(--ark-on-primary) 45%, transparent); --bs-btn-hover-bg: color-mix(in srgb, var(--ark-on-primary) 14%, transparent); --bs-btn-hover-color: var(--ark-on-primary); --bs-btn-hover-border-color: var(--ark-on-primary); }

@media (max-width: 991.98px) {
  .theme-modern .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .theme-modern .hero-subtitle { margin-inline: auto; }
  .theme-modern .hero-actions, .theme-modern .hero-chips { justify-content: center; }
  .theme-modern .hero-art { margin: .5rem auto 0; max-width: 360px; }
  .theme-modern.hero-split .hero { background: linear-gradient(180deg, var(--ark-primary) 0 60%, color-mix(in srgb, var(--ark-accent) 30%, var(--ark-primary-soft)) 60% 100%); }
  .theme-modern.hero-split .hero.no-art { background: var(--ark-primary); }
}
@media (max-width: 575.98px) {
  .theme-modern .hero { border-radius: var(--ark-radius); padding: 1.6rem 1.1rem 1.4rem; }
  .theme-modern .hero-art { max-width: 270px; }
  .theme-modern .hero-actions .btn { flex: 1 1 auto; }
}

/* carduri de produs modern */
.theme-modern .product-card { border: 0; border-radius: var(--ark-radius); }
.theme-modern .product-card:hover .pc-media img { transform: scale(1.06); }
.theme-modern .pc-media img { padding: 9%; }
.theme-modern .pc-badge { border-radius: 999px; padding: .32rem .6rem; }
.theme-modern .pc-badge-new { background: var(--ark-text); color: var(--ark-bg); }
.theme-modern .pc-body { padding: 1rem 1rem 1.05rem; }
.theme-modern .price-now { color: var(--ark-text); font-weight: 800; }
.theme-modern .price-now.is-sale { color: var(--ark-sale); }
.theme-modern .pc-actions .btn { font-size: .86rem; padding-block: .5rem; }
.theme-modern .pc-actions .pc-details { padding-inline: .7rem; }
.theme-modern.cards-shadow .product-card { box-shadow: var(--ark-shadow-sm); }
.theme-modern.cards-shadow .product-card:hover { transform: translateY(-5px); box-shadow: var(--ark-shadow-lg); }
.theme-modern.cards-border .product-card { border: 1px solid var(--ark-border); }
.theme-modern.cards-border .product-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ark-primary) 55%, transparent); box-shadow: var(--ark-shadow-md); }
.theme-modern.cards-flat .product-card { background: transparent; overflow: visible; }
.theme-modern.cards-flat .product-card:hover { transform: none; box-shadow: none; }
.theme-modern.cards-flat .pc-media { border-radius: var(--ark-radius); border: 1px solid var(--ark-border); transition: box-shadow .25s, transform .25s; }
.theme-modern.cards-flat .product-card:hover .pc-media { box-shadow: var(--ark-shadow-md); transform: translateY(-3px); }
.theme-modern.cards-flat .pc-body { padding: .85rem .15rem .25rem; }

/* pagina de produs modern */
.theme-modern .product-main-image { border-radius: var(--ark-radius); padding: clamp(.75rem, 2vw, 1.5rem); }
.theme-modern .product-main-image img, .theme-modern #mainImg { border-radius: calc(var(--ark-radius) * .6); }
.theme-modern .product-thumb { border-radius: calc(var(--ark-radius) * .6 + 2px); border-width: 1px; }
.theme-modern .product-thumb.active { border-width: 2px; }
.theme-modern .buy-row .btn { flex: 1 1 auto; max-width: 340px; }

/* Produs fără poză: placeholder discret în culorile temei (nu o imagine ruptă) */
.pc-noimg, .product-noimg {
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--ark-primary) 7%, var(--ark-surface, #ffffff));
    color: color-mix(in srgb, var(--ark-primary) 38%, transparent);
}
.pc-noimg { width: 100%; height: 100%; font-size: 3rem; }
.product-noimg { aspect-ratio: 1 / 1; max-height: 520px; font-size: 5rem; }

/* Blog: copertă-placeholder brandată (articol fără imagine sau cu imaginea ștearsă) */
.blog-cover-ph {
    aspect-ratio: 3 / 2;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--ark-primary) 82%, #ffffff),
        color-mix(in srgb, var(--ark-accent) 78%, #ffffff));
    color: rgba(255, 255, 255, .92);
    font-size: 2.75rem;
}

/* ---------- 11. Mod întunecat (teme cu mode-dark) ---------- */
html[data-bs-theme="dark"] .bg-white { background-color: var(--ark-surface) !important; }
html[data-bs-theme="dark"] .bg-light { background-color: color-mix(in srgb, var(--ark-bg) 80%, #ffffff) !important; }
html[data-bs-theme="dark"] .text-dark { color: var(--ark-text) !important; }
html[data-bs-theme="dark"] .text-muted { color: var(--ark-muted) !important; }
html[data-bs-theme="dark"] .card { --bs-card-bg: var(--ark-surface); --bs-card-border-color: var(--ark-border); }
html[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--ark-text); --bs-table-border-color: var(--ark-border); }
html[data-bs-theme="dark"] .form-control, html[data-bs-theme="dark"] .form-select { background-color: color-mix(in srgb, var(--ark-bg) 70%, #ffffff 4%); border-color: var(--ark-border); color: var(--ark-text); }
html[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: var(--ark-text); --bs-btn-border-color: var(--ark-border); --bs-btn-hover-bg: color-mix(in srgb, var(--ark-text) 12%, transparent); --bs-btn-hover-color: var(--ark-text); --bs-btn-hover-border-color: var(--ark-text); }
html[data-bs-theme="dark"] .btn-outline-dark { --bs-btn-color: var(--ark-text); --bs-btn-border-color: var(--ark-border); --bs-btn-hover-bg: var(--ark-text); --bs-btn-hover-color: var(--ark-bg); }
html[data-bs-theme="dark"] .product-description, html[data-bs-theme="dark"] .page-content { color: var(--ark-text); }
html[data-bs-theme="dark"] .dropdown-menu { --bs-dropdown-bg: var(--ark-surface); --bs-dropdown-border-color: var(--ark-border); }
html[data-bs-theme="dark"] .site-footer { background: color-mix(in srgb, var(--ark-bg) 70%, #000000); }
html[data-bs-theme="dark"] .pc-title a { color: var(--ark-text); }
html[data-bs-theme="dark"] .theme-modern .pc-badge-new { background: var(--ark-accent); color: var(--ark-on-accent); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 575.98px) {
  .hero { padding: 1.5rem 1rem; }
  .pc-body { padding: .7rem; }
  .pc-title { font-size: .86rem; }
  .price-now { font-size: 1rem; }
  .pc-actions { flex-wrap: wrap; }
  .pc-actions .pc-details { display: none; }
  .pc-actions .btn { font-size: .8rem; padding-inline: .5rem; }
  .site-navbar .navbar-brand img { max-height: 40px; }
  .product-gallery { flex-direction: column-reverse; }
  .product-thumbs { flex-direction: row !important; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .product-thumb { width: 64px; height: 64px; flex-shrink: 0; }
  .buy-row .btn { flex: 1 1 auto; }
  .site-footer { margin-top: 2.5rem; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .pc-title { font-size: .9rem; }
}
@media (max-width: 767.98px) {
  .table-responsive { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* subsol legal: siglele de plată + pictograma ANPC SAL (250×50, cerința ANPC) */
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.6rem; margin-top: 1.4rem; }
.foot-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.foot-pay .pay-logo { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 52px; padding: 0 .55rem; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; }
.foot-pay .pay-logo img { height: 22px; width: auto; display: block; }
.foot-pay .pay-text { font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #1f2937; text-transform: uppercase; }
.anpc-sal { display: inline-flex; width: 250px; height: 50px; align-items: center; justify-content: center; background: #fff; border-radius: 6px; }
.anpc-sal img { width: 250px; height: 50px; object-fit: contain; display: block; }

/* =====================================================================
   13. AȘEZARE (șabloane) — clase puse pe <body> de ThemeLayouts::bodyClasses():
     hdr-classic|centered|split|minimal  hdr-size-compact|normal|tall  hdr-sticky  hdr-shrink (+ is-scrolled)
     cont-narrow|normal|wide|full         card-standard|minimal|overlay|boxed  card-align-left|center
     cardbtn-always|hover|none            fit-contain|cover  dens-compact|normal|airy
     herol-boxed|fullwidth|split|minimal  heroh-small|medium|large  cats-circles|cards|pills
     gallery-left|bottom  buy-sticky      footl-columns|centered|compact  headings-normal|upper
   Variabile: --pc-ratio (forma pozelor din carduri), --logo-h / --logo-h-m (logo pe calculator / telefon).
   ===================================================================== */
:root { --pc-ratio: 1 / 1; --logo-h: 50px; --logo-h-m: 40px; --sec-space: 3rem; }

/* --- logo: înălțimea aleasă (nu mai e plafonată la 56px) --- */
.site-navbar .navbar-brand img.site-logo { height: var(--logo-h); max-height: none; width: auto; max-width: 100%; object-fit: contain; transition: height .2s ease; }
@media (max-width: 1199.98px) {
  .site-navbar .navbar-brand img.site-logo { height: var(--logo-h-m); max-height: none; }
}
.hdr-shrink.is-scrolled .site-navbar { box-shadow: var(--ark-shadow-md); }
@media (min-width: 1200px) {
  .hdr-shrink.is-scrolled .site-navbar { padding-block: .3rem; }
  .hdr-shrink.is-scrolled .site-navbar .navbar-brand img.site-logo { height: calc(var(--logo-h) * .72); }
  .hdr-shrink.is-scrolled .hdr-row2 { padding-top: .15rem; margin-top: .15rem; }
}

/* --- înălțimea antetului --- */
.hdr-size-compact .site-navbar { padding-block: .3rem; }
.hdr-size-tall .site-navbar { padding-block: 1rem; }
@media (max-width: 1199.98px) { .hdr-size-tall .site-navbar { padding-block: .6rem; } }

/* --- antet centrat: logo la mijloc, meniul pe rândul al doilea --- */
@media (min-width: 1200px) {
  .hdr-centered .container { row-gap: .3rem; }
  .hdr-centered .hdr-side { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
  .hdr-centered .hdr-right { justify-content: flex-end; }
  .hdr-centered .hdr-brand-center { margin: 0 1.25rem; }
  .hdr-centered .hdr-left .site-search { flex: 0 1 260px; }
  .hdr-centered .hdr-row2 { flex-basis: 100%; justify-content: center; border-top: 1px solid var(--nav-border); padding-top: .45rem; margin-top: .45rem; }
}
@media (max-width: 1199.98px) { .hdr-centered .hdr-right { margin-left: auto; } }

/* --- antet împărțit: meniu · logo · iconițe --- */
@media (min-width: 1200px) {
  .hdr-split .hdr-split-nav { flex: 1 1 0; min-width: 0; }
  .hdr-split .hdr-split-nav .navbar-nav { flex-wrap: wrap; row-gap: .1rem; }
  .hdr-split .hdr-split-nav .nav-link { padding-inline: .45rem; }
  .hdr-split .hdr-split-actions { flex: 1 1 0; justify-content: flex-end; }
  .hdr-split .hdr-brand-center { margin: 0 1.25rem; }
}
@media (max-width: 1199.98px) { .hdr-split .hdr-split-actions { margin-left: auto; } }

/* --- antet minimal: meniul se deschide de la butonul de meniu, pe orice ecran --- */
.hdr-minimal .navbar-toggler { display: inline-flex; align-items: center; }
.hdr-minimal .hdr-minimal-menu { border-top: 1px solid var(--nav-border); margin-top: .55rem; }
.hdr-minimal .hdr-minimal-nav { flex-direction: column; }
.hdr-minimal .hdr-minimal-nav .nav-link { font-size: 1.2rem; font-weight: 600; padding-block: .45rem; }
.hdr-minimal .site-search { flex: 1 1 auto; max-width: none; }
.hdr-search-dd { min-width: 300px; border-radius: 14px; }
.hdr-search-dd .site-search { flex: none; width: 100%; }

/* --- lățimea paginii --- */
.cont-narrow .site-main .container, .cont-narrow .site-navbar > .container, .cont-narrow .site-footer > .container { max-width: 1080px; }
.cont-wide .site-main .container, .cont-wide .site-navbar > .container, .cont-wide .site-footer > .container { max-width: 1440px; }
.cont-full .site-main .container, .cont-full .site-navbar > .container, .cont-full .site-footer > .container { max-width: none; padding-inline: clamp(1rem, 3vw, 2.5rem); }

/* --- titluri cu majuscule --- */
.headings-upper h1, .headings-upper h2, .headings-upper .section-title, .headings-upper .hero-title { text-transform: uppercase; letter-spacing: .03em; }
.headings-upper .site-navbar .nav-link { text-transform: uppercase; font-size: .8rem; letter-spacing: .09em; }

/* --- spațiere --- */
.dens-compact { --sec-space: 2rem; }
.dens-airy { --sec-space: 4.75rem; }
.home-sec { margin-bottom: var(--sec-space); }
.trust-bar.home-sec { margin-bottom: var(--sec-space); }
.home-sec .cat-tiles { margin-bottom: 0; }
.hero.home-sec:not(.hero-full) { margin-bottom: calc(var(--sec-space) * .6); }
.dens-compact .product-grid { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
@media (min-width: 992px) { .dens-airy .product-grid { --bs-gutter-x: 2.25rem; --bs-gutter-y: 2.5rem; } }

/* --- forma și încadrarea pozelor din carduri --- */
.pc-media { aspect-ratio: var(--pc-ratio); }
.fit-cover .pc-media img, .fit-cover.theme-modern .pc-media img { object-fit: cover; padding: 0 !important; }
.fit-cover .pc-media { background: color-mix(in srgb, var(--ark-text) 4%, var(--ark-surface)); }

/* --- stilul cardurilor --- */
.card-minimal .product-card { background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible; }
.card-minimal .product-card:hover { transform: none !important; box-shadow: none !important; }
.card-minimal .pc-media { border-radius: var(--image-radius, var(--ark-radius)); overflow: hidden; }
.card-minimal .product-card:hover .pc-media img { transform: scale(1.05); }
.card-minimal .pc-body { padding: .8rem .1rem 0; }
.card-minimal .pc-title { font-weight: 500; min-height: 0; }

.card-boxed .product-card { border: 1px solid var(--ark-border) !important; padding: .55rem; box-shadow: none; }
.card-boxed .pc-media { border-radius: calc(var(--ark-radius) * .6); }
.card-boxed .product-card:hover { border-color: color-mix(in srgb, var(--ark-primary) 55%, transparent) !important; box-shadow: var(--ark-shadow-md); }
.card-boxed .pc-body { padding: .75rem .35rem .3rem; }

.card-overlay .product-card { position: relative; border: 0 !important; overflow: hidden; background: #111; }
.card-overlay .pc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem .95rem .95rem; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .58) 38%, rgba(0, 0, 0, .9)); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.card-overlay .pc-title { min-height: 0; }
.card-overlay .pc-title a, .card-overlay .price-now { color: #fff !important; }
.card-overlay .price-old { color: rgba(255, 255, 255, .7); }
.card-overlay .card-rating .text-muted { color: rgba(255, 255, 255, .75) !important; }
.card-overlay .pc-actions .btn-outline-secondary { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .5); --bs-btn-hover-bg: rgba(255, 255, 255, .15); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.card-overlay .product-card:hover .pc-media img { transform: scale(1.06); }

.card-align-center .pc-body { text-align: center; }
.card-align-center .pc-price, .card-align-center .card-rating, .card-align-center .pc-actions { justify-content: center; }

@media (hover: hover) {
  .cardbtn-hover .pc-actions { opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
  .cardbtn-hover .product-card:hover .pc-actions, .cardbtn-hover .product-card:focus-within .pc-actions { opacity: 1; transform: none; }
}
.cardbtn-none .pc-actions { display: none !important; }

/* --- banner: înălțime --- */
.heroh-small .hero:not(.hero-min) { min-height: 0 !important; padding-block: clamp(1.25rem, 3vw, 2rem) !important; }
.heroh-large .hero:not(.hero-min) { min-height: clamp(380px, 44vw, 580px); }

/* --- banner pe toată lățimea --- */
.hero.hero-full { display: block !important; border: 0; border-radius: 0 !important; margin-top: -1.5rem; text-align: left; padding: clamp(3rem, 8vw, 7rem) 0 !important; background-size: cover; background-position: center; }
.hero.hero-full .hero-copy { max-width: 640px; }
.hero.hero-full:not(.no-art) { background: linear-gradient(90deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .25)), var(--hero-img) center / cover no-repeat !important; color: #fff; }
.hero.hero-full:not(.no-art) .hero-title { color: #fff; }
.hero.hero-full:not(.no-art) .hero-subtitle { color: rgba(255, 255, 255, .86); }
.hero.hero-full:not(.no-art) .hero-eyebrow { color: color-mix(in srgb, var(--ark-accent) 75%, #fff); }
.hero.hero-full:not(.no-art) .btn-outline-secondary { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .55); --bs-btn-hover-bg: rgba(255, 255, 255, .14); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.theme-classic .hero.hero-full .hero-subtitle { margin-inline: 0; }
.theme-classic .hero.hero-full .hero-actions, .theme-classic .hero.hero-full .hero-chips { justify-content: flex-start; }
@media (max-width: 767.98px) { .hero.hero-full { text-align: center; } .hero.hero-full .hero-copy { margin-inline: auto; } .hero.hero-full .hero-actions, .hero.hero-full .hero-chips { justify-content: center; } }

/* --- banner împărțit: text și o poză mare --- */
.hero.hero-splitimg { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; text-align: left; padding: 0 !important; overflow: hidden; gap: 0 !important; }
.hero.hero-splitimg.no-art { grid-template-columns: 1fr; }
.hero-splitimg .hero-copy { padding: clamp(1.6rem, 4vw, 3.6rem); align-self: center; }
.hero-splitimg .hero-subtitle { margin-inline: 0 !important; }
.hero-splitimg .hero-actions, .hero-splitimg .hero-chips { justify-content: flex-start !important; }
.hero-bigimg { display: block; position: relative; min-height: 320px; background: #fff; }
.hero-bigimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fit-contain .hero-bigimg img { object-fit: contain; padding: 6%; }
.hero-splitimg:hover .hero-bigimg img { transform: scale(1.03); }
@media (max-width: 767.98px) {
  .hero.hero-splitimg { grid-template-columns: 1fr; text-align: center; }
  .hero-bigimg { order: -1; min-height: 220px; }
  .hero-splitimg .hero-subtitle { margin-inline: auto !important; }
  .hero-splitimg .hero-actions, .hero-splitimg .hero-chips { justify-content: center !important; }
}

/* --- banner minimal: doar text, mare --- */
.hero.hero-min { display: block !important; background: none !important; border: 0 !important; box-shadow: none; min-height: 0 !important; padding: clamp(1.5rem, 6vw, 5rem) 0 !important; text-align: center; color: inherit !important; }
.hero-min .hero-title { font-size: clamp(2rem, 6vw, 4.5rem); color: var(--ark-text) !important; letter-spacing: -.035em; }
.hero-min .hero-subtitle { margin-inline: auto !important; color: var(--ark-muted) !important; }
.hero-min .hero-eyebrow { color: var(--ark-primary) !important; }
.hero-min .hero-actions, .hero-min .hero-chips { justify-content: center !important; }
.theme-modern.hero-dark .hero.hero-min .btn-primary, .theme-modern.hero-split .hero.hero-min .btn-primary {
  --bs-btn-bg: var(--ark-primary); --bs-btn-border-color: var(--ark-primary); --bs-btn-color: var(--ark-on-primary);
  --bs-btn-hover-bg: var(--ark-primary-hover); --bs-btn-hover-border-color: var(--ark-primary-hover); --bs-btn-hover-color: var(--ark-on-primary);
}
.theme-modern.hero-dark .hero.hero-min .btn-outline-secondary, .theme-modern.hero-split .hero.hero-min .btn-outline-secondary {
  --bs-btn-color: var(--ark-text); --bs-btn-border-color: var(--ark-border); --bs-btn-hover-bg: color-mix(in srgb, var(--ark-text) 8%, transparent); --bs-btn-hover-color: var(--ark-text); --bs-btn-hover-border-color: var(--ark-text);
}

/* --- categorii: carduri mari / etichete --- */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cat-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--ark-radius); overflow: hidden; background: var(--ark-primary-soft); text-decoration: none; }
.cat-card-img { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ark-primary); font-size: 2.2rem; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68)); color: #fff; font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
@media (max-width: 575.98px) { .cat-cards { grid-template-columns: repeat(2, 1fr); gap: .65rem; } .cat-card-name { font-size: .88rem; padding: 1.6rem .7rem .65rem; } }
.cat-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 1.05rem; border: 1px solid var(--ark-border); border-radius: 999px; background: var(--ark-surface); color: var(--ark-text); font-weight: 600; font-size: .92rem; text-decoration: none; transition: border-color .15s, color .15s, background-color .15s; }
.cat-pill span { color: var(--ark-muted); font-weight: 500; font-size: .8rem; }
.cat-pill:hover { border-color: var(--ark-primary); color: var(--ark-primary); background: var(--ark-primary-soft); }

/* --- Povestea noastră --- */
.home-story { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--ark-radius); background: var(--ark-primary-soft); }
.home-story p { color: var(--ark-text); max-width: 70ch; line-height: 1.7; }
.home-story-mark { flex: 0 0 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--ark-surface); color: var(--ark-primary); font-size: 1.9rem; box-shadow: var(--ark-shadow-sm); }
@media (max-width: 575.98px) { .home-story { flex-direction: column; text-align: center; } .home-story p { margin-inline: auto; } }

/* --- pagina de produs: miniaturi dedesubt, preț și buton care rămân vizibile --- */
.gallery-bottom .product-gallery { flex-direction: column-reverse; }
.gallery-bottom .product-thumbs { flex-direction: row !important; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; }
.gallery-bottom .product-thumb { flex-shrink: 0; }
@media (min-width: 768px) { .buy-sticky .buy-col { position: sticky; top: 6rem; align-self: flex-start; } }

/* --- subsol: centrat / compact --- */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem; }
.foot-compact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.foot-compact-row .foot-links { flex: 1 1 auto; }
.foot-compact-brand .foot-logo { margin-bottom: 0 !important; }
@media (max-width: 767.98px) { .foot-compact-row { flex-direction: column; text-align: center; } }

/* --- previzualizarea din Admin → Aspect --- */
.is-preview::after { content: "Previzualizare"; position: fixed; left: 10px; bottom: 10px; z-index: 2000; padding: .25rem .65rem; border-radius: 999px; background: #111827; color: #fff; font: 600 11px/1.4 system-ui, sans-serif; opacity: .85; pointer-events: none; }
