/* =========================================================
   DUEC Catalogue — extends Conceria Sibilla design system
   ========================================================= */

/* ---- Override vars to match Sibilla exactly ---- */
:root {
  --brand-green:  #00953b;
  --brand-black:  #111111;
  --text:         #1a1a1a;
  --muted:        #5f5f5f;
  --line:         #e8e8e8;
  --bg:           #f7f8f5;
  --white:        #ffffff;
  --shadow:       0 20px 60px rgba(0,0,0,.08);
  --radius:       22px;
  --max:          1160px;
  /* catalogue extras */
  --accent:       #00953b;
  --accent-light: rgba(0,149,59,.08);
  --border:       rgba(0,0,0,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfbf8 0%, #f3f5f0 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ---- HEADER (matches Sibilla) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(251,251,248,.82);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand-mark { width: 185px; }
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: .95rem;
  color: var(--muted);
}
.nav a { transition: color .2s ease; }
.nav a:hover, .nav a.active { color: var(--brand-black); }

/* Language switcher */
.lang-sw { display: flex; gap: 6px; }
.lang-sw a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  transition: all .2s;
}
.lang-sw a.active {
  color: var(--brand-green);
  background: var(--accent-light);
}
.lang-sw a:hover { color: var(--brand-black); }

/* ---- SEASON BAR ---- */
.season-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.season-bar::-webkit-scrollbar { display: none; }
.season-bar-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}
.season-tab {
  padding: 14px 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
}
.season-tab:hover { color: var(--brand-black); }
.season-tab.active {
  color: var(--brand-black);
  border-bottom-color: var(--brand-green);
}

/* ---- DIVISION TABS ---- */
.division-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.division-tabs-inner {
  display: flex;
}
.division-tab {
  padding: 14px 22px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.division-tab:hover { color: var(--brand-black); }
.division-tab.active {
  color: var(--brand-black);
  border-bottom-color: var(--brand-green);
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--muted);
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--brand-black); }
.breadcrumb-sep { opacity: .35; }
.breadcrumb-cur { color: var(--brand-black); font-weight: 600; }

/* ---- SECTION HEADER ---- */
.section-head { margin-top: 14px; margin-bottom: 28px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--brand-black);
  margin: 0 0 8px;
}
.section-head p { color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--brand-green);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- CATEGORY GRID ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.category-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.category-card:hover .category-card__img { transform: scale(1.04); }
.category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; pointer-events: none;
}
.category-card__count {
  color: rgba(255,255,255,.65); font-size: .7rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px;
}
.category-card__name {
  color: #fff; font-size: 1.5rem; font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em;
}
.category-card__arrow {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.category-card:hover .category-card__arrow { opacity: 1; }

/* ---- FILTER BAR ---- */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}
.filter-btn {
  padding: 13px 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.filter-btn:hover { color: var(--brand-black); }
.filter-btn.active {
  color: var(--brand-black);
  border-bottom-color: var(--brand-green);
}
.filter-btn-back {
  padding: 13px 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  border-right: 1px solid var(--line);
  margin-right: 4px;
  transition: color .2s;
}
.filter-btn-back:hover { color: var(--brand-black); }

/* ---- PRODUCTS HEADER ---- */
.products-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
}
.products-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -.03em;
  color: var(--brand-black);
  margin: 4px 0 0;
}
.products-count {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  padding-bottom: 70px;
}
.product-card { cursor: pointer; }
.product-card__img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; background: linear-gradient(135deg, #f3f5f0, #e8ebe3);
  color: var(--muted); font-size: .9rem;
}
.product-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--brand-green); color: #fff;
  font-size: .65rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.product-card__code {
  font-size: .72rem; color: var(--muted);
  letter-spacing: .03em; margin-bottom: 3px;
}
.product-card__name {
  font-size: 1rem; font-weight: 700;
  color: var(--brand-black); margin-bottom: 4px;
  letter-spacing: -.01em;
}
.product-card__desc {
  font-size: .84rem; color: var(--muted); line-height: 1.4;
}

/* ---- PRODUCT DETAIL ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 40px 0 80px;
}
.product-gallery { position: sticky; top: 98px; }
.product-gallery__main {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.product-gallery__main img { display: block; width: 100%; height: auto; transition: transform .18s ease; }
.product-gallery__main.zooming { cursor: crosshair; }
.product-gallery__thumbs { display: flex; gap: 8px; }
.product-gallery__thumb {
  width: 72px; height: 92px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .65;
  transition: all .2s;
}
.product-gallery__thumb.active,
.product-gallery__thumb:hover { opacity: 1; border-color: var(--brand-green); }

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(20, 22, 18, .92);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }

.product-info__season { color: var(--brand-green); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.product-info__name { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; color: var(--brand-black); margin: 0 0 6px; line-height: 1.05; }
.product-info__code { font-size: .8rem; color: var(--muted); margin-bottom: 28px; }
.product-divider { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

.product-desc {
  font-size: .96rem; line-height: 1.7; color: var(--text);
  white-space: pre-line;
}

.product-specs { margin-top: 24px; }
.specs-title {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}
.spec-item { border-top: 1px solid var(--line); padding: 8px 0; }
.spec-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec-value { font-size: .9rem; font-weight: 600; margin-top: 2px; color: var(--brand-black); }

.tech-info-box {
  margin-top: 22px;
  background: var(--accent-light);
  padding: 18px;
  border-radius: 14px;
  border-left: 3px solid var(--brand-green);
}
.tech-info-text {
  font-size: .82rem;
  white-space: pre-line;
  line-height: 1.65;
  color: var(--text);
}

.product-downloads { margin-top: 28px; }
.download-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all .2s;
  color: var(--text);
  font-size: .85rem;
}
.download-btn:hover {
  border-color: var(--brand-green);
  background: var(--accent-light);
  transform: translateX(2px);
}
.download-btn__icon { color: var(--brand-green); flex: 0 0 auto; }
.download-btn__pdf { margin-left: auto; font-size: .7rem; color: var(--muted); font-weight: 700; }

.product-contact {
  margin-top: 30px;
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #0e6c32 160%);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
}
.product-contact h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: #fff; }
.product-contact p { font-size: .85rem; color: rgba(255,255,255,.75); margin: 0 0 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; font-weight: 700; font-size: .85rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.btn-green { background: var(--brand-green); color: #fff; }
.btn-green:hover { background: #007a30; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.btn-outline { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }

/* Prev/Next nav */
.product-nav {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-nav-btn {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--muted); transition: color .2s;
  max-width: 40%;
}
.product-nav-btn:hover { color: var(--brand-black); }
.product-nav-btn .name { font-weight: 600; color: var(--brand-black); }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--muted);
}
.footer-brand-link img { width: 54px; height: auto; display: block; }
.footer-brand-link span { font-size: 0.92rem; line-height: 1.3; }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--muted);
}
.empty-state h3 { font-size: 1.8rem; font-weight: 700; color: var(--brand-black); margin-bottom: 8px; }

/* ---- COLORS ---- */
.product-colors { margin-top: 28px; }
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.color-item img {
  width: 100%;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s;
}
.color-item:hover img {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.color-item span {
  font-size: .65rem;
  color: var(--muted);
  line-height: 1.2;
  word-break: break-word;
  max-width: 100%;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .specs-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
