/* Category archive — lifted from the category sketch. Shared tokens, nav and
   footer already ship in main.css, so only page-specific rules live here. */


/* ── CATEGORY HERO ── */
.cat-hero {
  background: radial-gradient(ellipse at center, #3a3a3e 0%, #2a2a2e 40%, #1a1a1e 100%);
  padding: 7rem 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}


.cat-hero .plus-extra {
  position: absolute;
  font-weight: 800;
  color: var(--accent);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}


.cat-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}


.breadcrumbs {
  font-size: 0.82rem;
  color: rgba(240, 237, 232, 0.45);
  margin-bottom: 1.5rem;
}


.breadcrumbs a {
  color: rgba(240, 237, 232, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}


.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs span { opacity: 0.5; margin: 0 0.4rem; }


.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #F0EDE8;
  margin-bottom: 0.75rem;
}


.cat-hero-desc {
  font-size: 1rem;
  color: rgba(240, 237, 232, 0.6);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 1rem;
}


.cat-count {
  display: inline-block;
  font-size: 0.82rem;
  color: rgba(240, 237, 232, 0.5);
  background: rgba(255,255,255,0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}


/* ── FILTERS BAR ── */
.filters-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 3rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: 68px;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}


.filter-chip {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}


.filter-chip:hover { border-color: var(--accent); color: var(--accent); }


.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 500;
}


.filters-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 0.4rem;
}


.filter-sort {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-left: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236B6670' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
}


.filter-price {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-left: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236B6670' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
}


.filters-right {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  animation: fadeGrid 0.4s ease;
}


.cat-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}


.cat-grid.list-view .cat-card {
  flex-direction: row;
  height: auto;
}


.cat-grid.list-view .cat-card-img {
  aspect-ratio: auto;
  width: 140px;
  min-height: 120px;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
}


.cat-grid.list-view .cat-card-body {
  padding: 1rem 1.5rem;
  justify-content: center;
}


.cat-grid.list-view .cat-card-title { font-size: 1rem; }

.cat-grid.list-view .cat-card-sub { margin-bottom: 0.5rem; }


.cat-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}


.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: rgba(232, 97, 26, 0.2);
}


.cat-grid.list-view .cat-card:hover { transform: translateY(-2px); }


.cat-card-img {
  aspect-ratio: 1;
  background: #f8f8f6;
  overflow: hidden;
  position: relative;
}


.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}


.cat-card:hover .cat-card-img img { transform: scale(1.05); }


.cat-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}


.cat-card-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}


.cat-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}


.cat-card-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: auto;
}


.cat-card-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
}


.cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}


.cat-card-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}


.cat-card-btn::after { content: '←'; transition: transform 0.2s; }

.cat-card:hover .cat-card-btn::after { transform: translateX(-4px); }


.cat-card-sku {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.5;
  font-family: monospace;
}
@media (max-width: 768px) {


  .cat-hero { padding: 5.5rem 1.5rem 2.5rem; }

  .filters-bar { padding: 1rem 1.5rem; top: 56px; }


  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .cat-grid.list-view .cat-card-img { width: 100px; min-height: 90px; }


  .cat-card-body { padding: 0.7rem 0.85rem; }

  .cat-card-title { font-size: 0.82rem; }
}
@media (max-width: 480px) {

  .cat-grid:not(.list-view) { grid-template-columns: 1fr 1fr; gap: 0.6rem; }

  .cat-card-footer { flex-direction: column; align-items: flex-start; gap: 0.3rem; }

  .filters-right { width: 100%; justify-content: flex-end; }
}

/* ── PRODUCTS AREA ───────────────────────────────────────────────────────
   The hero and the filters bar were each given a centred 1200px container,
   but the area holding the grid never got one, so the products ran the full
   width of the window and — in RTL, with a part-full row — hugged the right
   edge. Same container, same gutter, so the three line up. */
.products-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem 4rem;
}

@media (max-width: 768px) {
  .products-area { padding: 1.5rem 1.25rem 3rem; }
}


/* ── Category copy and questions (field cat_bottom / cat_faq) ───────────────── */
.cat-bottom { padding: 3rem 1.5rem 0; }
.cat-bottom-inner { max-width: 820px; margin: 0 auto; color: var(--text-mid); line-height: 1.8; font-size: 1rem; }
.cat-bottom-inner h2, .cat-bottom-inner h3 { font-family: var(--font-display); color: var(--text); margin: 1.6em 0 0.5em; }
.cat-bottom-inner p { margin: 0 0 1em; }
.cat-bottom-inner a { color: var(--accent); }
.cat-bottom-inner img { max-width: 100%; height: auto; border-radius: 12px; }

.page-faq {
  max-width: 820px;
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
}
.page-faq .section-title { margin-bottom: 1.5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(232, 97, 26, 0.35); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-item summary::before {
  content: "+";
  flex: none;
  width: 1.5rem;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 1.3rem 1.2rem 1.3rem;
  margin-inline-start: 2.3rem;
}
.faq-answer p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.75;
  font-size: 0.97rem;
}
.faq-answer { margin-inline-start: 0; }
.page-faq:last-child { margin-bottom: 4rem; }
