/* Products catalog — ecommerce-style layout (browse only, no checkout) */

main.products-shop {
  min-height: 100vh;
}

.products-shop .hero .text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
}

/* ——— Catalog section ——— */
.products-catalog {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #f8f9fb 0%, #fff 12%);
}

.products-catalog .catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

@media only screen and (max-width: 900px) {
  .products-catalog .catalog-layout {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 600px) {
  .products-catalog {
    padding: 1rem 0 2rem;
  }
  .products-catalog .catalog-layout {
    max-width: 95vw !important;
    width: 95vw !important;
  }
}

/* Sidebar */
.catalog-sidebar {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 7px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(41, 41, 41, 0.06);
}

.catalog-sidebar-backdrop {
  display: none;
}

@media only screen and (max-width: 900px) {
  .catalog-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
    cursor: pointer;
  }

  .catalog-sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .catalog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 70vw;
    height: 100vh;
    max-height: none;
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  .catalog-sidebar.is-open {
    transform: translateX(0);
  }
}

.catalog-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e7e9ee;
}

.catalog-sidebar__head h2 {
  font-family: "Oswald", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #292929;
  margin: 0 !important;
}

.catalog-sidebar__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f0f2f7;
  color: #292929;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}

.catalog-sidebar__close:hover {
  background: #e2e5ec;
  color: #58669f;
}

@media only screen and (max-width: 900px) {
  .catalog-sidebar__close {
    display: inline-flex;
  }
}

.catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.catalog-filter-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  transition: background 0.15s ease;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #3a3a3a;
}

.catalog-filter-item:hover {
  background: #f0f2f7;
}

.catalog-filter-item input {
  margin-top: 0.2rem;
  accent-color: #58669f;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.catalog-filter-item span {
  flex: 1;
}

.catalog-clear {
  margin-top: 1rem;
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #58669f;
  padding: 0.5rem;
  border: 1px dashed #c5cad8;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.catalog-clear:hover {
  background: #f0f2f7;
  border-color: #58669f;
}

/* Toolbar */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.catalog-toolbar__row--actions {
  display: contents;
}

.catalog-toolbar__search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.catalog-toolbar__search .fa {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9099;
  pointer-events: none;
}

.catalog-toolbar__search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1px solid #d2d7df;
  border-radius: 999px;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.catalog-toolbar__search input:focus {
  outline: none;
  border-color: #58669f;
  box-shadow: 0 0 0 3px rgba(88, 102, 159, 0.15);
}

.catalog-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.catalog-count {
  font-size: 0.95rem;
  color: #5c5c5c;
}

.catalog-count strong {
  color: #292929;
  font-weight: 600;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-sort label {
  font-size: 0.9rem;
  color: #5c5c5c;
  white-space: nowrap;
}

.catalog-sort select {
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border: 1px solid #d2d7df;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Roboto", sans-serif;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2358669f' d='M6 8L1 3h10z'/%3E%3C/svg%3E")
    no-repeat right 0.65rem center;
  appearance: none;
  cursor: pointer;
  min-width: 160px;
}

.catalog-sort select:focus {
  outline: none;
  border-color: #58669f;
}

.catalog-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #58669f;
  background: #58669f;
  color: #fff !important;
  font-size: 0.95rem;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.catalog-filter-toggle:hover {
  background: #fff !important;
  color: #58669f !important;
}

@media only screen and (max-width: 900px) {
  .catalog-filter-toggle {
    display: inline-flex;
  }

  .catalog-toolbar {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .catalog-toolbar__row--actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
  }

  .catalog-filter-toggle {
    flex: 1;
    justify-content: center;
    min-width: 0;
    max-width: fit-content;
    font-size: 0.95rem !important;
  }

  .catalog-toolbar__meta {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    min-width: 0;
    gap: 0.75rem;
  }

  /* .catalog-count {
    display: none;
  } */

  .catalog-toolbar__search {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .catalog-sort {
    flex: 1;
    justify-content: flex-end;
  }

  .catalog-sort select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .catalog-main {
    width: 100%;
  }

  .catalog-toolbar,
  .catalog-toolbar__row--actions,
  .catalog-toolbar__search {
    width: 100%;
  }
}

/* Product grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media only screen and (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 520px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-card {
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.catalog-card:hover {
  box-shadow: 0 16px 40px rgba(41, 41, 41, 0.1);
  transform: translateY(-3px);
}

.catalog-card__media {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #e7e9ee;
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.catalog-card:hover .catalog-card__media img {
  transform: scale(1.05);
}

.catalog-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}

.catalog-card__category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #58669f;
  font-weight: 600;
  margin: 0 !important;
}

.catalog-card__title {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  font-family: "Oswald", sans-serif !important;
}

.catalog-card__title a {
  color: #292929;
  transition: color 0.2s;
}

.catalog-card__title a:hover {
  color: #58669f;
}

.catalog-card__excerpt {
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
  color: #5c5c5c !important;
  margin: 0 !important;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef0f4;
}

.catalog-card__details,
.catalog-card__quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
}

.catalog-card__quote {
  display: none !important;
}

.catalog-card__details {
  background: #58669f;
  color: #fff !important;
  border-color: #58669f;
  flex: 1;
  min-width: 120px;
}

.catalog-card__details:hover {
  background: #fff !important;
  color: #58669f !important;
}

.catalog-card__quote {
  background: #fff;
  color: #58669f !important;
  border-color: #d2d7df;
}

.catalog-card__quote:hover {
  border-color: #58669f;
  background: #f8f9fb;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #5c5c5c;
  font-size: 1.05rem;
  border: 2px dashed #d2d7df;
  border-radius: 12px;
  background: #fafbfc;
}

.catalog-intro {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 2rem;
  text-align: left;
}

.catalog-intro .highlight {
  color: #58669f;
}

.catalog-intro .heading {
  margin-bottom: 0.35rem;
}

.catalog-intro .sub-heading {
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
  margin-bottom: 0.5rem !important;
}

.catalog-intro p.lead {
  max-width: 100%;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.55;
  color: #5c5c5c;
}

/* CTA (reuse site tone) */
.products-shop .cta {
  padding: 3rem 0;
  background: linear-gradient(135deg, #58669f 0%, #3d4a73 100%);
  color: #fff;
  text-align: center;
}

.products-shop .cta .container {
  margin: 0 auto;
}

.products-shop .cta h3 {
  color: #fff !important;
  font-size: 1.75rem !important;
  margin-bottom: 0.75rem !important;
}

.products-shop .cta p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.products-shop .cta a button {
  background: #fff !important;
  color: #58669f !important;
  border-color: #fff !important;
}

.products-shop .cta a button:hover {
  background: transparent !important;
  color: #fff !important;
}
