/*
Theme Name: Garuda IT Astra Child
Theme URI: https://example.com/
Description: Astra child theme for Garuda IT Solutions. Site-wide hard-coded header/footer with an Elementor-friendly homepage shortcode.
Author: Garuda IT Solutions
Template: astra
Version: 1.0.0
Text Domain: garuda-it
*/

/* Parent theme styles are loaded by functions.php. */
/* ==========================================================================
   Category / Shop Page Styles
   Targets standard WooCommerce markup (ul.products, li.product, etc.)
   Adjust class names once you inspect live product cards on the site.
   ========================================================================== */

/* --- Page wrapper --- */
.woocommerce-products-header {
  margin-bottom: 24px;
}

.woocommerce-products-header__title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.term-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  max-width: 700px;
}

/* --- Toolbar (result count + sorting) --- */
.woocommerce-result-count {
  color: #666;
  font-size: 14px;
}

.woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

/* --- Product grid --- */
ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

@media (max-width: 768px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

/* --- Product card --- */
li.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

li.product:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

li.product a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* --- Product image --- */
li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8f8f8;
  padding: 16px;
}

/* --- Sale / stock badges --- */
li.product .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e63946;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

li.product .outofstock .button {
  opacity: 0.5;
  pointer-events: none;
}

/* --- Product info --- */
li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 12px 16px 4px;
  line-height: 1.4;
  min-height: 42px;
}

li.product .price {
  margin: 0 16px 12px;
  font-size: 15px;
}

li.product .price ins {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 700;
}

li.product .price del {
  color: #999;
  font-size: 13px;
  margin-right: 6px;
}

li.product .star-rating {
  margin: 0 16px 8px;
  font-size: 13px;
}

/* --- Add to cart button --- */
li.product .add_to_cart_button,
li.product .button {
  display: block;
  margin: 0 16px 16px;
  padding: 10px 14px;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}

li.product .add_to_cart_button:hover,
li.product .button:hover {
  background: #e63946;
  color: #fff;
}

/* --- Pagination --- */
.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.woocommerce-pagination .page-numbers.current {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* --- Empty state --- */
.woocommerce-info {
  padding: 20px;
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: #666;
  text-align: center;
}