/* Avem de toate – storefront CRO. System fonts, reserved image boxes, one primary CTA. */
:root {
  --avd-ink: #1b2a4a;
  --avd-muted: #5c6170;
  --avd-bg: #f6f3ee;
  --avd-card: #ffffff;
  --avd-border: #e6e1da;
  --avd-accent: #c2410c;
  --avd-accent-hover: #9a3412;
  --avd-trust: #0b6e4f;
  --avd-badge: #1b365d;
  --avd-radius: 12px;
  --avd-wrap: 1200px;
  --avd-shadow: 0 1px 2px rgba(27, 42, 74, 0.06);
  --avd-font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.avd-body {
  margin: 0;
  background: var(--avd-bg);
  color: var(--avd-ink);
  font-family: var(--avd-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.avd-sticky-on { padding-bottom: 0; }
.avd-wrap {
  width: min(100% - 2rem, var(--avd-wrap));
  margin-inline: auto;
}
.avd-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.avd-skip:focus { left: 0.5rem; top: 0.5rem; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Top bar + header */
.avd-topbar {
  background: var(--avd-ink);
  color: #f4f1ea;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.avd-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0.4rem 0;
  justify-content: center;
}
.avd-header {
  background: var(--avd-card);
  border-bottom: 1px solid var(--avd-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.avd-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
}
.avd-logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--avd-ink);
  white-space: nowrap;
  line-height: 1.1;
}
.avd-logo__accent { color: var(--avd-accent); }
.avd-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--avd-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.avd-nav-toggle span:not(.screen-reader-text),
.avd-nav-toggle span:not(.screen-reader-text)::before,
.avd-nav-toggle span:not(.screen-reader-text)::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--avd-ink);
  position: absolute;
  left: 12px;
  top: 21px;
  content: "";
}
.avd-nav-toggle span:not(.screen-reader-text)::before { top: -6px; }
.avd-nav-toggle span:not(.screen-reader-text)::after { top: 6px; }
.avd-nav { background: var(--avd-card); border-top: 1px solid var(--avd-border); }
.avd-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}
.avd-nav__list a {
  color: var(--avd-ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  display: inline-block;
}
.avd-nav__list a:hover,
.avd-nav__list a:focus { color: var(--avd-accent); text-decoration: underline; }

/* Search */
.avd-search { position: relative; display: flex; width: 100%; }
.avd-search__input {
  flex: 1;
  border: 1px solid #cfc8bd;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fff;
  min-width: 0;
}
.avd-search__input:focus {
  outline: 2px solid var(--avd-ink);
  outline-offset: -1px;
  z-index: 1;
}
.avd-search__submit {
  border: 0;
  background: var(--avd-ink);
  color: #fff;
  font: inherit;
  font-weight: 650;
  padding: 0 1.1rem;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  min-height: 48px;
}
.avd-search__submit:hover,
.avd-search__submit:focus { background: #121c33; }
.avd-search--hero { max-width: 640px; }
.avd-search--hero .avd-search__input { padding: 0.95rem 1rem; font-size: 1.05rem; }
.avd-search__suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--avd-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.12);
  z-index: 50;
  overflow: hidden;
}
.avd-search__suggest a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--avd-border);
}
.avd-search__suggest a:first-child { border-top: 0; }
.avd-search__suggest a:hover,
.avd-search__suggest a[aria-selected="true"] { background: #f6f3ee; }
.avd-search__suggest img {
  width: 48px; height: 48px; object-fit: contain;
  background: #f0ebe3; border-radius: 6px;
}
.avd-search__suggest strong { display: block; font-size: 0.92rem; }
.avd-search__suggest em { font-style: normal; color: var(--avd-muted); font-size: 0.8rem; }
.avd-search__suggest .price { font-variant-numeric: tabular-nums; font-weight: 650; }

/* Hero + sections */
.avd-hero { padding: 2.5rem 0 2rem; }
.avd-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  max-width: 22ch;
  letter-spacing: -0.02em;
}
.avd-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--avd-trust);
  margin: 0 0 0.6rem;
}
.avd-hero__lead { max-width: 42rem; color: var(--avd-muted); margin: 0 0 1.25rem; }
.avd-hero__fine { font-size: 0.85rem; color: var(--avd-muted); margin: 0.7rem 0 0; }
.avd-section { padding: 1.75rem 0 2rem; }
.avd-section--muted { background: #efeae3; }
.avd-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.avd-section h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.avd-link { color: var(--avd-accent); font-weight: 600; text-decoration: none; }
.avd-link:hover { text-decoration: underline; }
.avd-empty { color: var(--avd-muted); }
.avd-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.avd-steps__list li {
  background: var(--avd-card);
  border: 1px solid var(--avd-border);
  border-radius: var(--avd-radius);
  padding: 1rem 1rem 1rem 3rem;
  position: relative;
}
.avd-steps__list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--avd-ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.avd-cats, .avd-brands, .avd-grid, .products.avd-grid, ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.avd-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.avd-cat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--avd-card);
  border: 1px solid var(--avd-border);
  border-radius: var(--avd-radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 88px;
  box-shadow: var(--avd-shadow);
}
.avd-cat:hover { border-color: var(--avd-ink); }
.avd-cat__name { font-weight: 650; }
.avd-cat__count { color: var(--avd-muted); font-size: 0.85rem; }
.avd-brands { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.avd-brands a {
  display: block;
  text-align: center;
  background: var(--avd-card);
  border: 1px solid var(--avd-border);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  color: inherit;
  font-weight: 550;
}
.avd-brands a:hover { border-color: var(--avd-ink); }
.avd-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.avd-trust__list li {
  background: var(--avd-card);
  border: 1px solid var(--avd-border);
  border-radius: var(--avd-radius);
  padding: 1rem 1.1rem;
}
.avd-trust__list strong { display: block; margin-bottom: 0.3rem; }
.avd-trust__list span { color: var(--avd-muted); font-size: 0.92rem; }

/* Product cards */
ul.products,
.avd-grid.products {
  grid-template-columns: repeat(3, 1fr);
}
/* WooCommerce/GeneratePress clearfix (::before/::after) would occupy the first grid cell. */
ul.products::before,
ul.products::after,
.products::before,
.products::after,
.avd-grid::before,
.avd-grid::after {
  content: none !important;
  display: none !important;
}
.avd-card, li.product.avd-card {
  background: var(--avd-card);
  border: 1px solid var(--avd-border);
  border-radius: var(--avd-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--avd-shadow);
  margin: 0 !important;
  width: auto !important;
  float: none !important;
}
.avd-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f0ebe3;
  position: relative;
  overflow: hidden;
}
.avd-card__media img,
.avd-card__media .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.avd-badge {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  background: var(--avd-badge);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  z-index: 1;
}
.avd-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem 1rem;
  flex: 1;
}
.avd-card__title {
  font-size: 0.98rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.avd-card__title a { color: inherit; text-decoration: none; }
.avd-card__title a:hover { text-decoration: underline; }
.avd-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.avd-card__price del {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--avd-muted);
  margin-right: 0.3rem;
}
.avd-card__price ins { text-decoration: none; }
.avd-price-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--avd-muted);
}
.avd-card__meta, .avd-card__ship {
  font-size: 0.82rem;
  color: var(--avd-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
}
.avd-pill {
  background: #e4f3ec;
  color: var(--avd-trust);
  font-weight: 650;
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.avd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  background: var(--avd-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-align: center;
  width: 100%;
  margin-top: auto;
}
.avd-cta:hover,
.avd-cta:focus { background: var(--avd-accent-hover); }
body.avd-cta-color-green .avd-cta { background: #0b6e4f; }
body.avd-cta-color-green .avd-cta:hover { background: #085540; }
body.avd-cta-color-gold .avd-cta { background: #d4a017; color: #1b2a4a !important; }
body.avd-cta-color-gold .avd-cta:hover { background: #b8870d; }

/* Archive */
.avd-archive { padding: 1.5rem 0 3rem; }
.avd-archive__head h1 { margin: 0 0 0.4rem; font-size: 1.7rem; }
.avd-archive__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
  color: var(--avd-muted);
}
.avd-archive__meta .woocommerce-ordering select {
  font: inherit;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--avd-border);
  background: #fff;
  min-height: 44px;
}
.avd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  background: var(--avd-card);
  border: 1px solid var(--avd-border);
  border-radius: var(--avd-radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
}
.avd-filters fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: 0.4rem; align-items: center; }
.avd-filters legend, .avd-filters__brand span {
  font-size: 0.75rem;
  font-weight: 650;
  display: block;
  margin-bottom: 0.2rem;
  color: var(--avd-muted);
}
.avd-filters input[type="number"],
.avd-filters select {
  font: inherit;
  border: 1px solid var(--avd-border);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  width: 7rem;
  min-height: 44px;
  background: #fff;
}
.avd-filters select { width: 11rem; }
.avd-filters__stock { display: flex; gap: 0.4rem; align-items: center; min-height: 44px; }
.avd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
}
.avd-btn--primary { background: var(--avd-ink); color: #fff; }
.avd-btn--secondary { background: #fff; color: var(--avd-ink); border-color: var(--avd-border); }
.avd-btn--ghost { background: transparent; color: var(--avd-ink); border-color: var(--avd-border); }
.avd-btn--primary:hover { background: #121c33; }
.avd-btn--secondary:hover, .avd-btn--ghost:hover { border-color: var(--avd-ink); }
.avd-loadmore { display: flex; justify-content: center; margin: 1.5rem 0 0; }

/* PDP */
.avd-pdp { padding: 1.25rem 0 4rem; }
.avd-crumbs, .woocommerce-breadcrumb { font-size: 0.85rem; color: var(--avd-muted); margin-bottom: 1rem; }
.woocommerce-breadcrumb a { color: inherit; }
.avd-pdp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.avd-pdp__media { position: relative; }
.avd-pdp__media .woocommerce-product-gallery {
  margin: 0;
}
.avd-pdp__media .woocommerce-product-gallery__image,
.avd-pdp__media .woocommerce-product-gallery__wrapper,
.avd-pdp__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f0ebe3;
  border-radius: var(--avd-radius);
  border: 1px solid var(--avd-border);
}
.avd-pdp__media img { display: block; }
.avd-badge--pdp { position: absolute; z-index: 2; }
.avd-pdp__title { margin: 0 0 0.6rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.avd-pdp__price { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 0.8rem; }
.avd-pdp__price del { font-size: 1.15rem; color: var(--avd-muted); font-weight: 500; }
.avd-pdp__price ins { text-decoration: none; }
.avd-pdp__facts { list-style: none; margin: 0 0 1rem; padding: 0; color: var(--avd-muted); }
.avd-pdp__facts li { margin: 0 0 0.3rem; }
.avd-cta--pdp { max-width: 22rem; }
.avd-pdp__fine { font-size: 0.85rem; color: var(--avd-muted); margin: 0.7rem 0 0; max-width: 32rem; }
.avd-pdp__details { margin-top: 2rem; }
.avd-fold {
  background: var(--avd-card);
  border: 1px solid var(--avd-border);
  border-radius: var(--avd-radius);
  padding: 0.6rem 1rem;
  margin: 0 0 0.7rem;
}
.avd-fold summary { cursor: pointer; font-weight: 650; padding: 0.4rem 0; }
.avd-pdp__related { margin-top: 2.5rem; }
.avd-pdp__related > h2, .avd-pdp__related .related > h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.avd-pdp__related ul.products { grid-template-columns: repeat(4, 1fr); }

/* Sticky mobile CTA */
.avd-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--avd-border);
  box-shadow: 0 -4px 16px rgba(27, 42, 74, 0.08);
  z-index: 45;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
}
.avd-sticky__inner {
  width: min(100%, var(--avd-wrap));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(9rem, 14rem);
  gap: 0.75rem;
  align-items: center;
}
.avd-sticky__title { display: block; font-size: 0.85rem; font-weight: 600; }
.avd-sticky__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.avd-cta--sticky { margin-top: 0; }
body.avd-sticky-on.single-product { padding-bottom: 5.5rem; }
body.avd-sticky-off .avd-sticky { display: none !important; }
@media (min-width: 901px) {
  .avd-sticky { display: none !important; }
  body.avd-sticky-on.single-product { padding-bottom: 0; }
}

/* Footer + consent + legal */
.avd-footer {
  background: var(--avd-ink);
  color: #e9e4dc;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}
.avd-footer a { color: #fff; }
.avd-logo--footer { color: #fff; margin: 0 0 0.4rem; }
.avd-footer__tag, .avd-footer__disclosure, .avd-footer__copy { color: #c9c3b8; }
.avd-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}
.avd-footer__heading { font-weight: 700; margin: 0 0 0.5rem; color: #fff; }
.avd-footer__list { list-style: none; margin: 0; padding: 0; }
.avd-footer__list li { margin: 0 0 0.35rem; }
.avd-footer__copy { margin: 1.5rem 0 0; font-size: 0.85rem; border-top: 1px solid #31415f; padding-top: 1rem; }
.avd-prose { padding: 2rem 0 3rem; max-width: 46rem; }
.avd-prose h1 { margin-top: 0; }
.avd-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 0.8rem;
  pointer-events: none;
}
.avd-consent__inner {
  pointer-events: auto;
  width: min(100%, 720px);
  margin: 0 auto;
  background: #fff;
  color: var(--avd-ink);
  border: 1px solid var(--avd-border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 1rem 1.1rem;
}
.avd-consent__title { font-weight: 700; margin: 0 0 0.3rem; }
.avd-consent__text { margin: 0 0 0.8rem; font-size: 0.92rem; color: var(--avd-muted); }
.avd-consent__text a { color: var(--avd-ink); }
.avd-consent__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.avd-consent__actions .avd-btn { flex: 1; min-width: 10rem; }

/* Hide leftover Woo cart chrome */
.site-header-cart, .wc-block-mini-cart, .added_to_cart { display: none !important; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--avd-ink);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .avd-header__inner { grid-template-columns: 1fr auto; }
  .avd-header__search { grid-column: 1 / -1; order: 3; }
  .avd-nav-toggle { display: inline-block; }
  .avd-nav { display: none; }
  .avd-nav.is-open { display: block; }
  .avd-nav__list { flex-direction: column; padding: 0.6rem 0 1rem; }
  .avd-steps__list, .avd-trust__list, .avd-pdp__grid,
  ul.products, .avd-grid.products, .avd-pdp__related ul.products {
    grid-template-columns: 1fr 1fr;
  }
  .avd-footer__grid { grid-template-columns: 1fr; }
  .avd-hero { padding-top: 1.5rem; }
  .avd-hero h1 { max-width: none; }
}
@media (max-width: 600px) {
  ul.products, .avd-grid.products, .avd-pdp__related ul.products,
  .avd-steps__list, .avd-trust__list, .avd-pdp__grid {
    grid-template-columns: 1fr;
  }
  .avd-filters { flex-direction: column; align-items: stretch; }
  .avd-filters input[type="number"], .avd-filters select { width: 100%; }
}

/* Store notice disabled; keep hidden if a stale option reappears. */
.woocommerce-store-notice, p.demo_store {
  display: none !important;
}

.avd-pdp__media > img,
.avd-pdp__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f0ebe3;
  border-radius: var(--avd-radius);
  border: 1px solid var(--avd-border);
  display: block;
}
@media (max-width: 900px) {
  body.home .avd-hero .avd-search { display: none; }
}
