/* =========================================================
   M&R Cardiff — Global Design System + WooCommerce Product Page
   Base tokens restored (previous file was removed during the
   header rebuild) + new single-product page redesign.
   ========================================================= */

:root{
  --mr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mr-color-bg: #FAF7F2;
  --mr-color-fg: #221D17;
  --mr-color-primary: #DC2A32;
  --mr-color-primary-hover: #B8202A;
  --mr-color-primary-fg: #FFFFFF;
  --mr-color-secondary: #221D17;
  --mr-color-secondary-fg: #FFFFFF;
  --mr-color-muted: #F1ECE3;
  --mr-color-muted-fg: #6B6155;
  --mr-color-border: #E6DFD3;
  --mr-radius-sm: 0.5rem;
  --mr-radius-md: 0.75rem;
  --mr-radius-lg: 1rem;
  --mr-shadow-sm: 0 1px 2px rgba(34,29,23,0.06), 0 1px 1px rgba(34,29,23,0.04);
  --mr-shadow-md: 0 6px 20px rgba(34,29,23,0.09);
  --mr-shadow-lg: 0 16px 40px rgba(34,29,23,0.14);
}

/* ---------- Base (site-wide) ---------- */
body{
  font-family: var(--mr-font);
  color: var(--mr-color-fg);
  background-color: var(--mr-color-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6,.elementor-heading-title{
  font-family: var(--mr-font); color: var(--mr-color-fg); font-weight:700;
  line-height:1.15; letter-spacing:-0.02em; margin:0 0 0.5em;
}
p, li{ font-family: var(--mr-font); line-height:1.7; color: var(--mr-color-fg); }
a{ color: var(--mr-color-primary); text-decoration:none; transition:color .2s ease; }
a:hover{ color: var(--mr-color-primary-hover); }

.elementor-button, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, input[type="submit"]{
  background-color: var(--mr-color-primary) !important; color: var(--mr-color-primary-fg) !important;
  border:none !important; border-radius: var(--mr-radius-sm) !important; font-family: var(--mr-font) !important;
  font-weight:600 !important; padding:0.9em 1.9em !important; box-shadow: var(--mr-shadow-sm) !important;
  transition: all .2s ease !important; cursor:pointer;
}
.elementor-button:hover, .wp-block-button__link:hover, .woocommerce a.button:hover, .woocommerce button.button:hover{
  background-color: var(--mr-color-primary-hover) !important; box-shadow: var(--mr-shadow-md) !important; transform: translateY(-1px);
}

/* ---------- Cart count badge (header) ---------- */
.elementor-button-icon{ position: relative; display: inline-flex; }
.elementor-button-icon-qty{
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background-color: var(--mr-color-primary); color: #FFFFFF; font-size: 11px;
  font-weight: 700; line-height: 18px; text-align: center; display: inline-block; box-sizing: border-box;
  box-shadow: 0 0 0 2px #121212;
}
@media (max-width: 1024px){ .elementor-button-icon-qty{ top:-7px; right:-9px; min-width:17px; height:17px; font-size:10px; line-height:17px; } }
@media (max-width: 767px){ .elementor-button-icon-qty{ top:-6px; right:-8px; min-width:16px; height:16px; font-size:10px; line-height:16px; } }

#masthead, .elementor-46{ max-width: 100%; overflow-x: hidden; }
.elementor-46 .elementor-element-e420c1c, .elementor-46 .elementor-element-213fdc6{ min-width: 40px; min-height: 40px; }

/* =========================================================
   WooCommerce product cards
   Used on BOTH the Shop archive AND the Related Products
   section of the single product page — same selector, same
   rules, so they are guaranteed to match exactly with zero
   duplicated CSS.
   ========================================================= */
.woocommerce ul.products li.product{
  background: #FFFFFF;
  border: 1px solid var(--mr-color-border);
  border-radius: var(--mr-radius-md);
  box-shadow: none;
  padding: 0 0 18px;
  overflow: hidden;
  transition: border-color .2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.woocommerce ul.products li.product:hover{
  border-color: var(--mr-color-primary);
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* Image on a quiet neutral panel with breathing room — suits isolated
   product photography, bordered off from the rest of the card like a
   spec sheet rather than a floating hero shot */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link::before{
  content: '';
  position: absolute;
  inset: 0;
  bottom: auto;
  aspect-ratio: 1 / 1;
  background: var(--mr-color-muted);
  border-bottom: 1px solid var(--mr-color-border);
  z-index: 0;
}
.woocommerce ul.products li.product img{
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 24px;
  box-sizing: border-box;
  border-radius: 0;
  transition: transform .3s ease;
}
.woocommerce ul.products li.product:hover img{
  transform: scale(1.03);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family: var(--mr-font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mr-color-fg);
  margin: 16px 18px 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title{
  color: var(--mr-color-primary);
}
.woocommerce ul.products li.product .star-rating{
  font-size: 0.75rem;
  margin: 2px 18px 0;
}
.woocommerce ul.products li.product .price{
  font-family: var(--mr-font);
  color: var(--mr-color-fg);
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 8px 18px 0;
  padding-top: 10px;
  border-top: 1px solid var(--mr-color-border);
  display: block;
}
.woocommerce ul.products li.product .price .woocommerce-Price-amount{
  color: var(--mr-color-primary);
}
.woocommerce ul.products li.product .price del{
  color: var(--mr-color-muted-fg);
  font-weight: 400;
  opacity: .8;
  margin-right: 6px;
  font-size: 0.875rem;
}
.woocommerce ul.products li.product .price del .woocommerce-Price-amount{
  color: var(--mr-color-muted-fg);
}
.woocommerce ul.products li.product .price ins{
  text-decoration: none;
}

/* Add to cart — always visible, simple and direct, matches the site's
   standard button styling with no reveal animation */
.woocommerce ul.products li.product .button{
  order: 99;
  margin: 14px 18px 0 !important;
  width: calc(100% - 36px);
  text-align: center;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding: 0.7em 1em !important;
  border-radius: var(--mr-radius-sm) !important;
  box-shadow: none !important;
}
.woocommerce ul.products li.product .button:hover{
  box-shadow: none !important;
  transform: none !important;
}
.woocommerce ul.products li.product .added_to_cart{
  margin: 8px 18px 0 !important;
  font-size: 0.8125rem;
  text-align: center;
  display: block;
}

.woocommerce ul.products li.product .onsale{
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: var(--mr-color-primary) !important;
  color: #FFFFFF !important;
  font-family: var(--mr-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--mr-radius-sm);
  padding: 4px 10px;
  min-height: 0; min-width: 0;
  line-height: 1.5;
  box-shadow: none;
}

/* =========================================================
   WooCommerce SINGLE PRODUCT page only
   Everything below is scoped to body.single-product so it
   cannot affect cart, checkout, account, or any other page.
   ========================================================= */

body.single-product .site-content,
body.single-product #content{
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ---- Two-column hero layout ---- */
body.single-product div.product{
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: 56px;
  align-items: start;
}
body.single-product div.product div.images,
body.single-product div.product div.summary{
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

/* ---- Gallery ---- */
body.single-product .woocommerce-product-gallery{
  position: relative;
}
body.single-product .woocommerce-product-gallery__wrapper{
  border-radius: var(--mr-radius-lg);
  overflow: hidden;
  box-shadow: var(--mr-shadow-sm);
  border: 1px solid var(--mr-color-border);
}
body.single-product .woocommerce-product-gallery__image img{
  border-radius: var(--mr-radius-lg);
  transition: transform .5s ease;
}
body.single-product .woocommerce-product-gallery__image:hover img{
  transform: scale(1.03);
}
body.single-product .flex-control-thumbs{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
body.single-product .flex-control-thumbs li{ width: calc(25% - 9px); }
body.single-product .flex-control-thumbs img{
  border-radius: var(--mr-radius-sm);
  border: 1.5px solid var(--mr-color-border);
  opacity: 1;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
  aspect-ratio: 1/1;
  object-fit: cover;
}
body.single-product .flex-control-thumbs img.flex-active,
body.single-product .flex-control-thumbs img:hover{
  border-color: var(--mr-color-primary);
  box-shadow: var(--mr-shadow-sm);
}

/* Sale badge on the gallery image */
body.single-product .onsale{
  position: absolute;
  top: 16px; left: 16px;
  z-index: 5;
  background: var(--mr-color-primary) !important;
  color: #FFFFFF !important;
  font-family: var(--mr-font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  min-height: 0; min-width: 0;
  padding: 6px 16px;
  line-height: 1.5;
  box-shadow: var(--mr-shadow-md);
}

/* ---- Product summary / info column ---- */
body.single-product .summary.entry-summary{
  padding-top: 4px;
}
body.single-product .product_title.entry-title{
  font-family: var(--mr-font);
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.375rem);
  font-weight: 800;
  color: var(--mr-color-fg);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.15;
}

body.single-product .woocommerce-product-rating{
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.single-product .woocommerce-product-rating .star-rating{ font-size: 0.95rem; }
body.single-product .woocommerce-review-link{
  font-size: 0.875rem;
  color: var(--mr-color-muted-fg);
}

/* Price hierarchy */
body.single-product .summary .price{
  font-family: var(--mr-font);
  display: block;
  margin: 0 0 20px;
  padding: 18px 0;
  border-top: 1px solid var(--mr-color-border);
  border-bottom: 1px solid var(--mr-color-border);
}
body.single-product .summary .price .woocommerce-Price-amount{
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--mr-color-primary);
}
body.single-product .summary .price del{
  opacity: 1;
  margin-right: 12px;
}
body.single-product .summary .price del .woocommerce-Price-amount{
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--mr-color-muted-fg);
}
body.single-product .summary .price ins{
  text-decoration: none;
}

/* Stock status */
body.single-product .stock{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mr-font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 20px;
}
body.single-product .stock::before{
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
body.single-product .stock.in-stock{
  color: #1E7B34;
  background: #E9F7EE;
}
body.single-product .stock.in-stock::before{ background: #1E7B34; }
body.single-product .stock.out-of-stock{
  color: var(--mr-color-primary);
  background: #FBEAEA;
}
body.single-product .stock.out-of-stock::before{ background: var(--mr-color-primary); }
body.single-product .stock.available-on-backorder{
  color: #9A6B12;
  background: #FBF2DF;
}
body.single-product .stock.available-on-backorder::before{ background: #9A6B12; }

/* Short description */
body.single-product .woocommerce-product-details__short-description{
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mr-color-fg);
  margin: 0 0 24px;
}
body.single-product .woocommerce-product-details__short-description p{
  margin: 0 0 12px;
}

/* Add to cart form */
body.single-product form.cart{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
}
body.single-product .quantity{
  margin: 0;
}
body.single-product .quantity .qty{
  font-family: var(--mr-font);
  width: 84px;
  height: 52px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--mr-color-border);
  border-radius: var(--mr-radius-sm);
  background: #FFFFFF;
  color: var(--mr-color-fg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.single-product .quantity .qty:focus{
  outline: none;
  border-color: var(--mr-color-primary);
  box-shadow: 0 0 0 3px rgba(220,42,50,0.15);
}
body.single-product .single_add_to_cart_button{
  background-color: var(--mr-color-primary) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: var(--mr-radius-sm) !important;
  font-family: var(--mr-font) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.01em;
  height: 52px;
  padding: 0 2.2em !important;
  box-shadow: var(--mr-shadow-sm) !important;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
  flex: 1 1 200px;
}
body.single-product .single_add_to_cart_button:hover{
  background-color: var(--mr-color-primary-hover) !important;
  box-shadow: var(--mr-shadow-md) !important;
  transform: translateY(-1px);
}

/* Variations table (variable products) */
body.single-product table.variations{
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
}
body.single-product table.variations select{
  font-family: var(--mr-font);
  width: 100%;
  padding: 0.7em 1em;
  border: 1px solid var(--mr-color-border);
  border-radius: var(--mr-radius-sm);
  background: #FFFFFF;
  color: var(--mr-color-fg);
}
body.single-product table.variations label{
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--mr-color-fg);
}

/* Meta: SKU, categories, tags */
body.single-product .product_meta{
  font-family: var(--mr-font);
  font-size: 0.875rem;
  color: var(--mr-color-muted-fg);
  padding-top: 20px;
  border-top: 1px solid var(--mr-color-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.single-product .product_meta > span{
  display: block;
}
body.single-product .product_meta a{
  color: var(--mr-color-fg);
  font-weight: 500;
}
body.single-product .product_meta a:hover{ color: var(--mr-color-primary); }
body.single-product .sku_wrapper .sku{
  font-weight: 600;
  color: var(--mr-color-fg);
  letter-spacing: 0.02em;
}

/* ---- Tabs ---- */
body.single-product .woocommerce-tabs{
  margin-top: 64px;
  grid-column: 1 / -1;
}
body.single-product ul.tabs.wc-tabs{
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 -1px;
  padding: 0;
  border-bottom: 1px solid var(--mr-color-border);
  flex-wrap: wrap;
}
body.single-product ul.tabs.wc-tabs li{
  margin: 0;
}
body.single-product ul.tabs.wc-tabs li a{
  display: inline-block;
  font-family: var(--mr-font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mr-color-muted-fg);
  padding: 14px 22px;
  border-bottom: 2.5px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
body.single-product ul.tabs.wc-tabs li a:hover{
  color: var(--mr-color-fg);
  text-decoration: none;
}
body.single-product ul.tabs.wc-tabs li.active a{
  color: var(--mr-color-primary);
  border-bottom-color: var(--mr-color-primary);
}
body.single-product .woocommerce-Tabs-panel{
  font-family: var(--mr-font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mr-color-fg);
  padding: 32px 0 0;
}
body.single-product .woocommerce-Tabs-panel h2{
  font-size: 1.375rem;
  margin-bottom: 16px;
}
body.single-product table.shop_attributes{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--mr-color-border);
  border-radius: var(--mr-radius-md);
  overflow: hidden;
}
body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td{
  padding: 12px 18px;
  border-bottom: 1px solid var(--mr-color-border);
  font-size: 0.9375rem;
  text-align: left;
}
body.single-product table.shop_attributes th{
  background: var(--mr-color-muted);
  font-weight: 600;
  width: 220px;
}
body.single-product table.shop_attributes tr:last-child th,
body.single-product table.shop_attributes tr:last-child td{
  border-bottom: none;
}

/* Reviews */
body.single-product #reviews #comments ol.commentlist{
  padding: 0;
  list-style: none;
}
body.single-product #reviews .comment-text{
  border: 1px solid var(--mr-color-border);
  border-radius: var(--mr-radius-md);
  padding: 20px;
  margin-bottom: 16px;
  background: #FFFFFF;
  box-shadow: var(--mr-shadow-sm);
}
body.single-product #reviews .star-rating{ margin-bottom: 8px; }
body.single-product #review_form textarea,
body.single-product #review_form input[type="text"],
body.single-product #review_form input[type="email"]{
  font-family: var(--mr-font);
  border: 1px solid var(--mr-color-border);
  border-radius: var(--mr-radius-sm);
  padding: 0.75em 1em;
  width: 100%;
}

/* ---- Related products ---- */
body.single-product .related.products{
  grid-column: 1 / -1;
  margin-top: 72px;
}
body.single-product .related.products > h2{
  font-size: 1.75rem;
  margin-bottom: 28px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px){
  body.single-product div.product{
    grid-template-columns: 1fr;
    gap: 36px;
  }
  body.single-product .site-content,
  body.single-product #content{
    padding: 40px 24px 64px;
  }
}
@media (max-width: 767px){
  body.single-product .site-content,
  body.single-product #content{
    padding: 28px 16px 48px;
    max-width: 100%;
    overflow-x: hidden;
  }
  body.single-product form.cart{
    flex-direction: column;
    align-items: stretch;
  }
  body.single-product .quantity .qty{
    width: 100%;
  }
  body.single-product .single_add_to_cart_button{
    width: 100%;
    flex: none;
  }
  body.single-product ul.tabs.wc-tabs{
    gap: 0;
  }
  body.single-product ul.tabs.wc-tabs li a{
    padding: 12px 14px;
    font-size: 0.875rem;
  }
  body.single-product table.shop_attributes th{
    width: 40%;
  }
}

/* ---------- Header icon buttons — exclude from generic button styling ---------- */
/* The generic .elementor-button rule above (red bg, padding, radius) was
   unintentionally overriding these two icon-only header buttons, which are
   meant to stay transparent/icon-sized per their original design. */
.elementor-46 .elementor-element-3b3de73 .elementor-button,
.elementor-46 .elementor-element-e420c1c .elementor-button{
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.elementor-46 .elementor-element-3b3de73 .elementor-button{
  padding: 8px 12px 8px 8px !important;
}
.elementor-46 .elementor-element-e420c1c .elementor-button{
  padding: 0 !important;
}
.elementor-46 .elementor-element-3b3de73 .elementor-button:hover,
.elementor-46 .elementor-element-e420c1c .elementor-button:hover{
  background-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
/* ---------- Featured Category cards — normalize the icon circle ---------- */
/* Each card (Timber / Fencing / Aggregates, and any others using this same
   softlite_dynamic_card_box widget) was independently auto-generated with
   its own custom CSS, which drifted out of sync between cards (the center
   "Fencing" card ended up with a bigger circle + stranger hover scale).
   These stable semantic classes exist on every instance of the widget, so
   fixing them here guarantees every card matches and can't drift again. */
.softlite-dynamic-card-box-background-color-2{
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: transform .3s ease, background-color .3s ease !important;
  transform: scale(1) !important;
}
.softlite-dynamic-card-box-background-color-2 svg{
  width: 18px !important;
  height: 18px !important;
}
.softlite-dynamic-card-box:hover .softlite-dynamic-card-box-background-color-2{
  transform: scale(1.1) !important;
}
/* =========================================================
   WooCommerce Category archive pages
   Scoped to body.tax-product_cat so Shop, cart, checkout,
   account, and single-product pages are untouched.
   ========================================================= */

/* Hide WooCommerce's default plain title — the hero replaces it */
body.tax-product_cat .woocommerce-products-header{
  display: none;
}

/* ---- Hero banner ---- */
body.tax-product_cat .mr-category-hero{
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  /* Full-bleed breakout: hero now renders inside the padded, max-width
     content container (needed so it sits above the breadcrumb correctly),
     so pull it back out to true full viewport width here instead. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
}
body.tax-product_cat .mr-category-hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.45) 0%, rgba(10,8,6,0.72) 100%);
}
body.tax-product_cat .mr-category-hero__content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 720px;
}
body.tax-product_cat .mr-category-hero__title{
  font-family: var(--mr-font);
  color: #FFFFFF;
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
body.tax-product_cat .mr-category-hero__desc{
  color: rgba(255,255,255,0.9);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 14px;
}
body.tax-product_cat .mr-category-hero__count{
  display: inline-block;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--mr-color-primary);
  padding: 6px 16px;
  border-radius: 999px;
}

/* ---- Content area below the hero ---- */
body.tax-product_cat #content,
body.tax-product_cat .site-content{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* Breadcrumb — sits above the hero as a slim utility strip */
body.tax-product_cat nav.woocommerce-breadcrumb{
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px 10px;
  font-family: var(--mr-font);
  font-size: 0.8125rem;
  color: var(--mr-color-muted-fg);
}
body.tax-product_cat nav.woocommerce-breadcrumb a{
  color: var(--mr-color-muted-fg);
  font-weight: 500;
}
body.tax-product_cat nav.woocommerce-breadcrumb a:hover{
  color: var(--mr-color-primary);
}

/* Result count + sorting row */
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering{
  font-family: var(--mr-font);
  font-size: 0.9375rem;
  color: var(--mr-color-muted-fg);
}
body.tax-product_cat .woocommerce-result-count{
  margin: 0 0 8px;
}
body.tax-product_cat .woocommerce-ordering select{
  font-family: var(--mr-font);
  border: 1px solid var(--mr-color-border);
  border-radius: var(--mr-radius-sm);
  padding: 0.6em 1em;
  background: #FFFFFF;
  color: var(--mr-color-fg);
}

/* Product grid spacing (cards themselves already styled globally) */
body.tax-product_cat ul.products{
  margin-top: 28px;
  gap: 20px;
}

/* Pagination */
body.tax-product_cat nav.woocommerce-pagination ul.page-numbers{
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  justify-content: center;
}
body.tax-product_cat nav.woocommerce-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--mr-radius-sm);
  font-family: var(--mr-font);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--mr-color-fg);
  border: 1px solid var(--mr-color-border);
  transition: all .2s ease;
}
body.tax-product_cat nav.woocommerce-pagination .page-numbers.current,
body.tax-product_cat nav.woocommerce-pagination a.page-numbers:hover{
  background: var(--mr-color-primary);
  border-color: var(--mr-color-primary);
  color: #FFFFFF;
}

/* ---- Responsive ---- */
@media (max-width: 1024px){
  body.tax-product_cat .mr-category-hero{ min-height: 260px; }
}
@media (max-width: 767px){
  body.tax-product_cat .mr-category-hero{ min-height: 200px; margin-bottom: 28px; }
  body.tax-product_cat .mr-category-hero__title{ font-size: 1.75rem; }
  body.tax-product_cat .mr-category-hero__desc{ font-size: 0.9375rem; }
  body.tax-product_cat #content,
  body.tax-product_cat .site-content{
    padding: 0 16px 48px;
    max-width: 100%;
    overflow-x: hidden;
  }
  body.tax-product_cat nav.woocommerce-breadcrumb{ padding: 12px 16px 0; }
}