/* Minimal compatibility layer for Woo templates now styled mostly via Tailwind utility classes. */
.woocommerce .products,
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .woocommerce .products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .woocommerce .products,
  ul.products {
    grid-template-columns: 1fr;
  }
}

.gka-filter-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.gka-filter-form {
  display: grid;
  gap: 14px;
}

.gka-filter-form input[type="search"],
.gka-filter-form input[type="number"],
.gka-filter-form select {
  width: 100%;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 10px 12px;
  font-size: 14px;
}

.gka-filter-form fieldset {
  margin: 0;
  border: 1px solid #e5e5e5;
  padding: 10px;
}

.gka-filter-form legend {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 6px;
}

.gka-filter-form fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
}

.gka-filter-form > label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.gka-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gka-filter-form button[type="submit"] {
  border: 2px solid #000;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gka-filter-form a {
  border: 2px solid #000;
  color: #111;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.gka-shop-toolbar .woocommerce-result-count {
  margin: 0;
}

.gka-shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.gka-shop-toolbar .orderby {
  border: 1px solid #111;
  padding: 8px 10px;
}

.gka-product-grid .woocommerce-notices-wrapper:empty {
  display: none;
}

.gka-product-thumb {
  overflow: hidden;
}

.gka-product-thumb img,
.woocommerce ul.products li.product .gka-product-thumb img {
  max-width: 100%;
  width: auto;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gka-product-grid.is-loading {
  position: relative;
  opacity: .65;
}
.gka-product-grid.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  animation: gkaShimmer 1s linear infinite;
  pointer-events: none;
}
@keyframes gkaShimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.gka-active-filters .gka-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gka-active-filters .gka-chip {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.gka-active-filters .gka-chip-reset {
  background: #000;
  color: #fff;
}

.gka-filter-sidebar {
  transition: left .25s ease;
}
.gka-filter-sidebar.is-open {
  left: 0 !important;
}
.gka-no-scroll {
  overflow: hidden;
}

.gka-sticky-atc.is-visible {
  display: flex !important;
}

/* Small refinements for cart and checkout table readability */
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  vertical-align: middle;
}

/* Keep mobile grid stable if Woo outputs inline columns classes. */
@media (max-width: 640px) {
  .products[class*='columns-'] {
    grid-template-columns: 1fr !important;
  }
}
