/* =========================================================
   VIORISSA — stiluri principale
   Culorile și fonturile sunt definite o singură dată mai jos
   (:root). Dacă vrei altă nuanță, o schimbi doar acolo.
   ========================================================= */

/* ---------- Fonturi (găzduite local, în folderul /fonts) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Variable.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Italic-Variable.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Culori și dimensiuni ---------- */
:root {
  --bg: #faf6f2;          /* fundal crem */
  --bg-soft: #f5ece6;     /* carduri, zone deschise */
  --blush: #efdcd3;       /* roz pudră (benzi, cercuri iconițe) */
  --blush-deep: #e6cabd;
  --ink: #1c1a19;         /* text și butoane negre */
  --ink-soft: #4d4642;    /* text normal */
  --muted: #857b75;       /* text secundar */
  --line: #e8dcd4;        /* linii subțiri */
  --accent: #b4533f;      /* teracota: sublinieri, „Nou”, badge */
  --star: #f08a24;        /* stele recenzii */
  --white: #ffffff;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(28, 26, 25, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset de bază ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #33302e; }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   BARA DE SUS (livrare gratuită)
   ========================================================= */
.topbar {
  background: var(--ink); color: #f3ebe5;
  font-size: 12.5px; letter-spacing: 0.02em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 36px; text-align: center;
}
.topbar strong { font-weight: 600; letter-spacing: 0.04em; }
.topbar .icon { width: 20px; height: 20px; stroke-width: 1.4; flex: none; }

/* =========================================================
   ANTET (logo, meniu, iconițe)
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 242, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 26, 25, 0.06); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.logo { display: inline-flex; justify-self: start; }
.logo img { width: 180px; height: auto; }

.main-nav ul { display: flex; align-items: center; gap: clamp(22px, 3.1vw, 48px); }
.main-nav a {
  position: relative; display: block; padding: 8px 0;
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--ink);
  transition: background 0.2s var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn .icon { width: 25px; height: 25px; }
.cart-count {
  position: absolute; top: 4px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-size: 10.5px; font-weight: 600; line-height: 1; border-radius: 999px;
  border: 2px solid var(--bg);
}

.menu-toggle { display: none; }

/* ---------- Căutare (panou sub antet) ---------- */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.search-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.search-panel .container { padding-top: 22px; padding-bottom: 26px; }
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); }
.search-form .icon { flex: none; color: var(--muted); }
.search-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 12px 0; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); color: var(--ink);
}
.search-form input::placeholder { color: #b1a7a0; }
.search-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.search-tags a {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.search-tags a:hover { border-color: var(--ink); background: var(--white); }

/* =========================================================
   MENIU MOBIL (sertar din stânga)
   ========================================================= */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(28, 26, 25, 0.38);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
  width: min(86vw, 380px);
  display: flex; flex-direction: column;
  background: var(--bg);
  transform: translateX(-100%); transition: transform 0.35s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { transform: none; }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 14px 22px; border-bottom: 1px solid var(--line);
}
.mobile-menu-head img { width: 140px; }
.mobile-menu nav { padding: 10px 22px; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 24px; color: var(--ink);
}
.mobile-menu nav a .icon { width: 18px; height: 18px; color: var(--muted); }
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu-foot { margin-top: auto; padding: 22px; background: var(--bg-soft); font-size: 14px; }
.mobile-menu-foot p { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.mobile-menu-foot p + p { margin-top: 8px; }
.mobile-menu-foot .icon { width: 20px; height: 20px; }

body.no-scroll { overflow: hidden; }

/* =========================================================
   BARA DE JOS PE TELEFON
   ========================================================= */
.tabbar { display: none; }

/* =========================================================
   HERO (slider pe pagina principală)
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--blush); }
.hero-track { position: relative; height: clamp(440px, 40vw, 600px); }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  transform: scale(1.04); transition: transform 7s linear;
}
.hero-slide.is-active img { transform: scale(1); }

/* voal crem în stânga, ca textul să se citească pe orice fotografie */
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250, 246, 242, 0.78) 0%, rgba(250, 246, 242, 0.45) 34%, rgba(250, 246, 242, 0) 58%);
}

.hero-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero-title {
  font-size: clamp(42px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -0.015em;
  max-width: 16ch;
}
.hero-text {
  margin-top: 18px; max-width: 30ch;
  font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; color: var(--ink);
}
.hero-content .btn { margin-top: 32px; }

/* animația textului la schimbarea slide-ului */
.hero-slide .hero-title,
.hero-slide .hero-text,
.hero-slide .btn { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: 0.25s; }
.hero-slide.is-active .hero-text { opacity: 1; transform: none; transition-delay: 0.4s; }
.hero-slide.is-active .btn { opacity: 1; transform: none; transition-delay: 0.55s; }

/* textul rotunjit din dreapta jos */
.hero-seal {
  position: absolute; z-index: 3; right: clamp(24px, 5vw, 72px); bottom: clamp(28px, 4vw, 52px);
  width: 150px; color: var(--ink); pointer-events: none;
}
.hero-seal text { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.34em; fill: currentColor; }
.hero-seal line { stroke: currentColor; stroke-width: 1; }

.hero-dots {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.hero-dot { display: grid; place-items: center; width: 28px; height: 24px; }
.hero-dot span {
  display: block; width: 8px; height: 8px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; opacity: 0.55;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.hero-dot[aria-current="true"] span { width: 22px; background: var(--ink); opacity: 1; }

/* =========================================================
   LAPTOP mic / tabletă orizontală
   ========================================================= */
@media (max-width: 1100px) {
  .logo img { width: 160px; }
  .main-nav a { font-size: 14.5px; }
}

/* =========================================================
   TABLETĂ ȘI TELEFON — meniu hamburger
   ========================================================= */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; justify-self: start; margin-left: -10px; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .logo { justify-self: center; grid-column: 2; grid-row: 1; }
  .logo img { width: 142px; }
  .menu-toggle { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 3; grid-row: 1; margin-right: -10px; gap: 0; }
  .hero-seal { display: none; }
}

/* =========================================================
   TELEFON
   ========================================================= */
@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { font-size: 11.5px; }
  .topbar .container { min-height: 32px; }
  .topbar .icon { width: 18px; height: 18px; }

  .hero-track { height: min(112vw, 540px); }
  .hero-slide img { object-position: 72% center; }
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(250, 246, 242, 0.82) 0%, rgba(250, 246, 242, 0.5) 38%, rgba(250, 246, 242, 0) 62%);
  }
  .hero-content { justify-content: flex-start; padding-top: 40px; }
  .hero-title { font-size: clamp(36px, 10.4vw, 48px); }
  .hero-text { margin-top: 12px; font-size: 16px; max-width: 26ch; }
  .hero-content .btn { margin-top: 22px; min-height: 46px; padding: 0 20px; font-size: 13px; }
  .hero-dots { bottom: 14px; }

  /* bara de jos cu 5 butoane */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(250, 246, 242, 0.97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 4px 0; font-size: 11px; font-weight: 500; color: var(--muted);
  }
  .tabbar a .icon { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] .icon { fill: currentColor; stroke: currentColor; }
  .tabbar .cart-count { top: 0; right: calc(50% - 22px); }
}

@media (max-width: 380px) {
  .logo img { width: 124px; }
  .topbar .icon { display: none; }
}

[hidden] { display: none !important; }

/* =========================================================
   WORDPRESS — bara de administrare (când ești logat)
   ========================================================= */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.2fr;
  gap: 40px clamp(24px, 4vw, 64px);
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.footer-logo { display: inline-flex; }
.footer-logo img { width: 170px; }
.footer-brand p { margin-top: 18px; max-width: 32ch; line-height: 1.6; }

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--blush-deep); border-radius: 50%; color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.social .icon { width: 19px; height: 19px; stroke-width: 1.5; }

.footer-title {
  margin-bottom: 18px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.footer-col li + li { margin-top: 11px; }
.footer-col a { transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--ink); stroke-width: 1.5; }
.footer-contact a { color: var(--ink); font-weight: 500; }

.footer-bottom { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px;
}
.footer-legal { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.secure { display: inline-flex; align-items: center; gap: 7px; }
.secure .icon { width: 16px; height: 16px; stroke-width: 1.5; }
.anpc {
  display: inline-flex; flex-direction: column; line-height: 1.2;
  padding: 7px 12px; border: 1px solid var(--blush-deep); border-radius: 3px;
  font-weight: 600; font-size: 12px; color: var(--ink); letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease);
}
.anpc small { font-weight: 400; font-size: 10.5px; color: var(--muted); letter-spacing: 0; }
.anpc:hover { border-color: var(--ink); }

/* =========================================================
   PAGINI OBIȘNUITE ȘI ARTICOLE
   ========================================================= */
.page-main { padding-top: clamp(32px, 5vw, 64px); }
.page-head { margin-bottom: clamp(24px, 4vw, 40px); }
.page-title { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.01em; }

.entry { max-width: 760px; font-size: 16.5px; line-height: 1.75; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.entry h3 { font-size: clamp(21px, 2.2vw, 25px); margin-top: 1.4em; }
.entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry ul { list-style: disc; }
.entry img { border-radius: var(--radius); }
.entry-cover { margin-bottom: 32px; }
.entry-cover img { width: 100%; border-radius: var(--radius); }

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 24px; }
.post-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.post-card-date { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.post-card-title { margin-top: 6px; font-size: 21px; line-height: 1.25; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { margin-top: 8px; font-size: 14.5px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Magazin (aspectul complet vine la pașii 3 și 4) */
.woo-main .woocommerce-breadcrumb { margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.woo-main .page-title { margin-bottom: 24px; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .site-footer { font-size: 14px; }
  .footer-grid { gap: 32px 20px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}
