/*
 * API China: everything the original design (mq.css) did not cover.
 * Colours and type follow mq.css: red #c11c18 / #db3a36, yellow #f8e71c, text #323232, muted #999.
 */
:root {
  --red: #c11c18;
  --red-light: #db3a36;
  --red-dark: #660f0d;
  --yellow: #f8e71c;
  --text: #323232;
  --muted: #787878;
  --line: #e5e5e5;
  --bg: #fafbfb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Header: logo is a link now; keep the original look. */
.top-bar { background: #fff; position: relative; }
.top-bar .brand a { display: block; line-height: 0; }
.site-nav-item.is-active { border-bottom-color: var(--red); color: var(--text); }
.cart-count { margin-left: 4px; color: var(--red); font-weight: 600; }

/* Buttons: the original .btn-outline-* use line-height:0, which breaks on wrapped text; use a normal line box. */
.btn-outline-red, .btn-outline-yellow { line-height: 1.2; padding: 0.75rem 1.25rem; }
.btn-solid,
.woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.wpcf7-submit {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: 0;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-solid:hover,
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover,
.woocommerce input.button:hover, .wpcf7-submit:hover {
  background: var(--red-dark); border-color: var(--red-dark); color: #fff;
}
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--red); color: #fff; }
.woocommerce .button.alt:hover, .woocommerce button.button.alt:hover { background: var(--red-dark); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled, .woocommerce button.button:disabled[disabled] {
  background: #ccc; border-color: #ccc; color: #fff; opacity: 1; padding: 0.85rem 1.5rem;
}

/* Inner page title band (same red as the home page hero). */
.page-header {
  background: var(--red);
  color: #fff;
  padding: 48px 20px;
}
.page-header h1 { font-size: 2rem; line-height: 1.2; font-weight: 600; margin: 0; }
.page-lead { margin: 8px 0 0; color: #f3d2d1; font-size: 1.1rem; }

.page-body { padding: 48px 20px 72px; }
.constrained { max-width: 62.5rem; width: auto; }
@media (min-width: 768px) { .constrained { width: auto; } }
.center { text-align: center; }
.small { font-size: 0.875rem; color: var(--muted); }

.entry-content { font-size: 1rem; }
.entry-content h2, .entry-content h3, .entry-content h5 { color: var(--text); line-height: 1.3; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Page with a side column (contact details). */
.has-aside .section-content { display: grid; gap: 40px; }
@media (min-width: 768px) { .has-aside .section-content { grid-template-columns: 220px 1fr; } }
.page-aside h2 { font-size: 1.1rem; margin-top: 0; color: var(--red); }
.page-aside p { margin: 0 0 16px; }

/* Product list */
.product-list { list-style: none; margin: 0; padding: 0; }
.product-list-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.product-list-item:first-child { padding-top: 0; }
.product-list-cover { flex: 0 0 100px; line-height: 0; }
.product-list-cover img { width: 100px; height: auto; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.product-list-body { flex: 1; min-width: 0; }
.product-list-body h2 { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.3; }
.product-list-body h2 a { color: var(--text); text-decoration: none; }
.product-list-body h2 a:hover { color: var(--red); }
.product-list-body p { margin: 0 0 12px; }
.product-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.price-from { font-weight: 600; }
@media (max-width: 479px) {
  .product-list-cover { flex-basis: 72px; }
  .product-list-cover img { width: 72px; }
}

/* Product page */
.product-detail { display: grid; gap: 40px; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 260px 1fr; align-items: start; } }
.purchase-box {
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 20px;
}
.purchase-box h2, .order-offline h2 { font-size: 1.1rem; margin: 0 0 12px; color: var(--red); }
.option-prices { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.95rem; }
.option-prices th, .option-prices td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.option-prices td { text-align: right; white-space: nowrap; }
.option-prices tr:nth-child(odd) { background: #f5f5f5; }
.purchase-box .variations { width: 100%; border: 0; margin-bottom: 8px; }
.purchase-box .variations th, .purchase-box .variations td { display: block; padding: 0; text-align: left; }
.purchase-box .variations label { font-weight: 600; font-size: 0.9rem; }
.purchase-box .variations select { width: 100%; margin: 4px 0 8px; }
.purchase-box .reset_variations { font-size: 0.85rem; }
.purchase-box .single_variation_wrap .price { display: none; }
.purchase-box .woocommerce-variation-add-to-cart, .purchase-box form.cart:not(.variations_form) { display: flex; gap: 8px; flex-wrap: wrap; }
.purchase-box .quantity .qty { width: 64px; }
.purchase-box .single_add_to_cart_button { flex: 1; }
.order-offline { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.product-cover {
  float: right; width: 200px; margin: 0 0 20px 24px; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
@media (max-width: 599px) { .product-cover { float: none; display: block; margin: 0 auto 20px; } }
.product-description { line-height: 1.7; }

/* Forms (contact, checkout, account) */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  border: 1px solid #ccc; background: #fff; padding: 10px 12px; font: inherit; color: var(--text); border-radius: 0; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.wpcf7-form p { margin: 0 0 16px; }
.wpcf7-form label { display: block; font-weight: 600; }
.wpcf7-form input:not([type=submit]):not([type=checkbox]), .wpcf7-form textarea { width: 100%; margin-top: 4px; }
.wpcf7-not-valid-tip { color: var(--red); font-size: 0.875rem; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px; }

/* WooCommerce notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 24px; padding: 14px 18px; background: #fff; border-left: 4px solid var(--red);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { float: right; padding: 0.4rem 0.9rem; font-size: 0.875rem; }

/* Cart and checkout (classic shortcodes) */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table img { width: 48px; }
.woocommerce table.shop_table .product-remove a { color: var(--red); font-size: 1.4rem; text-decoration: none; }
.woocommerce .actions .coupon { display: none; }
.woocommerce .actions { text-align: right; }
.cart-collaterals { margin-top: 32px; }
.cart_totals { max-width: 420px; margin-left: auto; }
.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { font-size: 1.2rem; color: var(--red); }
.wc-proceed-to-checkout .checkout-button { display: block; text-align: center; margin-top: 16px; }
@media (max-width: 767px) {
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr td { display: block; text-align: right; }
  .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title) ": "; float: left; font-weight: 600; }
  .woocommerce table.shop_table_responsive tr td.product-remove::before, .woocommerce table.shop_table_responsive tr td.product-thumbnail::before, .woocommerce table.shop_table_responsive tr td.actions::before { content: ""; }
}
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select { width: 100%; }
.woocommerce form .form-row .required { color: var(--red); text-decoration: none; }
.woocommerce-checkout .col2-set { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr 1fr; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48%; display: inline-block; vertical-align: top; }
  .woocommerce form .form-row-first { margin-right: 3%; }
}
#order_review { margin-top: 24px; }
#payment { background: #fff; border: 1px solid var(--line); padding: 20px; margin-top: 24px; }
#payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; }
#payment .payment_box { background: #f5f5f5; padding: 12px; margin: 8px 0; font-size: 0.9rem; }
#place_order { width: 100%; font-size: 1.1rem; }
.select2-container .select2-selection--single { height: 44px; border-radius: 0; border-color: #ccc; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }

/* Order received / account */
.woocommerce-order-overview { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Footer: links in the copyright line, and wrap the menu on small screens. */
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; }
.site-footer small a { color: #969696; }
.site-footer small a:hover { color: #fff; }
.site-footer .brand a { display: inline-block; line-height: 0; }
@media (max-width: 47.9375rem) {
  .site-footer { padding: 60px 20px; }
  .site-footer .brand { height: auto; }
}

/* Home page: keep long words inside the narrow red overlay on phones. */
.section-text-overlay h2 { overflow-wrap: anywhere; }
.grid-item-body p { overflow-wrap: break-word; }

/* Checkout: override WooCommerce's general sheet (purple payment box, blue notice border). */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top: 0; }
.woocommerce-checkout #payment { background: #fff; border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background: #f5f5f5; color: var(--text); border-radius: 0; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #f5f5f5; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--line); }
#ship-to-different-address, .woocommerce-additional-fields > h3 { display: block; font-size: 1.2rem; margin: 0 0 16px; }
#ship-to-different-address label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.woocommerce-additional-fields { margin-top: 8px; }
.woocommerce-shipping-fields + .woocommerce-additional-fields > h3 { margin-top: 24px; }

/* Match the old cart/checkout: no shipping rows, shipping address always shown (no checkbox). */
.woocommerce-shipping-totals, .woocommerce-shipping-calculator, .cart_totals .shipping { display: none; }
#ship-to-different-address label input, #ship-to-different-address .woocommerce-form__input-checkbox { display: none; }
#ship-to-different-address label { cursor: default; }
.checkout-note { font-size: 0.9rem; margin: 0 0 16px; }
.woocommerce .actions .clear-cart { background: #fff; color: var(--red); margin-left: 8px; }
.woocommerce .actions .clear-cart:hover { background: var(--red-dark); color: #fff; }

/* PayPal logo at checkout (WooCommerce no longer limits its size) */
.wc_payment_method.payment_method_paypal label img { display: inline-block; width: auto; max-width: 120px; max-height: 28px; margin-left: 10px; vertical-align: middle; }
