/* TONY Modern Design v1.1.0 — scoped reversible visual layer; RTL compatible. */
body.tmd-active { --tmd-ink:#25212a; --tmd-muted:#68616c; --tmd-border:#ece7ee; --tmd-surface:#fff; --tmd-soft:#fbf9fc; --tmd-radius:16px; }
body.tmd-active :is(.main-content,.container) { --tmd-accent:var(--tmd-accent,#ab4961); }
/* Typography is limited to the principal content, not header/footer or plugin widgets. */
body.tmd-active #main :is(h1,h2,h3), body.tmd-active .main-content :is(h1,h2,h3) { color:var(--tmd-ink); letter-spacing:-.025em; line-height:1.3; }
body.tmd-active #main h1, body.tmd-active .main-content h1 { font-size:clamp(1.7rem,2.3vw,2.55rem); font-weight:750; }
body.tmd-active #main h2, body.tmd-active .main-content h2 { font-size:clamp(1.35rem,1.8vw,2rem); font-weight:700; }
body.tmd-active #main :is(p,li), body.tmd-active .main-content :is(p,li) { line-height:1.75; }
body.tmd-active #main :is(a,button,input,select,textarea) { transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease; }
body.tmd-active #main :is(a,button,input,select,textarea):focus-visible { outline:3px solid color-mix(in srgb,var(--tmd-accent) 35%,transparent); outline-offset:2px; }
/* Product/category grid: WooCommerce and Porto product loop variations. */
body.tmd-archive #main ul.products, body.tmd-archive .main-content ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px 18px; margin-inline:0; }
body.tmd-archive #main ul.products::before,body.tmd-archive #main ul.products::after { content:none; }
body.tmd-archive #main ul.products > li.product, body.tmd-archive .main-content ul.products > li.product { float:none; width:auto; max-width:none; margin:0; min-width:0; background:#fff; border:1px solid var(--tmd-border); border-radius:var(--tmd-radius); overflow:hidden; box-shadow:0 5px 24px rgba(28,17,33,.035); padding:10px; }
body.tmd-archive #main ul.products > li.product:hover { box-shadow:0 9px 32px rgba(28,17,33,.085); }
body.tmd-archive #main ul.products li.product img { border-radius:11px; max-width:100%; height:auto; }
body.tmd-archive #main ul.products li.product :is(.woocommerce-loop-product__title,h3) { font-size:1rem; font-weight:700; line-height:1.45; }
body.tmd-archive #main ul.products li.product .price { font-weight:750; color:var(--tmd-ink); font-size:1.02rem; }
body.tmd-archive #main ul.products li.product :is(.button,.add_to_cart_button) { border-radius:10px; min-height:38px; background:var(--tmd-accent); color:#fff; border:1px solid transparent; text-align:center; }
body.tmd-archive #main ul.products li.product :is(.button,.add_to_cart_button):hover { filter:brightness(.94); }
body.tmd-archive #main .woocommerce-result-count { color:var(--tmd-muted); }
body.tmd-archive #main .woocommerce-ordering select { border:1px solid var(--tmd-border); border-radius:10px; padding:8px 12px; background:#fff; }
body.tmd-archive #main :is(.woocommerce-breadcrumb,.breadcrumbs-wrap,.breadcrumb) { color:var(--tmd-muted); font-size:.88rem; }
body.tmd-archive #main .woocommerce-pagination :is(a,span) { border-radius:9px; }
/* Product detail: preserve Porto gallery and JS handling. */
body.tmd-product #main div.product :is(.summary,.product-summary-wrap) { color:var(--tmd-ink); }
body.tmd-product #main div.product .summary h1 { font-weight:750; }
body.tmd-product #main div.product .summary .price { font-size:clamp(1.35rem,1.8vw,1.8rem); font-weight:750; color:var(--tmd-ink); }
body.tmd-product #main div.product .woocommerce-product-gallery :is(img,.woocommerce-product-gallery__image) { border-radius:13px; }
body.tmd-product #main div.product .quantity :is(input,button),body.tmd-product #main div.product .variations select { border:1px solid var(--tmd-border); border-radius:10px; }
body.tmd-product #main div.product .single_add_to_cart_button { border-radius:11px; padding:13px 24px; min-height:46px; background:var(--tmd-accent); border-color:var(--tmd-accent); color:#fff; font-weight:700; }
body.tmd-product #main div.product .woocommerce-tabs { margin-top:32px; }
body.tmd-product #main div.product .woocommerce-tabs .panel { border-radius:12px; }
/* Content pages and posts. No injected text, wrappers, images or schema. */
body.tmd-page #main :is(.entry-content,.page-content),body.tmd-post #main :is(.entry-content,.post-content) { color:var(--tmd-ink); }
body.tmd-page #main :is(.entry-content,.page-content) > p,body.tmd-post #main :is(.entry-content,.post-content) > p { font-size:1.02rem; color:#443d48; }
body.tmd-page #main :is(.entry-content,.page-content) :is(table),body.tmd-post #main :is(.entry-content,.post-content) :is(table) { border-collapse:separate; border-spacing:0; border:1px solid var(--tmd-border); border-radius:12px; overflow:hidden; max-width:100%; }
body.tmd-page #main :is(.entry-content,.page-content) :is(th,td),body.tmd-post #main :is(.entry-content,.post-content) :is(th,td) { padding:12px 14px; border-bottom:1px solid var(--tmd-border); }
body.tmd-page #main :is(.entry-content,.page-content) th,body.tmd-post #main :is(.entry-content,.post-content) th { background:var(--tmd-soft); }
body.tmd-page #main :is(.entry-content,.page-content) blockquote,body.tmd-post #main :is(.entry-content,.post-content) blockquote { border-inline-start:4px solid var(--tmd-accent); background:var(--tmd-soft); padding:18px 22px; border-radius:10px; }
body.tmd-page #main :is(.entry-content,.page-content) :is(.btn,.button,.wp-block-button__link),body.tmd-post #main :is(.entry-content,.post-content) :is(.btn,.button,.wp-block-button__link) { border-radius:11px; }
body.tmd-city #main :is(.entry-content,.page-content) > h2 { margin-top:1.75em; }
@media(max-width:991px) { body.tmd-archive #main ul.products, body.tmd-archive .main-content ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; } }
@media(max-width:767px) {
 body.tmd-archive #main ul.products, body.tmd-archive .main-content ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
 body.tmd-archive #main ul.products > li.product { padding:7px; border-radius:12px; }
 body.tmd-active #main h1 { font-size:clamp(1.45rem,5.5vw,1.85rem); }
 body.tmd-active #main h2 { font-size:clamp(1.2rem,4.7vw,1.5rem); }
 body.tmd-product #main div.product .single_add_to_cart_button { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { body.tmd-active #main :is(a,button,input,select,textarea) { transition:none; } }

/* v1.1 Porto-specific polish. Never interfere with Owl/slider transforms or grid positioning. */
body.tmd-archive #main :is(.shop-loop-before,.woocommerce-products-header) { margin-bottom:24px; }
body.tmd-archive #main :is(.woocommerce-products-header__title,.page-title) { margin-bottom:12px; }
body.tmd-archive #main :is(.porto-products,.products-container) .product-col,
body.tmd-archive #main .products:not(.owl-carousel) .product-col { border-radius:17px; }
body.tmd-archive #main :is(.products,.porto-products) .product-inner { background:#fff; border:1px solid #eae5eb; border-radius:16px; padding:12px; overflow:hidden; box-shadow:0 7px 24px rgba(40,20,45,.06); transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease; height:100%; }
body.tmd-archive #main :is(.products,.porto-products) .product-inner:hover { border-color:#dbcedf; box-shadow:0 16px 34px rgba(40,20,45,.12); transform:translateY(-2px); }
body.tmd-archive #main :is(.products,.porto-products) :is(.product-image,.product-image-wrap,.product-image-container,.product-image-wrapper) { border-radius:12px; overflow:hidden; background:#faf9fb; }
body.tmd-archive #main :is(.products,.porto-products) .product-image img { display:block; width:100%; height:auto; }
body.tmd-archive #main :is(.products,.porto-products) :is(.product-details,.product-content) { padding:12px 5px 5px; }
body.tmd-archive #main :is(.products,.porto-products) :is(.product-title,.woocommerce-loop-product__title) { font-size:1.05rem; line-height:1.45; font-weight:700; margin:0 0 8px; }
body.tmd-archive #main :is(.products,.porto-products) :is(.price,.price .amount) { color:#27202b; font-size:1.075rem; font-weight:750; }
body.tmd-archive #main :is(.products,.porto-products) .product-details :is(.add_to_cart_button,.button) { display:inline-flex; align-items:center; justify-content:center; min-height:41px; padding:9px 16px; border-radius:12px; color:#fff; background:var(--tmd-accent); border:0; font-weight:650; }
body.tmd-archive #main :is(.products,.porto-products) .product-details :is(.add_to_cart_button,.button):hover { filter:brightness(.92); }
body.tmd-archive #main :is(.products,.porto-products) :is(.onsale,.sale-label) { border-radius:999px; padding:5px 10px; }
/* Standard Porto archives use flex/columns; respect their built-in responsive layout. */
body.tmd-archive #main :is(.products:not(ul),.porto-products) { row-gap:23px; }
body.tmd-product #main .product-summary-wrap { background:#fff; border:1px solid #eee7f0; border-radius:18px; padding:clamp(15px,2vw,29px); box-shadow:0 9px 34px rgba(35,15,40,.04); }
body.tmd-product #main :is(.product-image-slider,.product-images,.woocommerce-product-gallery) { border-radius:18px; overflow:hidden; }
body.tmd-product #main :is(.product_title,.entry-title) { letter-spacing:-.025em; line-height:1.3; }
body.tmd-product #main :is(.summary,.product-summary-wrap) .price { display:block; margin:15px 0; }
body.tmd-product #main :is(.variations,.cart) :is(select,input[type=number],input[type=text]) { border-radius:10px; }
body.tmd-product #main :is(.single_add_to_cart_button,.add_to_cart_button) { border-radius:12px; min-height:46px; padding-inline:20px; background:var(--tmd-accent); color:#fff; border:0; }
body.tmd-product #main :is(.woocommerce-tabs,.product-tabs) { margin-block:28px; }
body.tmd-page #main :is(.entry-content,.page-content,.wpb_wrapper),body.tmd-post #main :is(.entry-content,.post-content,.wpb_wrapper) { --tmd-content-gap:1.25rem; }
body.tmd-page #main :is(.entry-content,.page-content) :is(.vc_btn3,.wpb_button,.btn,.button),body.tmd-post #main :is(.entry-content,.post-content) :is(.vc_btn3,.wpb_button,.btn,.button) { border-radius:11px; box-shadow:0 4px 13px rgba(30,15,35,.08); }
body.tmd-page #main :is(.entry-content,.page-content) :is(.wpb_single_image img,.wp-block-image img),body.tmd-post #main :is(.entry-content,.post-content) :is(.wpb_single_image img,.wp-block-image img) { border-radius:14px; }
body.tmd-page #main :is(.entry-content,.page-content) :is(.vc_tta-panel-body,.vc_toggle_content,.wp-block-group),body.tmd-post #main :is(.entry-content,.post-content) :is(.vc_tta-panel-body,.vc_toggle_content,.wp-block-group) { border-radius:14px; }
body.tmd-active #main :is(.woocommerce-message,.woocommerce-info) { border-radius:12px; }
@media(max-width:767px){
 body.tmd-archive #main :is(.products,.porto-products) .product-inner{padding:8px;border-radius:13px}
 body.tmd-archive #main :is(.products,.porto-products) :is(.product-details,.product-content){padding:9px 2px 3px}
 body.tmd-archive #main :is(.products,.porto-products) :is(.product-title,.woocommerce-loop-product__title){font-size:.93rem}
 body.tmd-archive #main :is(.products,.porto-products) .product-details :is(.button,.add_to_cart_button){padding:8px 10px;min-height:37px;font-size:.85rem}
 body.tmd-product #main .product-summary-wrap{padding:13px;border-radius:14px}
}
@media(prefers-reduced-motion:reduce){body.tmd-archive #main :is(.products,.porto-products) .product-inner{transition:none}body.tmd-archive #main :is(.products,.porto-products) .product-inner:hover{transform:none}}

/* TONY Modern Design 1.2.0 — 2027 visual system. Styling only; no JS, HTML rewrites or new assets. */
body.tmd-active { --tmd-accent:#ab4961; --tmd-black:#25202a; --tmd-quiet:#6c6470; --tmd-line:#ede8ef; --tmd-blush:#faf8fb; background:#fff !important; }
body.tmd-active :is(#main,.main-content,.main-content-wrap,.main-wrapper,.page-wrapper,.page-content,.content-area,.site-content,.product-summary-wrap,.product-summary-content) { background-color:#fff; }
body.tmd-active #main { color:var(--tmd-black); }
body.tmd-active #main :is(.breadcrumbs-wrap,.breadcrumb,.woocommerce-breadcrumb) { font-size:13px; color:var(--tmd-quiet); }
body.tmd-active #main :is(input[type=text],input[type=email],input[type=tel],textarea,select) { border-radius:11px; }
body.tmd-active #main :is(a,button,input,select,textarea):focus-visible { outline:2px solid var(--tmd-accent); outline-offset:3px; }
/* Clean shop: do not alter Owl, slick or slider layout/transform. */
body.tmd-archive #main :is(.shop-loop-before,.woocommerce-products-header) { border:0; background:transparent; }
body.tmd-archive #main :is(.products:not(.owl-carousel):not(.slick-slider),.porto-products:not(.owl-carousel)) .product-inner { border:1px solid #ece8ed; border-radius:18px; box-shadow:0 5px 20px rgba(34,24,39,.05); }
body.tmd-archive #main .product-inner :is(.product-image,.product-image-wrap,.product-image-container) { background:#fff; border-radius:12px; }
body.tmd-archive #main .product-inner :is(.product-title,.woocommerce-loop-product__title) { color:var(--tmd-black); }
body.tmd-archive #main .product-inner :is(.price,.amount) { color:#2c2530; font-weight:750; }
body.tmd-archive #main .product-inner :is(a.add_to_cart_button,a.button) { border:0; background:var(--tmd-accent); color:#fff; border-radius:11px; }
/* Modern single product, Porto selectors and WC fallback. Avoid changing gallery layout geometry. */
body.tmd-product #main :is(.product-summary-wrap,.product-summary,.summary) { background:#fff; }
body.tmd-product #main :is(.summary,.product-summary-wrap) :is(h1.product_title,h1.entry-title) { font-size:clamp(27px,2.15vw,36px); line-height:1.26; font-weight:750; color:var(--tmd-black); letter-spacing:-.018em; margin:0 0 14px; }
body.tmd-product #main :is(.summary,.product-summary-wrap) :is(.price,.price .woocommerce-Price-amount,.price .amount) { color:#382341; font-weight:800; font-size:clamp(24px,2.2vw,31px); }
body.tmd-product #main :is(.summary,.product-summary-wrap) .woocommerce-product-details__short-description { color:#443e46; font-size:16px; line-height:1.75; margin-block:16px 22px; }
body.tmd-product #main :is(.summary,.product-summary-wrap) .product_meta { font-size:13px; color:var(--tmd-quiet); line-height:1.7; }
body.tmd-product #main :is(.summary,.product-summary-wrap) .product_meta a { color:#62576b; }
body.tmd-product #main :is(.summary,.product-summary-wrap) :is(.sku_wrapper,.posted_in) { margin-inline-end:10px; }
body.tmd-product #main :is(.woocommerce-product-gallery,.product-images,.product-image-slider) img { border-radius:14px; }
body.tmd-product #main :is(.product-thumbnails,.thumbnails) img { border-radius:9px; }
body.tmd-product #main :is(.summary,.product-summary-wrap) form.cart { border-top:1px solid var(--tmd-line); border-bottom:1px solid var(--tmd-line); padding-block:18px; margin-block:19px; }
body.tmd-product #main :is(.summary,.product-summary-wrap) form.cart :is(.quantity,.quantity .qty,.quantity .minus,.quantity .plus) { border-color:#e6dee8; border-radius:9px; }
/* Override Porto pale pink button including its disabled state, but do not falsely indicate availability. */
body.tmd-product #main :is(.summary,.product-summary-wrap) form.cart :is(button.single_add_to_cart_button,.single_add_to_cart_button,.single_add_to_cart_button.button) { min-height:49px; background:var(--tmd-accent,#ab4961) !important; color:#fff !important; border:1px solid var(--tmd-accent,#ab4961) !important; border-radius:11px !important; font-size:15px; font-weight:750; box-shadow:0 5px 12px rgba(123,31,162,.15); opacity:1; text-shadow:none; padding:12px 22px; }
body.tmd-product #main :is(.summary,.product-summary-wrap) form.cart :is(button.single_add_to_cart_button,.single_add_to_cart_button):hover:not(:disabled):not(.disabled) { background:#90334b !important; border-color:#90334b !important; box-shadow:0 7px 18px rgba(123,31,162,.22); }
body.tmd-product #main :is(.summary,.product-summary-wrap) form.cart :is(button.single_add_to_cart_button,.single_add_to_cart_button):disabled,
body.tmd-product #main :is(.summary,.product-summary-wrap) form.cart :is(button.single_add_to_cart_button,.single_add_to_cart_button).disabled { background:#d2c7d8 !important; border-color:#d2c7d8 !important; color:#403749 !important; opacity:1; cursor:not-allowed; box-shadow:none; }
body.tmd-product #main :is(.summary,.product-summary-wrap) a.added_to_cart { color:#90334b; font-weight:700; padding:10px 12px; }
body.tmd-product #main :is(.summary,.product-summary-wrap) :is(.product_meta,.sku_wrapper) { border:0; }
body.tmd-product #main .woocommerce-tabs :is(ul.tabs, .panel) { border-color:var(--tmd-line); }
/* Editorial / WPBakery content: no wrapping generated; opt out from widgets and structured product tabs. */
body:is(.tmd-page,.tmd-post,.tmd-city) #main :is(.entry-content,.page-content,.post-content) :is(h2,h3) { letter-spacing:-.015em; }
body:is(.tmd-page,.tmd-post,.tmd-city) #main :is(.entry-content,.page-content,.post-content) > :is(p,ul,ol) { max-width:78ch; }
body:is(.tmd-page,.tmd-post,.tmd-city) #main :is(.entry-content,.page-content,.post-content) :is(.vc_btn3,.wp-block-button__link) { border-radius:12px; }
body:is(.tmd-page,.tmd-post,.tmd-city) #main :is(.entry-content,.page-content,.post-content) :is(.vc_tta-panel-body,.wpb_text_column) { line-height:1.8; }
body:is(.tmd-page,.tmd-post,.tmd-city) #main :is(.entry-content,.page-content,.post-content) img { max-width:100%; }
@media(max-width:767px) {
 body.tmd-product #main :is(.summary,.product-summary-wrap) :is(h1.product_title,h1.entry-title) { font-size:25px; }
 body.tmd-product #main :is(.summary,.product-summary-wrap) .woocommerce-product-details__short-description { font-size:15px; }
 body.tmd-product #main :is(.summary,.product-summary-wrap) form.cart :is(button.single_add_to_cart_button,.single_add_to_cart_button) { min-height:48px; }
 body.tmd-archive #main :is(.products,.porto-products) .product-inner { padding:8px; border-radius:13px; }
}
@media(prefers-reduced-motion:reduce) { body.tmd-active *,body.tmd-active *::before,body.tmd-active *::after { scroll-behavior:auto !important; } }

/* v1.2.1 — Porto purchase controls: visible, centered, RTL-friendly, reversible. */
/* Single product: preserve quantity and existing WooCommerce interaction. */
body.tmd-product #main form.cart button.single_add_to_cart_button,
body.tmd-product #main form.cart .single_add_to_cart_button.button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  column-gap:9px !important;
  vertical-align:middle !important;
  text-align:center !important;
  line-height:1.25 !important;
  min-height:52px !important;
  padding:12px 24px !important;
  background:var(--tmd-accent,#ab4961) !important;
  color:#fff !important;
  border-color:var(--tmd-accent,#ab4961) !important;
  white-space:normal !important;
}
body.tmd-product #main form.cart .single_add_to_cart_button :is(i,svg,span),
body.tmd-product #main form.cart .single_add_to_cart_button::before,
body.tmd-product #main form.cart .single_add_to_cart_button::after {
  line-height:1 !important;
  vertical-align:middle !important;
}
body.tmd-product #main form.cart .single_add_to_cart_button :is(i,svg) {
  position:static !important;
  flex:0 0 auto;
  margin:0 !important;
}
/* Honor disabled/loading states; never visually enable a disabled button. */
body.tmd-product #main form.cart .single_add_to_cart_button:is(:disabled,.disabled,.wc-variation-selection-needed) {
  background:#d2c7d8 !important;
  color:#403749 !important;
  border-color:#d2c7d8 !important;
  cursor:not-allowed !important;
}
/* Porto shop loops place purchase controls in several wrappers, sometimes hover-hidden. */
body.tmd-archive #main :is(.products,.porto-products) .product-inner :is(.add-links-wrap,.add-links,.product-actions,.product-action,.product-buttons),
body.tmd-archive #main ul.products li.product :is(.add-links-wrap,.add-links,.product-actions,.product-action,.product-buttons) {
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  clip-path:none !important;
  max-height:none !important;
}
body.tmd-archive #main :is(.products,.porto-products) .product-inner :is(a.add_to_cart_button,a.product_type_simple,a.product_type_variable,a.product_type_grouped,a.product_type_external,a.button),
body.tmd-archive #main ul.products li.product :is(a.add_to_cart_button,a.product_type_simple,a.product_type_variable,a.product_type_grouped,a.product_type_external,a.button) {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  position:relative !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  min-height:43px !important;
  max-width:100%;
  padding:10px 16px !important;
  margin-top:12px;
  border:0 !important;
  border-radius:11px !important;
  background:var(--tmd-accent,#ab4961) !important;
  color:#fff !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  text-align:center !important;
  text-decoration:none !important;
  text-indent:0 !important;
  white-space:normal !important;
  box-shadow:0 5px 14px rgba(123,31,162,.14) !important;
}
body.tmd-archive #main :is(.products,.porto-products) .product-inner :is(a.add_to_cart_button,a.product_type_simple,a.product_type_variable,a.product_type_grouped,a.product_type_external,a.button):hover,
body.tmd-archive #main ul.products li.product :is(a.add_to_cart_button,a.product_type_simple,a.product_type_variable,a.product_type_grouped,a.product_type_external,a.button):hover {
  background:#90334b !important;
  color:#fff !important;
}
/* Some Porto skins set the action label to white with zero opacity, or hide it in a span. */
body.tmd-archive #main :is(.products,.porto-products) .product-inner :is(.add_to_cart_button,.product_type_simple,.product_type_variable,.product_type_grouped,.product_type_external) :is(span,i,svg),
body.tmd-archive #main ul.products li.product :is(.add_to_cart_button,.product_type_simple,.product_type_variable,.product_type_grouped,.product_type_external) :is(span,i,svg) {
  color:inherit !important;
  opacity:1 !important;
  visibility:visible !important;
  line-height:1.2 !important;
}
/* Keep image-overlay controls and carousel mechanisms in their original positions. */
@media(max-width:767px) {
  body.tmd-product #main form.cart button.single_add_to_cart_button { min-height:48px !important; padding:10px 16px !important; }
  body.tmd-archive #main :is(.products,.porto-products) .product-inner :is(a.add_to_cart_button,a.product_type_simple,a.product_type_variable,a.product_type_grouped,a.product_type_external,a.button) { font-size:13px !important; min-height:42px !important; padding:9px 10px !important; }
}

/* TONY category navigation v1.3.0 - scoped and reversible */
body.tmd-active .tmd-category-links { clear:both; width:100%; margin:20px auto 26px; padding:0; direction:rtl; }
body.tmd-active .tmd-category-links__items { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
body.tmd-active .tmd-category-link { display:inline-flex; align-items:center; justify-content:center; min-height:47px; min-width:110px; padding:10px 18px; border-radius:12px; border:1px solid #682285; background:#702494; color:#fff !important; font-size:15px; font-weight:700; text-decoration:none !important; line-height:1.25; box-shadow:0 3px 10px rgba(64,20,84,.09); transition:background .18s ease, box-shadow .18s ease; }
body.tmd-active .tmd-category-link:hover,body.tmd-active .tmd-category-link:focus-visible { background:#511b70; box-shadow:0 5px 14px rgba(64,20,84,.15); color:#fff !important; }
body.tmd-active .tmd-category-link--whatsapp { background:#1a9d52; border-color:#1a9d52; gap:6px; }
body.tmd-active .tmd-category-link--whatsapp:hover,body.tmd-active .tmd-category-link--whatsapp:focus-visible { background:#137b3e; border-color:#137b3e; }
@media(max-width:767px){body.tmd-active .tmd-category-links__items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}body.tmd-active .tmd-category-link { min-width:0; min-height:43px; font-size:13px; padding:8px; }body.tmd-active .tmd-category-link--whatsapp:last-child:nth-child(odd){grid-column:1/-1;} }

/* v1.3.1 — lighter wine/rose controls; WhatsApp retains its own green. */
body.tmd-active .tmd-category-links {max-width:1160px; margin:20px auto 26px;}
body.tmd-active .tmd-category-link {background:var(--tmd-accent,#ab4961) !important;border:1px solid var(--tmd-accent,#ab4961) !important;box-shadow:0 3px 12px rgba(134,51,73,.10) !important;border-radius:11px;}
body.tmd-active .tmd-category-link:hover,body.tmd-active .tmd-category-link:focus-visible {background:#90334b !important;border-color:#90334b !important;}
body.tmd-active .tmd-category-link--whatsapp {background:#168b4e !important;border-color:#168b4e !important;}
body.tmd-active .tmd-category-link--whatsapp:hover,body.tmd-active .tmd-category-link--whatsapp:focus-visible {background:#11703e !important;border-color:#11703e !important;}
body.tmd-active .tmd-category-links a:focus-visible {outline:3px solid #eab5c4;outline-offset:2px;}

/* v1.3.2: visually consolidate verified, duplicate navigation/contact CTAs. */
body.tmd-active .tmd-original-cta-hidden,
body.tmd-active .tmd-category-links .tmd-over-cap {display:none !important;}
body.tmd-active .tmd-category-link--phone {background:var(--tmd-accent,#ab4961) !important;border-color:var(--tmd-accent,#ab4961) !important;}
/* Legacy navigation is hidden only if its full set of links was copied into
   the replacement bar. Deactivating the plugin restores normal display. */
body.tmd-active .tmd-legacy-navigation-hidden {display:none !important;}

/* v1.3.5 - compact, unified category navigation. */
body.tmd-active .tmd-category-links { margin: 10px auto 16px !important; max-width: 1200px; }
body.tmd-active .tmd-category-links__items { display:flex; flex-wrap:wrap; justify-content:center; gap:5px !important; }
body.tmd-active .tmd-category-link {
 min-width:0 !important; min-height:30px !important;
 padding:5px 10px !important; border-radius:7px !important;
 font-size:12px !important; line-height:1.3 !important;
 font-weight:600 !important; box-shadow:none !important;
 white-space:normal; text-align:center;
}
body.tmd-active .tmd-category-link--whatsapp {background:#168b4e !important;border-color:#168b4e !important;}
@media(max-width:767px){
 body.tmd-active .tmd-category-links {margin:8px auto 13px !important;}
 body.tmd-active .tmd-category-links__items {display:flex !important;flex-wrap:wrap !important;gap:5px !important;}
 body.tmd-active .tmd-category-link {padding:5px 8px !important;min-height:29px !important;font-size:11px !important;flex:0 1 auto !important;grid-column:auto !important;}
}

/* Phone colors */
body.tmd-active .tmd-category-link--phone,
body.tmd-active .tmd-category-link--phone:hover,
body.tmd-active .tmd-category-link--phone:focus-visible {
  background: #7b1fa2 !important; border-color:#7b1fa2 !important; color:#fff !important;
}
body.tmd-active .tmd-category-links__items {gap:5px !important;}
body.tmd-active .tmd-category-link {min-height:30px !important; padding:5px 9px !important; font-size:12px !important;}
@media(max-width:767px){body.tmd-active .tmd-category-link{font-size:11px !important;min-height:30px !important;}}

/* v1.4.2 audited existing buttons: style ONLY; never hide, re-order or create */
body.tmd-active.tmd-audit-existing #main .wpb_text_column a[style*="background"],
body.tmd-active.tmd-audit-existing #main .wpb_text_column a.vc_btn3,
body.tmd-active.tmd-audit-existing #main .bf-sub-actions a,
body.tmd-active.tmd-audit-existing #main .wpb_wrapper .vc_btn3-container a {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  min-height:30px !important; padding:5px 10px !important; margin:3px !important;
  font-size:12px !important; line-height:1.35 !important; font-weight:650 !important;
  border-radius:7px !important; background:#ab4961 !important; border:1px solid #ab4961 !important;
  color:#fff !important; text-decoration:none !important; box-shadow:none !important;
}
body.tmd-active.tmd-audit-existing #main a[href^="tel:"][style*="background"],
body.tmd-active.tmd-audit-existing #main .bf-sub-actions a[href^="tel:"] {
 background:#7b1fa2 !important; border-color:#7b1fa2 !important; color:#fff !important;
}
body.tmd-active.tmd-audit-existing #main a[href*="wa.me/"][style*="background"],
body.tmd-active.tmd-audit-existing #main .bf-sub-actions a[href*="wa.me/"] {
 background:#168b4e !important; border-color:#168b4e !important; color:#fff !important;
}
@media(max-width:767px){body.tmd-audit-existing #main .wpb_text_column a[style*="background"]{font-size:11px !important;min-height:30px !important;}}

/* v1.5.0 — unified button bar. Runtime only: everything below disappears with the plugin. */
/* Legacy buttons found by the plugin are hidden only while it is active. */
body.tmd-active .tmd-legacy { display:none !important; }
/* Phone: light brown (replaces the older purple); WhatsApp keeps its green. */
body.tmd-active .tmd-category-link--phone { background:#9a6b4b !important; border-color:#9a6b4b !important; color:#fff !important; }
body.tmd-active .tmd-category-link--phone:hover,
body.tmd-active .tmd-category-link--phone:focus-visible { background:#7f563b !important; border-color:#7f563b !important; color:#fff !important; }
body.tmd-active .tmd-category-link--whatsapp { background:#168b4e !important; border-color:#168b4e !important; color:#fff !important; }
/* Current section: shown, not a link to itself. */
body.tmd-active .tmd-category-link--current { background:#fff !important; color:var(--tmd-accent,#ab4961) !important; border:2px solid var(--tmd-accent,#ab4961) !important; box-shadow:none !important; cursor:default; }

/* v1.5.3 — remaining in-content buttons are restyled in place (never hidden, never moved). */
body.tmd-active #main a[href^="tel:"]:is([style*="background"],[class*="btn"],[class*="button"],[class*="cta"]):not(.tmd-category-link) {
  background:#9a6b4b !important; border-color:#9a6b4b !important; color:#fff !important;
}
body.tmd-active #main :is(a[href*="wa.me/"],a[href*="api.whatsapp.com"],a[href*="web.whatsapp.com"]):is([style*="background"],[class*="btn"],[class*="button"],[class*="cta"]):not(.tmd-category-link) {
  background:#168b4e !important; border-color:#168b4e !important; color:#fff !important;
}
body.tmd-active #main a[style*="background"][style*="padding"]:not([href^="tel:"]):not([href*="wa.me/"]):not([href*="whatsapp.com"]):not(.tmd-category-link):not(.add_to_cart_button):not(.button) {
  background:var(--tmd-accent,#ab4961) !important; border-color:var(--tmd-accent,#ab4961) !important; color:#fff !important;
}

/* v1.6.0 — style-only unification of EXISTING button-like links (inline-styled pills, e.g. the old purple ones).
   Colors by link type: on-site = accent, tel = light brown, WhatsApp = green. Shape/typography unified.
   Links, text, order and size (padding) are untouched; nothing is added or hidden. Excludes theme/shop buttons. */
body.tmd-active :is(#main,.main-content) a[style*="background"]:not(.tmd-category-link):not(.add_to_cart_button):not(.button):not(.vc_btn3):not([class*="elementor"]) {
  border-radius:999px !important; font-weight:700 !important; text-decoration:none !important; box-shadow:none !important;
  border:0 !important; color:#fff !important; transition:background-color .15s ease;
}
body.tmd-active :is(#main,.main-content) a[style*="background"][style*="padding"]:not([href^="tel:"]):not([href^="whatsapp:"]):not([href*="wa.me/"]):not([href*="whatsapp.com"]):not([href^="mailto:"]):not(.tmd-category-link):not(.add_to_cart_button):not(.button):not(.vc_btn3):hover {
  background:#8f3a50 !important;
}
body.tmd-active :is(#main,.main-content) a[href^="tel:"][style*="background"]:not(.tmd-category-link) { background:#9a6b4b !important; }
body.tmd-active :is(#main,.main-content) a[href^="tel:"][style*="background"]:not(.tmd-category-link):hover { background:#7f563b !important; }
body.tmd-active :is(#main,.main-content) :is(a[href^="whatsapp:"],a[href*="wa.me/"],a[href*="api.whatsapp.com"],a[href*="web.whatsapp.com"])[style*="background"]:not(.tmd-category-link) { background:#168b4e !important; }
body.tmd-active :is(#main,.main-content) :is(a[href^="whatsapp:"],a[href*="wa.me/"],a[href*="api.whatsapp.com"],a[href*="web.whatsapp.com"])[style*="background"]:not(.tmd-category-link):hover { background:#0f6b3b !important; }

/* v1.7.0 — class-based buttons (WPBakery / Gutenberg) get the same palette. Links and sizes untouched. */
body.tmd-active :is(#main,.main-content) :is(a.vc_btn3,.wp-block-button__link):not(.tmd-category-link) {
  background:var(--tmd-accent,#ab4961) !important; border-color:var(--tmd-accent,#ab4961) !important; color:#fff !important;
  border-radius:999px !important; font-weight:700 !important; box-shadow:none !important; text-decoration:none !important;
}
body.tmd-active :is(#main,.main-content) :is(a.vc_btn3,.wp-block-button__link)[href^="tel:"] { background:#9a6b4b !important; border-color:#9a6b4b !important; }
body.tmd-active :is(#main,.main-content) :is(a.vc_btn3,.wp-block-button__link):is([href*="wa.me/"],[href*="whatsapp.com"],[href^="whatsapp:"]) { background:#168b4e !important; border-color:#168b4e !important; }

/* v1.7.1 — buttons whose look comes from a stylesheet class on a wrapper (e.g. <div class="cta"><a>…) are restyled too. */
body.tmd-active :is(#main,.main-content) :is(.cta,.cta-row,.cta-buttons,.button-row,.btn-row,.bfp-nav,.bfr-nav) > a:not(.tmd-category-link) {
  background:var(--tmd-accent,#ab4961) !important; border-color:var(--tmd-accent,#ab4961) !important; color:#fff !important;
  border-radius:999px !important; font-weight:700 !important; text-decoration:none !important; box-shadow:none !important;
}
body.tmd-active :is(#main,.main-content) :is(.cta,.cta-row,.cta-buttons,.button-row,.btn-row,.bfp-nav,.bfr-nav) > a[href^="tel:"] { background:#9a6b4b !important; border-color:#9a6b4b !important; }
body.tmd-active :is(#main,.main-content) :is(.cta,.cta-row,.cta-buttons,.button-row,.btn-row,.bfp-nav,.bfr-nav) > a:is([href*="wa.me/"],[href*="whatsapp.com"],[href^="whatsapp:"]) { background:#168b4e !important; border-color:#168b4e !important; }
body.tmd-active :is(#main,.main-content) :is(.cta,.cta-row,.cta-buttons,.button-row,.btn-row,.bfp-nav,.bfr-nav) > a:not([href^="tel:"]):not([href*="wa.me/"]):not([href*="whatsapp.com"]):hover { background:#8f3a50 !important; }
