/* Farah Kitchen — Mobile Responsive Layer
   Desktop styles remain untouched. This file owns mobile behavior only. */

@media (max-width: 1100px){
  .nav-wrap{gap:18px}
  .main-nav{gap:20px}
  .nav-tools label{display:none}
  .hero-copy{width:58%}
  .dish-grid{grid-template-columns:repeat(3,1fr)}
  .menu-grid{grid-template-columns:repeat(3,1fr)}
}

@media (max-width: 820px){
  html,body{max-width:100%;overflow-x:hidden}
  img,svg{max-width:100%}
  .container{width:calc(100% - 28px);max-width:none}

  /* Header */
  .site-header{left:0;right:0;width:auto;border-radius:0 0 20px 20px}
  .site-header .nav-wrap{
    width:100%;height:66px;padding:0 14px;display:flex;direction:ltr!important;
    align-items:center;justify-content:space-between;gap:10px
  }
  .site-header .site-logo{
    order:2!important;min-width:0!important;flex:1 1 auto;justify-content:center;margin:0;
    direction:rtl;overflow:hidden
  }
  .site-header .main-nav{
    order:4!important;position:absolute;top:66px;left:0;right:0;width:100%;height:auto;
    display:none!important;flex-direction:column;align-items:stretch;gap:0;padding:10px 18px;
    background:#11100f;border-bottom:1px solid #3d3327;direction:rtl
  }
  .site-header .main-nav.open{display:flex!important}
  .site-header .main-nav a{height:auto;min-height:44px;justify-content:center;padding:9px 0}
  .site-header .main-nav a.active:after{bottom:3px;left:35%;right:35%}
  .site-header .nav-tools{
    order:3!important;flex:0 0 auto;display:flex;align-items:center;gap:9px;
    margin:0;direction:ltr;white-space:nowrap
  }
  .site-header .nav-tools .account-link{display:none}
  .site-header .nav-tools .lang-switch{font-size:13px}
  .site-header .mobile-menu{display:block!important;order:4!important;font-size:30px;line-height:1;padding:0 2px}
  .site-header .cart-link{font-size:0;gap:0}
  .site-header .cart-link .cart-symbol{font-size:17px}
  .site-header .cart-link em{top:-8px;right:-7px}
  .site-header .logo-text b{font-size:15px}
  .site-header .logo-text small{font-size:9px}
  .site-header .logo-chef{font-size:28px}
  html[dir="ltr"] .site-header .site-logo{order:2!important;justify-content:center}
  html[dir="ltr"] .site-header .nav-tools{order:3!important;direction:ltr!important}
  html[dir="ltr"] .site-header .main-nav{direction:ltr!important}
  html[dir="rtl"] .site-header .nav-wrap{direction:rtl!important}
  html[dir="rtl"] .site-header .site-logo{order:2!important;direction:rtl}
  html[dir="rtl"] .site-header .nav-tools{order:3!important;direction:ltr}
  html[dir="rtl"] .site-header .main-nav{direction:rtl!important}

  /* Home hero */
  .hero{min-height:700px;overflow:hidden}
  .hero-bg{background-position:center center}
  .hero-wrap{min-height:700px;padding:120px 0 145px;align-items:center}
  .hero-copy{width:100%;margin:35px auto 0;padding:0 8px}
  .hero-slogan{left:50%;top:118px;width:180px;transform:translateX(-50%) rotate(-3deg);font-size:17px}
  .hero-slogan strong{font-size:21px}
  .hero-slogan i{font-size:22px}
  .brand-mark{margin-bottom:10px}
  .brand-mark .chef-logo{font-size:62px}
  .brand-mark strong{font-size:43px;line-height:1.05}
  .brand-mark small{font-size:20px}
  .hero-lead{font-size:15px;line-height:1.7;margin:10px 0 16px}
  .hero-actions{gap:8px;flex-wrap:wrap}
  .btn{padding:11px 17px;font-size:13px}
  .hero-categories{left:0;right:0;overflow:hidden}
  .category-row{
    width:100%;display:flex;grid-template-columns:none;gap:14px;
    overflow-x:auto;overflow-y:hidden;padding:10px 4px 11px;
    scrollbar-width:none;-ms-overflow-style:none
  }
  .category-row::-webkit-scrollbar{display:none}
  .category{flex:0 0 76px;padding:0 2px}
  .category-icon{width:50px;height:50px}
  .category-icon svg{width:28px;height:28px}
  .category b{margin-top:6px;font-size:11px;white-space:nowrap}
  .category small{font-size:8px;white-space:nowrap}

  /* Home sections */
  .signature{padding:24px 0 28px}
  .section-head{grid-template-columns:1fr;gap:11px;margin-bottom:18px}
  .section-title{grid-column:1;grid-row:1}
  .section-title:before,.section-title:after{display:none}
  .section-head span{font-size:13px}
  .section-head h2{font-size:25px}
  .products-view-all{grid-column:1;grid-row:2;justify-self:center;font-size:12px;padding:8px 15px}
  .dish-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .dish-card{min-width:0;border-radius:14px}
  .dish-card img{height:125px}
  .dish-body{padding:7px 6px 10px}
  .dish-body h3{font-size:14px;line-height:1.4}
  .dish-body p{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dish-body strong{font-size:14px;margin-bottom:5px}
  .dish-body button{font-size:11px;padding:6px 11px}

  .promise-row{grid-template-columns:1fr 1fr}
  .promise-cta{grid-column:1/-1;justify-content:center;padding:15px 8px;gap:10px}
  .promise-cta h3{font-size:17px}
  .promise-cta p{font-size:12px}
  .promise-item{min-height:96px;border-right:1px solid #4a4135;border-bottom:1px solid #3e352a}
  .promise-item i{font-size:27px}
  .promise-item b{font-size:13px}
  .promise-item small{font-size:9px}

  /* General internal pages */
  .inner{padding:100px 0 45px;min-height:70vh}
  .page-title{margin-bottom:20px}
  .page-title h1{font-size:32px}
  .content-page{padding:22px 18px;border-radius:18px}
  .content-page h1{font-size:30px}
  .contact-grid,.account-grid,.checkout-grid{grid-template-columns:1fr;gap:15px}
  .form-card,.checkout-box{padding:18px}
  .success-box{padding:38px 20px}
  .success-box .big-icon{font-size:52px}
  .toast{left:14px;right:14px;bottom:14px;text-align:center}

  /* Footer */
  .footer-main{grid-template-columns:1fr 1fr;gap:20px;padding:24px 0}
  .footer-brand,.footer-note{grid-column:1/-1}
  .footer-note{text-align:center}
  .footer-bottom .container{display:block;text-align:center}
  .footer-bottom .container>*{display:block;margin:3px 0}
}

@media (max-width: 560px){
  .container{width:calc(100% - 22px)}

  /* Header: keep every control inside the viewport */
  .site-header .nav-wrap{height:62px;padding:0 10px;gap:7px}
  .site-header .main-nav{top:62px}
  .site-header .site-logo{max-width:150px}
  .site-header .logo-chef{font-size:25px}
  .site-header .logo-text b{font-size:13px}
  .site-header .logo-text small{font-size:8px}
  .site-header .nav-tools{gap:7px}
  .site-header .lang-switch{font-size:12px}
  .site-header .mobile-menu{font-size:28px}

  /* Hero */
  .hero{min-height:690px}
  .hero-wrap{min-height:690px;padding:105px 0 138px}
  .hero-copy{margin-top:30px;padding:0 4px}
  .hero-slogan{top:105px;width:150px;font-size:14px}
  .hero-slogan strong{font-size:17px}
  .hero-slogan i{font-size:19px}
  .brand-mark .chef-logo{font-size:52px}
  .brand-mark strong{font-size:35px}
  .brand-mark small{font-size:17px}
  .hero-lead{font-size:13px;line-height:1.65;margin:9px 0 14px}
  .hero-actions{gap:7px}
  .btn{padding:10px 14px;font-size:12px}

  /* Categories: horizontal, contained, no 900px overflow */
  .hero-categories .container{width:100%}
  .category-row{gap:12px;padding:9px 11px 10px}
  .category{flex-basis:72px}
  .category-icon{width:46px;height:46px}
  .category-icon svg{width:25px;height:25px}
  .category b{font-size:10px;margin-top:5px}
  .category small{font-size:7px}

  .signature{padding:22px 0 25px}
  .section-head{gap:9px;margin-bottom:16px}
  .section-head span{font-size:12px}
  .section-head h2{font-size:23px}
  .products-view-all{font-size:11px;padding:7px 13px}
  .dish-grid{gap:8px}
  .dish-card img{height:118px}
  .dish-body h3{font-size:13px}
  .dish-body strong{font-size:13px}
  .dish-body button{font-size:10px;padding:5px 9px}

  .promise-row{grid-template-columns:1fr 1fr}
  .promise-cta{padding:13px 4px}
  .promise-cta .btn{padding:10px 13px}
  .promise-cta h3{font-size:15px}
  .promise-cta p{font-size:11px}
  .promise-item{min-height:92px}
  .promise-item i{font-size:25px}
  .promise-item b{font-size:12px}
  .promise-item small{font-size:8px}

  .inner{padding-top:92px}
  .page-title h1{font-size:29px}
  .content-page{padding:20px 15px}
  .content-page h1{font-size:27px}
  .footer-main{grid-template-columns:1fr;gap:16px}
  .footer-brand,.footer-note{grid-column:auto}

  /* Cart page rows */
  .cart-row{grid-template-columns:62px minmax(0,1fr) 30px;gap:8px;padding:7px}
  .cart-row img{width:62px;height:54px}
  .cart-row>div:last-child{grid-column:3;grid-row:1;align-self:start}
  .cart-row input[type="number"]{grid-column:2;width:52px}

  /* Keep long text and controls from creating horizontal overflow */
  .content-page,.form-card,.checkout-box,.account-panel,.logged-panel,
  .menu-card,.dish-card,.about-value,.about-cta-box{min-width:0;max-width:100%}
}

@media (max-width: 390px){
  .site-header .site-logo{max-width:125px}
  .site-header .logo-text b{font-size:12px}
  .site-header .logo-text small{font-size:7px}
  .site-header .logo-chef{font-size:22px}
  .site-header .lang-switch{font-size:11px}
  .hero{min-height:660px}
  .hero-wrap{min-height:660px;padding-top:98px;padding-bottom:132px}
  .brand-mark strong{font-size:31px}
  .hero-slogan{width:135px}
  .hero-actions .btn{padding:9px 11px}
  .category{flex-basis:68px}
  .category-icon{width:43px;height:43px}
}

/* Mobile categories: all seven categories stay visible in one row */
@media (max-width: 560px){
  .hero-categories .container{
    width:100%;
    max-width:none;
    padding:0;
  }
  .category-row{
    width:100%;
    max-width:none;
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:0;
    overflow:hidden;
    padding:8px 2px 9px;
    box-sizing:border-box;
  }
  .category{
    min-width:0;
    padding:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
  }
  .category:hover{transform:none}
  .category-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
  }
  .category-icon svg{width:21px;height:21px}
  .category b{
    width:100%;
    margin-top:4px;
    font-size:7px;
    line-height:1.2;
    letter-spacing:-.15px;
    white-space:nowrap;
    text-align:center;
  }
  .category small{display:none}
}

@media (max-width: 390px){
  .category-row{padding-left:1px;padding-right:1px}
  .category-icon{width:35px;height:35px;flex-basis:35px}
  .category-icon svg{width:19px;height:19px}
  .category b{font-size:6.5px;letter-spacing:-.2px}
}


/* Mobile category slider: show four clear categories with compact navigation arrows. */
@media (max-width:700px){
  .hero-categories{position:absolute;overflow:hidden}
  .hero-categories .container{width:100%;max-width:none;padding:0}
  .category-row{
    display:flex;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    flex-wrap:nowrap;
    gap:0;
    padding:12px 38px 11px;
    box-sizing:border-box;
    scrollbar-width:none;
    -ms-overflow-style:none;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    direction:ltr;
  }
  .category-row::-webkit-scrollbar{display:none}
  .category{
    flex:0 0 25%;
    width:25%;
    min-width:25%;
    box-sizing:border-box;
    padding:0 4px;
    scroll-snap-align:start;
  }
  .category-icon{width:54px;height:54px;flex:0 0 54px}
  .category-icon svg{width:30px;height:30px}
  .category b{
    width:100%;
    margin-top:6px;
    font-size:10px;
    line-height:1.25;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .category small{display:none}
  .category-slider-arrow{
    position:absolute;
    z-index:6;
    top:50%;
    width:27px;
    height:27px;
    padding:0;
    transform:translateY(-50%);
    display:grid;
    place-items:center;
    border:1px solid rgba(208,163,40,.8);
    border-radius:50%;
    background:rgba(12,10,8,.78);
    color:#f0bd24;
    font:400 22px/1 Arial,sans-serif;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.35);
    transition:background .2s ease,transform .2s ease,opacity .2s ease;
  }
  .category-slider-arrow:hover{background:rgba(35,28,17,.95)}
  .category-slider-arrow:active{transform:translateY(-50%) scale(.94)}
  .category-slider-arrow.prev{left:7px}
  .category-slider-arrow.next{right:7px}
  .category-slider-arrow[hidden]{display:none}
}

@media (max-width:390px){
  .category-row{padding-left:35px;padding-right:35px}
  .category-icon{width:50px;height:50px;flex-basis:50px}
  .category-icon svg{width:28px;height:28px}
  .category b{font-size:9px}
  .category-slider-arrow{width:25px;height:25px;font-size:20px}
  .category-slider-arrow.prev{left:6px}
  .category-slider-arrow.next{right:6px}
}

/* Mobile footer: compact, centered layout. */
@media (max-width:600px){
  .site-footer{
    width:100%;
        min-height: 170px;
        height: 150px;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box;
  }

  .site-footer > .container{
    width:100%;
    max-width:none;
    margin:0 auto!important;
    padding:0 12px!important;
    box-sizing:border-box;
  }

  .footer-main{
    width:100%;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:16px 0 10px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:9px!important;
    box-sizing:border-box;
  }

  .footer-main > *{
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    align-self:center!important;
  }

  .footer-main .socials{
    order:1;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
  }

  .footer-main .footer-note{
    order:2;
    text-align:center!important;
  }

  .footer-main .footer-note strong,
  .footer-main .footer-note small{
    display:block;
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .footer-main .footer-lang,
  .footer-main .lang-switch,
  .footer-main .language-switch{
    order:3;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    text-align:center!important;
    margin:0 auto!important;
  }

  .footer-main .footer-brand{
    order:4;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }

  .footer-main .footer-brand .footer-logo,
  .footer-main .footer-brand img{
    display:block!important;
    width:auto!important;
    max-width:150px!important;
    height:auto!important;
    max-height:58px!important;
    margin:0 auto 3px!important;
  }

  .footer-main .footer-brand h3,
  .footer-main .footer-brand small,
  .footer-main .footer-brand p{
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .footer-bottom{
    width:100%;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:8px 0 12px!important;
    text-align:center!important;
    box-sizing:border-box;
  }

  .footer-bottom .container{
    width:100%;
    padding:0 12px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:5px!important;
    text-align:center!important;
    box-sizing:border-box;
  }

  .footer-bottom-links{
    justify-content:center!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:8px 14px!important;
    text-align:center!important;
  }

  .footer-bottom p,
  .footer-bottom a{
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
