/* Hotfix35 UI overrides: header sizing, hero proportion, card footer collisions */
.ub-topbar__in{grid-template-columns:auto minmax(340px,1fr) auto;align-items:center}
.ub-left{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:nowrap}
.ub-brand{flex:0 0 auto}
.ub-brand img{max-width:240px;height:auto}
.ub-header__pulse{flex:0 1 auto;max-width:260px;overflow:hidden}
.ub-header__pulseText{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ub-search{min-width:0}
.ub-search__box{min-width:0}
.ub-search input{min-width:0}
.ub-actions{flex-wrap:nowrap}
.ub-action{white-space:nowrap}
@media (max-width:1320px){
  .ub-topbar__in{grid-template-columns:auto minmax(260px,1fr) auto}
  .ub-header__pulse{max-width:220px}
  .ub-action__t{font-size:12px}
}
@media (max-width:1180px){
  .ub-topbar__in{grid-template-columns:1fr;align-items:stretch}
  .ub-left{flex-wrap:wrap}
  .ub-search{width:100%}
  .ub-actions{width:100%;overflow:auto;padding-bottom:2px}
}
.ub-home2-hero__grid--solo .home-slide__img{height:280px!important;object-fit:cover}
.ub-home2-hero__grid--solo .home-slide__content{padding:14px 16px 14px!important}
.ub-home2-slider .home-slide__title{font-size:34px!important;line-height:1.08!important}
.ub-home2-slider .home-slide__sub{font-size:14px}
.ub-home2 .ub-prod-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.ub-home2 .ub-prod-card{height:100%}
.ub-home2 .ub-prod-card__body{display:flex;flex-direction:column;min-height:0;flex:1}
.ub-home2 .ub-prod-card__footer{margin-top:auto;display:flex;flex-direction:column;align-items:stretch;gap:10px}
.ub-home2 .ub-prod-card__priceCol{width:100%}
.ub-home2 .ub-prod-card__footerMeta{display:block;min-height:36px}
.ub-home2 .ub-prod-card__ctaWrap{width:100%;min-width:0;justify-content:stretch}
.ub-home2 .ub-prod-card__cta{display:flex;width:100%;min-width:0;justify-content:center;text-align:center}
@media (max-width:1200px){
  .ub-home2 .ub-prod-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:980px){
  .ub-home2 .ub-prod-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:720px){
  .ub-home2-hero__grid--solo .home-slide__img{height:220px!important}
  .ub-home2-slider .home-slide__title{font-size:28px!important}
}
@media (max-width:560px){
  .ub-home2 .ub-prod-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Hotfix53: search/header compression, hero height, rail cleanup, product CTA collision fixes */
.ub-header__pulse{max-width:190px}
.ub-search{min-width:420px}
.ub-search__box{flex:1 1 auto;min-width:220px}
.ub-search input{font-size:15px}
.ub-search__cat{flex:0 0 auto}
.ub-actions{gap:8px}
.ub-action{padding:10px 11px}
.ub-action__t{font-size:12px}
.ub-header__railIn{gap:10px}
.ub-header__railStat{display:none!important}

.ub-home2-hero{padding-top:4px}
.ub-home2-hero__grid--solo .home-slide__img{height:228px!important}
.ub-home2-slider .home-slide__content{max-width:680px!important;padding:12px 18px 16px!important}
.ub-home2-slider .home-slide__title{font-size:30px!important;line-height:1.06!important}
.ub-home2-slider .home-slide__sub{font-size:13px!important;line-height:1.5!important;max-width:58ch!important}
.ub-home2-slider .home-slide__meta{gap:8px}
.ub-home2-slider .home-slide__cta{margin-top:10px}

.ub-home2 .ub-prod-card__footer,
.ub-prod-card__footer{
  display:grid!important;
  grid-template-columns:1fr!important;
  align-items:stretch!important;
  gap:10px!important;
}
.ub-home2 .ub-prod-card__priceCol,
.ub-prod-card__priceCol{width:100%;min-width:0}
.ub-home2 .ub-prod-card__footerMeta,
.ub-prod-card__footerMeta{
  display:block!important;
  min-height:0!important;
  margin-top:6px!important;
  white-space:normal!important;
  word-break:break-word!important;
}
.ub-home2 .ub-prod-card__ctaWrap,
.ub-prod-card__ctaWrap{
  width:100%!important;
  min-width:0!important;
  justify-content:stretch!important;
}
.ub-home2 .ub-prod-card__cta,
.ub-prod-card__cta{
  width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  line-height:1.2!important;
}

@media (max-width:1560px){
  .ub-header__pulse{display:none!important}
}

@media (max-width:1380px){
  .ub-topbar__in{grid-template-columns:auto minmax(380px,1fr) auto}
  .ub-left{gap:10px}
  .ub-search{min-width:360px}
  .ub-action{padding:10px}
}

@media (max-width:1240px){
  .ub-search{min-width:0}
  .ub-search__cat{display:none!important}
  .ub-actions{gap:6px}
  .ub-action__t{font-size:11px}
  .ub-home2-hero__grid--solo .home-slide__img{height:210px!important}
  .ub-home2-slider .home-slide__title{font-size:28px!important}
}

@media (max-width:980px){
  .ub-header__rail{display:none}
  .ub-home2-hero__grid--solo .home-slide__img{height:190px!important}
  .ub-home2-slider .home-slide__content{padding:12px 14px 14px!important}
}

@media (max-width:720px){
  .ub-search input{font-size:14px}
  .ub-home2-hero__grid--solo .home-slide__img{height:168px!important}
  .ub-home2-slider .home-slide__title{font-size:24px!important}
  .ub-home2-slider .home-slide__sub{font-size:12px!important}
}

/* Hotfix54: header/search layout + slider proportions + catalog card CTA collisions */
@media (min-width: 901px){
  .ub-topbar__in{flex-wrap:nowrap!important}
  .ub-left{flex:0 0 auto!important;min-width:0!important}
  .ub-actions{flex:0 0 auto!important}
  .ub-search{flex:1 1 560px!important;min-width:360px!important}
  .ub-search input{height:50px!important;font-size:15px!important}
  .ub-search__go{height:50px!important}
}
@media (max-width: 900px){
  .ub-topbar__in{flex-wrap:wrap!important}
  .ub-search{width:100%!important;min-width:0!important}
}

/* Slider: Cimri benzeri daha kompakt hero */
.ub-home2-hero__grid--solo .home-slide__img{height:260px!important;object-fit:cover!important}
.ub-home2-slider .home-slide__title{font-size:28px!important;line-height:1.08!important}
.ub-home2-slider .home-slide__sub{font-size:13px!important;line-height:1.55!important;max-width:62ch!important}
@media (max-width: 720px){
  .ub-home2-hero__grid--solo .home-slide__img{height:190px!important}
  .ub-home2-slider .home-slide__title{font-size:22px!important}
  .ub-home2-slider .home-slide__sub{font-size:12px!important;max-width:56ch!important}
}
@media (max-width: 420px){
  .ub-home2-hero__grid--solo .home-slide__img{height:160px!important}
}

/* Premium catalog cards: price/CTA üstüste binmesin */
@media (max-width: 980px){
  .ub-card-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important}
  .ub-card-btnrow{display:flex!important;flex-direction:column!important;gap:8px!important;align-items:stretch!important}
  .ub-card-btnrow .btn{width:100%!important;justify-content:center!important}
}


/* Hotfix54.1: mobile header ordering + brand/search visibility hardening */
@media (max-width: 900px){
  .ub-topbar__in{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important}
  .ub-left{order:1!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:nowrap!important;min-width:0!important}
  .ub-brand{display:flex!important;align-items:center!important;min-width:0!important;max-width:calc(100% - 56px)!important;overflow:hidden!important}
  .ub-brand img{display:block!important;height:34px!important;max-width:min(220px,62vw)!important;width:auto!important;object-fit:contain!important}
  .ub-header__pulse,.ub-catbtn{display:none!important}
  .ub-search{order:2!important;display:flex!important;width:100%!important;min-width:0!important;flex:1 1 100%!important;gap:8px!important}
  .ub-search__box{min-width:0!important;flex:1 1 auto!important}
  .ub-search input{width:100%!important;min-width:0!important;height:46px!important}
  .ub-search__go{height:46px!important;min-width:74px!important;flex:0 0 auto!important}
  .ub-actions{order:3!important;width:100%!important;display:flex!important;flex-wrap:nowrap!important;overflow:auto!important;padding-bottom:2px!important;gap:8px!important;scrollbar-width:none!important}
  .ub-actions::-webkit-scrollbar{display:none!important}
  .ub-action{flex:0 0 auto!important;white-space:nowrap!important}
}
@media (max-width: 640px){
  .ub-topbar{padding:8px 0!important}
  .ub-search__cat{display:none!important}
  .ub-brand img{max-width:min(200px,58vw)!important;height:32px!important}
  .ub-action{padding:9px 11px!important}
  .ub-action__t{font-size:12px!important}
}
