/*
 * WooCommerce — Shared Styles
 * Theme: Astra (Custom) | Version: 3.0 (2026-07-09)
 *
 * Loaded on ALL WooCommerce pages via mytheme_enqueue_woocommerce_assets()
 * (which is scoped to is_product() only — see functions.php)
 *
 * DO NOT put single-product layout grid rules here.
 * Those live in assets/css/product.css.
 */

/* =========================================================
   BOX-SIZING RESET
   ========================================================= */
.woocommerce *,
.woocommerce *::before,
.woocommerce *::after,
.single-product *,
.single-product *::before,
.single-product *::after {
  box-sizing: border-box;
}

/* =========================================================
   WOOCOMMERCE NOTICES (flash messages)
   ========================================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-family: 'Poppins-Regular', sans-serif;
  font-size: 14px;
  list-style: none;
}

.woocommerce-message {
  background: #f0faf4;
  border-left: 4px solid #27ae60;
  color: #1a7a44;
}

.woocommerce-info {
  background: #f0f6ff;
  border-left: 4px solid #2980b9;
  color: #1a5276;
}

.woocommerce-error {
  background: #fff5f5;
  border-left: 4px solid #e74c3c;
  color: #922b21;
  flex-direction: column;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.woocommerce-message a.button:hover {
  background: #1a7a44;
  color: #fff;
  border-color: #1a7a44;
}

/* =========================================================
   STAR RATING (shared across product pages)
   ========================================================= */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1em;
  line-height: 1em;
  font-size: 1em;
  width: 5.4em;
  font-family: star;
  font-weight: 900;
}

.star-rating::before {
  content: '\53\53\53\53\53';
  color: #ddd;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.star-rating span::before {
  content: '\53\53\53\53\53';
  top: 0;
  position: absolute;
  left: 0;
  color: #f1a940;
}
