@import url('/assets/fonts/raleway.css'); /* Raleway local (self-host Google Fonts, 300/400/900) */

/* answer.ro — stiluri pixel-perfect după specificațiile clientului.
   Container 1156px centrat. Dimensiuni shape = exact din spec; fonturi scalate să încapă. */
:root {
  --container: 1156px;

  /* Culori spec */
  --logo:        #ed64a9;  /* ANSWER */
  --tag1:        #bd5188;  /* tagline 1 + newsletter bg + pastile normale Femei */
  --tag2:        #946f8e;  /* subtagline */
  --steel:       #58899c;  /* navbar categorii + caseta CAUTARE */
  --dark-pink:   #7b1f48;  /* preț, eticheta EA, placeholder email */
  --white:       #ffffff;

  /* Casete sezoniere */
  --season1: #7b2d8b;
  --season2: #58899c;
  --season3: #f5a623;
  --season4: #c0392b;

  /* Badge-uri card */
  --badge-new:  #00b1fb;
  --badge-disc: #fba72b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Raleway', 'Segoe UI', Arial, sans-serif; color: #111; background: #fff; }
a { text-decoration: none; color: inherit; }
img { display: block; }

/* Coloana centrală de 1156px — tot conținutul aliniat în ea */
.page { width: var(--container); max-width: 100%; margin: 0 auto; }

/* ---------- Header (linia 1) ---------- */
.site-header { display: flex; align-items: center; gap: 22px; padding: 14px 0 8px; }
.brand { font-weight: 900; font-size: 67px; line-height: 1; color: var(--logo); letter-spacing: 1px; }
.brand-tagline .t1 { color: var(--tag1); font-weight: 400; font-size: 31px; line-height: 1.1; }
.brand-tagline .t2 { color: var(--tag2); font-weight: 400; font-size: 21px; margin-top: 4px; }

/* ---------- Navbar (linia 2) ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 12px; }
.nav-toggle { display: none; background: var(--steel); color: #fff; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 18px; padding: 9px 16px; letter-spacing: 1px; align-items: center; gap: 6px; }
.nav-cats { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
.nav-cats a { color: var(--steel); font-weight: 300; font-size: 27px; white-space: nowrap; }
.nav-cats li:not(:last-child)::after { content: '|'; color: var(--steel); font-size: 27px; margin-left: 10px; }
.nav-search { position: relative; flex: 0 0 auto; }
#searchToggle {
  width: 220px; height: 35px; background: var(--steel); color: var(--white);
  border: 0; cursor: pointer; font-family: inherit; font-weight: 300; font-size: 23px; letter-spacing: 1px;
}
.search-panel { position: absolute; right: 0; top: 0; width: 360px; z-index: 30; background: #fff; border: 1px solid #ddd; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
#searchInput { width: 100%; height: 35px; border: 0; border-bottom: 1px solid #ddd; padding: 0 10px; font-size: 18px; font-family: inherit; }
.search-results { max-height: 380px; overflow: auto; }
.sr-item { display: flex; gap: 10px; padding: 6px 8px; align-items: center; border-bottom: 1px solid #eee; }
.sr-img { width: 38px; height: 52px; background: #eee center/cover no-repeat; flex: 0 0 auto; }
.sr-title { display: block; font-size: 13px; }
.sr-price { display: block; color: var(--dark-pink); font-weight: 700; font-size: 13px; }
.sr-empty { color: #999; padding: 10px; }
.sr-all { display: block; text-align: center; padding: 10px; font-family: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--steel); border-top: 1px solid #eee; }
.sr-all:hover { background: #f7f7f7; }

/* Pagina de rezultate căutare */
.search-page { padding: 10px 0 20px; }
.search-h { font-weight: 400; font-size: 24px; margin: 8px 0 18px; }
.search-count { color: #999; }
.search-empty { color: #777; font-size: 16px; }

/* ---------- Hero 3 poze (EA/EL/EI) 381×680 ---------- */
.hero3 { display: flex; justify-content: space-between; gap: 6px; }
.hero-cell {
  position: relative; width: 381px; height: 680px;
  background: #d9d9d9 center/cover no-repeat;
}
.hero-label {
  position: absolute; right: 18px; bottom: 12px;
  color: var(--white); font-weight: 900; font-size: 128px; line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

/* ---------- Casete sezoniere 286×172 ---------- */
.seasonal { display: flex; justify-content: space-between; margin: 16px 0; }
.seasonal-box {
  width: 286px; height: 172px; display: flex; align-items: center; justify-content: center;
  padding: 18px; color: var(--white); text-align: center;
}
.seasonal-text { font-weight: 300; font-size: 34px; line-height: 1.2; }

/* ---------- Newsletter 1156×161 ---------- */
.newsletter { width: var(--container); min-height: 161px; background: var(--tag1); color: var(--white); }
.nl-form { min-height: 161px; display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 26px; gap: 24px; }
.nl-title h3 { margin: 0; font-weight: 300; font-size: 45px; line-height: 1.12; }
.nl-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-weight: 300; font-size: 24px; }
.nl-cats label { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.nl-cats input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 22px; height: 22px; background: #fff; border: 2px solid #fff; border-radius: 3px;
  cursor: pointer; position: relative; flex: 0 0 auto;
}
.nl-cats input:checked::after {
  content: ''; position: absolute; left: 7px; top: 3px;
  width: 5px; height: 11px; border: solid var(--tag1); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.nl-signup { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nl-signup input[type=email] { width: 273px; height: 43px; border: 0; padding: 0 12px; font-size: 16px; font-family: inherit; color: var(--dark-pink); }
.nl-signup input[type=email]::placeholder { color: var(--dark-pink); opacity: 1; }
.nl-signup button { background: none; border: 0; color: var(--white); font-family: inherit; font-weight: 400; font-size: 28px; cursor: pointer; letter-spacing: .5px; padding: 0; }
.nl-signup button:hover, .nl-signup button:focus { text-decoration: underline; }
.nl-gdpr { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.3; max-width: 273px; }
.nl-gdpr input { margin: 2px 0 0; flex: 0 0 auto; }
.nl-gdpr a { color: #fff; text-decoration: underline; }
.nl-msg { width: 273px; max-width: 100%; font-size: 12px; line-height: 1.35; min-height: 14px; }

/* ---------- Pagina categorie ---------- */
.category { padding: 8px 0 20px; }
.cat-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.cat-label { font-weight: 700; font-size: 30px; line-height: 30px; color: var(--cat-active, var(--dark-pink)); flex: 0 0 auto; }
.subcat-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subcat {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  background: var(--cat-normal, var(--tag1)); color: var(--white);
  font-weight: 300; font-size: 16px; line-height: 30px; white-space: nowrap;
}
.subcat:hover { filter: brightness(.95); }
.subcat.active { background: var(--cat-active, var(--dark-pink)); }

/* Grid 4×5 — carduri 280×462, gap 12 (4×280 + 3×12 = 1156) */
.product-grid { display: grid; grid-template-columns: repeat(4, 280px); justify-content: space-between; row-gap: 12px; }
#gridHost.loading { opacity: .5; pointer-events: none; }
.grid-empty { width: 280px; height: 560px; }
.grid-banner { width: 280px; height: 560px; background: #eee center/cover no-repeat; }

/* Card produs 280×462 — poză sus + text dedesubt */
.product-tile { width: 280px; display: block; color: #111; }
.tile-img { position: relative; width: 280px; height: 420px; background: #f0f0f0 center/cover no-repeat; }
.tile-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 6px; }
.badge { width: 64px; height: 24px; display: flex; align-items: center; justify-content: center; color: #000; font-weight: 700; font-size: 12px; }
.badge-new { background: var(--badge-new); }
.badge-disc { background: var(--badge-disc); }
.tile-info { height: 140px; padding: 8px 2px 0; overflow: hidden; }
.tile-title { font-weight: 400; font-size: 18px; line-height: 1.25; max-height: 46px; overflow: hidden; }
.tile-brand { font-size: 16px; color: #555; text-transform: uppercase; letter-spacing: .3px; margin: 4px 0; }
.tile-price { font-weight: 400; font-size: 22px; }
.price-old { color: #999; text-decoration: line-through; font-size: 16px; margin-right: 6px; }
.price-new { color: var(--dark-pink); }

/* ---------- Responsive (designul e desktop 1156; scalăm pe ecrane mici) ---------- */
/* ===================== RESPONSIVE ===================== */

/* Tabletă (≤1180px): container fluid, grid 2 coloane */
@media (max-width: 1180px) {
  .page, .newsletter { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-tile, .tile-img, .grid-banner, .grid-empty { width: 100%; }
  .tile-img { height: auto; aspect-ratio: 280/420; }
  .grid-banner, .grid-empty { height: auto; aspect-ratio: 280/560; }
  .hero3 { gap: 4px; }
  .hero-cell { width: calc(33.33% - 3px); height: auto; aspect-ratio: 381/680; }
  .seasonal { flex-wrap: wrap; gap: 8px; }
  .seasonal-box { width: calc(50% - 4px); height: auto; min-height: 150px; }
  .nl-form { flex-wrap: wrap; min-height: 0; gap: 18px; }
  .newsletter { min-height: 0; }
}

/* Mobil (≤820px): meniu hamburger + header/newsletter restructurate */
@media (max-width: 820px) {
  .site-header { gap: 14px; padding: 10px 0 6px; }
  .brand { font-size: 44px; }
  .brand-tagline .t1 { font-size: 19px; }
  .brand-tagline .t2 { font-size: 13px; }

  .site-nav { flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav-search { margin-left: auto; }
  #searchToggle { width: 150px; font-size: 18px; }
  .search-panel { width: 280px; }
  .nav-cats { order: 3; flex-basis: 100%; display: none; flex-direction: column; gap: 0; }
  .nav-cats.open { display: flex; }
  .nav-cats li { width: 100%; border-bottom: 1px solid #eee; }
  .nav-cats li:not(:last-child)::after { content: none; }
  .nav-cats a { display: block; padding: 12px 4px; font-size: 20px; }

  .hero-label { font-size: 46px; right: 10px; bottom: 8px; }

  .nl-form { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 16px; gap: 16px; }
  .nl-title h3 { font-size: 28px; }
  .nl-cats { font-size: 18px; max-width: 320px; margin: 0 auto; }
  .nl-signup { align-items: center; }
  .nl-gdpr { max-width: 320px; }
  .nl-signup input[type=email] { width: 280px; max-width: 100%; }
  .nl-msg { width: 280px; text-align: center; }
}

/* Telefon (≤560px) */
@media (max-width: 560px) {
  .brand { font-size: 36px; }
  .seasonal-box { width: 100%; }
  .seasonal-text { font-size: 20px; }
  .hero-label { font-size: 36px; }
  .cat-label { font-size: 24px; }
}

/* Foarte mic (≤400px): grid 1 coloană */
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Pagini statice (confidențialitate etc.) */
.static-page { max-width: 760px; padding: 18px 0 30px; }
.static-page h1 { font-size: 30px; color: var(--magenta); margin-bottom: 8px; }
.static-page h2 { font-size: 18px; margin-top: 22px; }
.static-page p { line-height: 1.6; color: #333; }
.static-note { color: #999; font-size: 13px; }

/* ---------- SEO / accesibilitate ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
h1.cat-label { margin: 0; }
/* imagini ca <img> (alt + lazy) în loc de background */
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pagina de confirmare abonare (casetă mov ca newsletter-ul) */
.confirm-wrap { padding: 26px 0; }
.confirm-box { background: var(--tag1); color: #fff; padding: 40px 24px; text-align: center; }
.confirm-title { font-weight: 300; font-size: 32px; line-height: 1.2; }
.confirm-text { font-weight: 300; font-size: 18px; line-height: 1.45; margin: 12px auto 0; max-width: 620px; }
.confirm-note { margin-top: 20px; color: #fff; font-weight: 300; font-size: 14px; opacity: .85; }
.static-page ul { line-height: 1.6; color: #333; padding-left: 22px; margin: 8px 0; }
.static-page li { margin: 5px 0; }
.static-page a { color: var(--steel); text-decoration: underline; }

/* Bannere homepage (bandă lățime întreagă, sub cele 3 poze) */
.home-banners { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.home-banner { display: block; width: 100%; }
.home-banner img { width: 100%; height: auto; display: block; }
