/* Zibarco Signature 1.2.2: editorial autumn category scenes.
   Real theme photos, text remains real HTML links, no decorative text baked into images.
   The gradient ensures readable black/green type irrespective of photographic luminance. */
:root {
  --zbsr-scene-1: url("scenes/produse-obiect.webp?v=1.3.1");
  --zbsr-scene-2: url("scenes/agricultura-obiect.webp?v=1.3.1");
  --zbsr-scene-3: url("scenes/artizanat-obiect.webp?v=1.3.1");
  --zbsr-scene-4: url("scenes/eco-obiect.webp?v=1.3.1");
  --zbsr-scene-5: url("scenes/turism-obiect.webp?v=1.3.1");
  --zbsr-scene-6: url("scenes/oportunitati-obiect.webp?v=1.3.1");
}
/* Photos decorate exactly six groups, not individual nested links or arbitrary site cards. */
.zbsr-mega-grid > .zbsr-mega-group,
.zb-home .zb-all-categories .zb-category-grid > .zb-category-scene,
.zb-home .zb-all-categories .zb-category-scene,
.zb-home .zb-all-categories .zb-category-grid > :nth-child(-n+6) {
  --zbsr-card-photo: var(--zbsr-scene-1);
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(203, 207, 185, .85);
  border-radius: 16px;
  padding: clamp(17px, 1.45vw, 25px);
  color: #193c27;
  background-color: #f7f4e9;
  background-image: linear-gradient(103deg,rgba(255,254,248,.96) 0%,rgba(255,252,243,.89) 45%,rgba(255,251,241,.60) 100%),var(--zbsr-card-photo);
  background-size: cover;
  background-position: 54% center;
  box-shadow: 0 8px 24px rgba(53,64,30,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.zbsr-mega-grid > .zbsr-mega-group:hover,
.zb-home .zb-all-categories .zb-category-scene:hover,
.zb-home .zb-all-categories .zb-category-grid > :nth-child(-n+6):hover {
  box-shadow: 0 15px 33px rgba(53,64,30,.15);
  transform: translateY(-2px);
}
/* First/second row follow original catalog order, on both megamenu and homepage. */
.zbsr-mega-grid > :nth-child(1),
.zb-home .zb-all-categories .zb-category-grid > :nth-child(1),
.zb-home .zb-all-categories .zb-category-scene[data-zbsr-scene="produse"] { --zbsr-card-photo: var(--zbsr-scene-1); }
.zbsr-mega-grid > :nth-child(2),
.zb-home .zb-all-categories .zb-category-grid > :nth-child(2),
.zb-home .zb-all-categories .zb-category-scene[data-zbsr-scene="agricultura"] { --zbsr-card-photo: var(--zbsr-scene-2); }
.zbsr-mega-grid > :nth-child(3),
.zb-home .zb-all-categories .zb-category-grid > :nth-child(3),
.zb-home .zb-all-categories .zb-category-scene[data-zbsr-scene="artizanat"] { --zbsr-card-photo: var(--zbsr-scene-3); }
.zbsr-mega-grid > :nth-child(4),
.zb-home .zb-all-categories .zb-category-grid > :nth-child(4),
.zb-home .zb-all-categories .zb-category-scene[data-zbsr-scene="eco"] { --zbsr-card-photo: var(--zbsr-scene-4); }
.zbsr-mega-grid > :nth-child(5),
.zb-home .zb-all-categories .zb-category-grid > :nth-child(5),
.zb-home .zb-all-categories .zb-category-scene[data-zbsr-scene="turism"] { --zbsr-card-photo: var(--zbsr-scene-5); }
.zbsr-mega-grid > :nth-child(6),
.zb-home .zb-all-categories .zb-category-grid > :nth-child(6),
.zb-home .zb-all-categories .zb-category-scene[data-zbsr-scene="oportunitati"] { --zbsr-card-photo: var(--zbsr-scene-6); }
/* Mega menu: generous individual photographic cards, compact enough for laptop height. */
.zbsr-mega-panel { background: #f9f8f3; }
.zbsr-mega-grid { gap: 15px 18px; align-items: stretch; }
.zbsr-mega-grid > .zbsr-mega-group { min-height: 220px; }
.zbsr-mega-group h2 { margin: 0 0 11px; }
.zbsr-mega-group h2 a,
.zbsr-mega-group h2 a:visited { color:#153f29; font-weight: 750; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.zbsr-mega-group h2 a:hover { color:#b64218; }
.zbsr-mega-group .zbsr-group-icon { background: rgba(255,255,255,.85); border:1px solid rgba(149,171,129,.57); }
.zbsr-mega-group ul { padding-left: 46px; }
.zbsr-mega-group li a,
.zbsr-mega-group li a:visited {
  color:#29483a;
  font-weight: 540;
  font-size: clamp(11px,.75vw,13px);
  line-height:1.33;
  border-radius:5px;
  width:fit-content;
  max-width:100%;
  padding:4px 5px;
  margin-left:-5px;
  text-shadow:0 1px 0 rgba(255,255,255,.8);
}
.zbsr-mega-group li a:hover { color:#a83c15; background:rgba(255,255,255,.85); text-decoration:none; }
/* Homepage expansion: the second six-group grid shares the same autumn imagery. */
.zb-home .zb-all-categories { background: #f9f8f3; }
.zb-home .zb-all-categories .zb-category-grid {
  display:grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
  align-items: stretch;
}
.zb-home .zb-all-categories .zb-category-grid > :nth-child(-n+6),
.zb-home .zb-all-categories .zb-category-scene { min-width:0; min-height:225px; }
.zb-home .zb-all-categories .zb-category-scene :is(h2,h3,h4,strong),
.zb-home .zb-all-categories .zb-category-grid > :nth-child(-n+6) :is(h2,h3,h4,strong) { color:#143e27; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.zb-home .zb-all-categories .zb-category-scene a,
.zb-home .zb-all-categories .zb-category-grid > :nth-child(-n+6) a { color:#2b4d37; font-weight:550; }
.zb-home .zb-all-categories .zb-category-scene a:hover,
.zb-home .zb-all-categories .zb-category-grid > :nth-child(-n+6) a:hover { color:#aa421c; text-decoration: underline; }
/* Keep lower grid as a tight, image-rich set of six cards on narrow screens. */
@media(max-width:1100px) {
  .zbsr-mega-grid { gap:13px; }
  .zbsr-mega-grid > .zbsr-mega-group { min-height:225px; }
  .zb-home .zb-all-categories .zb-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
}
@media(max-width:700px) {
  .zbsr-mega-grid {grid-template-columns:1fr;gap:11px;}
  .zbsr-mega-grid > .zbsr-mega-group {min-height:0;padding:18px;background-position:center;}
  .zbsr-mega-group li a {font-size:13px;padding:6px 5px;}
  .zbsr-mega-group ul { padding-left:44px; }
  .zb-home .zb-all-categories .zb-category-grid {grid-template-columns:1fr;}
  .zb-home .zb-all-categories .zb-category-grid > :nth-child(-n+6),
  .zb-home .zb-all-categories .zb-category-scene { min-height:0; padding:20px; }
}
@media(prefers-reduced-motion:reduce) {
 .zbsr-mega-grid > .zbsr-mega-group,
 .zb-home .zb-all-categories .zb-category-scene,
 .zb-home .zb-all-categories .zb-category-grid > :nth-child(-n+6) { transition:none; transform:none!important; }
}

/* Object-focused photographs: local responsive variants, same six groups. */
@media(max-width:1599px) { :root {
  --zbsr-scene-1:url("scenes/produse-obiect-1440.webp?v=1.3.1");
  --zbsr-scene-2:url("scenes/agricultura-obiect-1440.webp?v=1.3.1");
  --zbsr-scene-3:url("scenes/artizanat-obiect-1440.webp?v=1.3.1");
  --zbsr-scene-4:url("scenes/eco-obiect-1440.webp?v=1.3.1");
  --zbsr-scene-5:url("scenes/turism-obiect-1440.webp?v=1.3.1");
  --zbsr-scene-6:url("scenes/oportunitati-obiect-1440.webp?v=1.3.1");
} }
@media(max-width:700px) { :root {
  --zbsr-scene-1:url("scenes/produse-obiect-768.webp?v=1.3.1");
  --zbsr-scene-2:url("scenes/agricultura-obiect-768.webp?v=1.3.1");
  --zbsr-scene-3:url("scenes/artizanat-obiect-768.webp?v=1.3.1");
  --zbsr-scene-4:url("scenes/eco-obiect-768.webp?v=1.3.1");
  --zbsr-scene-5:url("scenes/turism-obiect-768.webp?v=1.3.1");
  --zbsr-scene-6:url("scenes/oportunitati-obiect-768.webp?v=1.3.1");
} }
