/*
 * WooCommerce styling for Culatti (Alchem Child)
 * Colors: Primary #dd3333 | Header background #1d1f26
 * Created for consistent look with culatti.ch
 */

/* --- General layout --- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0 0 2.5rem 0;
  padding: 0 1rem;
  text-align: center;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.woocommerce ul.products li.product:hover {
  border-color: #dd3333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* --- Product images --- */
.woocommerce ul.products li.product a img {
  width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
  border-radius: 4px;
}

.alchem-loop-thumb-wrap {
  position: relative;
  overflow: hidden;
}

/* --- Product title --- */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d1f26;
  margin-bottom: 0.5rem;
}

/* --- Prices --- */
.woocommerce ul.products li.product .price {
  color: #dd3333;
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Buttons (primary actions) --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: #dd3333;
  color: #fff;
  padding: 0.6rem 1.3rem;
  border: none;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: #b72a2a;
  transform: translateY(-1px);
}

/* --- Secondary buttons (update cart, etc.) --- */
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background-color: #1d1f26;
  color: #fff;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
  background-color: #2a2d35;
}

/* --- Product details page --- */
.woocommerce div.product {
  margin-bottom: 4rem;
}

.woocommerce div.product .product_title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1d1f26;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #dd3333;
  margin-bottom: 1.2rem;
}

/* --- Quantity & Add to Cart --- */
.woocommerce .quantity .qty {
  width: 70px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.3rem 0.5rem;
  margin-right: 0.5rem;
}

.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* --- Notices (cart messages, errors) --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 3px solid #dd3333;
  background: #f9f9f9;
  padding: 1rem 1.5rem;
  border-radius: 3px;
  color: #1d1f26;
}

/* --- Breadcrumb --- */
.woocommerce-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #777;
}

.woocommerce-breadcrumb a {
  color: #1d1f26;
}

.woocommerce-breadcrumb a:hover {
  color: #dd3333;
}

/* --- Cart & Checkout tables --- */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 2rem;
  border: 1px solid #e6e6e6;
}

.woocommerce-cart table.shop_table th,
.woocommerce-checkout table.shop_table th {
  background: #fafafa;
  font-weight: 600;
  color: #1d1f26;
}

.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table td {
  border-bottom: 1px solid #eee;
  padding: 0.75rem;
}

/* --- Cart totals box --- */
.woocommerce-cart .cart_totals {
  border: 1px solid #e5e5e5;
  padding: 1.5rem;
  border-radius: 3px;
  background: #fff;
}

.woocommerce-cart .cart_totals h2 {
  color: #1d1f26;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- Checkout form styling --- */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
}

.woocommerce-checkout label {
  color: #1d1f26;
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Responsive grid --- */
@media (max-width: 992px) {
  .woocommerce ul.products li.product {
    width: 48%;
    margin: 0 1% 2% 1%;
  }
}

@media (max-width: 600px) {
  .woocommerce ul.products li.product {
    width: 100%;
    margin: 0 0 2rem 0;
  }
}

/* --- Mini cart (if used in header) --- */
.woocommerce-mini-cart__buttons a.button.checkout {
  background-color: #dd3333;
  color: #fff;
}

.woocommerce-mini-cart__buttons a.button.checkout:hover {
  background-color: #b72a2a;
}