:root{
  --kb-brand:#f97316;
  --kb-brand-strong:#ea580c;
  --kb-brand-soft:#fff7ed;
  --kb-ink:#111827;
  --kb-ink-2:#1f2937;
  --kb-muted:#64748b;
  --kb-line:#e5e7eb;
  --kb-surface:#ffffff;
  --kb-soft:#f8fafc;
  --kb-soft-2:#f1f5f9;
  --kb-success:#16a34a;
  --kb-danger:#dc2626;
  --kb-warning:#d97706;
  --kb-radius-xl:28px;
  --kb-radius-lg:22px;
  --kb-radius-md:16px;
  --kb-shadow:0 16px 40px rgba(15,23,42,.08);
  --kb-shadow-hover:0 22px 50px rgba(15,23,42,.12);
  --kb-container:1320px;
}

html{scroll-behavior:smooth}
body{background:#f7f8fa;color:var(--kb-ink);}
body :where(img,svg,video,iframe){max-width:100%}
body :where(button,input,select,textarea){font:inherit}
body :where(a){text-underline-offset:3px}

/* shared page shells */
body :is(.shop-page,.category-shell,.brand-shell,.cart-shell,.request-page,.account-shell,.account-edit-shell,.orders-shell,.order-detail-shell,.order-success-shell,.track-shell,.contact-shell,.support-shell,.blog-page,.blog-detail-page,.campaign-shell,.info-page-wrap,.login-page-new,.auth-register-wrap){
  width:min(var(--kb-container),calc(100% - 32px));
  margin-inline:auto;
}

/* unified hero language */
body :is(.shop-hero,.category-hero,.brand-hero,.cart-hero,.request-hero,.account-hero,.account-edit-hero,.orders-hero,.order-detail-hero,.order-success-hero,.track-hero,.contact-hero,.support-hero,.blog-hero,.blog-detail-hero,.campaign-hero,.info-hero){
  position:relative;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.07);
  border-radius:var(--kb-radius-xl);
  background:
    radial-gradient(circle at 88% 16%,rgba(249,115,22,.14),transparent 22%),
    linear-gradient(135deg,#fff 0%,#fbfcfe 55%,#fff7ed 100%);
  box-shadow:var(--kb-shadow);
}
body :is(.shop-hero,.category-hero,.brand-hero,.cart-hero,.account-hero,.account-edit-hero,.orders-hero,.order-detail-hero,.order-success-hero,.track-hero,.contact-hero,.support-hero,.blog-hero,.blog-detail-hero,.campaign-hero,.info-hero) :is(h1,h2){color:var(--kb-ink)!important;letter-spacing:-.035em}
body :is(.shop-kicker,.category-kicker,.brand-kicker,.cart-kicker,.request-kicker,.account-kicker,.account-edit-kicker,.orders-kicker,.order-detail-kicker,.order-success-kicker,.track-kicker,.contact-kicker,.support-kicker,.blog-kicker,.blog-detail-kicker,.campaign-kicker,.info-kicker){
  color:var(--kb-brand-strong)!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase;
}

/* cards */
body :is(.shop-card,.products-card,.toolbar-card,.breadcrumb-card,.cart-card,.request-card,.account-card,.order-card,.order-detail-card,.track-card,.track-summary-card,.contact-card,.support-card,.blog-card,.blog-side-card,.campaign-list-card,.info-card,.auth-card-modern,.auth-register-card){
  border:1px solid var(--kb-line)!important;
  border-radius:var(--kb-radius-lg)!important;
  background:var(--kb-surface)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.055)!important;
}

/* product cards */
body :is(.product-grid-modern,.shop-product-grid){gap:14px!important}
body :is(.product-card-modern,.shop-product-card){
  border:1px solid var(--kb-line)!important;
  border-radius:20px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 6px 20px rgba(15,23,42,.045)!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
body :is(.product-card-modern,.shop-product-card):hover{
  transform:translateY(-4px);
  border-color:#fed7aa!important;
  box-shadow:var(--kb-shadow-hover)!important;
}
body :is(.product-card-modern,.shop-product-card) :is(.product-media,.shop-product-media){background:#fbfcfd!important}
body :is(.product-card-modern,.shop-product-card) :is(.product-title,.shop-product-title,a){color:var(--kb-ink)}
body :is(.product-price-current,.shop-product-price-current){color:var(--kb-ink)!important;font-weight:900!important}
body :is(.product-btn-primary,.shop-product-btn-primary,.btn-modern,.request-submit,.login-submit){
  background:var(--kb-brand)!important;
  color:#fff!important;
  border-color:var(--kb-brand)!important;
  box-shadow:0 10px 22px rgba(249,115,22,.18)!important;
}
body :is(.product-btn-primary,.shop-product-btn-primary,.btn-modern,.request-submit,.login-submit):hover{background:var(--kb-brand-strong)!important}
body :is(.btn-light-modern,.product-btn-secondary,.shop-product-btn-secondary){
  background:#fff!important;color:var(--kb-ink-2)!important;border:1px solid var(--kb-line)!important;
}

/* forms */
body :is(.filter-input,.form-group input,.form-group select,.form-group textarea,.request-field input,.request-field select,.request-field textarea,.support-field input,.support-field select,.support-field textarea,.contact-card input,.contact-card select,.contact-card textarea,.track-field input,.track-field select){
  border:1px solid #dbe2ea!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--kb-ink)!important;
  outline:none!important;
  box-shadow:none!important;
}
body :is(.filter-input,.form-group input,.form-group select,.form-group textarea,.request-field input,.request-field select,.request-field textarea,.support-field input,.support-field select,.support-field textarea,.contact-card input,.contact-card select,.contact-card textarea,.track-field input,.track-field select):focus{
  border-color:var(--kb-brand)!important;
  box-shadow:0 0 0 4px rgba(249,115,22,.10)!important;
}

/* account and order navigation */
body .account-menu-link{border-radius:13px!important;color:#475569!important}
body .account-menu-link:hover{background:var(--kb-brand-soft)!important;color:var(--kb-brand-strong)!important}
body .account-menu-link.active{background:var(--kb-brand)!important;color:#fff!important}
body .account-menu-link.danger{color:var(--kb-danger)!important}
body :is(.orders-stat-card,.account-hero-stat-box,.account-mini-stat){border:1px solid var(--kb-line)!important;border-radius:16px!important;background:#fff!important}

/* breadcrumbs / toolbars */
body .breadcrumb a{color:#64748b!important}
body .breadcrumb a:hover{color:var(--kb-brand-strong)!important}
body :is(.toolbar-card,.orders-toolbar,.blog-toolbar,.campaign-toolbar){backdrop-filter:blur(8px)}

/* content typography */
body :is(.blog-card-body,.blog-detail-content,.info-content,.support-card-body,.contact-card-body) :is(h1,h2,h3,h4,strong){color:var(--kb-ink)}
body :is(.blog-card-body,.blog-detail-content,.info-content,.support-card-body,.contact-card-body) :is(p,li){color:#475569}

/* status and badges */
body :is(.product-badge,.member-badge,.campaign-pill,.order-status-badge){font-weight:850}
body .product-badge.sale{background:#fff1f2!important;color:#be123c!important}
body .product-badge.stock{background:#f0fdf4!important;color:#15803d!important}
body .product-badge.low{background:#fffbeb!important;color:#b45309!important}
body .product-badge.out{background:#fef2f2!important;color:#b91c1c!important}

/* home builder refinements, slider kept intact */
body .market-home{gap:26px!important}
body .mh-section{gap:15px!important}
body .mh-section-head h2{color:var(--kb-ink)!important;font-size:clamp(24px,2.2vw,32px)!important}
body .mh-section-head p{color:var(--kb-muted)!important}
body .mh-section-link{border-color:var(--kb-line)!important;color:var(--kb-ink-2)!important;border-radius:13px!important}
body .mh-category-rail,body .mh-card,body .mh-html,body .mh-service{border-color:var(--kb-line)!important;box-shadow:0 10px 30px rgba(15,23,42,.055)!important}
body .mh-cat-card{border-color:var(--kb-line)!important;border-radius:18px!important}
body .mh-cat-card:hover{border-color:#fed7aa!important;box-shadow:0 14px 28px rgba(15,23,42,.08)!important}
body .mh-cat-card-icon{background:var(--kb-brand-soft)!important;color:var(--kb-brand-strong)!important}
body .mh-products{gap:14px!important}
body .mh-product{border-color:var(--kb-line)!important;border-radius:20px!important;box-shadow:0 5px 18px rgba(15,23,42,.035)}
body .mh-product:hover{border-color:#fed7aa!important;box-shadow:0 18px 36px rgba(15,23,42,.09)!important}
body .mh-cart{background:var(--kb-brand)!important}
body .mh-cart:hover{background:var(--kb-brand-strong)!important}
body .mh-view{border-color:var(--kb-line)!important;color:var(--kb-ink-2)!important}
body .mh-price strong{color:var(--kb-ink)!important}
body .mh-product h3 a{color:var(--kb-ink)!important}

/* responsive */
@media (min-width:1400px){
  body :is(.product-grid-modern,.shop-product-grid){grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media (min-width:1024px) and (max-width:1399px){
  body :is(.product-grid-modern,.shop-product-grid){grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (min-width:768px) and (max-width:1023px){
  body :is(.product-grid-modern,.shop-product-grid),body .mh-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:767px){
  body{padding-bottom:max(82px,env(safe-area-inset-bottom))}
  body :is(.shop-page,.category-shell,.brand-shell,.cart-shell,.request-page,.account-shell,.account-edit-shell,.orders-shell,.order-detail-shell,.order-success-shell,.track-shell,.contact-shell,.support-shell,.blog-page,.blog-detail-page,.campaign-shell,.info-page-wrap,.login-page-new,.auth-register-wrap){width:calc(100% - 16px)!important}
  body :is(.shop-hero,.category-hero,.brand-hero,.cart-hero,.request-hero,.account-hero,.account-edit-hero,.orders-hero,.order-detail-hero,.order-success-hero,.track-hero,.contact-hero,.support-hero,.blog-hero,.blog-detail-hero,.campaign-hero,.info-hero){border-radius:20px!important}
  body :is(.product-grid-modern,.shop-product-grid),body .mh-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body :is(.product-card-modern,.shop-product-card,.mh-product){border-radius:16px!important}
  body :is(.account-layout,.order-detail-layout,.cart-layout,.request-grid,.contact-grid,.support-grid,.blog-detail-layout,.shop-layout){grid-template-columns:1fr!important}
  body :is(.account-sidebar,.shop-sidebar){position:static!important;width:100%!important}
  body :is(.form-grid,.register-grid,.support-form-grid,.orders-filter-grid){grid-template-columns:1fr!important}
  body .mh-category-track{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;gap:10px!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  body .mh-category-track::-webkit-scrollbar{display:none}
  body .mh-cat-card{flex:0 0 150px!important;min-width:150px!important;scroll-snap-align:start}
}
@media (max-width:420px){
  body :is(.product-card-modern,.shop-product-card,.mh-product) :is(.product-content,.shop-product-content,.mh-product-body){padding:10px!important}
  body :is(.product-title,.shop-product-title,.mh-product h3){font-size:12px!important}
  body :is(.product-card-actions,.shop-product-card-actions,.mh-product-actions){gap:6px!important}
}
