/* Products Page Styles */
.products-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 2rem 0;
}

.products-sidebar {
  background: #041e42;
  color: #FFF;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #b3b3b3;
}
.filter-header a {
  color: #FFF;
  font-size: 0.85rem;
}

.filter-header h3 {
  color: #FFF;
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}

#clear-filters {
  background: none;
  border: none;
  color: #da291c;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0;
}

#clear-filters:hover {
  color: #a01e15;
}

.taxonomy-selector,
.regional-standard-selector {
  margin-bottom: 1.5rem;
}

.product-search-box {
  margin-bottom: 1.5rem;
}

.taxonomy-selector label,
.filter-group label,
.product-search-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #FFF;
}

.products-sidebar input::placeholder {
  color: #d9d9d9;
}

.products-sidebar input,
.products-sidebar select,
.filter-group select {
  width: 100%;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #6d6d6d;
  font-size: 0.95rem;
  color: #FFF;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
}

.products-sidebar select,
.filter-group select {
  background-image: url(../img/ico-dropdown-arrow-lightgray.svg);
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 12px;
}

.products-sidebar select::-ms-expand {
  display: none;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.filter-actions.filter-actions-top {
  margin-top: 0;
  border-top: none;
}
.filter-actions.filter-actions-bottom {
  margin-bottom: 0;
  border-bottom: none;
}

.products-sidebar.no-category-selected .filter-actions-top {
  border-bottom: none;
}
.products-sidebar.no-category-selected .filter-actions-bottom {
  display: none;
}

.btn-apply {
  flex: 1;
  padding: 0.5rem;
  background-color: #da291c;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  letter-spacing: -0.2px;
}
.btn-apply:hover {
  background-color: rgb(172.8048780488, 32.5, 22.1951219512);
}

.btn-clear {
  flex: 1;
  padding: 0.5rem;
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.2px;
}
.btn-clear:hover {
  background-color: #fff;
  color: #041e42;
}

.filter-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #041e42;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.35px;
  line-height: 1.2;
}

.filter-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #495057;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:hover {
  border-color: #041e42;
}

.filter-select:focus {
  outline: none;
  border-color: #041e42;
  box-shadow: 0 0 0 2px rgba(4, 30, 66, 0.1);
}

.no-category-message {
  color: #6c757d;
  font-style: italic;
  margin: 1rem 0;
}

.active-filters {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid #dee2e6;
}

.active-filters h4 {
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  color: #333;
}

#active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  background: #041e42;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  gap: 0.5rem;
}

.remove-filter {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  margin-left: 0.25rem;
}

.remove-filter:hover {
  color: #da291c;
}

/* Products Main Area */
.products-main {
  min-height: 500px;
  padding: 0 1rem;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dee2e6;
}

.products-header h1 {
  margin: 0;
  text-transform: uppercase;
  color: #041e42;
  font-size: 48px;
  line-height: 1.2;
}

.products-count {
  font-size: 1rem;
  color: #6c757d;
}

.products-loading {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.products-grid {
  display: block;
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}

.products-table thead {
  background: #041e42;
  color: #fff;
}

.products-table th {
  padding: 1rem 0.66rem;
  text-align: left;
  font-weight: 600;
}

.products-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
  text-align: center;
}

.product-row {
  transition: background-color 0.2s;
}

.product-row:hover {
  background-color: #f8f9fa;
}

.product-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.btn-view,
.btn-pdf {
  padding: 0.4rem 0.8rem;
  border: 1px solid #041e42;
  background: #fff;
  color: #041e42;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  width: 100%;
  transition: all 0.2s;
}

.btn-view:hover,
.btn-pdf:hover {
  background: #041e42;
  color: #fff;
}

.btn-pdf {
  background: transparent;
  color: #da291c;
  border-color: #da291c;
}

.btn-pdf:hover {
  color: #FFF;
  background: #da291c;
  border-color: rgb(150.2073170732, 28.25, 19.2926829268);
}

.product-detail-row {
  background: #f8f9fa;
}

.product-detail-content {
  padding: 1.5rem;
}

.product-detail-content h3 {
  margin-top: 0;
  color: #041e42;
}

.product-categories {
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: #e8f4fc;
  border-left: 3px solid #041e42;
  text-align: left;
  font-size: 0.9rem;
  color: #333;
}

.product-categories strong {
  color: #041e42;
}

.product-all-fields {
  margin-top: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.field-item {
  padding: 0.5rem;
  background: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
}

.field-item strong {
  color: #041e42;
  display: block;
  margin-bottom: 0.25rem;
}

.product-detail-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .product-detail-header {
    flex-direction: column;
  }
}

.product-detail-image {
  flex-shrink: 0;
  max-width: 300px;
}
@media (max-width: 768px) {
  .product-detail-image {
    max-width: 100%;
  }
}

.product-image-lightbox-trigger {
  position: relative;
  display: block;
  cursor: zoom-in;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
}
.product-image-lightbox-trigger:hover .zoom-icon, .product-image-lightbox-trigger:focus .zoom-icon {
  opacity: 1;
}
.product-image-lightbox-trigger:focus {
  outline: 2px solid #041e42;
  outline-offset: 2px;
}

.product-detail-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zoom-icon {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(4, 30, 66, 0.8);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-detail-info h3 {
  font-size: 3rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

ul.page-numbers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  justify-content: center;
  align-items: center;
}
ul.page-numbers li {
  margin: 0;
}
ul.page-numbers li a.page-numbers,
ul.page-numbers li span.page-numbers {
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: #041e42;
  border: 1px solid #041e42;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
}
ul.page-numbers li a.page-numbers:hover,
ul.page-numbers li span.page-numbers:hover {
  background: #041e42;
  color: #fff;
}
ul.page-numbers li span.page-numbers.current {
  background: #041e42;
  color: #fff;
  cursor: default;
}
ul.page-numbers li span.page-numbers.dots {
  cursor: default;
  border: none;
  padding: 0.5rem 0.25rem;
}
ul.page-numbers li span.page-numbers.dots:hover {
  background: transparent;
  color: #041e42;
}
ul.page-numbers li a.prev,
ul.page-numbers li a.next {
  font-weight: 500;
}

.product-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}
.product-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2;
  transition: transform 0.2s ease;
}
.lightbox-close:hover, .lightbox-close:focus {
  transform: scale(1.1);
}
.lightbox-close:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  max-width: 600px;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.no-products-message {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
  font-style: italic;
}

#pagination-container {
  margin-top: 3rem;
  padding-top: 2rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  color: #041e42;
}

.pagination-btn:hover:not(.active) {
  background: #f8f9fa;
  border-color: #041e42;
}

.pagination-btn.active {
  background: #041e42;
  color: #fff;
  border-color: #041e42;
  cursor: default;
}

.pagination-ellipsis {
  padding: 0.5rem;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .products-container {
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
  }
  .products-table {
    font-size: 0.85rem;
  }
  .products-table th,
  .products-table td {
    padding: 0.5rem;
  }
}
@media (max-width: 768px) {
  .products-container {
    grid-template-columns: 1fr;
  }
  .products-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .filter-groups {
    max-height: none;
  }
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .products-table {
    font-size: 0.8rem;
  }
  .product-thumbnail {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 480px) {
  .products-table th,
  .products-table td {
    padding: 0.4rem;
    font-size: 0.75rem;
  }
  .btn-view,
  .btn-pdf {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .products-table tr > td,
  .products-table tr > th {
    display: none;
  }
  .products-table tr > td:nth-child(2),
  .products-table tr > td:nth-child(3),
  .products-table tr > td:last-child,
  .products-table tr > th:nth-child(2),
  .products-table tr > th:nth-child(3),
  .products-table tr > th:last-child {
    display: table-cell;
  }
  .products-table tr > th {
    text-align: center;
  }
  .products-table .btn-pdf {
    margin-top: 10px;
  }
}

/*# sourceMappingURL=products.css.map */
