:root {
  --tm-yellow: #ffe600;
  --tm-yellow-soft: #fff159;
  --tm-text: #333333;
  --tm-text-strong: #1f1f1f;
  --tm-muted: #666666;
  --tm-border: #e5e5e5;
  --tm-bg: #ebebeb;
  --tm-surface: #ffffff;
  --tm-blue: #3483fa;
  --tm-blue-dark: #2968c8;
  --tm-green: #00a650;
  --tm-shadow: 0 1px 2px rgba(0,0,0,.12);
  --tm-shadow-lg: 0 12px 32px rgba(0,0,0,.10);
  --tm-radius: 18px;
  --tm-radius-sm: 12px;
  --tm-container: 1180px;
  --tm-header-height-mobile: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--tm-text); background: var(--tm-bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 32px), var(--tm-container)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; left: -9999px; }
.site-main { min-height: 60vh; }
.tm-icon svg,
.tumarket-search-icon svg,
.tm-mobile-menu-icon svg,
.tm-promo-icon svg,
.tm-shipping-icon svg,
.tm-category-icon svg,
.tm-location svg,
.tm-cart-link svg,
.tm-mobile-close svg,
.tm-mobile-user-icon svg,
.tm-circle-shortcut-icon svg { width: 100%; height: 100%; display: block; }

.tm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffe600;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.tm-header-top {
  display: grid;
  grid-template-columns: 162px minmax(420px, 1fr) 334px;
  gap: 32px;
  align-items: center;
  min-height: 70px;
  padding-top: 8px;
}
.tm-brand,
.tm-brand-link {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.tm-brand-link { color:var(--tm-text-strong); }
.tm-brand-wordmark {
  display:grid;
  grid-template-rows:auto auto;
  line-height:.82;
  flex:0 0 auto;
}
.tm-brand-line {
  display:block;
  font-weight:800;
  letter-spacing:-.06em;
  color:#2f3279;
}
.tm-brand-line-top { font-size:1.05rem; }
.tm-brand-line-bottom { font-size:1.85rem; margin-top:-2px; }
.tm-brand-badge { width:58px; height:40px; }
.custom-logo { max-height: 44px; width: auto; }
.tm-search-wrap { width: 100%; min-width:0; }
.tumarket-search-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) 52px;
  align-items:center;
  min-height:40px;
  background:#fff;
  border-radius:2px;
  padding:0 0 0 16px;
  box-shadow:0 1px 2px rgba(0,0,0,.12);
  border:1px solid rgba(0,0,0,.08);
  gap:0;
  overflow:hidden;
}
.tumarket-search-icon { display:none; }
.tumarket-search-form .tumarket-search-field {
  width:100%;
  min-height:40px;
  height:40px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  font-size:1rem;
  color:var(--tm-text-strong);
  padding:0 !important;
  box-shadow:none !important;
  outline:none;
  appearance:none;
}
.tumarket-search-field::placeholder { color:#9b9b9b; }
.tumarket-search-field:focus { outline:none; box-shadow:none; }
.tumarket-search-button {
  width:52px;
  height:40px;
  border:0;
  border-left:1px solid #efefef;
  background:#fff;
  color:#666;
  cursor:pointer;
  padding:0 14px;
  border-radius:0;
  box-shadow:none;
}
.tumarket-search-button:hover { color: var(--tm-blue); }
.tm-header-actions { display:flex; align-items:center; gap:10px; }
.tm-header-actions-mobile { display:none; justify-self:end; }
.tm-mobile-toggle, .tm-cart-link {
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:0;
  color:#1f1f1f;
  border-radius:8px;
  cursor:pointer;
  flex:0 0 auto;
}
.tm-mobile-toggle:hover, .tm-cart-link:hover { background:rgba(255,255,255,.25); }
.tm-mobile-toggle .tm-icon { width:24px; height:24px; display:block; color:#333; }
.tm-mobile-toggle svg, .tm-cart-link svg { width:24px; height:24px; display:block; stroke-width:2.2; }
.tm-header-promo {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-height:40px;
  padding:0 10px 0 12px;
  border-radius:999px;
  background:#fff;
  color:#333;
  font-size:.82rem;
  font-weight:500;
  justify-self:end;
  white-space:nowrap;
}
.tm-header-promo strong {
  background:#2f318f;
  color:#fff;
  border-radius:999px;
  padding:8px 15px;
  font-size:.95rem;
  line-height:1;
  letter-spacing:.01em;
}
.tm-header-bottom { padding-bottom:10px; }
.tm-header-bottom-inner {
  display:grid;
  grid-template-columns:170px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  min-height:28px;
}
.tm-header-navs {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:26px;
}
.desktop-nav.secondary-nav { justify-self: end; }
.tm-location {
  display:flex;
  align-items:flex-start;
  gap:7px;
  color:#333;
  font-size:.84rem;
  line-height:1.08;
}
.tm-location svg { width:18px; height:18px; color:#333; margin-top:1px; }
.tm-menu, .tm-mobile-menu-list { list-style:none; margin:0; padding:0; }
.tm-menu {
  display:flex;
  align-items:center;
  gap:22px;
  font-size:.92rem;
  color:#333;
}
.tm-menu.secondary { gap:18px; }
.tm-menu > li { position:relative; }
.tm-menu > li > a { display:inline-flex; align-items:center; gap:4px; }
.tm-menu .sub-menu {
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  padding:14px 10px 10px;
  margin:0;
  list-style:none;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:var(--tm-shadow-lg);
  z-index:120;
}
.tm-menu > li.menu-item-has-children::after {
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:14px;
}
.tm-menu li:hover > .sub-menu,
.tm-menu li:focus-within > .sub-menu { display:block; }
.tm-menu .sub-menu li + li { margin-top:4px; }
.tm-menu .sub-menu a { display:block; padding:10px 12px; border-radius:10px; }
.tm-menu .sub-menu a:hover { background:#f5f5f5; }
.tm-header-account {
  display:flex;
  align-items:center;
  gap:26px;
  font-size:.92rem;
  color:#333;
  white-space:nowrap;
}
.tm-header-account a:hover,
.tm-menu a:hover { opacity:.82; }
.tm-cart-link-desktop { margin-left:-10px; }
.desktop-only { display:flex; }
.tm-banner-card { min-height: 248px; border-radius: 18px; overflow:hidden; box-shadow:var(--tm-shadow); padding:28px; display:grid; align-content:end; gap:12px; }
.tm-banner-card-light { background: linear-gradient(135deg, #ffffff 0%, #f6f6f6 100%); }
.tm-banner-card-blue { background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%); min-height: 116px; }
.tm-banner-card-dark { background: linear-gradient(135deg, #2a2f3d 0%, #171b24 100%); color:#fff; min-height: 116px; }
.tm-hero-stack { display:grid; gap:16px; }
.tm-banner-overline { font-size:.8rem; font-weight:800; letter-spacing:.04em; color:#5a5a5a; }
.tm-banner-card-dark .tm-banner-overline { color: rgba(255,255,255,.72); }
.tm-banner-card h1 { margin:0; font-size: clamp(2rem, 5vw, 3rem); line-height:1.02; color:var(--tm-text-strong); max-width: 12ch; }
.tm-banner-card h2 { margin:0; font-size:1.5rem; line-height:1.18; max-width:15ch; }
.tm-banner-card p { margin:0; color:#555; line-height:1.65; max-width:48ch; }
.tm-banner-card a { color: inherit; font-weight:700; }
.tm-hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:10px; }
.tm-btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 22px; border-radius:10px; font-weight:700; }
.tm-btn-primary { background:var(--tm-blue); color:#fff; }
.tm-btn-primary:hover { background:var(--tm-blue-dark); }
.tm-btn-secondary { background:#fff; border:1px solid var(--tm-border); color:var(--tm-text-strong); }
.tm-btn-full { width:100%; }
.tm-shipping-bar {
  margin-top:16px; background:#fff; border-radius:14px; min-height:52px; padding:0 18px; display:flex; align-items:center; gap:10px; box-shadow:var(--tm-shadow);
}
.tm-shipping-icon { width:24px; height:24px; color: var(--tm-green); }
.tm-shipping-bar strong { color: var(--tm-green); }
.tm-circle-shortcuts {
  display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:16px; padding: 18px 6px 0;
}
.tm-circle-shortcut { display:grid; justify-items:center; gap:10px; text-align:center; color:#555; font-weight:500; }
.tm-circle-shortcut-icon {
  width:74px; height:74px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:#fff; box-shadow:var(--tm-shadow); color:#5d5d5d;
}
.tm-circle-shortcut-icon svg { width:34px; height:34px; }
.tm-circle-shortcut span:last-child { line-height:1.25; }

.tm-promo-cards { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; margin-bottom:28px; }
.tm-promo-card, .tm-account-panel, .tm-product-card, .tm-post-card, .tm-category-item, .tm-listing-card, .tm-single-card, .tumarket-widget { background:#fff; border-radius:18px; box-shadow:var(--tm-shadow); }
.tm-promo-card { padding:24px; }
.tm-promo-icon { width:72px; height:72px; border-radius:999px; background:#fff7bf; color:#5f5f5f; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.tm-promo-icon svg { width:38px; height:38px; }
.tm-promo-card h2, .tm-account-panel h2 { margin:0 0 10px; font-size:1.4rem; color:var(--tm-text-strong); }
.tm-promo-card p, .tm-account-panel p { margin:0; color:#5e5e5e; line-height:1.6; }
.tm-card-cta { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; margin-top:18px; border-radius:10px; background:#e8f0ff; color:var(--tm-blue-dark); font-weight:700; }
.tm-account-panel { padding:28px; display:grid; align-content:center; gap:18px; background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%); }

.tm-section { margin-bottom: 32px; }
.tm-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.tm-section-head h2 { margin:0; font-size:1.6rem; color:var(--tm-text-strong); }
.tm-section-head a { color:var(--tm-blue); font-weight:700; }
.tm-offers-grid { display:grid; grid-template-columns: 280px 1fr; gap:16px; }
.tm-product-grid, .tm-post-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }
.tm-product-grid-wide { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tm-product-card, .tm-post-card, .tm-category-item, .tm-shortcut-card { overflow:hidden; transition: transform .18s ease, box-shadow .18s ease; }
.tm-product-card{position:relative;}
.tm-product-card:hover, .tm-post-card:hover, .tm-category-item:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow-lg); }
.tm-product-thumb { position:relative; z-index:2; display:block; background:#fff; padding:22px; aspect-ratio:1/1; }
.tm-product-thumb img { width:100%; height:100%; object-fit:contain; }
.tm-product-body { position:relative; z-index:2; padding:16px 18px 20px; display:grid; gap:10px; }
.tm-card-overlay-link{position:absolute;inset:0;z-index:1;border-radius:inherit;}
.tm-product-body h3 { margin:0; font-size:1rem; line-height:1.4; font-weight:500; color:var(--tm-text-strong); }
.tm-product-body h3 a{position:relative;z-index:2;}
.tm-price { font-size:1.5rem; font-weight:700; color:var(--tm-text-strong); }
.tm-price ins { color: inherit; text-decoration:none; }
.tm-card-link { display:inline-flex; align-items:center; gap:6px; color: var(--tm-blue); font-weight:700; font-size:.95rem; }
.tm-product-card-featured .tm-product-thumb { aspect-ratio: 5 / 4; }

.tm-membership-band { background: linear-gradient(135deg, #5f1a8b 0%, #8d2fd1 100%); color:#fff; border-radius:18px; padding:18px 22px; box-shadow:var(--tm-shadow); margin-bottom:28px; }
.tm-membership-head { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.tm-membership-pill { display:inline-flex; align-items:center; justify-content:center; min-width:48px; height:28px; border-radius:999px; background:#fff; color:#6e19a4; font-weight:800; text-transform:uppercase; font-size:.8rem; }
.tm-membership-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }
.tm-membership-grid article { background: rgba(255,255,255,.12); border-radius:14px; padding:16px; }
.tm-membership-grid strong { display:block; margin-bottom:6px; }
.tm-membership-grid span { color: rgba(255,255,255,.86); line-height:1.5; }

.tm-wide-promo { min-height:240px; border-radius:20px; overflow:hidden; box-shadow:var(--tm-shadow); background: linear-gradient(135deg, #121212 0%, #1f2633 38%, #2a2a2a 100%); margin-bottom:28px; display:grid; align-items:center; }
.tm-wide-promo-copy { padding:32px; color:#fff; max-width:520px; }
.tm-wide-promo-copy h2 { margin:0 0 18px; font-size:2.1rem; line-height:1.15; }

.tm-category-grid { display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:16px; }
.tm-category-item { padding:18px 16px; }
.tm-category-item-visual { display:flex; flex-direction:column; gap:10px; align-items:flex-start; min-height:120px; }
.tm-category-icon { width:52px; height:52px; border-radius:14px; background:#f6f6f6; display:flex; align-items:center; justify-content:center; color:#666; }
.tm-category-icon svg { width:24px; height:24px; }
.tm-category-item strong { color:var(--tm-text-strong); font-size:1rem; line-height:1.3; }
.tm-category-item span { color:var(--tm-muted); font-size:.92rem; }

.tm-post-thumb { display:block; aspect-ratio:16/10; background:#ddd; overflow:hidden; }
.tm-post-thumb img { width:100%; height:100%; object-fit:cover; }
.tm-post-body { padding:18px; }
.tm-post-date { display:inline-block; color:var(--tm-muted); font-size:.88rem; margin-bottom:8px; }
.tm-post-body h3 { margin:0 0 10px; font-size:1.12rem; color:var(--tm-text-strong); line-height:1.3; }
.tm-post-body p { margin:0; color:#4f4f4f; line-height:1.6; }

.tm-content-grid { display:grid; grid-template-columns: minmax(0,1fr) 320px; gap:24px; padding:26px 0 40px; }
.tm-archive-head { margin-bottom:20px; }
.tm-archive-head h1 { margin:6px 0 0; font-size:2.3rem; color:var(--tm-text-strong); }
.archive-description { color:var(--tm-muted); max-width:70ch; }
.tm-listing-card { display:grid; grid-template-columns:220px minmax(0,1fr); gap:18px; padding:18px; margin-bottom:16px; }
.tm-listing-thumb { border-radius:14px; overflow:hidden; background:#ddd; min-height:160px; }
.tm-listing-thumb img { width:100%; height:100%; object-fit:cover; }
.tm-listing-body h2 { margin:0 0 10px; font-size:1.5rem; line-height:1.2; color:var(--tm-text-strong); }
.tm-listing-body p { margin:0; color:#4e4e4e; line-height:1.7; }
.tm-single-wrap { padding:26px 0 40px; }
.tm-single-card { padding:28px; }
.tm-single-head h1 { margin:0; font-size:2.4rem; line-height:1.1; color:var(--tm-text-strong); }
.tm-single-thumb { margin:22px 0; border-radius:16px; overflow:hidden; }
.tm-entry-content { line-height:1.8; color:#333; }
.tm-entry-content h2, .tm-entry-content h3, .tm-entry-content h4 { color:var(--tm-text-strong); }
.tm-sidebar { display:grid; gap:16px; }
.tumarket-widget { padding:18px; }
.widget-title { margin:0 0 12px; color:var(--tm-text-strong); font-size:1.15rem; }
.tm-woo-wrap { padding:24px 0 40px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background:#fff; border-radius:18px; box-shadow:var(--tm-shadow); padding:14px; }
.woocommerce span.onsale { background: var(--tm-green) !important; }
.woocommerce ul.products li.product .price { color: var(--tm-text-strong) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--tm-blue) !important; color:#fff !important; border-radius:12px !important; padding:12px 18px !important; }

.tm-form-card, .comment-respond, .wpcf7-form, .wpforms-form, .mc4wp-form, form:not(.tumarket-search-form):not(.woocommerce-product-search) { color: var(--tm-text-strong); }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], select, textarea {
  width:100%; max-width:100%; min-height:46px; padding:11px 14px; border:1px solid #cfcfcf; border-radius:var(--tm-radius-sm); background:#fff; color:var(--tm-text-strong); box-shadow:inset 0 1px 1px rgba(0,0,0,.02);
}
textarea { min-height:140px; resize:vertical; }
label { display:inline-block; margin-bottom:8px; color:var(--tm-text-strong); font-weight:600; }
::placeholder { color:#8e8e8e; opacity:1; }
input:focus, select:focus, textarea:focus { outline:none; border-color:#8bb8ff; box-shadow:0 0 0 4px rgba(52,131,250,.12); }
button, input[type="submit"], input[type="button"], .wp-element-button, .wpcf7-submit { min-height:46px; padding:0 20px; border:0; border-radius:12px; background:var(--tm-blue); color:#fff; font-weight:700; cursor:pointer; }
button:hover, input[type="submit"]:hover, input[type="button"]:hover, .wp-element-button:hover, .wpcf7-submit:hover { background:var(--tm-blue-dark); }

.tm-footer { background:#fff; padding-top:36px; border-top:1px solid var(--tm-border); }
.tm-footer-main { padding-bottom:18px; }
.tm-footer-main h3 { margin:0 0 10px; color:var(--tm-text-strong); font-size:1.3rem; }
.tm-footer-main p { margin:0; color:#666; line-height:1.8; max-width:82ch; }
.tm-footer-main p + p { margin-top:12px; }
.tm-footer-inline-link { color:inherit; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.tm-footer-inline-link:hover { color:var(--tm-blue-dark); }
.tm-footer-mission { display:inline-block; padding:8px 12px; border-radius:12px; background:rgba(0, 87, 255, 0.045); border:1px solid rgba(0, 87, 255, 0.08); }
.tm-footer-bottom { display:flex; justify-content:flex-start; gap:16px; padding:18px 0 28px; border-top:1px solid var(--tm-border); font-size:.95rem; color:#666; }
.tm-footer-bottom a { color:var(--tm-blue-dark); font-weight:700; }

.tm-header-top .tm-search-wrap { min-width: 0; }
.tm-mobile-panel { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 80; }
.tm-mobile-panel[hidden] { display: none !important; }
.tm-mobile-panel-inner { width: min(100%, 360px); height: 100%; background: #fff159; box-shadow: 18px 0 40px rgba(0,0,0,.18); overflow: auto; }
.tm-mobile-topbar { display:flex; align-items:center; gap: 10px; padding: 10px 14px; position: sticky; top: 0; background: #fff159; z-index: 2; border-bottom: 1px solid rgba(0,0,0,.08); }
.tm-mobile-search-wrap { flex: 1 1 auto; min-width: 0; }
.tm-mobile-close { width: 40px; height: 40px; display:inline-flex; align-items:center; justify-content:center; border:0; background:transparent; color:#333; }
.tm-mobile-account-card { background:#fff159; padding: 18px 18px 22px; border-bottom:1px solid rgba(0,0,0,.08); }
.tm-mobile-account-actions { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.tm-mobile-action { min-height: 44px; border-radius: 8px; background:#fff; border:1px solid rgba(0,0,0,.16); color:#3483fa; font-weight:700; display:flex; align-items:center; justify-content:center; }
.tm-mobile-action-primary { background:#3483fa; color:#fff; border-color:#3483fa; }
.tm-mobile-nav { background:#f5f5f5; }
.tm-mobile-menu-list li { border-top: 1px solid rgba(0,0,0,.06); }
.tm-mobile-menu-list a { display:flex; align-items:center; gap:14px; min-height:58px; padding: 0 18px; color:#333; font-size:1.08rem; font-weight:500; }
.tm-mobile-menu-icon { width: 24px; height: 24px; color:#666; }
.tm-mobile-cookie-note { padding: 18px; color:#666; font-size:.92rem; line-height:1.5; background:#f5f5f5; border-top:1px solid rgba(0,0,0,.06); }

@media (min-width: 1101px) {
  .tm-header-actions-mobile { display:none; }
}

@media (max-width: 1240px) {
  .tm-header-top { grid-template-columns: 152px minmax(260px,1fr) 300px; gap: 22px; }
  .tm-header-account { gap:18px; }
  .tm-menu { gap:16px; }
  .tm-membership-grid, .tm-circle-shortcuts, .tm-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tm-promo-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tm-offers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .tm-header-top {
    grid-template-columns: 52px minmax(0,1fr) 74px;
    min-height: var(--tm-header-height-mobile);
    gap: 8px;
    padding: 6px 0;
  }
  .tm-header-promo,
  .tm-header-bottom,
  .desktop-only,
  .tm-header-account,
  .tm-header-navs { display:none; }
  .tm-header-actions-mobile { display:flex; gap:2px; }
  .tm-brand-wordmark { display:none; }
  .tm-brand,
  .tm-brand-link { gap:0; }
  .tm-brand-badge-link { width:44px; height:32px; border-radius:16px; }
  .tumarket-search-form {
    grid-template-columns: 18px minmax(0,1fr);
    min-height:38px;
    height:38px;
    padding:0 12px;
    gap:9px;
    border-radius:4px;
    box-shadow:none;
    border:1px solid rgba(0,0,0,.08);
  }
  .tumarket-search-icon { display:block; width:17px; height:17px; color:#9b9b9b; }
  .tumarket-search-form .tumarket-search-field { min-height:38px; height:38px; font-size:.95rem; }
  .tumarket-search-button { display:none; }
  .tm-mobile-toggle, .tm-cart-link { width:36px; height:36px; }
  .tm-mobile-toggle .tm-icon, .tm-mobile-toggle svg, .tm-cart-link svg { width:24px; height:24px; }
  .tm-hero-banners { grid-template-columns: 1fr; }
  .tm-product-grid, .tm-post-grid, .tm-category-grid, .tm-product-grid-wide { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tm-content-grid { grid-template-columns:1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 16px), var(--tm-container)); }
  .tm-banner-card { min-height: 160px; padding: 20px; }
  .tm-banner-card h1 { font-size: 2rem; max-width: none; }
  .tm-banner-card h2 { font-size: 1.3rem; }
  .tm-shipping-bar { min-height: 46px; font-size: .95rem; flex-wrap: wrap; padding: 10px 14px; }
  .tm-circle-shortcuts { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; padding: 14px 0 0; }
  .tm-circle-shortcut-icon { width: 62px; height: 62px; }
  .tm-circle-shortcut { font-size: .88rem; }
  .tm-promo-cards, .tm-membership-grid, .tm-product-grid, .tm-post-grid, .tm-category-grid, .tm-product-grid-wide { grid-template-columns: 1fr; }
  .tm-promo-card, .tm-account-panel, .tm-single-card { padding: 20px; }
  .tm-membership-band { padding: 16px; }
  .tm-membership-head { display:grid; gap:8px; }
  .tm-wide-promo-copy { padding: 24px; }
  .tm-wide-promo-copy h2 { font-size: 1.7rem; }
  .tm-footer-bottom { display:grid; gap:10px; }
  .tm-mobile-panel-inner { width: 100%; }
}


.tm-search-wrap .tumarket-search-form input.tumarket-search-field:focus{border:0 !important;box-shadow:none !important;outline:none !important;}
.tm-search-wrap .tumarket-search-form input.tumarket-search-field::-webkit-search-decoration,.tm-search-wrap .tumarket-search-form input.tumarket-search-field::-webkit-search-cancel-button,.tm-search-wrap .tumarket-search-form input.tumarket-search-field::-webkit-search-results-button,.tm-search-wrap .tumarket-search-form input.tumarket-search-field::-webkit-search-results-decoration{display:none;}

.tumarket-search-form{position:relative;overflow:visible;}
.tumarket-search-results{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  background:#fff;
  border-radius:6px;
  box-shadow:0 12px 32px rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.08);
  z-index:80;
  overflow:hidden;
}
.tumarket-search-form.is-search-open .tumarket-search-field{
  box-shadow:none !important;
}
.tm-search-suggestions-list{display:flex;flex-direction:column;}
.tm-search-suggestion{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  text-decoration:none;
  color:var(--tm-text-strong);
  border-bottom:1px solid #f1f1f1;
  background:#fff;
}
.tm-search-suggestion:hover{background:#fafafa;}
.tm-search-suggestion-thumb{
  width:46px;
  height:46px;
  border-radius:6px;
  background:#f6f6f6;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 46px;
}
.tm-search-suggestion-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tm-search-suggestion-thumb-placeholder::before{
  content:'';
  width:22px;
  height:22px;
  border-radius:4px;
  background:#e5e5e5;
  display:block;
}
.tm-search-suggestion-copy{display:flex;flex-direction:column;gap:4px;min-width:0;}
.tm-search-suggestion-title{
  font-size:.92rem;
  line-height:1.25;
  color:#333;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tm-search-suggestion-price{
  font-size:.88rem;
  font-weight:700;
  color:#111;
}
.tm-search-view-all{
  display:block;
  padding:12px;
  text-align:center;
  text-decoration:none;
  font-size:.92rem;
  font-weight:700;
  color:#3483fa;
  background:#fff;
}
.tm-search-view-all:hover{background:#fafafa;}
.tm-search-empty{
  padding:14px 12px;
  font-size:.92rem;
  color:#666;
  background:#fff;
}
@media (max-width: 767px){
  .tumarket-search-results{
    top:calc(100% + 6px);
    border-radius:10px;
  }
  .tm-search-suggestion{padding:10px;gap:10px;}
  .tm-search-suggestion-thumb{width:42px;height:42px;flex-basis:42px;}
  .tm-search-suggestion-title{font-size:.88rem;}
}


/* v1.6.4 header refinements */
.tm-brand-wordmark{display:block;line-height:1;flex:0 0 auto;font-weight:800;letter-spacing:-.045em;color:#2f3279;}
.tm-brand-wordmark-single{font-size:2rem;}
.tm-mobile-account-card{background:#fff159;padding:16px 18px 20px;border-bottom:1px solid rgba(0,0,0,.08);display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center;}
.tm-mobile-user-icon{width:44px;height:44px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.55);color:#333;}
.tm-mobile-user-icon svg{width:22px;height:22px;}
.tm-mobile-account-copy strong{display:block;font-size:1rem;color:#333;}
.tm-mobile-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px;grid-column:1 / -1;}
.tm-mobile-menu-list a{font-size:1rem;}
.tumarket-search-form input[type="search"]{border-radius:0 !important;box-shadow:none !important;background:transparent !important;}
.tumarket-search-form button.tumarket-search-button{border-radius:0 !important;}
@media (max-width:1100px){.tm-brand-badge-link{width:44px;height:32px;border-radius:0;}.tm-mobile-user-icon{width:40px;height:40px;}.tm-mobile-user-icon svg{width:20px;height:20px;}}


.tm-brand-badge-link{color:#2f3279;display:flex;align-items:center;justify-content:center;}
.tm-brand-wordmark-single{display:inline-flex;align-items:center;white-space:nowrap;font-weight:800;letter-spacing:-.04em;line-height:1;color:#2f3279;font-size:2rem;}
.tm-brand-badge-link svg{width:34px;height:34px;display:block;stroke-width:0;}
.tm-brand-link{gap:10px;}
.tm-mobile-panel .tm-mobile-account-card{grid-template-columns:52px minmax(0,1fr);gap:12px;padding:14px 18px 16px;align-items:center;}
.tm-mobile-user-icon{width:52px;height:52px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#fff;border:3px solid rgba(255,255,255,.75);box-shadow:0 1px 0 rgba(0,0,0,.08);}
.tm-mobile-user-icon img,.tm-mobile-user-icon svg{width:100%;height:100%;display:block;}
.tm-mobile-account-copy{display:flex;flex-direction:column;gap:2px;min-width:0;}
.tm-mobile-account-copy strong{font-size:1.05rem;font-weight:700;line-height:1.15;color:#1f1f1f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tm-mobile-profile-link{font-size:.96rem;font-weight:500;color:#1f1f1f;text-decoration:none;line-height:1.2;}
.tm-mobile-profile-link:hover{text-decoration:underline;}
.tm-mobile-account-actions{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:2px;}
.tm-mobile-account-actions .tm-mobile-action:only-child{grid-column:1 / -1;}
@media (min-width:1101px){
  .tm-brand-badge-link{width:auto;height:auto;}
  .tm-brand-badge-link svg{width:38px;height:38px;}
}
@media (max-width:1100px){
  .tm-brand-link{gap:0;}
  .tm-brand-wordmark-single{display:none;}
  .tm-brand-badge-link{width:auto;height:auto;border-radius:0;background:none;}
  .tm-brand-badge-link svg{width:31px;height:31px;}
  .tm-mobile-user-icon{width:48px;height:48px;}
}


/* v1.6.6 mobile account logic + brand sizing */
.tm-mobile-toggle .tm-icon{display:flex;align-items:center;justify-content:center;}
.tm-mobile-toggle .tm-icon-close[hidden],.tm-mobile-toggle .tm-icon-menu[hidden]{display:none !important;}
.tm-mobile-panel{position:fixed;left:0;right:0;top:var(--tm-header-height-mobile);bottom:0;background:#ebebeb;z-index:49;overflow:auto;}
.tm-mobile-panel-inner{min-height:100%;background:#ebebeb;}
.tm-mobile-topbar{display:none !important;}
.tm-brand-link{gap:12px;}
.tm-brand-badge-link svg{width:42px;height:42px;}
.tm-brand-wordmark-single{font-size:1.86rem;letter-spacing:-.05em;}
.tm-mobile-account-card{background:#fff159;padding:16px 18px 18px;display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:center;border-bottom:1px solid rgba(0,0,0,.08);}
.tm-mobile-account-copy strong{display:block;font-size:1.58rem;line-height:1.05;color:#1f1f1f;font-weight:700;}
.tm-mobile-profile-link{display:inline-flex;margin-top:4px;font-size:1rem;color:#333;}
.tm-mobile-account-actions{grid-column:1 / -1;display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;}
.tm-mobile-action{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 14px;border-radius:16px;background:#fff;border:1px solid rgba(0,0,0,.08);font-size:.88rem;font-weight:600;color:#333;}
.tm-mobile-action-primary{background:#3483fa;color:#fff;border-color:#3483fa;}
.tm-mobile-account-card.is-guest .tm-mobile-account-copy{align-self:center;}
.tm-mobile-account-card.is-guest .tm-mobile-account-copy strong{font-size:1.22rem;}
.tm-mobile-account-card.is-guest .tm-mobile-account-actions{margin-top:4px;}
.tm-mobile-user-icon{width:52px;height:52px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#fff;border:3px solid rgba(255,255,255,.75);box-shadow:0 1px 0 rgba(0,0,0,.08);}
.tm-mobile-user-icon svg{width:24px;height:24px;}
.tm-mobile-user-icon img{width:100%;height:100%;object-fit:cover;}
@media (max-width:1100px){
  .tm-brand-wordmark-single{display:none;}
  .tm-brand-badge-link svg{width:36px;height:36px;}
  .tm-brand-link{gap:0;}
  .tm-header-actions-mobile{display:flex;gap:2px;}
  .tm-mobile-toggle,.tm-cart-link{width:36px;height:36px;}
  .tm-mobile-toggle .tm-icon,.tm-mobile-toggle svg,.tm-cart-link svg{width:24px;height:24px;}
}
@media (min-width:1101px){
  .tm-mobile-panel{display:none !important;}
}


.tm-menu > li.menu-item-has-children > a::after{
  content:'';
  width:10px;
  height:10px;
  display:inline-block;
  margin-left:4px;
  border-right:1.8px solid currentColor;
  border-bottom:1.8px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  transform-origin:center;
}
.tm-mobile-menu-list li.has-children{display:block;}
.tm-mobile-subtoggle{
  width:100%;
  min-height:58px;
  padding:0 18px;
  border:0;
  background:transparent;
  color:#333;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font:inherit;
  cursor:pointer;
}
.tm-mobile-subtoggle-main{
  display:flex;
  align-items:center;
  gap:14px;
}
.tm-mobile-subtoggle-arrow{
  width:18px;
  height:18px;
  color:#7a7a7a;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease;
  flex:0 0 auto;
}
.tm-mobile-subtoggle-arrow svg{width:16px;height:16px;display:block;}
.tm-mobile-menu-list li.is-open .tm-mobile-subtoggle-arrow{transform:rotate(180deg);}
.tm-mobile-submenu{
  list-style:none;
  margin:0;
  padding:0 0 10px;
  background:#f7f7f7;
}
.tm-mobile-submenu li{border-top:1px solid rgba(0,0,0,.04);}
.tm-mobile-submenu a{
  display:block;
  min-height:auto;
  padding:12px 18px 12px 56px;
  font-size:.95rem;
  color:#444;
}
@media (min-width:1101px){
  .tm-menu > li.menu-item-has-children:hover > a::after{transform:rotate(45deg) translateY(-1px);}
}


/* v1.6.8 fixes */
.tm-mobile-toggle .tm-icon-close{display:none;}
.tm-mobile-toggle[aria-expanded="true"] .tm-icon-close{display:flex;}
.tm-mobile-toggle[aria-expanded="true"] .tm-icon-menu{display:none;}
.tm-mobile-toggle[aria-expanded="false"] .tm-icon-menu{display:flex;}
.tm-mobile-toggle[aria-expanded="false"] .tm-icon-close{display:none;}
@media (min-width:1101px){
  .tm-header-navs{gap:18px;}
  .tm-menu{gap:18px;}
  .tm-menu.secondary{gap:14px;}
  .tm-header-account{gap:18px;}
}
@media (min-width:1101px) and (max-width:1280px){
  .tm-header-top{grid-template-columns:150px minmax(340px,1fr) 300px;gap:22px;}
  .tm-header-bottom-inner{grid-template-columns:150px minmax(0,1fr) auto;gap:12px;}
  .tm-header-navs{gap:12px;}
  .tm-menu{gap:14px;font-size:.88rem;}
  .tm-menu.secondary{gap:12px;}
  .tm-header-account{gap:14px;font-size:.88rem;}
}


/* === v1.7 Mercado-like home refresh === */
.tm-menu .sub-menu{
  top:calc(100% + 14px);
  padding:14px 10px 10px;
  overflow:visible;
}
.tm-menu .sub-menu::before{
  content:'';
  position:absolute;
  top:-10px;
  left:28px;
  width:18px;
  height:18px;
  background:#fff;
  border-left:1px solid rgba(0,0,0,.08);
  border-top:1px solid rgba(0,0,0,.08);
  transform:rotate(45deg);
  border-top-left-radius:4px;
}
.tm-menu > li:last-child .sub-menu,
.tm-menu > li.tm-menu-item-resources .sub-menu{
  left:auto;
  right:0;
}
.tm-menu > li:last-child .sub-menu::before,
.tm-menu > li.tm-menu-item-resources .sub-menu::before{
  left:auto;
  right:28px;
}
.tm-home-ml-hero{ padding-top:24px; }
.tm-hero-banners-market{ grid-template-columns:minmax(0,1.55fr) minmax(280px,.9fr); }
.tm-home-main-hero{ min-height:320px; background:linear-gradient(135deg,#fff 0%,#f7f7f7 60%,#efefef 100%); }
.tm-home-main-hero h1{ max-width:13ch; }
.tm-hero-stack-market .tm-mini-callout{ min-height:152px; }
.tm-ml-benefits-bar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  margin-top:18px;
  background:rgba(0,0,0,.06);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--tm-shadow);
}
.tm-ml-benefits-bar article{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  background:#fff;
}
.tm-ml-benefit-icon,
.tm-market-strip-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf3ff;
  color:var(--tm-blue-dark);
  flex:0 0 44px;
}
.tm-ml-benefit-icon svg,
.tm-market-strip-icon svg{ width:22px; height:22px; }
.tm-ml-benefits-bar strong,
.tm-market-strip-card strong{ display:block; color:var(--tm-text-strong); line-height:1.2; }
.tm-ml-benefits-bar span,
.tm-market-strip-card span{ color:#666; font-size:.92rem; line-height:1.45; }
.tm-circle-shortcuts-market{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.tm-circle-shortcuts-market .tm-circle-shortcut-icon{ width:70px; height:70px; }
.tm-market-strip-section{ margin-top:8px; }
.tm-market-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.tm-market-strip-card,
.tm-empty-state-card{
  background:#fff;
  border-radius:18px;
  box-shadow:var(--tm-shadow);
  padding:20px 22px;
}
.tm-market-strip-card{ display:flex; align-items:flex-start; gap:14px; }
.tm-category-grid-market{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.tm-category-item-market{ min-height:150px; gap:12px; }
.tm-product-grid-market{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.tm-product-grid-six{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.tm-market-products-block .tm-product-body h3,
.tm-market-category-products .tm-product-body h3{ min-height:2.8em; }
.tm-wide-promo-market{
  min-height:280px;
  background:linear-gradient(135deg, rgba(0,0,0,.74), rgba(0,0,0,.52)), linear-gradient(135deg,#0f1828 0%,#273d67 54%,#1a1a1a 100%);
}
.tm-wide-promo-market .tm-wide-promo-copy{ max-width:560px; }
.tm-empty-state{
  grid-column:1 / -1;
  background:#fff;
  border-radius:16px;
  box-shadow:var(--tm-shadow);
  padding:22px;
  color:#666;
}
@media (max-width: 1240px){
  .tm-ml-benefits-bar{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tm-circle-shortcuts-market,
  .tm-category-grid-market,
  .tm-product-grid-six{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1100px){
  .tm-hero-banners-market,
  .tm-market-strip,
  .tm-ml-benefits-bar{ grid-template-columns:1fr; }
  .tm-circle-shortcuts-market{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .tm-product-grid-market,
  .tm-product-grid-six,
  .tm-category-grid-market{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px){
  .tm-home-main-hero{ min-height:220px; }
  .tm-circle-shortcuts-market{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
  .tm-market-strip,
  .tm-ml-benefits-bar,
  .tm-product-grid-market,
  .tm-product-grid-six,
  .tm-category-grid-market{ grid-template-columns:1fr; }
  .tm-market-strip-card,
  .tm-ml-benefits-bar article{ padding:16px 18px; }
}

/* === v1.7.1 closer-to-ML home + author fixes === */
.tm-menu .sub-menu{
  background:#f5f5f5;
  border:1px solid rgba(0,0,0,.06);
  border-top:4px solid var(--tm-yellow);
  border-radius:0 0 14px 14px;
  box-shadow:0 18px 32px rgba(0,0,0,.14);
}
.tm-menu .sub-menu::before{
  top:-9px;
  width:16px;
  height:16px;
  background:#f5f5f5;
  border-left:1px solid rgba(0,0,0,.06);
  border-top:1px solid rgba(0,0,0,.06);
}
.tm-menu .sub-menu a{
  border-radius:8px;
}
.tm-home-hero-mlplus{
  background:linear-gradient(180deg,var(--tm-yellow) 0 74%, transparent 74% 100%);
  padding:18px 0 4px;
}
.tm-home-hero-mlplus-grid{
  display:grid;
  grid-template-columns:minmax(0,1.72fr) minmax(280px,.88fr);
  gap:16px;
  align-items:stretch;
}
.tm-home-hero-main,
.tm-home-mini-promo{
  border-radius:18px;
  box-shadow:var(--tm-shadow);
  overflow:hidden;
}
.tm-home-hero-main{
  min-height:320px;
  padding:34px;
  display:grid;
  align-content:end;
  gap:12px;
  background:linear-gradient(135deg,rgba(0,0,0,.68),rgba(0,0,0,.22)), linear-gradient(135deg,#0d1627 0%,#17263f 46%,#2c4873 100%);
  color:#fff;
}
.tm-home-hero-main .tm-banner-overline,
.tm-home-mini-promo .tm-banner-overline{color:rgba(255,255,255,.82);}
.tm-home-hero-main h1{margin:0;max-width:10ch;font-size:clamp(2.2rem,4.6vw,3.5rem);line-height:1.02;color:#fff;}
.tm-home-hero-main p{margin:0;max-width:48ch;color:rgba(255,255,255,.92);line-height:1.6;}
.tm-home-hero-side{display:grid;gap:16px;}
.tm-home-mini-promo{min-height:152px;padding:24px;display:grid;align-content:end;gap:8px;}
.tm-home-mini-promo h2{margin:0;font-size:1.35rem;line-height:1.15;max-width:15ch;}
.tm-home-mini-promo a{font-weight:700;}
.tm-home-mini-promo-lilac{background:linear-gradient(135deg,#ede6ff 0%,#d9d3ff 100%);color:#2e255f;}
.tm-home-mini-promo-lilac .tm-banner-overline{color:#6a5bbd;}
.tm-home-mini-promo-white{background:linear-gradient(135deg,#fff 0%,#f5f5f5 100%);color:#1f1f1f;}
.tm-home-mini-promo-white .tm-banner-overline{color:#555;}
.tm-home-benefits-wallet{margin-top:18px;}
.tm-market-strip-wallet{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.tm-market-strip-card-wallet{align-items:center;background:linear-gradient(180deg,#fff 0%,#fbfbfb 100%);}
.tm-circle-shortcuts-mlplus{
  margin-top:18px;
  margin-bottom:6px;
  background:#fff;
  border-radius:18px;
  box-shadow:var(--tm-shadow);
  padding:22px 18px;
}
.tm-circle-shortcuts-mlplus .tm-circle-shortcut{gap:10px;}
.tm-circle-shortcuts-mlplus .tm-circle-shortcut-icon{background:#f5f5f5;border:1px solid #ececec;}
.tm-categories-showcase-mlplus{margin-top:6px;}
.tm-category-grid-mlplus{grid-template-columns:repeat(8,minmax(0,1fr));gap:14px;}
.tm-category-item-mlplus{min-height:138px;border-radius:16px;padding:18px 14px;background:#fff;}
.tm-category-item-mlplus .tm-category-icon{width:50px;height:50px;border-radius:50%;background:#f5f5f5;}
.tm-market-products-block-first{margin-top:6px;}
.tm-wide-promo-market-mlplus{min-height:300px;border-radius:22px;}
.tm-product-grid-six .tm-product-card{min-height:100%;}
.tm-product-card-premium .tm-product-body{padding-bottom:16px;}
.tm-author-page{padding:28px 0 42px;}
.tm-author-hero{
  background:linear-gradient(135deg,#fff 0%,#f7f7f7 100%);
  border-radius:22px;
  box-shadow:var(--tm-shadow);
  padding:28px;
  margin-bottom:24px;
}
.tm-author-identity{display:flex;align-items:center;gap:22px;}
.tm-author-avatar img{width:104px;height:104px;border-radius:50%;display:block;box-shadow:0 10px 22px rgba(0,0,0,.10);}
.tm-author-copy h1{margin:4px 0 10px;font-size:2.15rem;line-height:1.05;color:var(--tm-text-strong);}
.tm-author-copy p{margin:0;max-width:68ch;color:#555;line-height:1.7;}
.tm-author-meta{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:14px;color:#666;font-weight:600;}
.tm-author-meta a{color:var(--tm-blue);}
.tm-author-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.tm-author-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:var(--tm-shadow);display:flex;flex-direction:column;}
.tm-author-card-thumb{display:block;aspect-ratio:16/10;background:#e7e7e7;overflow:hidden;}
.tm-author-card-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.tm-author-card-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:3rem;font-weight:800;color:#8b8b8b;background:linear-gradient(135deg,#efefef,#dcdcdc);}
.tm-author-card-body{padding:18px;display:grid;gap:10px;align-content:start;}
.tm-author-card-body h2{margin:0;font-size:1.18rem;line-height:1.28;color:var(--tm-text-strong);}
.tm-author-card-body p{margin:0;color:#555;line-height:1.65;}
.tm-author-pagination{margin-top:24px;}
.tm-author-pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap;}
.tm-author-pagination .page-numbers{min-width:42px;height:42px;padding:0 14px;border-radius:12px;background:#fff;box-shadow:var(--tm-shadow);display:inline-flex;align-items:center;justify-content:center;}
.tm-author-pagination .page-numbers.current{background:var(--tm-blue);color:#fff;}
@media (max-width:1240px){
  .tm-home-hero-mlplus-grid{grid-template-columns:minmax(0,1fr) 320px;}
  .tm-category-grid-mlplus{grid-template-columns:repeat(4,minmax(0,1fr));}
  .tm-author-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:1100px){
  .tm-home-hero-mlplus{background:linear-gradient(180deg,var(--tm-yellow) 0 46%, transparent 46% 100%);}
  .tm-home-hero-mlplus-grid,
  .tm-market-strip-wallet{grid-template-columns:1fr;}
}
@media (max-width:720px){
  .tm-home-hero-main{min-height:240px;padding:22px;}
  .tm-home-mini-promo{min-height:128px;padding:18px;}
  .tm-circle-shortcuts-mlplus{padding:16px 12px;}
  .tm-category-grid-mlplus,
  .tm-author-grid{grid-template-columns:1fr;}
  .tm-author-hero{padding:20px;}
  .tm-author-identity{align-items:flex-start;flex-direction:column;gap:16px;}
  .tm-author-copy h1{font-size:1.8rem;}
}


/* === v1.7.3 home refinement === */
.tm-market-category-products .tm-section-head h2{max-width:70%;}
.tm-market-category-products .tm-section-head a{white-space:nowrap;}
.tm-product-card-premium .tm-card-link{opacity:.92;}
.tm-product-card-premium:hover .tm-card-link{transform:translateX(2px);}
@media (max-width:720px){
  .tm-market-category-products .tm-section-head{align-items:flex-start;}
  .tm-market-category-products .tm-section-head h2{max-width:none;}
}

/* v1.7.5 header + footer pro */
body.admin-bar .tm-header{top:32px;}
@media (max-width:782px){body.admin-bar .tm-header{top:46px;}}
.tm-header{
  background:linear-gradient(180deg,#ffe600 0%,#fff159 100%);
  transition:box-shadow .2s ease, background .2s ease, transform .2s ease;
}
.tm-header.is-scrolled{
  box-shadow:0 10px 30px rgba(0,0,0,.10);
}
.tm-header-top{
  min-height:74px;
  padding-top:10px;
  padding-bottom:6px;
}
.tumarket-search-form{
  border-radius:14px;
  min-height:46px;
  grid-template-columns:minmax(0,1fr) 56px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.tumarket-search-form .tumarket-search-field,
.tumarket-search-button{height:46px;min-height:46px;}
.tumarket-search-form:hover,.tumarket-search-form:focus-within{box-shadow:0 10px 28px rgba(0,0,0,.12);}
.tumarket-search-button{border-left:1px solid rgba(0,0,0,.06);}
.tm-header-promo{
  border-radius:14px;
  min-height:46px;
  box-shadow:0 8px 24px rgba(0,0,0,.07);
  border:1px solid rgba(0,0,0,.05);
}
.tm-header-bottom{padding-bottom:0;}
.tm-header-bottom-inner{
  min-height:40px;
  padding-bottom:8px;
}
.tm-location{padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.42);}
.tm-menu > li > a,
.tm-header-account a{
  min-height:36px;
  padding:0 4px;
  font-weight:500;
}
.tm-menu > li.menu-item-has-children > a::after{
  content:'▾';
  font-size:.8em;
  margin-left:4px;
  opacity:.72;
}
.tm-menu .sub-menu{
  display:block;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  top:calc(100% + 16px);
  border-radius:16px;
  padding:16px 10px 10px;
  box-shadow:0 22px 44px rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.08);
}
.tm-menu .sub-menu::before{
  content:'';
  position:absolute;
  left:26px;
  top:-9px;
  width:18px;
  height:18px;
  background:#fff;
  border-left:1px solid rgba(0,0,0,.08);
  border-top:1px solid rgba(0,0,0,.08);
  transform:rotate(45deg);
}
.tm-menu li:hover > .sub-menu,
.tm-menu li:focus-within > .sub-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.tm-menu .sub-menu a{font-size:.93rem;padding:11px 13px;}
.tm-menu .sub-menu a:hover{background:#f7f7f7;color:var(--tm-blue-dark);}
.tm-header-utility-strip{
  border-top:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.28);
  backdrop-filter:blur(6px);
}
.tm-header-utility-inner{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:.84rem;
  color:#4b4b4b;
}
.tm-header-utility-group{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.tm-header-utility-group a,
.tm-header-utility-group span{white-space:nowrap;}
.tm-header-utility-group a:hover{color:var(--tm-blue-dark);}
.tm-header-utility-group-right{opacity:.92;}

.tm-footer{
  background:#fff;
  border-top:1px solid rgba(0,0,0,.08);
  margin-top:36px;
}
.tm-footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));
  gap:28px;
  padding:34px 0 22px;
}
.tm-footer-col h3,
.tm-footer-col h4{
  margin:0 0 12px;
  color:#111827;
}
.tm-footer-col h4{font-size:1rem;}
.tm-footer-col p{
  margin:0;
  color:#5f6368;
  line-height:1.75;
}
.tm-footer-col p + p{margin-top:12px;}
.tm-footer-links{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.tm-footer-links a{color:#5f6368;}
.tm-footer-links a:hover{color:var(--tm-blue-dark);}
.tm-footer-col-brand{max-width:520px;}
.tm-footer-mission{
  display:inline-block;
  padding:10px 13px;
  background:#f7f8fa;
  border:1px solid #ebedf0;
  border-radius:14px;
}
.tm-footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 0 28px;
  border-top:1px solid rgba(0,0,0,.08);
  color:#6b7280;
  font-size:.92rem;
}
.tm-footer-bottom-links{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.tm-footer-bottom-links a{color:#4b5563;font-weight:600;}
.tm-footer-bottom-links a:hover{color:var(--tm-blue-dark);}

@media (max-width:1100px){
  .tm-header-top{grid-template-columns:132px minmax(280px,1fr) 250px;gap:18px;}
  .tm-header-utility-group-right{display:none;}
  .tm-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .tm-footer-col-brand{grid-column:1 / -1;max-width:none;}
}
@media (max-width:782px){
  .tm-header{background:#ffe600;}
  .tm-header-top{padding-top:8px;padding-bottom:8px;min-height:var(--tm-header-height-mobile);}
  .tm-header-utility-strip{display:none;}
  .tm-location{display:none;}
  .tumarket-search-form{border-radius:10px;min-height:40px;}
  .tumarket-search-form .tumarket-search-field,
  .tumarket-search-button{height:40px;min-height:40px;}
  .tm-footer-grid{grid-template-columns:1fr;gap:22px;padding-top:28px;}
  .tm-footer-bottom{display:grid;gap:10px;justify-content:flex-start;}
}


/* === v1.7.6 header/footer refinement === */
@media (min-width: 1101px){
  .tm-header-top{
    grid-template-columns: 118px minmax(420px,1fr) 286px;
    gap: 18px;
    min-height: 64px;
    padding-top: 10px;
  }
  .tm-brand-link{gap:8px;}
  .tm-brand-badge-link svg{width:34px;height:34px;}
  .tm-brand-wordmark-single{font-size:1.62rem;}
  .tumarket-search-form{
    grid-template-columns:minmax(0,1fr) 52px;
    min-height:44px;
    border-radius:6px;
    box-shadow:0 1px 2px rgba(0,0,0,.10);
    border:1px solid rgba(0,0,0,.08);
  }
  .tumarket-search-form .tumarket-search-field,
  .tumarket-search-button{height:44px;min-height:44px;}
  .tm-header-promo{min-height:44px;padding:0 10px 0 12px;font-size:.78rem;}
  .tm-header-promo strong{padding:8px 14px;font-size:.92rem;}
  .tm-header-bottom{padding-bottom:0;}
  .tm-header-bottom-inner{
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    min-height:38px;
  }
  .tm-location{display:none;}
  .tm-header-navs{
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    min-width:0;
  }
  .tm-menu{gap:10px;font-size:.82rem;flex-wrap:nowrap;}
  .tm-menu.secondary{gap:10px;}
  .tm-menu > li > a{white-space:nowrap;}
  .tm-header-account{gap:12px;font-size:.82rem;}
  .tm-header-account a{white-space:nowrap;}
  .tm-cart-link-desktop{margin-left:0;}
  .tm-menu .sub-menu{top:calc(100% + 10px);}
}
@media (min-width: 1101px) and (max-width: 1320px){
  .tm-header-top{grid-template-columns: 96px minmax(320px,1fr) 250px; gap:14px;}
  .tm-brand-wordmark-single{display:none;}
  .tm-menu,.tm-menu.secondary,.tm-header-account{font-size:.76rem;}
  .tm-menu{gap:8px;}
  .tm-menu.secondary{gap:8px;}
  .tm-header-account{gap:10px;}
}
@media (max-width: 1100px){
  .tm-header{position:sticky;}
  .tm-header-top{
    grid-template-columns: 42px minmax(0,1fr) 72px;
    min-height: 52px;
    gap: 8px;
    padding: 8px 0;
  }
  .tm-brand-badge-link,
  .tm-brand-badge{width:auto;height:auto;}
  .tm-brand-badge-link svg{width:28px;height:28px;}
  .tumarket-search-form{
    grid-template-columns: 18px minmax(0,1fr);
    min-height:40px;
    height:40px;
    padding:0 12px;
    gap:8px;
    border-radius:4px;
    box-shadow:none;
    border:1px solid rgba(0,0,0,.08);
    background:#fff;
  }
  .tumarket-search-form .tumarket-search-field{height:40px;min-height:40px;font-size:.92rem;}
  .tm-header-actions-mobile{display:flex;justify-content:flex-end;gap:0;}
  .tm-mobile-toggle,.tm-cart-link{
    width:34px;height:34px;border-radius:4px;
  }
  .tm-mobile-toggle svg,.tm-cart-link svg{width:22px;height:22px;}
}
@media (max-width: 480px){
  .tm-header-top{grid-template-columns: 34px minmax(0,1fr) 64px;gap:6px;}
  .tm-brand-badge-link svg{width:24px;height:24px;}
  .tumarket-search-form{min-height:38px;height:38px;padding:0 10px;}
  .tumarket-search-form .tumarket-search-field{height:38px;min-height:38px;font-size:.88rem;}
  .tm-mobile-toggle,.tm-cart-link{width:32px;height:32px;}
}
.tm-footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;}
@media (max-width: 900px){
  .tm-footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 640px){
  .tm-footer-grid{grid-template-columns:1fr;}
}


/* === v1.7.7 surgical header refinement === */
.tm-brand-wordmark-single{
  display:block;
  font-size:1.82rem;
  font-weight:800;
  letter-spacing:-.055em;
  line-height:1;
  color:#2f3279;
}
.tm-brand-badge-link,
.tm-brand-badge-link svg{display:block;}
.tm-brand-badge-link{color:#2f3279;}
.tm-menu > li.menu-item-has-children > a::after{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  margin-left:6px;
  border-right:1.8px solid currentColor;
  border-bottom:1.8px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  opacity:.68;
}
.tm-menu .sub-menu::before{
  width:14px;
  height:14px;
  top:-7px;
  left:24px;
}
.tm-menu .sub-menu a{white-space:nowrap;}
.tumarket-search-form{
  border-radius:6px;
  min-height:40px;
  grid-template-columns:minmax(0,1fr) 48px;
  padding-left:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.10);
}
.tumarket-search-form .tumarket-search-field,
.tumarket-search-button{height:40px;min-height:40px;}
.tm-header-promo{
  min-height:40px;
  border-radius:20px;
  box-shadow:none;
}
.tm-header-promo strong{padding:8px 15px;}
.tm-header-utility-inner{font-size:.8rem;}
.tm-header.is-scrolled{box-shadow:0 4px 16px rgba(0,0,0,.08);}

@media (min-width:1281px){
  .tm-header-top{
    grid-template-columns:180px minmax(0,1fr) 260px;
    gap:22px;
    min-height:64px;
    padding-top:10px;
    padding-bottom:6px;
  }
  .tm-brand-link{gap:10px;}
  .tm-brand-badge-link svg{width:31px;height:31px;}
  .tm-header-bottom-inner{
    grid-template-columns:minmax(0,1fr) auto;
    gap:18px;
    min-height:36px;
    padding-bottom:8px;
  }
  .tm-header-navs{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:center;
    min-width:0;
  }
  .desktop-nav .tm-menu{gap:18px;font-size:.84rem;}
  .desktop-nav.secondary-nav .tm-menu{gap:16px;font-size:.82rem;}
  .tm-header-account{gap:16px;font-size:.82rem;padding-left:6px;}
}

@media (min-width:1101px) and (max-width:1280px){
  .tm-header-top{
    grid-template-columns:150px minmax(0,1fr) 225px;
    gap:14px;
    min-height:62px;
  }
  .tm-brand-badge-link svg{width:29px;height:29px;}
  .tm-brand-wordmark-single{font-size:1.66rem;}
  .tm-header-bottom-inner{
    grid-template-columns:1fr;
    gap:6px;
    align-items:stretch;
    padding-bottom:8px;
  }
  .tm-header-navs{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:16px;
    align-items:center;
  }
  .desktop-nav .tm-menu{gap:12px;font-size:.78rem;}
  .desktop-nav.secondary-nav .tm-menu{gap:11px;font-size:.77rem;}
  .tm-header-account{justify-self:end;gap:14px;font-size:.79rem;}
  .tm-header-utility-group-right{display:none;}
}

@media (max-width:1100px){
  .tm-header{background:#ffe600;}
  .tm-header-top{
    grid-template-columns:88px minmax(0,1fr) 76px;
    min-height:56px;
    gap:8px;
    padding:8px 0;
    align-items:center;
  }
  .tm-brand{min-width:0;}
  .tm-brand-link{gap:6px;}
  .tm-brand-wordmark-single{display:none;}
  .tm-brand-badge-link svg{width:25px;height:25px;}
  .tm-header-promo,
  .tm-header-bottom,
  .tm-header-utility-strip,
  .desktop-only,
  .tm-header-navs,
  .tm-location{display:none !important;}
  .tm-search-wrap{min-width:0;}
  .tumarket-search-form{
    min-height:38px;
    height:38px;
    grid-template-columns:minmax(0,1fr) 40px;
    padding-left:12px;
    border-radius:6px;
    box-shadow:0 1px 2px rgba(0,0,0,.10);
  }
  .tumarket-search-form .tumarket-search-field,
  .tumarket-search-button{height:38px;min-height:38px;font-size:.9rem;}
  .tumarket-search-button{width:40px;padding:0 10px;}
  .tm-header-actions-mobile{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:4px;
  }
  .tm-mobile-toggle,.tm-cart-link{
    width:34px;
    height:34px;
    border-radius:4px;
  }
  .tm-mobile-toggle svg,.tm-cart-link svg{width:22px;height:22px;}
  .tm-mobile-panel{top:56px;}
}

@media (max-width:640px){
  .container{width:min(calc(100% - 24px),var(--tm-container));}
  .tm-header-top{grid-template-columns:72px minmax(0,1fr) 72px;gap:6px;}
  .tm-brand-badge-link svg{width:23px;height:23px;}
  .tumarket-search-form{min-height:36px;height:36px;grid-template-columns:minmax(0,1fr) 36px;padding-left:10px;}
  .tumarket-search-form .tumarket-search-field,
  .tumarket-search-button{height:36px;min-height:36px;font-size:.86rem;}
  .tumarket-search-field::placeholder{font-size:.84rem;}
  .tm-mobile-toggle,.tm-cart-link{width:32px;height:32px;}
}


/* === v1.7.8 pixel-perfect header pass === */
.tm-brand-link{white-space:nowrap;min-width:0;}
.tm-brand-badge-link{color:#2f3279;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;}
.tm-brand-badge,.tm-brand-badge-link svg{width:30px;height:30px;display:block;}
.tm-brand-wordmark-single{
  display:block;
  font-size:1.62rem;
  font-weight:800;
  letter-spacing:-.055em;
  line-height:1;
  color:#2f3279;
  white-space:nowrap;
}
.tumarket-search-form,
.tumarket-search-form:hover,
.tumarket-search-form:focus-within,
.tumarket-search-form input[type="search"],
.tumarket-search-form button.tumarket-search-button{
  border-radius:0 !important;
}
.tumarket-search-form{
  min-height:40px;
  height:40px;
  grid-template-columns:minmax(0,1fr) 46px;
  padding-left:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.12);
  border:1px solid rgba(0,0,0,.10);
  overflow:hidden;
}
.tumarket-search-form .tumarket-search-field,
.tumarket-search-button{
  min-height:40px;
  height:40px;
}
.tumarket-search-button{
  width:46px;
  padding:0 12px;
}
.tm-menu > li.menu-item-has-children > a::after{
  width:6px;
  height:6px;
  margin-left:7px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  opacity:.7;
}
.tm-menu .sub-menu::before{
  width:12px;
  height:12px;
  top:-6px;
  border-top-left-radius:2px;
}
@media (min-width:1281px){
  .tm-header-top{
    grid-template-columns:170px minmax(0,1fr) 258px;
    gap:18px;
    min-height:64px;
    padding-top:10px;
    padding-bottom:6px;
  }
  .tm-header-bottom-inner{
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    min-height:34px;
    padding-bottom:8px;
  }
  .tm-header-navs{gap:18px;}
  .desktop-nav .tm-menu{gap:14px;font-size:.82rem;}
  .desktop-nav.secondary-nav .tm-menu{gap:12px;font-size:.8rem;}
  .tm-header-account{gap:12px;font-size:.8rem;}
}
@media (min-width:1101px) and (max-width:1280px){
  .tm-header-top{
    grid-template-columns:146px minmax(0,1fr) 228px;
    gap:12px;
  }
  .tm-brand-badge,.tm-brand-badge-link svg{width:28px;height:28px;}
  .tm-brand-wordmark-single{font-size:1.48rem;}
  .tm-header-navs{gap:12px;}
  .desktop-nav .tm-menu{gap:10px;font-size:.76rem;}
  .desktop-nav.secondary-nav .tm-menu{gap:9px;font-size:.75rem;}
  .tm-header-account{gap:10px;font-size:.76rem;}
}
@media (max-width:1100px){
  .tm-header-top{
    grid-template-columns:32px minmax(0,1fr) 70px;
    min-height:54px;
    gap:10px;
    padding:8px 0;
  }
  .tm-brand,
  .tm-brand-link,
  .tm-brand-badge{width:32px;min-width:32px;}
  .tm-brand-wordmark-single{display:none !important;}
  .tm-brand-badge,.tm-brand-badge-link svg{width:24px;height:24px;}
  .tm-search-wrap{min-width:0;}
  .tumarket-search-form{
    min-height:38px;
    height:38px;
    grid-template-columns:minmax(0,1fr) 38px;
    padding-left:10px;
    box-shadow:none;
  }
  .tumarket-search-form .tumarket-search-field,
  .tumarket-search-button{
    min-height:38px;
    height:38px;
    font-size:.9rem;
  }
  .tumarket-search-button{width:38px;padding:0 10px;border-left:1px solid #ededed;}
  .tumarket-search-field::placeholder{font-size:.9rem;}
  .tm-header-actions-mobile{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:2px;
  }
  .tm-mobile-toggle,.tm-cart-link{
    width:32px;
    height:32px;
    border-radius:0;
  }
  .tm-mobile-toggle svg,.tm-cart-link svg{width:21px;height:21px;}
  .tm-mobile-panel{top:54px;}
}
@media (max-width:640px){
  .container{width:min(calc(100% - 20px),var(--tm-container));}
  .tm-header-top{
    grid-template-columns:30px minmax(0,1fr) 66px;
    gap:8px;
  }
  .tm-brand,
  .tm-brand-link,
  .tm-brand-badge{width:30px;min-width:30px;}
  .tm-brand-badge,.tm-brand-badge-link svg{width:22px;height:22px;}
  .tumarket-search-form{
    min-height:36px;
    height:36px;
    grid-template-columns:minmax(0,1fr) 36px;
    padding-left:9px;
  }
  .tumarket-search-form .tumarket-search-field,
  .tumarket-search-button{min-height:36px;height:36px;font-size:.86rem;}
  .tumarket-search-field::placeholder{font-size:.84rem;}
}


/* === v1.7.9 compact buttons + mobile search refinement === */
.tm-btn{
  min-height:40px;
  padding:0 16px;
  border-radius:8px;
  font-size:.94rem;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
  border-radius:8px !important;
  padding:10px 14px !important;
  min-height:38px !important;
  line-height:1.15 !important;
  font-size:.92rem !important;
}
button,
input[type="submit"],
input[type="button"],
.wp-element-button,
.wpcf7-submit{
  min-height:40px;
  padding:0 16px;
  border-radius:8px;
  font-size:.94rem;
}
.tm-product-card-premium .tm-card-link-subtle{
  margin-top:10px;
  font-size:.88rem;
}
.tm-home-hero-main .tm-btn,
.tm-home-hero-side .tm-btn,
.tm-wide-promo-copy .tm-btn,
.tm-home-block .tm-btn{
  min-height:38px;
  padding:0 14px;
  border-radius:8px;
  font-size:.9rem;
}

@media (max-width:1100px){
  .tumarket-search-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:16px;
    height:16px;
    color:#666;
  }
  .tumarket-search-icon svg{width:16px;height:16px;display:block;}
  .tm-header-top{
    grid-template-columns:28px minmax(0,1fr) 62px;
    gap:8px;
  }
  .tm-brand,
  .tm-brand-link,
  .tm-brand-badge{width:28px;min-width:28px;}
  .tm-brand-badge,.tm-brand-badge-link svg{width:20px;height:20px;}
  .tumarket-search-form{
    grid-template-columns:16px minmax(0,1fr) 30px;
    min-height:36px;
    height:36px;
    padding-left:10px;
    padding-right:0;
    border-radius:0 !important;
  }
  .tumarket-search-form .tumarket-search-field{
    min-width:0;
    width:100%;
    height:36px;
    min-height:36px;
    font-size:.84rem;
  }
  .tumarket-search-field::placeholder{
    font-size:.8rem;
    letter-spacing:0;
  }
  .tumarket-search-button{
    width:30px;
    min-width:30px;
    height:36px;
    min-height:36px;
    padding:0 7px;
    border-left:0;
    background:#fff;
    color:#666;
  }
  .tumarket-search-button svg{width:16px;height:16px;}
  .tm-mobile-toggle,
  .tm-cart-link{
    width:30px;
    height:30px;
  }
  .tm-mobile-toggle svg,
  .tm-cart-link svg{width:19px;height:19px;}

  .tm-btn,
  button,
  input[type="submit"],
  input[type="button"],
  .wp-element-button,
  .wpcf7-submit,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce #respond input#submit{
    min-height:34px !important;
    padding:0 12px !important;
    border-radius:7px !important;
    font-size:.84rem !important;
  }
  .tm-home-hero-main .tm-btn,
  .tm-home-hero-side .tm-btn,
  .tm-wide-promo-copy .tm-btn,
  .tm-home-block .tm-btn{
    min-height:34px;
    padding:0 12px;
    font-size:.84rem;
    border-radius:7px;
  }
}

@media (max-width:640px){
  .tm-header-top{
    grid-template-columns:26px minmax(0,1fr) 58px;
    gap:7px;
  }
  .tm-brand,
  .tm-brand-link,
  .tm-brand-badge{width:26px;min-width:26px;}
  .tm-brand-badge,.tm-brand-badge-link svg{width:18px;height:18px;}
  .tumarket-search-form{
    grid-template-columns:15px minmax(0,1fr) 28px;
    min-height:34px;
    height:34px;
    padding-left:8px;
  }
  .tumarket-search-form .tumarket-search-field{
    height:34px;
    min-height:34px;
    font-size:.8rem;
  }
  .tumarket-search-field::placeholder{font-size:.76rem;}
  .tumarket-search-button{
    width:28px;
    min-width:28px;
    height:34px;
    min-height:34px;
    padding:0 6px;
  }
  .tumarket-search-button svg,
  .tumarket-search-icon svg{width:15px;height:15px;}
  .tm-mobile-toggle,
  .tm-cart-link{width:28px;height:28px;}
  .tm-mobile-toggle svg,
  .tm-cart-link svg{width:18px;height:18px;}
}


/* v1.8.0 search + loop cleanup */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart {
  display: none !important;
}

@media (max-width: 767px) {
  .tm-brand-badge { width: 28px; height: 28px; }
  .tm-brand-link { gap: 8px; }
  .tm-header-top {
    grid-template-columns: 30px minmax(0,1fr) auto;
    gap: 10px;
    min-height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .tm-search-wrap { min-width: 0; }
  .tumarket-search-form {
    grid-template-columns: minmax(0,1fr) 42px;
    min-height: 36px;
    padding-left: 10px;
    border-radius: 0;
  }
  .tumarket-search-form .tumarket-search-field {
    min-width: 0;
    height: 36px;
    min-height: 36px;
    font-size: 15px;
    padding-right: 6px !important;
  }
  .tumarket-search-button {
    width: 42px;
    height: 36px;
    padding: 0 10px;
  }
}


/* v1.8.1 mobile search hotfix */
@media (max-width: 767px) {
  .tm-header-top {
    grid-template-columns: 34px minmax(0,1fr) auto;
    gap: 8px;
  }
  .tm-brand { min-width: 34px; }
  .tm-brand-link { gap: 0; }
  .tm-brand-wordmark { display: none !important; }
  .tm-brand-badge { width: 30px; height: 30px; }
  .tm-search-wrap { width: 100%; min-width: 0; }
  .tumarket-search-form {
    width: 100%;
    display: grid;
    grid-template-columns: 18px minmax(0,1fr) 34px;
    align-items: center;
    min-height: 36px;
    height: 36px;
    padding: 0 0 0 10px;
    border-radius: 0 !important;
  }
  .tumarket-search-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
  }
  .tumarket-search-form .tumarket-search-field {
    width: 100%;
    min-width: 0;
    padding: 0 6px 0 0 !important;
    font-size: 14px;
    line-height: 1.2;
  }
  .tumarket-search-field::placeholder {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tumarket-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 36px;
    padding: 0;
    border-left: 1px solid #ededed;
  }
}


/* v1.8.2 mobile search + logo alignment fix */
@media (max-width: 767px) {
  .tm-header-top {
    grid-template-columns: 36px minmax(0,1fr) auto;
    gap: 8px;
    align-items: center;
  }
  .tm-brand {
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tm-brand-link {
    width: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tm-brand-badge,
  .tm-brand-badge-link,
  .tm-brand-badge-link svg {
    width: 28px;
    height: 28px;
  }
  .tumarket-search-form {
    grid-template-columns: 18px minmax(0,1fr);
    padding-right: 10px;
  }
  .tumarket-search-button {
    display: none !important;
  }
  .tumarket-search-icon {
    margin-right: 8px;
  }
  .tumarket-search-results {
    left: -2px;
    right: -2px;
    z-index: 120;
  }
}

/* === Grid consistency hotfix: 2 cols mobile, 4-6 desktop === */
.tm-product-grid,
.tm-post-grid,
.tm-product-grid-wide,
.tm-product-grid-market,
.tm-product-grid-six,
.tm-category-grid,
.tm-category-grid-market,
.tm-membership-grid,
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (min-width: 1440px) {
  .tm-product-grid,
  .tm-post-grid,
  .tm-product-grid-wide,
  .tm-product-grid-market,
  .tm-product-grid-six,
  .tm-category-grid,
  .tm-category-grid-market,
  .tm-membership-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .tm-product-grid,
  .tm-post-grid,
  .tm-product-grid-wide,
  .tm-product-grid-market,
  .tm-product-grid-six,
  .tm-category-grid,
  .tm-category-grid-market,
  .tm-membership-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* === v1.8.5 ML compact layout integrated === */
.tumarket-front-page .tm-section.container,
.tumarket-front-page .tm-wide-promo.container,
.tumarket-front-page .tm-circle-shortcuts.container,
.tumarket-front-page .tm-home-benefits-wallet.container,
.tumarket-front-page .tm-home-hero-mlplus .container {
  width: min(calc(100% - 40px), 1360px);
}

@media (min-width: 1280px) {
  .tumarket-front-page .tm-section.container,
  .tumarket-front-page .tm-wide-promo.container,
  .tumarket-front-page .tm-circle-shortcuts.container,
  .tumarket-front-page .tm-home-benefits-wallet.container,
  .tumarket-front-page .tm-home-hero-mlplus .container {
    width: min(calc(100% - 64px), 1360px);
  }
}

.tumarket-front-page .tm-market-products-block,
.tumarket-front-page .tm-market-category-products,
.tumarket-front-page .tm-categories-showcase {
  margin-bottom: 28px;
}

.tumarket-front-page .tm-section-head {
  align-items: center;
  margin-bottom: 14px;
  padding-inline: 6px;
}

.tumarket-front-page .tm-section-head h2 {
  font-size: clamp(1.45rem, 1.35vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.tumarket-front-page .tm-section-head a {
  font-size: .98rem;
  white-space: nowrap;
}

.tumarket-front-page .tm-product-grid,
.tumarket-front-page .tm-product-grid-market,
.tumarket-front-page .tm-product-grid-six,
.tumarket-front-page .woocommerce ul.products,
.tumarket-front-page .woocommerce-page ul.products {
  gap: 14px !important;
  align-items: stretch;
}

.tumarket-front-page .tm-product-card,
.tumarket-front-page .woocommerce ul.products li.product,
.tumarket-front-page .woocommerce-page ul.products li.product {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.tumarket-front-page .tm-product-card:hover,
.tumarket-front-page .woocommerce ul.products li.product:hover,
.tumarket-front-page .woocommerce-page ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.tumarket-front-page .tm-product-thumb {
  padding: 14px 14px 10px;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.tumarket-front-page .tm-product-thumb img {
  object-fit: contain;
}

.tumarket-front-page .tm-product-card-premium .tm-product-body,
.tumarket-front-page .tm-product-body {
  padding: 10px 14px 14px !important;
  gap: 6px;
  border-top: 1px solid #f1f1f1;
}

.tumarket-front-page .tm-product-card-premium h3,
.tumarket-front-page .tm-product-body h3,
.tumarket-front-page .tm-market-products-block .tm-product-body h3,
.tumarket-front-page .tm-market-category-products .tm-product-body h3 {
  margin: 0;
  min-height: 2.6em;
  font-size: .94rem;
  line-height: 1.32;
  font-weight: 400;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tumarket-front-page .tm-product-card-premium .tm-price,
.tumarket-front-page .tm-price {
  font-size: clamp(1.6rem, 1.6vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #111;
}

.tumarket-front-page .tm-price del,
.tumarket-front-page .tm-price .amount + .amount {
  font-size: .82rem;
}

.tumarket-front-page .tm-product-card-premium .tm-card-link-subtle,
.tumarket-front-page .tm-card-link {
  margin-top: 2px;
  font-size: .86rem;
}

.tumarket-front-page .tm-category-grid,
.tumarket-front-page .tm-category-grid-market {
  gap: 14px !important;
}

.tumarket-front-page .tm-category-item,
.tumarket-front-page .tm-category-item-market,
.tumarket-front-page .tm-category-item-mlplus {
  border-radius: 10px;
  min-height: 136px;
  box-shadow: none;
  border: 1px solid #e7e7e7;
}

@media (max-width: 767px) {
  .tumarket-front-page .tm-section-head {
    padding-inline: 2px;
    margin-bottom: 12px;
  }

  .tumarket-front-page .tm-section-head h2 {
    font-size: 1.18rem;
  }

  .tumarket-front-page .tm-section-head a {
    font-size: .9rem;
  }

  .tumarket-front-page .tm-product-grid,
  .tumarket-front-page .tm-product-grid-market,
  .tumarket-front-page .tm-product-grid-six,
  .tumarket-front-page .woocommerce ul.products,
  .tumarket-front-page .woocommerce-page ul.products {
    gap: 10px !important;
  }

  .tumarket-front-page .tm-product-thumb {
    padding: 10px 10px 8px;
  }

  .tumarket-front-page .tm-product-card-premium .tm-product-body,
  .tumarket-front-page .tm-product-body {
    padding: 8px 10px 12px !important;
    gap: 5px;
  }

  .tumarket-front-page .tm-product-card-premium h3,
  .tumarket-front-page .tm-product-body h3,
  .tumarket-front-page .tm-market-products-block .tm-product-body h3,
  .tumarket-front-page .tm-market-category-products .tm-product-body h3 {
    font-size: .84rem;
    min-height: 2.55em;
  }

  .tumarket-front-page .tm-product-card-premium .tm-price,
  .tumarket-front-page .tm-price {
    font-size: 1.34rem;
  }
}

/* === v1.8.6 WooCommerce grid fix: shop/category/archive cards === */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 0 10px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  font-size: .95rem;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 0 0 8px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  margin-top: auto;
  line-height: 1.2;
}

.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after,
.woocommerce-page ul.products li.product::before,
.woocommerce-page ul.products li.product::after {
  display: none !important;
}

@media (max-width: 767px) {
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 10px;
    border-radius: 12px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: .84rem;
    min-height: 2.55em;
  }
}


/* v1.8.7 mobile menu restore + ML straight radius */
:root{--tm-ml-radius-min:4px;}
.tm-section,
.tm-product-card,
.tm-category-item,
.tm-home-mini-promo,
.tm-market-strip,
.tm-empty-state-card,
.tm-wide-promo,
.tm-banner-card,
.tm-promo-card,
.tm-single-card,
.tm-account-panel,
.tumarket-widget,
.widget,
.comment-respond,
.wp-block-group,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce div.product,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .quantity .qty,
.woocommerce-cart-form,
.woocommerce-checkout-review-order,
.woocommerce form.checkout,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password,
.tumarket-search-form,
.tumarket-search-results,
.tm-search-suggestion-thumb,
.tm-mobile-panel-inner,
.tm-mobile-action,
.tm-mobile-submenu,
.tm-mobile-submenu a,
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], select, textarea, button, .button, .wp-element-button {
  border-radius: var(--tm-ml-radius-min) !important;
}

@media (max-width:1100px){
  .tm-mobile-subtoggle,
  .tm-mobile-subtoggle:hover,
  .tm-mobile-subtoggle:focus,
  .tm-mobile-subtoggle:focus-visible,
  .tm-mobile-subtoggle:active,
  .tm-mobile-menu-list > li > a,
  .tm-mobile-menu-list > li > a:hover,
  .tm-mobile-menu-list > li > a:focus,
  .tm-mobile-menu-list > li > a:focus-visible,
  .tm-mobile-menu-list > li > a:active{
    background:transparent !important;
    box-shadow:none !important;
    outline:none !important;
  }

  .tm-mobile-subtoggle,
  .tm-mobile-menu-list > li > a{
    -webkit-tap-highlight-color: transparent;
  }

  .tm-mobile-submenu{
    background:#f5f5f5;
  }
}


/* v1.8.9 mobile header icon size tweak */
@media (max-width: 1100px){
  .tm-header-actions-mobile{
    gap: 6px !important;
  }
  .tm-mobile-toggle,
  .tm-cart-link{
    width: 40px !important;
    height: 40px !important;
  }
  .tm-mobile-toggle .tm-icon,
  .tm-mobile-toggle svg,
  .tm-cart-link svg{
    width: 25px !important;
    height: 25px !important;
  }
}
