
/* YemekTabi mobile card, category, header alignment FIX v7. No external dependencies. */
@media(max-width:650px){
  /* Both category carousels: three tiles in the visible viewport. */
  .yt-home-content .category-carousel{gap:3px!important;min-width:0!important}
  .yt-home-content .category-track{min-width:0!important;gap:6px!important;flex:1 1 0!important}
  .yt-home-content .category-track>.category-tile{
    flex:0 0 calc((100% - 12px)/3)!important;
    min-width:0!important;width:calc((100% - 12px)/3)!important;
    height:104px!important;min-height:104px!important;
    padding:5px 3px!important;box-sizing:border-box!important;gap:3px!important
  }
  .yt-home-content .category-tile .cat-food{
    width:min(100%,76px)!important;height:65px!important;font-size:32px!important;
    flex:0 0 65px!important
  }
  .yt-home-content .category-tile .cat-food img{width:100%!important;height:100%!important;object-fit:cover!important}
  .yt-home-content .category-tile b{font-size:10px!important;line-height:1.15!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
  .yt-home-content .category-carousel>.cat-arrow{flex:0 0 24px!important;width:24px!important;height:29px!important;font-size:20px!important}
  body .yt-inner .yt-category-scroll{padding:0 20px!important;min-width:0!important}
  #categoryButtons{gap:6px!important;min-width:0!important}
  #categoryButtons .category-choice{
    flex:0 0 calc((100% - 12px)/3)!important;
    width:calc((100% - 12px)/3)!important;
    min-width:0!important;max-width:calc((100% - 12px)/3)!important;
    min-height:103px!important;height:103px!important;
    padding:5px 2px!important;box-sizing:border-box!important;
  }
  #categoryButtons .yt-cat-image{width:min(100%,75px)!important;height:62px!important;margin-inline:auto!important}
  #categoryButtons .yt-cat-label{font-size:10px!important;line-height:1.1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  #categoryButtons .cat-count{font-size:9px!important}
  body .yt-inner .yt-category-scroll>.yt-cat-prev,
  body .yt-inner .yt-category-scroll>.yt-cat-next{width:22px!important;height:28px!important;font-size:18px!important}
  /* All shared product cards: compact information region, prevent text overflow. */
  .yt-unified-card{min-width:0!important}
  .yt-unified-photo{aspect-ratio:1.35!important}
  .yt-unified-body{padding:8px 9px 9px!important;gap:3px!important;min-width:0!important}
  .yt-unified-body>small{font-size:9px!important;line-height:1.15!important;min-width:0}
  .yt-unified-body h3{font-size:12px!important;line-height:1.22!important;min-width:0!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important}
  .yt-unified-body h3 a{overflow-wrap:anywhere!important}
  .yt-unified-body p{font-size:10px!important;line-height:1.25!important;min-width:0!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .yt-unified-body .yt-card-reviews{min-height:17px!important;font-size:9px!important;gap:2px!important;
    overflow:hidden!important;white-space:nowrap!important}
  .yt-unified-body .yt-stars,.yt-unified-body .yt-empty-five{font-size:11px!important;letter-spacing:0!important}
  .yt-unified-bottom{gap:3px!important;min-width:0!important}
  .yt-unified-bottom strong{font-size:13px!important;min-width:0!important;overflow-wrap:anywhere!important}
  .yt-unified-bottom button{flex-shrink:0!important}
  .yt-unified-card>.yt-fav-toggle,.yt-unified-card .yt-fav-toggle,
  .yt-product-card .yt-fav-toggle,.product-card .yt-fav-toggle{
    top:6px!important;right:6px!important;width:27px!important;height:27px!important;
    min-width:27px!important;min-height:27px!important;font-size:17px!important;
    line-height:1!important;padding:0!important;display:flex!important;
    align-items:center!important;justify-content:center!important
  }
  /* Small mobile cart: icon and amount in separate aligned columns, never overlap. */
  .yt-header .yt-cart{
    display:grid!important;grid-template-columns:15px minmax(0,1fr)!important;
    grid-template-rows:auto!important;align-items:center!important;justify-items:center!important;
    column-gap:3px!important;row-gap:0!important;padding:3px 4px!important;
    min-width:0!important;max-width:88px!important;white-space:nowrap!important;
    line-height:1.1!important;font-size:11px!important
  }
  .yt-header .yt-cart b{display:none!important}
  .yt-header .yt-cart small{
    display:block!important;grid-column:2!important;grid-row:1!important;
    font-size:9px!important;line-height:1.1!important;max-width:100%!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    font-variant-numeric:tabular-nums!important
  }
  /* Restaurant cards: short meta text cannot protrude beyond the card. */
  .yt-home-rest-wrap .restaurant-body,.yt-dir-wrap .restaurant-body,
  .yt-dir-wrap .yt-dir-card{min-width:0!important;overflow:hidden}
  .yt-home-rest-wrap .restaurant-body *, .yt-dir-wrap .restaurant-body *{max-width:100%}
  .yt-home-rest-wrap .restaurant-body small,.yt-dir-wrap .restaurant-body small{
    overflow:hidden!important;text-overflow:ellipsis!important
  }
}
@media(max-width:375px){
  .yt-unified-body{padding:7px!important}
  .yt-unified-bottom strong{font-size:12px!important}
  .yt-header .yt-cart small{font-size:8px!important}
}

/* Product price/action compact placement v9 — shared product cards only. */
.yt-unified-card{display:flex!important;flex-direction:column!important;min-width:0!important}
.yt-unified-card .yt-unified-body{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;flex:1 1 auto!important;min-height:0!important;padding:9px 11px 10px!important}
.yt-unified-card .yt-unified-body .yt-card-category{margin:0!important}
.yt-unified-card .yt-unified-body h3{margin:1px 0!important;line-height:1.25!important}
.yt-unified-card .yt-unified-body .yt-card-restaurant{margin:0!important;line-height:1.25!important}
.yt-unified-card .yt-unified-body .yt-card-reviews{margin:1px 0 3px!important;min-height:0!important}
.yt-unified-card .yt-unified-bottom{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important;min-width:0!important;margin:3px 0 0!important;padding:0!important;position:static!important;transform:none!important}
.yt-unified-card .yt-unified-bottom>strong{margin:0!important;flex:0 1 auto!important;min-width:0!important;text-align:right!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:14px!important;line-height:1.2!important}
.yt-unified-card .yt-unified-bottom .yt-qty-controls{margin:0!important;display:flex!important;align-items:center!important;gap:3px!important;flex:0 0 auto!important}
.yt-unified-card .yt-unified-bottom .yt-qty-controls button{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;border-radius:10px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important;line-height:1!important}
.yt-unified-card .yt-unified-bottom .yt-qty-controls span{font-size:12px!important;min-width:12px!important;text-align:center!important}
@media(max-width:650px){
 .yt-unified-card .yt-unified-body{padding:7px 8px 8px!important;gap:2px!important}
 .yt-unified-card .yt-unified-bottom{gap:5px!important;margin-top:3px!important}
 .yt-unified-card .yt-unified-bottom>strong{font-size:12px!important;letter-spacing:-.25px!important}
 .yt-unified-card .yt-unified-bottom .yt-qty-controls button{width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;font-size:19px!important;border-radius:9px!important}
 .yt-unified-card .yt-unified-bottom .yt-qty-controls span{font-size:10px!important;min-width:9px!important}
}
@media(max-width:360px){.yt-unified-card .yt-unified-bottom>strong{font-size:11px!important}.yt-unified-card .yt-unified-bottom .yt-qty-controls button{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important}}

/* v10: put real availability badge at the LEFT of the price/+ row.
   Availability script retains the badge as a direct card child so updates work. */
.yt-unified-card{position:relative!important;min-width:0!important}
.yt-unified-card .yt-unified-body{padding-bottom:48px!important}
.yt-unified-card .yt-unified-bottom{
 position:absolute!important;right:10px!important;bottom:9px!important;
 margin:0!important;max-width:calc(100% - 96px)!important;
 display:flex!important;justify-content:flex-end!important;align-items:center!important;
 gap:5px!important;z-index:3!important;
}
.yt-unified-card>.yt185-state{
 position:absolute!important;left:9px!important;right:auto!important;bottom:10px!important;
 top:auto!important;width:auto!important;min-width:0!important;max-width:83px!important;
 height:27px!important;min-height:27px!important;
 margin:0!important;padding:3px 8px!important;
 border-radius:9px!important;font-size:10px!important;font-weight:750!important;
 line-height:1.15!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;z-index:3!important;
}
@media(max-width:650px){
 .yt-unified-card .yt-unified-body{padding-bottom:39px!important}
 .yt-unified-card .yt-unified-bottom{right:7px!important;bottom:7px!important;max-width:calc(100% - 70px)!important;gap:3px!important}
 .yt-unified-card .yt-unified-bottom>strong{font-size:11px!important;letter-spacing:-.4px!important}
 .yt-unified-card .yt-unified-bottom .yt-qty-controls button{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;font-size:17px!important}
 .yt-unified-card>.yt185-state{left:7px!important;bottom:7px!important;max-width:60px!important;height:24px!important;min-height:24px!important;padding:3px 5px!important;font-size:9px!important;border-radius:8px!important}
}
@media(max-width:360px){
 .yt-unified-card .yt-unified-bottom>strong{font-size:10px!important}
 .yt-unified-card>.yt185-state{max-width:54px!important;font-size:8px!important}
}
