/* Compete High - WooCommerce product pages (loaded only on WooCommerce pages) */
#ch-woo {
  background: #fff;
}

#ch-woo .woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

#ch-woo .woocommerce-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

/* Single product layout */
#ch-woo div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  position: relative;
}

#ch-woo div.product .woocommerce-product-gallery,
#ch-woo div.product .summary {
  float: none;
  width: calc(50% - 1.25rem);
  margin: 0;
}

#ch-woo div.product .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(11, 22, 38, 0.12);
}

#ch-woo div.product .woocommerce-tabs,
#ch-woo div.product .related,
#ch-woo div.product .upsells {
  width: 100%;
  clear: both;
}

#ch-woo .product_title {
  font-weight: 700;
  font-size: 2rem;
  color: #0b1626;
  margin-bottom: 1rem;
}

#ch-woo .summary .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--theme-color-2, #e0313f);
  margin-bottom: 1rem;
}

#ch-woo .summary .price del {
  color: #9a9a9a;
  font-size: 1.1rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

#ch-woo .summary .price ins {
  text-decoration: none;
}

#ch-woo .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--theme-color-2, #e0313f);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}

#ch-woo .woocommerce-product-details__short-description {
  color: #3f4654;
  margin-bottom: 1.5rem;
}

#ch-woo form.cart {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#ch-woo form.cart .quantity .qty {
  width: 70px;
  padding: 0.6rem;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  text-align: center;
}

#ch-woo .single_add_to_cart_button,
#ch-woo .button {
  background: var(--theme-color-2, #e0313f);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

#ch-woo .single_add_to_cart_button:hover,
#ch-woo .button:hover {
  opacity: 0.88;
  color: #fff;
}

#ch-woo .product_meta {
  font-size: 0.85rem;
  color: #6b7280;
}

#ch-woo .product_meta > span {
  display: block;
}

/* Tabs */
#ch-woo .woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  border-bottom: 1px solid #e5e7eb;
}

#ch-woo .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #3f4654;
  text-decoration: none;
  font-weight: 600;
}

#ch-woo .woocommerce-tabs ul.tabs li.active a {
  color: var(--theme-color-2, #e0313f);
  border-bottom: 2px solid var(--theme-color-2, #e0313f);
}

#ch-woo .woocommerce-tabs .panel {
  padding: 1.5rem 0;
  color: #3f4654;
}

/* Related products */
#ch-woo ul.products {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

#ch-woo ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
  text-align: center;
}

#ch-woo ul.products li.product img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

#ch-woo .woocommerce-message,
#ch-woo .woocommerce-error,
#ch-woo .woocommerce-info {
  width: 100%;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #ffecf3;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 767.98px) {
  #ch-woo div.product {
    gap: 1.5rem;
  }

  #ch-woo div.product .woocommerce-product-gallery,
  #ch-woo div.product .summary {
    width: 100%;
  }

  #ch-woo .product_title {
    font-size: 1.5rem;
  }
}
