/* ==========================================================================
   TB Market — Premium UI layer (web: desktop + mobile web)
   Loaded LAST on storefront pages. Restyles existing markup only:
   no PHP/JS flow, form, route or data change depends on this file.
   Remove the <link> to roll back instantly.
   ========================================================================== */

/* ---------- 1. Font (self-hosted Onest variable, OFL) ---------- */
@font-face{font-family:"TB Onest";font-style:normal;font-weight:300 800;font-display:swap;
  src:url("/assets/fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"TB Onest";font-style:normal;font-weight:300 800;font-display:swap;
  src:url("/assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"TB Onest";font-style:normal;font-weight:300 800;font-display:swap;
  src:url("/assets/fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"TB Onest";font-style:normal;font-weight:300 800;font-display:swap;
  src:url("/assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- 2. Design tokens ---------- */
:root{
  --tb-font:"TB Onest",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --tb-primary:#005BFF;          /* top-grade brand blue, single source */
  --tb-primary-600:#0050E0;
  --tb-primary-700:#0043BD;
  --tb-primary-50:#EEF4FF;
  --tb-primary-100:#DCE8FF;
  --tb-sale:#F1117E;             /* price with discount / discount badge */
  --tb-sale-50:#FFE8F3;
  --tb-ink:#070E1B;              /* main text */
  --tb-ink-2:#3B4352;            /* secondary text */
  --tb-muted:#7A8394;            /* meta text */
  --tb-faint:#A8AFBC;
  --tb-line:#E9ECF1;
  --tb-line-2:#F0F2F5;
  --tb-bg:#FFFFFF;
  --tb-surface:#F5F6F8;          /* page wells, image wells */
  --tb-surface-2:#EEF0F3;
  --tb-success:#10A957;
  --tb-success-50:#E7F8EE;
  --tb-warning:#FFB800;
  --tb-r-xs:6px; --tb-r-sm:10px; --tb-r-md:14px; --tb-r-lg:20px; --tb-r-xl:28px; --tb-r-pill:999px;
  --tb-sh-1:0 1px 2px rgba(7,14,27,.04),0 1px 1px rgba(7,14,27,.03);
  --tb-sh-2:0 6px 20px -6px rgba(7,14,27,.12),0 2px 6px rgba(7,14,27,.04);
  --tb-sh-3:0 18px 48px -12px rgba(7,14,27,.18),0 4px 12px rgba(7,14,27,.06);
  --tb-ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- 3. Base ---------- */
html body:not(#tbp){font-family:var(--tb-font)!important;color:var(--tb-ink);background:var(--tb-bg)!important;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
  font-feature-settings:"ss01" on,"cv11" on}
html body:not(#tbp) :where(h1,h2,h3,h4,h5,b,strong,button,input,select,textarea,.btn,.market-brand,small,span,a,p,label,del){font-family:var(--tb-font)!important}
html body:not(#tbp) :where(h1,h2,h3){letter-spacing:-.02em;color:var(--tb-ink)}
html body:not(#tbp) ::selection{background:var(--tb-primary-100)}
html body:not(#tbp) :focus-visible{outline:2px solid var(--tb-primary)!important;outline-offset:2px}

/* Icons: Phosphor set renders with fill; neutralise legacy stroke styling */
html body:not(#tbp) svg[data-ph]{fill:currentColor!important;stroke:none!important}
html body:not(#tbp) svg[data-ph] *{stroke:none!important}
html body:not(#tbp) svg[data-ph] path{fill:currentColor!important}

/* ---------- 4. Utility bar ---------- */
html body:not(#tbp) .utility-bar{background:var(--tb-surface)!important;border-bottom:0!important;min-height:36px}
html body:not(#tbp) .utility-bar :is(a,button,span){font-size:12.5px!important;font-weight:500!important;color:var(--tb-ink-2)!important}
html body:not(#tbp) .utility-bar .utility-accent span:not(.utility-icon-badge){color:var(--tb-primary)!important}
html body:not(#tbp) .utility-bar .utility-icon-badge{background:transparent!important;box-shadow:none!important;border:0!important;width:18px!important;height:18px!important;color:var(--tb-ink-2)!important}
html body:not(#tbp) .utility-bar .utility-icon-badge .ui-icon{width:16px!important;height:16px!important}
html body:not(#tbp) .utility-bar .premium-utility-control{background:transparent!important;border:0!important;box-shadow:none!important}
html body:not(#tbp) .utility-bar :is(a,button):hover{color:var(--tb-primary)!important}

/* ---------- 5. Header ---------- */
html body:not(#tbp) .market-header{background:#fff!important;border-bottom:1px solid var(--tb-line-2)!important;box-shadow:none!important}
html body:not(#tbp) .market-header.is-scrolled,html body:not(#tbp) .market-header.scrolled{box-shadow:0 4px 18px -8px rgba(7,14,27,.14)!important}
html body:not(#tbp) .catalog-button{background:var(--tb-primary)!important;color:#fff!important;border-radius:var(--tb-r-md)!important;
  height:48px!important;padding:0 20px!important;font-weight:600!important;font-size:15px!important;box-shadow:none!important;border:0!important;
  transition:background .18s var(--tb-ease),transform .18s var(--tb-ease)}
html body:not(#tbp) .catalog-button:hover{background:var(--tb-primary-600)!important}
html body:not(#tbp) .catalog-button:active{transform:scale(.98)}
html body:not(#tbp) .catalog-button .ui-icon{width:20px!important;height:20px!important}

html body:not(#tbp) .market-search{border:2px solid var(--tb-primary)!important;border-radius:var(--tb-r-md)!important;height:48px!important;
  background:#fff!important;box-shadow:none!important;overflow:visible}
html body:not(#tbp) .market-search:focus-within{box-shadow:0 0 0 4px var(--tb-primary-50)!important}
html body:not(#tbp) .market-search .market-search-input{font-size:15px!important;font-weight:400!important;color:var(--tb-ink)!important;background:transparent!important}
html body:not(#tbp) .market-search .market-search-input::placeholder{color:var(--tb-muted)!important}
html body:not(#tbp) .market-search .search-scope-trigger{background:var(--tb-surface)!important;border:0!important;border-radius:var(--tb-r-sm)!important;
  color:var(--tb-ink-2)!important;font-weight:500!important;font-size:13px!important;margin-left:4px!important}
html body:not(#tbp) .market-search .market-search-submit{background:var(--tb-primary)!important;border-radius:10px!important;color:#fff!important;
  width:52px!important;height:40px!important;margin:2px!important;box-shadow:none!important}
html body:not(#tbp) .market-search .market-search-submit:hover{background:var(--tb-primary-600)!important}
html body:not(#tbp) .market-search .market-search-submit .ui-icon{width:22px!important;height:22px!important}
html body:not(#tbp) .market-search .market-search-photo{color:var(--tb-muted)!important}
html body:not(#tbp) .market-search .market-search-photo:hover{color:var(--tb-primary)!important}

html body:not(#tbp) .market-actions>a,html body:not(#tbp) .market-actions .market-cart-menu>a{color:var(--tb-ink)!important;gap:3px!important;border-radius:var(--tb-r-sm)!important;
  transition:color .15s var(--tb-ease)}
html body:not(#tbp) .market-actions>a>span:not(.action-icon),html body:not(#tbp) .market-cart-menu>a>span:not(.action-icon){font-size:12px!important;font-weight:500!important;color:var(--tb-ink-2)!important}
html body:not(#tbp) .market-actions .action-icon{background:transparent!important;border:0!important;box-shadow:none!important;width:26px!important;height:26px!important;color:var(--tb-ink)!important}
html body:not(#tbp) .market-actions .action-icon .ui-icon{width:26px!important;height:26px!important}
html body:not(#tbp) .market-actions>a:hover,html body:not(#tbp) .market-actions>a:hover *,html body:not(#tbp) .market-cart-menu>a:hover,html body:not(#tbp) .market-cart-menu>a:hover *{color:var(--tb-primary)!important}
html body:not(#tbp) .market-actions>a>b,html body:not(#tbp) .market-cart-menu>a>b{background:var(--tb-sale)!important;color:#fff!important;font:700 10.5px/18px var(--tb-font)!important;
  min-width:18px!important;height:18px!important;border:2px solid #fff!important;box-sizing:content-box;box-shadow:none!important}

/* Category strip (below header) */
html body:not(#tbp) .category-strip:not(.home-category-strip) a,html body:not(#tbp) .market-category-strip a{font-size:14px!important;font-weight:500!important;color:var(--tb-ink)!important}
html body:not(#tbp) .category-strip:not(.home-category-strip) a:hover,html body:not(#tbp) .market-category-strip a:hover{color:var(--tb-primary)!important}
html body:not(#tbp) .all-link,html body:not(#tbp) .category-strip-catalog{color:var(--tb-primary)!important;font-weight:600!important}

/* Popovers / dropdowns */
html body:not(#tbp) :is(.portal-popover,.lang-popover,.search-scope-popover,.search-discovery-panel,.market-mini-cart,.oz-product-share-menu){
  border:1px solid var(--tb-line)!important;border-radius:var(--tb-r-lg)!important;box-shadow:var(--tb-sh-3)!important;background:#fff!important}

/* ---------- 6. Buttons ---------- */
html body:not(#tbp) .btn{border-radius:var(--tb-r-md)!important;font-weight:600!important;letter-spacing:-.005em;box-shadow:none!important;
  transition:background .18s var(--tb-ease),color .18s var(--tb-ease),transform .12s var(--tb-ease),box-shadow .18s var(--tb-ease)}
html body:not(#tbp) .btn:active{transform:scale(.985)}
html body:not(#tbp) .btn-primary{background:var(--tb-primary)!important;border-color:var(--tb-primary)!important;color:#fff!important}
html body:not(#tbp) .btn-primary:hover{background:var(--tb-primary-600)!important;border-color:var(--tb-primary-600)!important}
html body:not(#tbp) .btn-light{background:var(--tb-primary-50)!important;border-color:transparent!important;color:var(--tb-primary)!important}
html body:not(#tbp) .btn-light:hover{background:var(--tb-primary-100)!important}

/* ---------- 7. Hero & trust strip ---------- */
html body:not(#tbp) .storefront-hero .hero-stage,html body:not(#tbp) .storefront-hero .brand-hero{border-radius:var(--tb-r-xl)!important;overflow:hidden;box-shadow:none!important}
html body:not(#tbp) .storefront-hero .brand-hero{background:linear-gradient(115deg,#0B1B3F 0%,#0A2E86 46%,#005BFF 100%)!important;border:0!important}
html body:not(#tbp) .storefront-hero .brand-hero-copy :is(h1,p,.eyebrow){color:#fff!important}
html body:not(#tbp) .storefront-hero .brand-hero-copy h1{font-weight:700!important;letter-spacing:-.03em!important}
html body:not(#tbp) .storefront-hero .brand-hero-copy p{opacity:.82}
html body:not(#tbp) .storefront-hero .brand-hero-copy .eyebrow{opacity:.75;letter-spacing:.08em!important}
html body:not(#tbp) .storefront-hero .hero-button{background:#fff!important;color:var(--tb-primary)!important;border-radius:var(--tb-r-md)!important}
html body:not(#tbp) .storefront-hero .hero-proof span{color:rgba(255,255,255,.86)!important}
html body:not(#tbp) .storefront-hero .brand-hero img{mix-blend-mode:normal;opacity:1;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%);mask-image:linear-gradient(90deg,transparent 0,#000 22%)}
html body:not(#tbp) .storefront-hero .hero-proof{display:none!important}

html body:not(#tbp) .trust-strip{gap:12px!important}
html body:not(#tbp) .trust-strip>div{background:var(--tb-surface)!important;border:0!important;border-radius:var(--tb-r-lg)!important;box-shadow:none!important;padding:16px 18px!important}
html body:not(#tbp) .trust-strip .trust-icon{background:#fff!important;color:var(--tb-primary)!important;border-radius:12px!important;box-shadow:var(--tb-sh-1)!important}
html body:not(#tbp) .trust-strip b{font-weight:600!important;color:var(--tb-ink)!important}
html body:not(#tbp) .trust-strip small{color:var(--tb-muted)!important}

/* Section heads */
html body:not(#tbp) .section-head h2,html body:not(#tbp) .market-section-head h2{font-size:24px!important;font-weight:700!important;letter-spacing:-.025em!important;color:var(--tb-ink)!important}
html body:not(#tbp) .section-kicker{color:var(--tb-primary)!important;font-weight:600!important;letter-spacing:.06em!important}
html body:not(#tbp) .market-product-count{color:var(--tb-muted)!important}

/* ---------- 8. Product card (home, search, store, favorites, recommendations) ---------- */
html body:not(#tbp) .product-grid{gap:28px 16px!important}
html body:not(#tbp) .product-card{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:var(--tb-r-md)!important;
  overflow:visible!important;transition:transform .25s var(--tb-ease)}
html body:not(#tbp) .product-card:hover{transform:none;box-shadow:none!important}
html body:not(#tbp) .product-card .product-image,html body:not(#tbp) .product-card .product-card-gallery{background:var(--tb-surface)!important;border-radius:var(--tb-r-md)!important;
  overflow:hidden!important;border:0!important;box-shadow:none!important;aspect-ratio:3/4}
html body:not(#tbp) .product-card .product-image img,html body:not(#tbp) .product-card .product-card-gallery img{mix-blend-mode:multiply;object-fit:contain!important;
  transition:transform .45s var(--tb-ease)}
html body:not(#tbp) .product-card:hover .product-image img{transform:scale(1.035)}
html body:not(#tbp) .product-card .product-card-gallery-frame,html body:not(#tbp) .product-card .product-card-gallery-link{background:transparent!important}
html body:not(#tbp) .product-card .product-card-gallery-dots{bottom:10px!important}
html body:not(#tbp) .product-card .product-card-gallery-dots button{background:rgba(7,14,27,.18)!important;width:5px!important;height:5px!important;border-radius:9px!important;box-shadow:none!important}
html body:not(#tbp) .product-card .product-card-gallery-dots button.is-active{background:var(--tb-ink)!important;width:14px!important}

html body:not(#tbp) .product-card .discount-badge{background:var(--tb-sale)!important;color:#fff!important;border-radius:var(--tb-r-xs)!important;
  font:700 12px/1 var(--tb-font)!important;padding:4px 6px!important;box-shadow:none!important;top:10px!important;left:10px!important}
html body:not(#tbp) .product-card .product-label{background:rgba(255,255,255,.92)!important;color:var(--tb-ink)!important;border:0!important;border-radius:var(--tb-r-xs)!important;
  font:600 11px/1 var(--tb-font)!important;padding:5px 7px!important;box-shadow:var(--tb-sh-1)!important;backdrop-filter:blur(6px)}
html body:not(#tbp) .product-card .wish{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--tb-ink)!important;
  width:34px!important;height:34px!important;transition:transform .15s var(--tb-ease)}
html body:not(#tbp) .product-card .wish .ui-icon{width:24px!important;height:24px!important;filter:drop-shadow(0 1px 2px rgba(255,255,255,.9))}
html body:not(#tbp) .product-card .wish:hover{transform:scale(1.1)}
html body:not(#tbp) .product-card .wish:is(.active,.is-active,[aria-pressed="true"]),html body:not(#tbp) .product-card .wish:is(.active,.is-active) .ui-icon{color:var(--tb-sale)!important}

html body:not(#tbp) .product-card .product-body{padding:10px 2px 0!important;background:transparent!important;gap:4px}
/* Price: ink by default, sale-pink when the product is discounted (reference pattern) */
html body:not(#tbp) .product-card :is(.home-card-price,.price-row){gap:2px 6px!important;align-items:baseline!important}
html body:not(#tbp) .product-card :is(.home-card-price,.price-row) strong{color:var(--tb-ink)!important;font:700 20px/1.15 var(--tb-font)!important;letter-spacing:-.02em!important;white-space:nowrap}
html body:not(#tbp) .product-card :is(.home-card-price,.price-row):has(del) strong{color:var(--tb-sale)!important}
html body:not(#tbp) .product-card :is(.home-card-price,.price-row) del{color:var(--tb-muted)!important;font:400 13px/1.2 var(--tb-font)!important;text-decoration-thickness:1px}
html body:not(#tbp) .product-card .home-card-discount{color:var(--tb-sale)!important;font:600 13px/1.2 var(--tb-font)!important;background:transparent!important}
html body:not(#tbp) .product-card h3{color:var(--tb-ink)!important;font:400 14px/1.35 var(--tb-font)!important;letter-spacing:0!important;margin:2px 0 0!important}
html body:not(#tbp) .product-card a:hover h3{color:var(--tb-primary)!important}
html body:not(#tbp) .product-card .store-name{color:var(--tb-muted)!important;font:500 12px/1.2 var(--tb-font)!important;text-transform:none!important}
html body:not(#tbp) .product-card :is(.home-card-rating,.rating){color:var(--tb-ink-2)!important;font:500 12.5px/1.2 var(--tb-font)!important}
html body:not(#tbp) .product-card :is(.home-card-star){color:var(--tb-warning)!important}
html body:not(#tbp) .product-card :is(.home-card-rating,.rating) span:not(.home-card-star){color:var(--tb-muted)!important}
html body:not(#tbp) .product-card .home-card-rating .ui-icon{width:14px!important;height:14px!important;color:var(--tb-faint)!important}
html body:not(#tbp) .product-card .market-store-identity b{color:var(--tb-ink-2)!important;font-weight:500!important;font-size:12px!important}
html body:not(#tbp) .product-card .market-store-avatar{background:var(--tb-primary-50)!important;color:var(--tb-primary)!important;border:0!important}
html body:not(#tbp) .product-card .product-stock-line{color:var(--tb-success)!important;font:500 12px/1.2 var(--tb-font)!important}
html body:not(#tbp) .product-card .installment{background:var(--tb-surface)!important;color:var(--tb-ink-2)!important;border:0!important;border-radius:var(--tb-r-xs)!important;
  font:500 11.5px/1 var(--tb-font)!important;padding:5px 7px!important}
html body:not(#tbp) .product-card .add-cart{background:var(--tb-primary)!important;color:#fff!important;border:0!important;border-radius:var(--tb-r-sm)!important;
  height:40px!important;font:600 14px/1 var(--tb-font)!important;box-shadow:none!important;transition:background .15s var(--tb-ease),transform .12s var(--tb-ease)}
html body:not(#tbp) .product-card .add-cart:hover{background:var(--tb-primary-600)!important}
html body:not(#tbp) .product-card .add-cart:active{transform:scale(.97)}
html body:not(#tbp) .product-card .add-cart.added,html body:not(#tbp) .product-card .add-cart.is-in-cart{background:var(--tb-primary-50)!important;color:var(--tb-primary)!important}
html body:not(#tbp) .product-card .add-cart .ui-icon{width:18px!important;height:18px!important}
html body:not(#tbp) .product-card .tb-pro-badge img{width:14px!important;height:14px!important}

/* ---------- 9. Listing (search / category) ---------- */
html body:not(#tbp) .listing-sidebar .filter-card{background:#fff!important;border:0!important;box-shadow:none!important;padding:0!important}
html body:not(#tbp) .listing-sidebar .filter-head h2{font-size:20px!important;font-weight:700!important}
html body:not(#tbp) .listing-sidebar .filter-accordion{border:0!important;border-bottom:1px solid var(--tb-line-2)!important;padding:12px 0!important;background:transparent!important}
html body:not(#tbp) .listing-sidebar .filter-accordion summary{font-weight:600!important;font-size:15px!important;color:var(--tb-ink)!important}
html body:not(#tbp) .listing-sidebar .filter-choice{border-radius:var(--tb-r-sm)!important;font-size:14px!important;color:var(--tb-ink)!important}
html body:not(#tbp) .listing-sidebar .filter-choice.selected{background:var(--tb-primary-50)!important;color:var(--tb-primary)!important;font-weight:600!important}
html body:not(#tbp) .listing-sidebar .filter-choice small{color:var(--tb-faint)!important}
html body:not(#tbp) .listing-sidebar input:not([type=checkbox]):not([type=radio]):not([type=hidden]){border:1px solid var(--tb-line)!important;background:var(--tb-surface)!important;
  border-radius:var(--tb-r-sm)!important;height:42px!important;box-shadow:none!important}
html body:not(#tbp) .listing-sidebar input:focus{border-color:var(--tb-primary)!important;background:#fff!important}
html body:not(#tbp) .listing-sidebar .mini-brand-badge{background:var(--tb-surface)!important;border:0!important;color:var(--tb-ink-2)!important}
html body:not(#tbp) .filter-more{color:var(--tb-primary)!important;font-weight:600!important}
html body:not(#tbp) :is(.listing-head,.listing-toolbar,.results-head) h1{font-size:28px!important;font-weight:700!important;letter-spacing:-.03em!important}
html body:not(#tbp) select{border-radius:var(--tb-r-sm)!important;border-color:var(--tb-line)!important}

/* Breadcrumb */
html body:not(#tbp) .breadcrumb,html body:not(#tbp) .breadcrumb a{color:var(--tb-muted)!important;font-size:13px!important}
html body:not(#tbp) .breadcrumb a:hover{color:var(--tb-primary)!important}
html body:not(#tbp) .breadcrumb>span:last-child{color:var(--tb-ink-2)!important}

/* ---------- 10. Product page ---------- */
html body:not(#tbp) .product-page-shell h1{font-size:26px!important;line-height:1.22!important;font-weight:700!important;letter-spacing:-.025em!important}
html body:not(#tbp) .product-gallery-card{background:transparent!important;border:0!important;box-shadow:none!important}
html body:not(#tbp) .product-hero-image{background:var(--tb-surface)!important;border-radius:var(--tb-r-lg)!important;border:0!important;overflow:hidden}
html body:not(#tbp) .product-hero-image img{mix-blend-mode:multiply}
html body:not(#tbp) .product-page-shell .product-preview-frame,html body:not(#tbp) .product-page-shell .product-gallery-layout{background:transparent!important}
html body:not(#tbp) .product-page-shell .product-hero-image{background:var(--tb-surface)!important}
html body:not(#tbp) .product-card .rating::first-letter{color:var(--tb-warning)}
html body:not(#tbp) .product-thumb{background:var(--tb-surface)!important;border:2px solid transparent!important;border-radius:var(--tb-r-sm)!important;box-shadow:none!important;overflow:hidden}
html body:not(#tbp) .product-thumb img{mix-blend-mode:multiply}
html body:not(#tbp) .product-thumb.active{border-color:var(--tb-primary)!important}
html body:not(#tbp) .product-detail-gallery-arrow{background:#fff!important;color:var(--tb-ink)!important;border:0!important;box-shadow:var(--tb-sh-2)!important;border-radius:50%!important}
html body:not(#tbp) .oz-rating-summary .oz-rating-star{color:var(--tb-warning)!important}
html body:not(#tbp) .oz-rating-summary strong{color:var(--tb-ink)!important}
html body:not(#tbp) :is(.oz-rating-reviews,.oz-question-summary){color:var(--tb-muted)!important}
html body:not(#tbp) .oz-brand-row{border:0!important;background:var(--tb-surface)!important;border-radius:var(--tb-r-md)!important}
html body:not(#tbp) .oz-brand-logo{background:#fff!important;border:0!important;box-shadow:var(--tb-sh-1)!important;color:var(--tb-ink)!important}
html body:not(#tbp) .product-choice-picker .product-choice-section{border:1px solid var(--tb-line)!important;border-radius:var(--tb-r-lg)!important;box-shadow:none!important}
html body:not(#tbp) .product-alternative-option{border:2px solid transparent!important;border-radius:var(--tb-r-md)!important;background:#fff!important;box-shadow:none!important}
html body:not(#tbp) .product-alternative-option.active{border-color:var(--tb-primary)!important}
html body:not(#tbp) .product-alternative-image{background:var(--tb-surface)!important;border-radius:var(--tb-r-sm)!important}
html body:not(#tbp) .product-alternative-image img{mix-blend-mode:multiply}
html body:not(#tbp) .product-alternative-option em{color:var(--tb-ink)!important;font-weight:700!important;font-style:normal!important}
html body:not(#tbp) .oz-postpay-row{border:1px solid var(--tb-line)!important;border-radius:var(--tb-r-lg)!important;background:#fff!important;box-shadow:none!important}
html body:not(#tbp) .oz-inline-about-head h2{font-size:20px!important;font-weight:700!important}
html body:not(#tbp) .oz-inline-about-rows>div{border-color:var(--tb-line-2)!important}
html body:not(#tbp) .oz-inline-about-rows span{color:var(--tb-muted)!important}

/* Buy box */
html body:not(#tbp) .product-buy-panel .oz-buy-card,html body:not(#tbp) .product-buy-panel .buy-card{background:#fff!important;border:0!important;border-radius:var(--tb-r-xl)!important;
  box-shadow:var(--tb-sh-3)!important;padding:22px!important}
html body:not(#tbp) .product-buy-panel .oz-buy-label{color:var(--tb-success)!important;font-weight:600!important}
html body:not(#tbp) .product-buy-panel .buy-price-row strong{color:var(--tb-ink)!important;font:800 32px/1.05 var(--tb-font)!important;letter-spacing:-.035em!important}
html body:not(#tbp) .product-buy-panel .buy-price-row:has(del) strong{color:var(--tb-sale)!important}
html body:not(#tbp) .product-buy-panel .buy-price-row del{color:var(--tb-muted)!important;font-size:15px!important}
html body:not(#tbp) .product-buy-panel .buy-discount{background:var(--tb-sale-50)!important;color:var(--tb-sale)!important;border-radius:var(--tb-r-xs)!important;font-weight:700!important;border:0!important}
html body:not(#tbp) .product-buy-panel .oz-other-payment{color:var(--tb-muted)!important}
html body:not(#tbp) .product-buy-panel .oz-other-payment b{color:var(--tb-ink)!important}
html body:not(#tbp) .product-installment-row{background:var(--tb-surface)!important;border:0!important;border-radius:var(--tb-r-md)!important}
html body:not(#tbp) .product-installment-badge{background:var(--tb-ink)!important;color:#fff!important;border-radius:var(--tb-r-xs)!important}
html body:not(#tbp) .product-installment-copy{color:var(--tb-ink-2)!important}
html body:not(#tbp) .btn-buy-main{height:52px!important;font-size:16px!important;border-radius:var(--tb-r-md)!important}
html body:not(#tbp) .btn-buy-secondary{height:52px!important;font-size:16px!important}
html body:not(#tbp) .buy-favorite{background:var(--tb-surface)!important;border:0!important;color:var(--tb-ink)!important;border-radius:var(--tb-r-md)!important;box-shadow:none!important}
html body:not(#tbp) .buy-favorite:hover{color:var(--tb-sale)!important}
html body:not(#tbp) .product-cart-qty{background:var(--tb-surface)!important;border-radius:var(--tb-r-md)!important;border:0!important}
html body:not(#tbp) .product-buy-panel :is(.mini-info-card,.oz-delivery-card,.oz-store-card,.store-card){background:#fff!important;border:1px solid var(--tb-line)!important;
  border-radius:var(--tb-r-xl)!important;box-shadow:none!important}
html body:not(#tbp) .product-buy-panel :is(.mini-info-card,.oz-delivery-card) h3{font-size:17px!important;font-weight:700!important}
html body:not(#tbp) .product-delivery-icon{background:var(--tb-primary-50)!important;color:var(--tb-primary)!important;border-radius:12px!important}
html body:not(#tbp) .oz-utility-action,html body:not(#tbp) .oz-utility-article{color:var(--tb-ink-2)!important}
html body:not(#tbp) .oz-utility-action:hover{color:var(--tb-primary)!important}

/* ---------- 11. Cart / checkout / account (shared surfaces) ---------- */
/* Checkout CTA stays green (reference convention: the "go to checkout" action is the only green button) */
html body:not(#tbp) .market-cart-checkout-main{background:#10B65D!important;border-color:#10B65D!important;color:#fff!important;height:52px!important;font-size:16px!important}
html body:not(#tbp) .market-cart-checkout-main:hover{background:#0EA052!important;border-color:#0EA052!important}
html body:not(#tbp) :is(.cart-summary,.checkout-summary,.order-summary,.summary-card){border:0!important;border-radius:var(--tb-r-xl)!important;box-shadow:var(--tb-sh-3)!important;background:#fff!important}
html body:not(#tbp) :is(.cart-item,.cart-line,.cart-product){border-color:var(--tb-line-2)!important}
html body:not(#tbp) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not(.market-search-input),html body:not(#tbp) textarea{
  border-radius:var(--tb-r-sm);font-family:var(--tb-font)}

/* ---------- 12. Footer ---------- */
html body:not(#tbp) :is(.site-footer,.home-footer,footer.market-footer,body>footer){background:var(--tb-surface)!important;border-top:0!important}
html body:not(#tbp) :is(.site-footer,.home-footer,body>footer) :is(h3,h4,b,strong){color:var(--tb-ink)!important;font-weight:700!important}
html body:not(#tbp) :is(.site-footer,.home-footer,body>footer) a{color:var(--tb-ink-2)!important}
html body:not(#tbp) :is(.site-footer,.home-footer,body>footer) a:hover{color:var(--tb-primary)!important}

/* ---------- 13. Motion preference ---------- */
@media (prefers-reduced-motion:reduce){html body:not(#tbp) *{transition:none!important;animation:none!important}}

/* ---------- 14. Mobile web (PHP pages on phones) ---------- */
@media (max-width:767px){
  html body:not(#tbp) .product-grid{gap:20px 10px!important}
  html body:not(#tbp) .product-card :is(.home-card-price,.price-row) strong{font-size:17px!important}
  html body:not(#tbp) .product-card h3{font-size:13px!important}
  html body:not(#tbp) .product-card .add-cart{height:36px!important;font-size:13px!important}
  html body:not(#tbp) .product-page-shell h1{font-size:20px!important}
  html body:not(#tbp) .product-buy-panel .buy-price-row strong{font-size:26px!important}
  html body:not(#tbp) .section-head h2,html body:not(#tbp) .market-section-head h2{font-size:20px!important}
}

/* ---------- 15. Search discovery panel ---------- */
html body:not(#tbp) .market-search :is(input,button):focus-visible{outline:none!important}
html body:not(#tbp) .search-rec-card .search-rec-image{background:var(--tb-surface)!important;border-radius:var(--tb-r-md)!important;border:0!important}
html body:not(#tbp) .search-rec-card .search-rec-image img{mix-blend-mode:multiply}
html body:not(#tbp) .search-rec-price-row strong{color:var(--tb-ink)!important;font-weight:700!important}
html body:not(#tbp) .search-rec-price-row:has(del) strong{color:var(--tb-sale)!important}
html body:not(#tbp) .search-rec-price-row del{color:var(--tb-muted)!important}
html body:not(#tbp) .search-rec-discount{color:var(--tb-sale)!important;background:transparent!important}
html body:not(#tbp) .search-rec-stock{color:var(--tb-muted)!important}
html body:not(#tbp) .search-discovery-head h3{font-weight:700!important;color:var(--tb-ink)!important}

/* ---------- 16. Catalog mega-menu ---------- */
html body:not(#tbp) :is(.catalog-pane) h2{font-weight:700!important;letter-spacing:-.025em!important}
html body:not(#tbp) :is(.catalog-pane) a{color:var(--tb-ink)!important}
html body:not(#tbp) :is(.catalog-pane) a:hover{color:var(--tb-primary)!important}

/* ---------- 17. Mobile web refinements (phones opening PHP pages directly) ---------- */
html body:not(#tbp) .market-search .market-search-clear{background:transparent!important;color:var(--tb-muted)!important;box-shadow:none!important;border:0!important}
html body:not(#tbp) :is(.product-card-gallery-dots,.product-detail-gallery-dots) button{min-width:0!important;min-height:0!important;padding:0!important;height:5px!important;border:0!important;box-shadow:none!important}
html body:not(#tbp) .product-detail-gallery-dots button{width:6px!important;background:rgba(7,14,27,.2)!important;border-radius:6px!important}
html body:not(#tbp) .product-detail-gallery-dots button.is-active{width:16px!important;background:var(--tb-ink)!important}
@media (max-width:767px){
  html body:not(#tbp) .catalog-button{width:44px!important;height:44px!important;padding:0!important;background:var(--tb-surface)!important;color:var(--tb-ink)!important;border-radius:12px!important}
  html body:not(#tbp) .catalog-button .ui-icon{width:22px!important;height:22px!important}
  html body:not(#tbp) .market-search{height:46px!important;border-width:1.5px!important}
  html body:not(#tbp) .market-search .market-search-submit{width:44px!important;height:38px!important;border-radius:10px!important}
  html body:not(#tbp) .market-search .search-scope-trigger{max-width:64px}
  /* Product gallery: one column, image first, thumbs as a horizontal strip */
  html body:not(#tbp) .product-page-shell .product-gallery-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  html body:not(#tbp) .product-page-shell .product-hero-image{order:1!important;grid-column:1/-1!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1/1;border-radius:var(--tb-r-lg)!important}
  html body:not(#tbp) .product-page-shell .product-thumbs{order:2!important;grid-column:1/-1!important;display:flex!important;flex-direction:row!important;gap:8px!important;overflow-x:auto;width:auto!important;height:auto!important;max-height:none!important}
  html body:not(#tbp) .product-page-shell .product-thumb{flex:0 0 56px!important;width:56px!important;height:56px!important}
  html body:not(#tbp) .product-page-shell .product-breadcrumb>span:last-child{display:none}
}
