/*
 * Way — compatibility hardening.
 * Keeps the design intact when WooCommerce defaults or leftover plugin CSS
 * (for example a previous theme's companion plugin) restyle headings and buttons.
 */

/* headings */
body h1, body h2, body h3, body h4, body h5, body h6, body .products-title { font-family: var(--way-head); text-transform: none; }
body .comment-reply-title, body .widget-title, body blockquote { font-family: var(--way-head); text-transform: none; font-weight: 600; }
body.way-theme { font-family: var(--way-body); font-weight: 400; color: var(--way-ink); }

/* WooCommerce buttons */
body.way-theme.way-theme a.button,
body.way-theme.way-theme button.button,
body.way-theme.way-theme input.button,
body.way-theme.way-theme .woocommerce-Button,
body.way-theme.way-theme #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--way-navy); color: #fff; border: 1.5px solid var(--way-navy); border-radius: var(--way-btn);
  padding: 14px 28px; font: 700 12px/1.2 var(--way-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--way-ease), border-radius .4s var(--way-ease), box-shadow .3s;
}
body.way-theme.way-theme a.button:hover,
body.way-theme.way-theme button.button:hover,
body.way-theme.way-theme input.button:hover,
body.way-theme.way-theme .woocommerce-Button:hover,
body.way-theme.way-theme #respond input#submit:hover {
  background: var(--way-gold-d); border-color: var(--way-gold-d); color: #fff; transform: translateY(-2px);
  border-radius: 22px 4px 22px 4px; box-shadow: 0 10px 22px rgba(23, 24, 49, .18);
}
body.way-theme.way-theme button.button.disabled, body.way-theme.way-theme button.button:disabled { opacity: .45; transform: none; box-shadow: none; }
body.way-theme.way-theme .single_add_to_cart_button.button { padding: 16px 30px; min-height: 50px; }
body.way-theme.way-theme .wc-proceed-to-checkout a.checkout-button { padding: 18px; font-size: 12px; }
body.way-theme.way-theme .woocommerce-message a.button, body.way-theme.way-theme .woocommerce-info a.button { padding: 10px 20px; font-size: 11px; }
body.way-theme.way-theme a.way-wl__btn.button { padding: 10px 18px; font-size: 11px; }
body.way-theme .way-prose a.way-wl__t, body.way-theme .way-prose a.way-wl__img { text-decoration: none; }
body.way-theme .way-prose:has(.way-wl-page) { max-width: 1000px; }

body.way-theme .woocommerce-tabs ul.tabs li, body.way-theme .woocommerce-tabs ul.tabs li.active { background: none; border: 0; border-radius: 0; box-shadow: none; }
body.way-theme .woocommerce-tabs ul.tabs li a { padding: 14px 24px; }
body.way-theme .woocommerce-checkout #payment, body.way-theme .woocommerce #payment { background: transparent; }
body.way-theme #payment div.payment_box { background: #fff; }

.way-page--wc .way-prose .woocommerce-MyAccount-navigation ul li a:not(.button):not(.way-btn) { text-decoration: none; font: 700 12px/1.2 var(--way-body); color: var(--way-navy); }
.way-page--wc .way-prose .woocommerce-MyAccount-navigation ul li.is-active a:not(.button):not(.way-btn) { color: var(--way-gold); }
.woocommerce-MyAccount-navigation-link--wishlist, .woocommerce-MyAccount-navigation-link--compare { display: none; }
body.way-theme.woocommerce-account .way-prose { max-width: 1100px; }
body.way-theme.woocommerce-account .way-prose > .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
body.way-theme.woocommerce-account .way-prose > .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) { grid-column: 1 / -1; }
body.way-theme.woocommerce-account .woocommerce-MyAccount-navigation, body.way-theme.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }
@media (max-width: 767px) { body.way-theme.woocommerce-account .way-prose > .woocommerce { grid-template-columns: 1fr; gap: 20px; } }
body.way-theme.way-theme .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; float: none; white-space: normal; margin: 40px 0 0; }
body.way-theme.way-theme .woocommerce-pagination ul.page-numbers li { float: none; display: block; margin: 0; }

body.way-theme.way-theme .woocommerce-pagination ul.page-numbers, body.way-theme.way-theme .woocommerce-pagination ul.page-numbers li { border: 0; overflow: visible; background: none; }
body.way-theme.way-theme .woocommerce-pagination ul.page-numbers li .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; line-height: 1; background: #fff; color: var(--way-navy); border: 1px solid rgba(192, 167, 112, .6); border-radius: 4px 16px 4px 16px; }
body.way-theme.way-theme .woocommerce-pagination ul.page-numbers li span.current { background: var(--way-navy); color: var(--way-gold); border-color: var(--way-navy); }
body.way-theme.way-theme .woocommerce-pagination ul.page-numbers li a.page-numbers:hover { background: var(--way-navy); color: #fff; }

/* leftovers from a previous theme's companion plugin */
.xstore-wishlist, .xstore-compare, .single-wishlist, .single-compare, .et-wishlist-widget, .xstore-wishlist-action, .xstore-compare-button { display: none !important; }
