/**
 * Awafi Herb | woocommerce.css
 * Styles for WooCommerce screens that use WooCommerce's own markup:
 * notices, mini cart, cart page, checkout, product form, pagination, wishlist drawer.
 * WooCommerce's default stylesheets are disabled in inc/woocommerce.php.
 */

/* ---- Buttons ---- */
.button, button.button, a.button, input.button, .single_add_to_cart_button, #place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 99px;
  background: var(--pri);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.button:hover, .single_add_to_cart_button:hover, #place_order:hover { background: var(--pri2); }
.button.disabled, .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }

/* ---- Notices ---- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border-left: 4px solid var(--lf);
  background: var(--soft);
}
.woocommerce-error { border-left-color: var(--co); }
.woocommerce-message .button { margin-left: 12px; min-height: 36px; padding: 6px 16px; }

/* ---- Forms (scoped to page content) ---- */
.entry input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .entry select, .entry textarea, .woocommerce-ordering select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 2px solid var(--ln);
  border-radius: 14px;
  background: var(--bg);
  color: var(--tx);
  font: inherit;
}
.entry textarea { padding: 12px 14px; min-height: 96px; }
.entry input:focus, .entry select:focus, .entry textarea:focus { outline: 0; border-color: var(--lf); }
.form-row { display: grid; gap: 4px; margin: 0 0 12px; }
.form-row label { font-size: 13px; font-weight: 600; }
.woocommerce-invalid input.input-text { border-color: var(--co); }

/* ---- Mini cart (cart drawer) ---- */
.widget_shopping_cart_content { display: grid; gap: 12px; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini_cart_item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 34px 10px 10px;
  border: 1px solid var(--ln);
  border-radius: 16px;
  background: var(--card);
}
.mini_cart_item img { grid-row: span 3; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.mini_cart_item a:not(.remove) { font-weight: 600; font-size: 14px; }
.mini_cart_item .remove { position: absolute; top: 8px; right: 12px; font-size: 20px; color: var(--mu); }
.mini_cart_item .quantity { color: var(--mu); font-size: 13px; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; font: 800 18px Sora, sans-serif; margin: 6px 0 0; }
.woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin: 0; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--soft); color: var(--tx); }
.woocommerce-mini-cart__empty-message { text-align: center; color: var(--mu); padding: 50px 10px; }

/* ---- Wishlist drawer rows ---- */
.wl-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--ln); border-radius: 16px; background: var(--card); }
.wl-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.wl-item b { display: block; font-size: 14px; line-height: 1.25; }
.wl-item .btn { height: 34px; margin-top: 6px; padding: 0 16px; font-size: 13px; }
.wl-item > button { border: 0; background: none; font-size: 18px; color: var(--mu); align-self: start; }

/* ---- Cart page ---- */
.entry .shop_table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--ln); border-radius: 18px; overflow: hidden; }
.entry .shop_table th, .entry .shop_table td { padding: 14px; border-bottom: 1px solid var(--ln); text-align: left; vertical-align: middle; }
.entry .shop_table img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.entry .shop_table .product-remove a { font-size: 22px; color: var(--mu); }
.entry .cart-collaterals { max-width: 440px; margin: 24px 0 0 auto; }
.entry .cart_totals h2 { font-size: 20px; margin-bottom: 12px; }
.entry .wc-proceed-to-checkout .button { width: 100%; margin-top: 12px; }
.entry .actions .coupon { display: flex; gap: 8px; }
.entry .actions .coupon input { max-width: 220px; }

/* ---- Checkout ---- */
form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 28px; align-items: start; }
form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
.col2-set { display: grid; gap: 16px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-row-wide { grid-column: 1 / -1; }
#order_review { padding: 20px; border: 1px solid var(--ln); border-radius: 22px; background: var(--card); }
.wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.wc_payment_methods li { padding: 12px 14px; border: 2px solid var(--ln); border-radius: 14px; background: var(--bg); }
.wc_payment_methods .payment_box { margin-top: 8px; font-size: 14px; color: var(--mu); }
#place_order { width: 100%; }

/* ---- Product page: quantity, variations, gallery ---- */
.pdb form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.pdb .stp { width: 130px; height: 50px; }
.pdb .stp input.qty { width: 40px; min-height: 0; padding: 0; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.pdb .stp input.qty::-webkit-outer-spin-button, .pdb .stp input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.single_add_to_cart_button { height: 50px; }
table.variations { width: 100%; margin-bottom: 12px; }
table.variations select { width: 100%; min-height: 46px; padding: 0 12px; border: 2px solid var(--ln); border-radius: 14px; background: var(--bg); color: var(--tx); }
.pdg img { width: 100%; height: 100%; object-fit: cover; }
.pdg__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pdg__thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid var(--ln); border-radius: 12px; overflow: hidden; background: none; }
.pdg__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp .woocommerce-Price-amount { font: 800 32px Sora, sans-serif; }
.pdp del { color: var(--mu); }
.pdp del .woocommerce-Price-amount { font-size: 20px; }
.pdp ins { text-decoration: none; }
.pdi .js-wish { margin: 6px 0 16px; }
.pdi .short { color: var(--mu); margin: 6px 0; }
.upsells > h2, .related > h2 { font: 700 24px Sora, sans-serif; margin: 34px 0 14px; }
.shop_attributes th { text-align: left; padding-right: 16px; color: var(--mu); }

/* ---- Pagination ---- */
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 26px 0 0; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 2px solid var(--ln); border-radius: 12px; background: var(--card); font-weight: 700;
}
.woocommerce-pagination .page-numbers .current { background: var(--pri); border-color: var(--pri); color: #fff; }
.woocommerce-result-count { margin: 0; }
.woocommerce-ordering { margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  form.checkout { grid-template-columns: 1fr; }
  form.checkout #customer_details, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; }
  .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
  .entry .shop_table { display: block; overflow-x: auto; }
}
