/* GX Market: global B2C marketplace, deep blue + orange CTAs */
:root:root {
  --ts-primary: #0A2540;
  --ts-accent: #EA6A1F;
  --ts-btn: #C2410C;
  --ts-btn-hover: #9A3412;
  --ts-btn-glow: rgba(194, 65, 12, .28);
  --ts-link-hover: #C2410C;
  --ts-price: #C2410C;
  --ts-sale: #DC2626;
  --ts-focus: rgba(10, 37, 64, .15);
  --ts-topbar-bg: #0A2540;
  --ts-topbar-color: #FFFFFF;
  --ts-topbar: "Free delivery on all orders  \00B7  30-day returns  \00B7  Secure payments  \00B7  24/7 support";
  --ts-footer-bg: #0A2540;
  --ts-footer-link-hover: #FDBA74;
  --wp--preset--font-family--poppins: var(--ts-font);
  --wp--preset--color--button-color: #C2410C;
  --wp--preset--color--button-hover-color: #9A3412;
  --wp--preset--color--button-hover: #9A3412;
  --wp--preset--color--hover: #C2410C;
}
/* ==========================================================
   Base styles (CSS only, functionality untouched)
   Delete wp-content/mu-plugins/trade-style.php to roll back
   ========================================================== */

:root:root {
  --ts-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ts-radius: 12px;
  --ts-radius-sm: 8px;
  --ts-border: #E4E8EF;
  --ts-text: #2B3445;
  --ts-muted: #6B7587;
  --ts-heading: var(--ts-primary);
  --ts-shadow: 0 10px 30px rgba(10, 30, 60, .08);
  --ts-shadow-hover: 0 16px 40px rgba(10, 30, 60, .14);
}

/* ---------- Typography ---------- */
body {
  font-family: var(--ts-font) !important;
  color: var(--ts-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body h1, body h2, body h3, body h4, body h5, body h6,
body .wp-block-heading, body .wp-block-site-title, body .wp-block-post-title {
  font-family: var(--ts-font) !important;
  letter-spacing: -0.01em;
}
body main h1, body main h2, body main h3 { color: var(--ts-heading); }
body main .wp-block-cover:not(.is-light) :is(h1, h2, h3):not(.has-text-color) { color: inherit; }
::selection { background: var(--ts-primary); color: #fff; }

/* ---------- Top shipping/service bar + header ---------- */
.wp-site-blocks > header.wp-block-template-part:first-child::before {
  content: var(--ts-topbar);
  display: block;
  background: var(--ts-topbar-bg);
  color: var(--ts-topbar-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  padding: 9px 16px;
}
.wp-site-blocks > header.wp-block-template-part:first-child {
  background: #fff;
  box-shadow: 0 1px 0 var(--ts-border), 0 6px 18px rgba(10, 30, 60, .05);
  position: relative;
  z-index: 100;
}
.wp-site-blocks > header.wp-block-template-part:first-child > .wp-block-group,
.wp-site-blocks > header.wp-block-template-part:first-child .header-wrapper,
.wp-site-blocks > header.wp-block-template-part:first-child .wb-header-wrapper {
  background-color: #fff !important;
}
@media (min-width: 782px) {
  .wp-site-blocks > header.wp-block-template-part:first-child {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
  }
}
header.wp-block-template-part .wp-block-site-title a {
  color: var(--ts-primary) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Navigation */
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content {
  font-weight: 500;
  transition: color .2s ease;
}
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--ts-link-hover) !important;
}
@media (min-width: 600px) {
  header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
    border: 1px solid var(--ts-border) !important;
    border-radius: var(--ts-radius-sm);
    box-shadow: var(--ts-shadow);
    padding: 6px 0 !important;
    overflow: hidden;
  }
}

/* ---------- Buttons ---------- */
body .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background),
body .wp-element-button:not(.has-background):not(.has-icon):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close),
body a.button, body button.button, body input.button,
body .single_add_to_cart_button,
body .wc-block-components-button:not(.is-link):not(.wc-block-components-button--text) {
  background-color: var(--ts-btn) !important;
  color: #fff !important;
  border-color: var(--ts-btn) !important;
  border-radius: var(--ts-radius-sm) !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover,
body .wp-element-button:not(.has-background):not(.has-icon):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):hover,
body a.button:hover, body button.button:hover, body input.button:hover,
body .single_add_to_cart_button:hover,
body .wc-block-components-button:not(.is-link):not(.wc-block-components-button--text):hover {
  background-color: var(--ts-btn-hover) !important;
  border-color: var(--ts-btn-hover) !important;
  box-shadow: 0 8px 20px var(--ts-btn-glow);
  transform: translateY(-1px);
}
body .wp-block-button__link.has-background { border-radius: var(--ts-radius-sm) !important; }
/* Image-label buttons: narrower padding so differing system fonts can't make the image grid wrap */
body .wp-block-cover .wp-block-button__link { padding-left: 22px !important; padding-right: 22px !important; }

/* ---------- Product cards ---------- */
ul.products li.product,
li.product.wp-block-post {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius) !important;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
ul.products li.product:hover,
li.product.wp-block-post:hover {
  box-shadow: var(--ts-shadow-hover);
  border-color: transparent;
  transform: translateY(-3px);
}
li.product .wc-block-components-product-image { overflow: hidden; }
li.product .wc-block-components-product-image img { transition: transform .5s ease; }
li.product:hover .wc-block-components-product-image img { transform: scale(1.04); }

li.product .woocommerce-loop-product__title,
li.product .wp-block-post-title,
li.product .wp-block-post-title a {
  color: var(--ts-heading) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none;
}

/* Prices */
body .price, body .wc-block-components-product-price,
body .wp-block-woocommerce-product-price, body .woocommerce-Price-amount {
  color: var(--ts-price);
  font-weight: 700;
}
body .price del, body .price del .woocommerce-Price-amount,
body .wc-block-components-product-price del, body del .woocommerce-Price-amount {
  color: var(--ts-muted) !important;
  font-weight: 400;
  opacity: .8;
}
body .price ins, body .wc-block-components-product-price ins { text-decoration: none; }

/* Sale badges */
body .onsale, body .wc-block-components-product-sale-badge {
  background: var(--ts-sale) !important;
  color: #fff !important;
  border-color: var(--ts-sale) !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
}

/* ---------- Forms ---------- */
body input[type="text"], body input[type="email"], body input[type="tel"],
body input[type="password"], body input[type="number"], body input[type="search"],
body select, body textarea {
  border-radius: var(--ts-radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body input[type="text"]:focus, body input[type="email"]:focus, body input[type="tel"]:focus,
body input[type="password"]:focus, body input[type="number"]:focus, body input[type="search"]:focus,
body select:focus, body textarea:focus {
  border-color: var(--ts-primary) !important;
  box-shadow: 0 0 0 3px var(--ts-focus) !important;
  outline: none;
}

/* Breadcrumbs */
body .woocommerce-breadcrumb, body .wc-block-breadcrumbs { color: var(--ts-muted); font-size: 13px; }
body .woocommerce-breadcrumb a, body .wc-block-breadcrumbs a { color: var(--ts-muted); text-decoration: none; }
body .woocommerce-breadcrumb a:hover, body .wc-block-breadcrumbs a:hover { color: var(--ts-link-hover); }

/* Product detail tabs */
body .woocommerce-tabs ul.tabs li.active a,
body .wc-tabs li.active a { color: var(--ts-primary) !important; }
body .woocommerce-tabs ul.tabs li.active,
body .wc-tabs li.active { border-bottom-color: var(--ts-accent) !important; }

/* ---------- Footer ---------- */
.wp-site-blocks > footer.wp-block-template-part {
  background: var(--ts-footer-bg) !important;
  color: rgba(255, 255, 255, .72);
}
.wp-site-blocks > footer.wp-block-template-part .has-background {
  background-color: transparent !important;
}
.wp-site-blocks > footer.wp-block-template-part p,
.wp-site-blocks > footer.wp-block-template-part .has-text-color,
.wp-site-blocks > footer.wp-block-template-part a {
  color: rgba(255, 255, 255, .72) !important;
  text-decoration: none;
}
.wp-site-blocks > footer.wp-block-template-part a:hover {
  color: var(--ts-footer-link-hover) !important;
}
.wp-site-blocks > footer.wp-block-template-part .wp-block-heading,
.wp-site-blocks > footer.wp-block-template-part .wp-block-heading a,
.wp-site-blocks > footer.wp-block-template-part .wp-block-site-title,
.wp-site-blocks > footer.wp-block-template-part .wp-block-site-title a {
  color: #fff !important;
}
.wp-site-blocks > footer.wp-block-template-part .wp-block-heading {
  letter-spacing: .04em;
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .wp-site-blocks > header.wp-block-template-part:first-child::before {
    font-size: 10.5px;
    letter-spacing: .04em;
    padding: 7px 12px;
  }
  ul.products li.product:hover,
  li.product.wp-block-post:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  li.product:hover .wc-block-components-product-image img { transform: none; }
}

/* ---------- GX Market extras ---------- */
/* Hero banner background */
body .banner-cover { background-color: #EEF3F9 !important; }
body .banner-cover h1, body .banner-cover h2 { color: var(--ts-primary) !important; }

/* Popular category cards: fix the empty gray area under the image, add rounded corners */
body .wc-block-featured-category {
  border-radius: var(--ts-radius);
  overflow: hidden;
}
body .wc-block-featured-category__background-image {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  transition: transform .6s ease;
}
body .wc-block-featured-category:hover .wc-block-featured-category__background-image {
  transform: scale(1.05);
}

/* Discount percentage badge */
body .discount-percent {
  background: var(--ts-primary) !important;
  color: #fff !important;
  border-radius: 4px;
}

/* Product card spacing */
ul.products li.product { padding-bottom: 18px !important; }
ul.products li.product .button { margin-top: 6px; }
