/* ==================================================
   ANSO Product Catalog Styles v1.2
   Customizable via plugin settings
   ================================================== */

:root {
  --anso-green: #4f8f35;
  --anso-green-dark: #3f7f2d;
  --anso-text: #6a6f78;
  --anso-heading: #202634;
  --anso-line: #e8edf1;
  --anso-soft: #f7faf5;
  --anso-card-ratio: 1 / 0.82;
  --anso-card-min-height: 385px;
  --anso-card-radius: 0px;
}

.anso-catalog-wrap,
.anso-single-product {
  font-family: inherit;
  color: var(--anso-text);
}

.anso-catalog-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 28px 56px;
}

.anso-catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--anso-line);
  padding-bottom: 18px;
}

.anso-catalog-eyebrow {
  display: block;
  color: var(--anso-green);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .7px;
  margin-bottom: 6px;
}

.anso-catalog-heading h1 {
  margin: 0;
  color: var(--anso-heading);
  font-size: 34px;
  line-height: 1.1;
}

.anso-catalog-heading p {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
}

.anso-catalog-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 34px;
}

.anso-catalog-no-sidebar .anso-catalog-layout {
  grid-template-columns: minmax(0, 1fr);
}

.anso-catalog-sidebar {
  border-right: 1px solid var(--anso-line);
  padding-right: 22px;
}

.anso-catalog-sidebar h3 {
  margin: 0 0 14px;
  color: var(--anso-heading);
  font-size: 15px;
  font-weight: 800;
}

.anso-cat-group {
  margin: 0;
}

.anso-cat-children {
  margin-left: 13px;
}

.anso-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--anso-text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  padding: 6px 0;
  transition: color .18s ease;
}

.anso-cat-link:hover,
.anso-cat-link.is-active {
  color: var(--anso-green);
}

.anso-cat-link::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1px solid #c9d2d9;
  border-radius: 50%;
  flex: 0 0 auto;
}

.anso-cat-link.is-active::before {
  border-color: var(--anso-green);
  background: radial-gradient(circle, var(--anso-green) 45%, transparent 50%);
}

.anso-cat-link span {
  flex: 1;
}

.anso-cat-link em {
  font-style: normal;
  color: #9aa3ad;
  font-size: 12px;
}

.anso-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.anso-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anso-result-count {
  font-size: 14px;
  color: var(--anso-text);
}

.anso-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.anso-search-form input[type="search"] {
  min-width: 240px;
  border: 1px solid var(--anso-line);
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff;
  color: var(--anso-heading);
}

.anso-search-form button {
  border: 1px solid var(--anso-green);
  background: var(--anso-green);
  color: #fff;
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}

.anso-search-form button:hover {
  background: var(--anso-green-dark);
}

.anso-sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.anso-sort-form select {
  border: 1px solid var(--anso-line);
  border-radius: 9px;
  padding: 8px 28px 8px 10px;
  background: #fff;
  color: var(--anso-heading);
}

.anso-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.anso-catalog-cols-2 .anso-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.anso-catalog-cols-3 .anso-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.anso-catalog-cols-4 .anso-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.anso-catalog-cols-5 .anso-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.anso-product-card {
  min-height: var(--anso-card-min-height);
  height: 100%;
  border: 1px solid var(--anso-line);
  border-radius: var(--anso-card-radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.anso-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,143,53,.45);
  box-shadow: 0 16px 34px rgba(20, 35, 50, .10);
}

.anso-product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--anso-card-ratio);
  background: #fff;
  border-bottom: 1px solid var(--anso-line);
  text-decoration: none;
  flex-shrink: 0;
}

.anso-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
  transition: transform .22s ease;
}

.anso-product-card:hover .anso-product-card__image img {
  transform: scale(1.025);
}

.anso-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, var(--anso-soft), #fff);
  color: rgba(79,143,53,.35);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
}

.anso-product-card__body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.anso-product-card__cat {
  color: var(--anso-green);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25px;
  margin-bottom: 6px;
}

.anso-product-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  min-height: 41px;
}

.anso-product-card h3 a {
  color: var(--anso-heading);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.anso-product-card h3 a:hover {
  color: var(--anso-green);
}

.anso-product-card__excerpt {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--anso-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.anso-product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.anso-product-card__price {
  color: #0072ce;
  font-size: 13px;
  font-weight: 800;
  min-height: 18px;
}

.anso-product-card__price--empty {
  visibility: hidden;
}

.anso-product-card__more {
  color: var(--anso-green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.anso-empty-state {
  border: 1px solid var(--anso-line);
  background: var(--anso-soft);
  padding: 32px;
  text-align: center;
  color: var(--anso-text);
  border-radius: 12px;
}

.anso-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.anso-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--anso-line);
  border-radius: 8px;
  color: var(--anso-heading);
  text-decoration: none;
}

.anso-pagination .current,
.anso-pagination a:hover {
  background: var(--anso-green);
  color: #fff;
  border-color: var(--anso-green);
}

.anso-product-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 70px;
}

.anso-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 24px;
  color: #9aa3ad;
}

.anso-breadcrumbs a {
  color: var(--anso-green);
  text-decoration: none;
}

.anso-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 48px;
}

.anso-product-main-image {
  border: 1px solid var(--anso-line);
  border-radius: 14px;
  background: #fff;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.anso-product-main-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.anso-product-placeholder--large {
  min-height: 440px;
}

.anso-product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.anso-product-thumbs a {
  border: 1px solid var(--anso-line);
  border-radius: 10px;
  display: block;
  background: #fff;
  overflow: hidden;
}

.anso-product-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.anso-product-category-pill {
  display: inline-flex;
  background: var(--anso-soft);
  color: var(--anso-green);
  border-left: 3px solid var(--anso-green);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.anso-product-summary h1 {
  margin: 0 0 12px;
  color: var(--anso-heading);
  font-size: 42px;
  line-height: 1.1;
}

.anso-product-code {
  color: #9aa3ad;
  font-size: 13px;
  margin-bottom: 8px;
}

.anso-product-price {
  color: #0072ce;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 18px;
}

.anso-product-excerpt {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.anso-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.anso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: all .18s ease;
}

.anso-btn--green {
  background: var(--anso-green);
  color: #fff;
  border: 1px solid var(--anso-green);
}

.anso-btn--green:hover {
  background: var(--anso-green-dark);
  color: #fff;
}

.anso-btn--outline {
  background: #fff;
  color: var(--anso-green);
  border: 1px solid var(--anso-green);
}

.anso-btn--outline:hover {
  background: var(--anso-soft);
  color: var(--anso-green);
}

.anso-product-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
}

.anso-product-description,
.anso-product-features {
  border-top: 3px solid var(--anso-green);
  background: #fff;
  box-shadow: 0 10px 28px rgba(20,35,50,.06);
  padding: 28px;
  border-radius: 0 0 14px 14px;
}

.anso-product-description h2,
.anso-product-features h2 {
  color: var(--anso-heading);
  margin-top: 0;
}

.anso-product-description p {
  line-height: 1.75;
}

.anso-product-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.anso-product-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.55;
}

.anso-product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--anso-green);
}

@media (max-width: 1350px) {
  .anso-catalog-cols-5 .anso-product-grid,
  .anso-catalog-cols-4 .anso-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .anso-product-grid,
  .anso-catalog-cols-4 .anso-product-grid,
  .anso-catalog-cols-5 .anso-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .anso-product-hero,
  .anso-product-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .anso-catalog-layout {
    grid-template-columns: 1fr;
  }
  .anso-catalog-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--anso-line);
    padding-right: 0;
    padding-bottom: 18px;
  }
  .anso-catalog-heading,
  .anso-catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .anso-search-form,
  .anso-sort-form {
    width: 100%;
  }
  .anso-search-form input[type="search"] {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 640px) {
  .anso-product-grid,
  .anso-catalog-cols-2 .anso-product-grid,
  .anso-catalog-cols-3 .anso-product-grid,
  .anso-catalog-cols-4 .anso-product-grid,
  .anso-catalog-cols-5 .anso-product-grid {
    grid-template-columns: 1fr;
  }
  .anso-catalog-wrap,
  .anso-product-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .anso-product-summary h1 {
    font-size: 32px;
  }
}

/* ==================================================
   ANSO Product Lightbox + clickable card action v1.6
   ================================================== */

.anso-product-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--anso-green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 3;
  cursor: pointer;
}

.anso-product-card__more:hover,
.anso-product-card__more:focus {
  color: var(--anso-green-dark);
  text-decoration: underline;
}

.anso-product-card__image.anso-lightbox-trigger,
.anso-product-main-image .anso-lightbox-trigger,
.anso-product-thumbs .anso-lightbox-trigger,
.anso-content-image-lightbox {
  cursor: zoom-in;
}

.anso-product-main-image .anso-lightbox-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.anso-product-main-image .anso-lightbox-trigger img {
  display: block;
}

html.anso-lightbox-open,
body.anso-lightbox-open {
  overflow: hidden !important;
}

.anso-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 14, 18, .88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.anso-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.anso-lightbox__dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1180px, 100%);
  height: min(86vh, 900px);
}

.anso-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 110px);
  max-height: 100%;
}

.anso-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(86vh - 60px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}

.anso-lightbox__caption {
  margin-top: 12px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.anso-lightbox__close,
.anso-lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.anso-lightbox__close:hover,
.anso-lightbox__nav:hover,
.anso-lightbox__close:focus,
.anso-lightbox__nav:focus {
  background: var(--anso-green);
  outline: none;
}

.anso-lightbox__close {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.anso-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 62px;
  border-radius: 8px;
  font-size: 38px;
  line-height: 1;
}

.anso-lightbox__prev { left: 0; }
.anso-lightbox__next { right: 0; }

.anso-lightbox__nav[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .anso-lightbox { padding: 14px; }
  .anso-lightbox__dialog { height: 92vh; }
  .anso-lightbox__figure { max-width: calc(100% - 56px); }
  .anso-lightbox__image { max-height: calc(92vh - 70px); }
  .anso-lightbox__nav { width: 38px; height: 54px; font-size: 30px; }
  .anso-lightbox__close { width: 40px; height: 40px; font-size: 27px; }
}
