/**
 * Olanzu — Collections Page
 * Used on: /collections/ (WC shop archive)
 */

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.olz-coll-hero {
  background: var(--olz-gray-50, #F9FAFB);
  border-bottom: 1px solid var(--olz-gray-100, #F3F4F6);
  overflow: hidden;
}

.olz-coll-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 50px;
  padding-top: 48px;
  padding-bottom: 50px;
}

@media (min-width: 1024px) {
  .olz-coll-hero__inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/* ── Heading & desc ─────────────────────────────────────────── */
.olz-coll-hero__title {
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 800;
  color: var(--olz-black, #111827);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.olz-coll-hero__desc {
  font-size: 14px;
  color: var(--olz-gray-500, #6B7280);
  line-height: 1.7;
  margin: 0 0 28px;
}

/* ── Buttons row ────────────────────────────────────────────── */
.olz-coll-hero__btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 28px;
}

.olz-coll-hero__btns .olz-btn-red,
.olz-coll-hero__btns .olz-btn-outline {
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
  flex: 1;
}

@media (min-width: 640px) {
  .olz-coll-hero__btns .olz-btn-red,
  .olz-coll-hero__btns .olz-btn-outline {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    flex: 0 0 auto;
  }
}

/* ── Badges row ─────────────────────────────────────────────── */
.olz-coll-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--olz-gray-200, #E5E7EB);
}

.olz-coll-hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--olz-gray-700, #374151);
}

.olz-coll-hero__badge svg {
  color: var(--olz-gray-400, #9CA3AF);
  flex-shrink: 0;
}

/* ── Right col: stacked sign cards ─────────────────────────── */
.olz-coll-hero__cards {
  display: none;
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .olz-coll-hero__cards {
    display: block;
  }
}

.olz-coll-hero__card {
  position: absolute;
  width: 260px;
  height: 260px;
  background: #fff;
  border: 1px solid var(--olz-gray-200, #E5E7EB);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.olz-coll-hero__card--front {
  top: 0;
  right: 0;
  transform: rotate(6deg);
  z-index: 2;
}

.olz-coll-hero__card--back {
  bottom: 0;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

.olz-coll-hero__cards:hover .olz-coll-hero__card--front { transform: rotate(12deg); }
.olz-coll-hero__cards:hover .olz-coll-hero__card--back  { transform: rotate(-12deg); }

/* Stop sign */
.olz-coll-hero__sign--stop {
  width: 130px;
  height: 130px;
  background: var(--olz-red, #DC2626);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(30% 0%,70% 0%,100% 30%,100% 70%,70% 100%,30% 100%,0% 70%,0% 30%);
  border: 5px solid #fff;
  outline: 2px solid var(--olz-red, #DC2626);
}

/* No parking sign */
.olz-coll-hero__sign--nopark {
  width: 90px;
  height: 130px;
  background: #fff;
  border: 3px solid #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.olz-coll-hero__sign--nopark span:first-child {
  font-size: 30px;
  font-weight: 800;
  color: var(--olz-red, #DC2626);
  line-height: 1;
}

.olz-coll-hero__sign--nopark span:last-child {
  font-size: 10px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
}


/* ══════════════════════════════════════════════════════════════
   CATEGORY CARDS SECTION
   ══════════════════════════════════════════════════════════════ */
.olz-coll-cats {
  padding: 64px 0 80px;
}

.olz-coll-cats__inner {
}

/* ── Section header ─────────────────────────────────────────── */
.olz-coll-cats__header {
  margin-bottom: 40px;
}

.olz-coll-cats__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olz-red, #DC2626);
  margin: 0 0 12px;
}

.olz-coll-cats__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--olz-black, #111827);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── Grid ───────────────────────────────────────────────────── */
.olz-coll-cats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .olz-coll-cats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .olz-coll-cats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* ── Category card ──────────────────────────────────────────── */
.olz-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--olz-gray-200, #E5E7EB);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.olz-cat-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-color: var(--olz-gray-300, #D1D5DB);
}

.olz-cat-card__img-wrap {
  aspect-ratio: 4 / 3;
  background: var(--olz-gray-50, #F9FAFB);
  border-bottom: 1px solid var(--olz-gray-100, #F3F4F6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.olz-cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.olz-cat-card:hover .olz-cat-card__img {
  transform: scale(1.08);
}

.olz-cat-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
}

.olz-cat-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--olz-black, #111827);
  transition: color 0.15s ease;
}

.olz-cat-card:hover .olz-cat-card__name {
  color: var(--olz-red, #DC2626);
}

.olz-cat-card__arrow {
  width: 16px;
  height: 16px;
  color: var(--olz-gray-400, #9CA3AF);
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.olz-cat-card:hover .olz-cat-card__arrow {
  color: var(--olz-red, #DC2626);
  transform: translateX(3px);
}

@media (min-width: 1024px) {
  .olz-cat-card__name { font-size: 15px; }
}


/* ══════════════════════════════════════════════════════════════
   TRUST STRIP
   ══════════════════════════════════════════════════════════════ */
.olz-coll-trust {
  background: var(--olz-gray-50, #F9FAFB);
  border-top: 1px solid var(--olz-gray-200, #E5E7EB);
  padding: 32px 0;
}

.olz-coll-trust__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .olz-coll-trust__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.olz-coll-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.olz-coll-trust__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olz-gray-500, #6B7280);
}

.olz-coll-trust__icon svg {
  width: 32px;
  height: 32px;
}

.olz-coll-trust__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olz-black, #111827);
  margin: 0;
}

.olz-coll-trust__desc {
  font-size: 12px;
  color: var(--olz-gray-500, #6B7280);
  margin: 0;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   CATEGORY PAGE LAYOUT
   ══════════════════════════════════════════════════════════════ */
.olz-cat-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 32px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .olz-cat-layout {
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.olz-cat-sidebar {
  position: sticky;
  top: 100px;
}

.olz-cat-sidebar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olz-gray-400);
  margin: 0 0 12px;
}

.olz-cat-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.olz-cat-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--olz-gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--olz-gray-100);
  transition: color 0.15s;
}

.olz-cat-sidebar__link:hover,
.olz-cat-sidebar__link.is-active {
  color: var(--olz-red);
  font-weight: 600;
}

.olz-cat-sidebar__count {
  font-size: 12px;
  color: var(--olz-gray-400);
  font-weight: 400;
}

/* ── Filter toggle button ────────────────────────────────────── */
/* Hidden on desktop — shown only in mobile topbar */
.olz-filter-toggle {
  display: none;
}

/* Desktop: mobile panel hidden — sidebar shows instead */
@media (min-width: 1024px) {
  .olz-cat-sidebar__panel {
    display: none;
  }
}

/* Mobile: desktop sidebar hidden */
@media (max-width: 1023px) {
  .olz-cat-sidebar {
    display: none;
  }
}

@media (max-width: 1023px) {
  /* Hide entire sidebar block on mobile — panel opens via topbar button */
  .olz-cat-sidebar {
    position: static;
    /* sidebar grid row collapses when panel is closed */
  }

  /* Filter button — same style as sort select */
  .olz-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--olz-gray-200);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--olz-black);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
  }

  /* Chevron icon — rotates when open */
  .olz-filter-toggle svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .olz-filter-toggle.is-active svg {
    transform: rotate(180deg);
  }

  /* Active state: red border only, no fill */
  .olz-filter-toggle.is-active {
    border-color: var(--olz-red);
    color: var(--olz-red);
  }

  /* Panel: collapsed by default */
  .olz-cat-sidebar__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .olz-cat-sidebar__panel.is-open {
    max-height: 2000px; /* large enough for any real category list, still animates */
  }

  /* List vertical layout in panel */
  .olz-cat-sidebar__label {
    margin-top: 12px;
  }
  .olz-cat-sidebar__list {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
  }
  .olz-cat-sidebar__link {
    border-bottom: 1px solid var(--olz-gray-100);
    border-radius: 0;
    padding: 10px 0;
    white-space: normal;
  }
}

/* ── Top bar ─────────────────────────────────────────────────── */
.olz-cat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--olz-gray-100);
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.olz-cat-topbar__count {
  font-size: 13px;
  color: var(--olz-gray-500);
}

.olz-cat-topbar__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1023px) {
  .olz-cat-topbar__count { display: none; }
  /* Controls full width, filter left + sort right */
  .olz-cat-topbar__controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── Grid columns toggle ─────────────────────────────────────── */
.olz-grid-toggle {
  display: none;
  gap: 4px;
}

@media (min-width: 640px) {
  .olz-grid-toggle { display: flex; }
}

.olz-grid-toggle__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--olz-gray-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--olz-gray-400);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  padding: 0;
  line-height: 1;
}

.olz-grid-toggle__btn svg {
  display: block;
  fill: var(--olz-gray-400, #9CA3AF);
  transition: fill 0.15s;
}

.olz-grid-toggle__btn:hover svg,
.olz-grid-toggle__btn.is-active svg {
  fill: var(--olz-red, #DC2626);
}

.olz-grid-toggle__btn:hover,
.olz-grid-toggle__btn.is-active {
  border-color: var(--olz-red);
  color: var(--olz-red);
}

/* ── Sort select ─────────────────────────────────────────────── */
.olz-cat-sort__select {
  border: 1.5px solid var(--olz-gray-200);
  border-radius: var(--radius);
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--olz-black);
  background: #fff;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.olz-cat-sort__select:focus {
  border-color: var(--olz-red);
}

/* ── Products grid — column override via data-cols ───────────── */
.olz-cat-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.olz-cat-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.olz-cat-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 639px) {
  .olz-cat-grid[data-cols="3"],
  .olz-cat-grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pagination ──────────────────────────────────────────────── */
.olz-cat-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.olz-cat-pagination .woocommerce-pagination ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.olz-cat-pagination .woocommerce-pagination ul li a,
.olz-cat-pagination .woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--olz-gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--olz-gray-700);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.olz-cat-pagination .woocommerce-pagination ul li a:hover {
  border-color: var(--olz-red);
  color: var(--olz-red);
}

.olz-cat-pagination .woocommerce-pagination ul li span.current {
  background: var(--olz-red);
  border-color: var(--olz-red);
  color: #fff;
}

/* ── No products ─────────────────────────────────────────────── */
.olz-cat-no-products {
  padding: 60px 0;
  text-align: center;
}
.olz-cat-no-products__icon { font-size: 32px; margin: 0 0 12px; }
.olz-cat-no-products__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--olz-black);
  margin: 0 0 6px;
}
.olz-cat-no-products__sub {
  font-size: 13px;
  color: var(--olz-gray-500);
  margin: 0 0 20px;
}
.olz-cat-no-products__cta {
  display: inline-flex;
  padding: 10px 24px;
  background: var(--olz-red);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.olz-cat-no-products__cta:hover { background: var(--olz-red-dark); color: #fff; }

/* ── Search results page ─────────────────────────────────────────────────── */
.olz-search-term {
  color: var(--olz-red);
  font-style: normal;
}
