/* ============ Gohub theme — bổ sung thiết kế ============ */
body { font-family: manrope, "manrope Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }

/* WP editor / WC content */
.prose img { border-radius: 12px; }
.prose h2, .prose h3 { color: #0F1012; }

/* woo components spacing */
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info {
  border-top-color: #1446A5; background: #F8FBFF; padding: 14px 20px !important;
}
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: #1446A5; }

/* breadcrumb-ish */
.woocommerce-breadcrumb { display: none; }

/* buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button {
  background: #1446A5 !important; color: #fff !important; border-radius: 10px !important;
  font-weight: 600 !important; padding: 12px 22px !important; transition: background .15s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #143C8D !important; }
.woocommerce a.button.alt { background: #0F1012 !important; }
.woocommerce a.button.alt:hover { background: #000 !important; }

/* cart page */
.woocommerce table.shop_table { border: 1px solid #E5E7EB !important; border-radius: 14px; overflow: hidden; }
.woocommerce table.shop_table th { background: #FAFBFC; color: #5C616D; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.woocommerce table.shop_table td { border-top: 1px solid #F0F1F3; }
.woocommerce .cart_totals h2, .woocommerce .cart-collaterals h2 { font-size: 20px; font-weight: 800; color: #0F1012; }

/* checkout */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .select2-container .select2-selection--single {
  border: 1px solid #E5E7EB !important; border-radius: 10px !important; padding: 12px 14px !important; height: auto !important;
}
.woocommerce form .form-row input.input-text:focus { border-color: #21C3FF !important; outline: none; box-shadow: 0 0 0 3px rgba(33,195,255,.15); }
.woocommerce-checkout #payment { background: #F7F8F8; border-radius: 14px; }
.woocommerce-checkout #payment div.payment_box { background: #fff; }
.woocommerce-checkout #payment ul.payment_methods li { border-bottom: 1px solid #EDEFF1; padding: 14px 0; }
.woocommerce-checkout #payment ul.payment_methods li img { max-height: 36px; }

/* shop archive cards override */
.woocommerce ul.products li.product { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 16px; transition: box-shadow .15s; text-align: left; }
.woocommerce ul.products li.product:hover { box-shadow: 0 8px 24px rgba(15,16,18,.08); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; font-weight: 700; color: #0F1012; }
.woocommerce ul.products li.product .price { color: #0F1012; font-weight: 800; font-size: 20px; }

/* quantity */
.woocommerce .quantity .qty { border: 1px solid #E5E7EB !important; border-radius: 8px !important; }

/* account */
.woocommerce-MyAccount-navigation ul li a { color: #0F1012; font-weight: 600; padding: 10px 14px; border-radius: 10px; display: block; }
.woocommerce-MyAccount-navigation ul li.is-active a { background: #EAF7FF; color: #1446A5; }

/* notices */
.woocommerce-error { background: #FDEEF0; border-top-color: #E5484D; }

/* ============ MOBILE-FRIENDLY (touch targets, single column) ============ */
@media (max-width: 640px) {
  /* buttons big enough to tap */
  .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
  .woocommerce #respond input#submit {
    min-height: 46px;
    padding: 12px 18px !important;
    font-size: 15px !important;
  }
  /* single product: full-width add-to-cart button + quantity row */
  .woocommerce div.product form.cart { display: flex; flex-direction: column; gap: 12px; }
  .woocommerce div.product form.cart .button { width: 100%; margin-left: 0; min-height: 48px; }
  .woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
  .woocommerce .quantity .qty { min-height: 46px; width: 72px; font-size: 16px; }
  /* shop grid: 1 column on phones, 2 on small tablets */
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; display: grid; gap: 12px; }
  .woocommerce ul.products li.product { margin: 0 !important; width: 100% !important; padding: 12px; }
  .woocommerce ul.products li.product h2, .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
  /* pagination tappable */
  .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
    min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; padding: 0 10px;
  }
  /* checkout fields comfortable */
  .woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea {
    min-height: 46px; font-size: 16px !important;
  }
  .woocommerce #payment .place-order { padding: 16px 0; }
  /* cart table scrolls horizontally instead of breaking */
  .woocommerce table.shop_table { display: block; overflow-x: auto; white-space: nowrap; }
  /* meta row */
  .single-product div.product .product_meta { font-size: 13px; }
}
