/* SIDEBAR STYLES */
#gks-sidebar {
  padding: 1.25rem;
  background-color: transparent;
  border-right: none;
}

#gks-sidebar h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.gks-cat-list,
.gks-subcat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gks-cat-list > li {
  margin-bottom: 0.5rem;
}

.gks-cat-btn,
.gks-subcat-btn {
  background-color: #3A9842;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  margin-bottom: 0.25rem;
  display: inline-block;
  white-space: nowrap;
}

.gks-cat-btn:hover,
.gks-subcat-btn:hover {
  background-color: #327e38;
}

.gks-cat-btn.active,
.gks-subcat-btn.active {
  background-color: #2d7032;
}

/* PRODUCT AREA */
#gks-product-area {
  padding: 1.25rem;
}

.gks-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.gks-product-grid li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.gks-product-grid li.product:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gks-product-grid li.product .woocommerce-loop-product__link {
  text-align: center;
  margin-bottom: 10px;
  display: block;
}

.gks-product-grid li.product img {
  max-width: 100%;
  width: auto;
  height: 180px;
  object-fit: contain;
  margin: 0 auto;
}

.gks-product-grid li.product h2.woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: 40px;
  margin: 10px 0;
}

.gks-product-grid li.product .gks-add-to-quote {
  background: #3A9842;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gks-product-grid li.product .gks-add-to-quote:hover {
  background-color: #2d7032;
}

/* SINGLE PRODUCT VIEW */
.gks-single-product img {
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.gks-single-product h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.gks-single-product .gks-add-to-quote {
  background-color: #3A9842;
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gks-single-product .gks-add-to-quote:hover {
  background-color: #2d7032;
}

/* SUBCATEGORY GRID */
.gks-subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.gks-subcat-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.gks-subcat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gks-subcat-image {
  height: 150px;
  margin-bottom: 10px;
  overflow: hidden;
}

.gks-subcat-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* QUOTE FLOATING BUTTON */
#gks-quote-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #3A9842;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: transform 0.2s ease;
}

#gks-quote-button:hover {
  transform: scale(1.05);
}

/* BREADCRUMB */
.gks-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gks-breadcrumb .trail {
  display: inline;
}

.gks-breadcrumb .trail a {
  color: #3A9842;
  text-decoration: underline;
}

.gks-breadcrumb .quote-button {
  background: #3A9842;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.gks-breadcrumb .quote-button:hover {
  background: #2d7032;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-bounce {
  animation: bounce 0.6s ease-in-out;
}

#gks-floating-quote-cart {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

#gks-floating-quote-cart a {
  width: 64px;
  height: 64px;
  background-color: #3A9842;
  color: white;
  font-size: 24px;
  border-radius: 9999px;
  border: 4px solid #b9fbc0; /* light green border */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#gks-floating-quote-cart a:hover {
  background-color: #2d7032;
}

#gks-quote-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fff;
  color: #3A9842;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 9999px;
  border: 1px solid #ccc;
  min-width: 20px;
  text-align: center;
}
