/* =====================================================
   GREEN CAFE — FULL STYLE.CSS
   ҚОҢЫР ТЕМА
===================================================== */

:root{
  --green:#3b1f12;
  --green2:#5a321f;

  --bg:#f8f5f0;
  --white:#ffffff;
  --line:#e6ddd5;
  --muted:#81756d;
  --danger:#b42318;
  --text:#33251e;
}


/* =====================================================
   RESET
===================================================== */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

img{
  display:block;
  max-width:100%;
}

.container{
  width:min(1180px,calc(100% - 28px));
  margin:auto;
}


/* =====================================================
   HEADER
===================================================== */

.header{
  position:sticky;
  top:0;
  z-index:50;

  background:rgba(248,245,240,.96);
  backdrop-filter:blur(14px);

  border-bottom:1px solid var(--line);
}

.header-inner{
  height:88px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:15px;
}

.brand{
  display:flex;
  align-items:center;

  gap:14px;

  color:var(--text);
  text-decoration:none;
}

.logo{
  width:54px;
  height:54px;

  border-radius:50%;
  object-fit:cover;

  background:#fff;
}

.brand-text strong{
  display:block;

  font-size:27px;
  font-weight:600;

  letter-spacing:5px;

  color:var(--green);
}

.brand-text small{
  display:block;

  margin-top:4px;

  color:#988c84;

  font-size:12px;
  letter-spacing:.4px;
}


/* =====================================================
   CART ICON
===================================================== */

.cart-icon{
  position:relative;

  width:52px;
  height:52px;

  border:0;
  border-radius:50%;

  background:#fff;
  color:var(--green);

  font-size:22px;

  box-shadow:
    0 5px 18px rgba(59,31,18,.08);
}

.cart-icon span{
  position:absolute;

  top:-5px;
  right:-3px;

  min-width:24px;
  height:24px;

  padding:0 6px;

  border-radius:20px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:var(--green);
  color:#fff;

  font-size:11px;
  font-weight:700;
}


/* =====================================================
   HERO
===================================================== */

.hero{
  position:relative;

  min-height:580px;

  margin-top:24px;

  border-radius:32px;
  overflow:hidden;

  display:flex;
  align-items:flex-end;

  background:
    linear-gradient(
      90deg,
      rgba(59,31,18,.82) 0%,
      rgba(59,31,18,.60) 38%,
      rgba(59,31,18,.22) 70%,
      rgba(59,31,18,.10) 100%
    ),
    url("images/hero.png")
    center center / cover no-repeat;

  box-shadow:
    0 12px 40px rgba(59,31,18,.12);
}

.hero-content{
  position:relative;

  z-index:2;

  padding:52px;

  max-width:620px;

  color:#fff;
}


/* =====================================================
   OPEN STATUS
===================================================== */

.open-status{
  display:inline-flex;
  align-items:center;

  gap:9px;

  margin-bottom:24px;

  padding:10px 14px;

  border-radius:999px;

  background:
    rgba(255,255,255,.16);

  backdrop-filter:blur(4px);

  font-size:15px;

  color:#fff;
}

.open-status span{
  width:10px;
  height:10px;

  border-radius:50%;

  /* статус нүктесі жасыл күйінде қалады */
  background:#79e06a;

  box-shadow:
    0 0 10px rgba(121,224,106,.9);
}


/* =====================================================
   HERO TEXT
===================================================== */

.hero h1{
  margin:0 0 18px;

  font-size:clamp(34px,5vw,64px);
  line-height:1.05;

  font-weight:800;

  color:#fff;
}

.hero p{
  margin:0 0 28px;

  font-size:18px;
  line-height:1.55;

  color:
    rgba(255,255,255,.92);
}

.hero-btn{
  display:inline-block;

  padding:16px 24px;

  border-radius:18px;

  background:#f7f1df;
  color:var(--green);

  text-decoration:none;

  font-weight:700;

  transition:.2s;
}

.hero-btn:hover{
  background:#fff;
}


/* =====================================================
   HERO INFO
===================================================== */

.hero-info{
  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:14px;

  margin-top:18px;
  margin-bottom:56px;
}

.info-card{
  display:flex;
  align-items:center;

  gap:15px;

  padding:18px 22px;

  min-height:88px;

  border-radius:22px;

  background:#fff;

  border:
    1px solid var(--line);

  box-shadow:
    0 4px 18px rgba(59,31,18,.03);
}

.info-card > span{
  font-size:22px;
}

.info-card small{
  display:block;

  margin-bottom:5px;

  color:#9a9089;

  font-size:12px;
}

.info-card strong{
  display:block;

  color:var(--green);

  font-size:17px;
}


/* =====================================================
   MENU SECTION
===================================================== */

#menu{
  scroll-margin-top:105px;
}

.menu-title{
  display:flex;

  align-items:flex-end;
  justify-content:space-between;

  gap:15px;

  margin-bottom:20px;
}

.menu-title h2{
  margin:0;

  font-size:34px;

  color:var(--green);
}

.menu-title p{
  margin:0;

  color:var(--muted);

  font-size:13px;
}


/* =====================================================
   FILTERS
===================================================== */

.filters{
  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:12px;
}

.field{
  display:grid;

  gap:6px;

  font-size:13px;
}

.field select,
.field input,
.field textarea{
  width:100%;

  padding:13px;

  border:
    1px solid var(--line);

  border-radius:12px;

  background:#fff;
  color:var(--green);

  outline:none;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:var(--green);

  box-shadow:
    0 0 0 3px
    rgba(59,31,18,.08);
}


/* =====================================================
   CATEGORIES
===================================================== */

.categories{
  display:flex;

  gap:8px;

  overflow-x:auto;

  padding:13px 0 10px;

  scrollbar-width:thin;
}

.category-btn{
  flex:none;

  border:
    1px solid var(--line);

  border-radius:30px;

  padding:10px 15px;

  background:#fff;
  color:var(--green);

  white-space:nowrap;

  transition:.2s;
}

.category-btn:hover{
  border-color:
    rgba(59,31,18,.35);

  background:#faf6f1;
}

.category-btn.active{
  background:var(--green);

  border-color:
    var(--green);

  color:#fff;
}

.result-count{
  color:var(--muted);

  font-size:12px;

  margin:
    8px 0 18px;
}


/* =====================================================
   PRODUCTS GRID
===================================================== */

.products{
  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap:16px;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.product{
  min-width:0;

  overflow:hidden;

  background:#fff;

  border:
    1px solid var(--line);

  border-radius:18px;

  display:flex;
  flex-direction:column;

  transition:.2s;
}

.product:hover{
  transform:
    translateY(-2px);

  box-shadow:
    0 12px 30px
    rgba(59,31,18,.08);
}


/* =====================================================
   PRODUCT PHOTO
===================================================== */

.product-photo{
  width:100%;

  aspect-ratio:1/1;

  background:#fff;

  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden;
}

.product-photo img{
  width:100%;
  height:100%;

  object-fit:contain;

  background:#fff;
}

.no-photo{
  width:100%;
  height:100%;

  display:flex;

  align-items:center;
  justify-content:center;

  flex-direction:column;

  color:#9a918a;

  gap:6px;
}

.no-photo strong{
  color:var(--green);

  letter-spacing:3px;

  font-size:22px;
}


/* =====================================================
   PRODUCT BODY
===================================================== */

.product-body{
  padding:14px;

  flex:1;

  display:flex;
  flex-direction:column;
}

.product-category{
  color:var(--muted);

  font-size:10px;

  margin-bottom:7px;
}

.product h3{
  font-size:16px;

  line-height:1.25;

  margin:
    0 0 8px;

  color:var(--green);
}


/* =====================================================
   BANQUET DESCRIPTION
===================================================== */

.product-description{
  margin:
    -2px 0 9px;

  color:#786d66;

  font-size:11px;

  line-height:1.4;
}


/* =====================================================
   PRICE
===================================================== */

.price{
  color:var(--green);

  font-weight:800;

  font-size:18px;

  margin-bottom:12px;
}


/* =====================================================
   PRICE VARIANT
===================================================== */

.variant{
  width:100%;

  border:
    1px solid var(--line);

  border-radius:10px;

  padding:10px;

  margin-bottom:9px;

  color:var(--green);

  background:#fff;
}


/* =====================================================
   BUTTON
===================================================== */

.btn{
  border:0;

  border-radius:13px;

  padding:12px 17px;

  background:var(--green);

  color:#fff;

  font-weight:700;

  transition:.2s;
}

.btn:hover{
  background:var(--green2);
}

.product .btn{
  width:100%;

  margin-top:auto;

  padding:11px;
}

.product .btn:disabled{
  background:#c5bbb3;

  cursor:default;
}


/* =====================================================
   FOOTER
===================================================== */

.footer{
  margin-top:55px;

  border-top:
    1px solid var(--line);

  padding:
    30px 0 100px;
}

.footer-inner{
  display:flex;

  justify-content:
    space-between;

  gap:30px;

  flex-wrap:wrap;

  font-size:13px;
}

.footer a{
  color:var(--green);
}


/* =====================================================
   BOTTOM CART
===================================================== */

.bottom-cart{
  position:fixed;

  right:22px;
  bottom:22px;

  z-index:70;

  box-shadow:
    0 10px 35px
    rgba(59,31,18,.20);
}

.bottom-cart[hidden]{
  display:none;
}


/* =====================================================
   DIALOG / CART
===================================================== */

dialog{
  width:min(
    580px,
    calc(100% - 24px)
  );

  max-height:90vh;

  border:0;

  border-radius:20px;

  padding:0;

  color:var(--green);

  box-shadow:
    0 25px 80px
    rgba(0,0,0,.25);
}

dialog::backdrop{
  background:
    rgba(0,0,0,.5);
}

.modal-header{
  padding:18px 20px;

  border-bottom:
    1px solid var(--line);

  display:flex;

  align-items:center;
  justify-content:space-between;
}

.modal-header h2{
  margin:0;

  color:var(--green);
}

.close-btn{
  width:40px;
  height:40px;

  border:0;

  border-radius:50%;

  background:#f0e9e3;

  font-size:24px;

  color:var(--green);
}

.modal-body{
  padding:20px;

  max-height:
    calc(90vh - 78px);

  overflow:auto;
}


/* =====================================================
   CART ITEM
===================================================== */

.cart-item{
  padding:12px 0;

  border-bottom:
    1px solid var(--line);

  display:flex;

  align-items:center;
  justify-content:space-between;

  gap:15px;
}

.cart-item strong{
  display:block;

  color:var(--green);
}

.cart-item small{
  display:block;

  color:var(--muted);

  margin-top:5px;
}


/* =====================================================
   QUANTITY
===================================================== */

.quantity{
  display:flex;

  align-items:center;

  gap:8px;
}

.quantity button{
  width:32px;
  height:32px;

  border:
    1px solid var(--line);

  border-radius:8px;

  background:#fff;

  color:var(--green);
}


/* =====================================================
   SUMMARY
===================================================== */

.summary{
  margin-top:20px;

  padding:15px;

  border-radius:14px;

  background:#f3eee8;
}

.summary p{
  display:flex;

  justify-content:space-between;

  gap:15px;

  margin:8px 0;
}

.grand{
  color:var(--green);

  font-weight:800;

  font-size:19px;
}


/* =====================================================
   ORDER FORM
===================================================== */

.order-form{
  display:grid;

  gap:13px;

  margin-top:18px;
}

.order-form textarea{
  resize:vertical;

  min-height:80px;
}

.error{
  color:var(--danger);

  min-height:18px;

  margin:0;

  font-size:12px;
}

.empty{
  color:var(--muted);
}


/* =====================================================
   TOAST
===================================================== */

.toast{
  position:fixed;

  left:50%;
  bottom:25px;

  transform:
    translateX(-50%);

  z-index:100;

  background:var(--green);

  color:#fff;

  padding:11px 17px;

  border-radius:30px;

  font-size:13px;

  pointer-events:none;
}

.toast:empty{
  display:none;
}


/* =====================================================
   TABLET
===================================================== */

@media(max-width:950px){

  .products{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

}


/* =====================================================
   PHONE
   2 БАҒАН × 3 ҚАТАР
   БІР ЭКРАНДА ШАМАМЕН 6 ТАҒАМ
===================================================== */

@media(max-width:720px){

  .container{
    width:100%;

    padding-left:8px;
    padding-right:8px;
  }


  /* =====================
     HEADER
  ===================== */

  .header-inner{
    height:68px;
  }

  .brand{
    gap:8px;

    min-width:0;
  }

  .logo{
    width:40px;
    height:40px;

    flex:
      0 0 40px;
  }

  .brand-text{
    min-width:0;
  }

  .brand-text strong{
    font-size:18px;

    letter-spacing:3px;
  }

  .brand-text small{
    font-size:8px;

    white-space:nowrap;
  }

  .cart-icon{
    width:42px;
    height:42px;

    min-width:42px;

    font-size:18px;
  }


  /* =====================
     HERO
  ===================== */

  .hero{
    min-height:390px;

    margin-top:10px;

    border-radius:20px;

    background:
      linear-gradient(
        180deg,
        rgba(59,31,18,.14) 0%,
        rgba(59,31,18,.38) 42%,
        rgba(59,31,18,.88) 100%
      ),
      url("images/hero.png")
      center center / cover no-repeat;
  }

  .hero-content{
    width:100%;

    max-width:100%;

    padding:
      20px 18px;
  }

  .open-status{
    margin-bottom:13px;

    padding:
      7px 10px;

    font-size:12px;
  }

  .hero h1{
    margin-bottom:10px;

    font-size:31px;

    line-height:1.05;
  }

  .hero p{
    margin-bottom:16px;

    font-size:13px;

    line-height:1.4;
  }

  .hero p br{
    display:none;
  }

  .hero-btn{
    padding:
      12px 17px;

    border-radius:13px;

    font-size:13px;
  }


  /* =====================
     INFO
  ===================== */

  .hero-info{
    grid-template-columns:
      1fr 1fr;

    gap:7px;

    margin-top:8px;
    margin-bottom:28px;
  }

  .info-card{
    min-height:62px;

    padding:10px;

    gap:8px;

    border-radius:15px;
  }

  .info-card > span{
    font-size:17px;
  }

  .info-card small{
    font-size:9px;

    margin-bottom:3px;
  }

  .info-card strong{
    font-size:12px;
  }


  /* =====================
     MENU TITLE
  ===================== */

  .menu-title{
    margin-bottom:10px;
  }

  .menu-title h2{
    font-size:25px;
  }

  .menu-title p{
    font-size:10px;
  }


  /* =====================
     FILTERS
  ===================== */

  .filters{
    grid-template-columns:
      1fr;

    gap:7px;
  }

  .field{
    gap:4px;

    font-size:11px;
  }

  .field select,
  .field input,
  .field textarea{
    min-height:38px;

    padding:
      8px 9px;

    border-radius:10px;

    font-size:13px;
  }


  /* =====================
     CATEGORIES
  ===================== */

  .categories{
    gap:5px;

    padding:
      8px 0 6px;

    overflow-x:auto;

    scrollbar-width:none;
  }

  .categories::-webkit-scrollbar{
    display:none;
  }

  .category-btn{
    padding:
      7px 10px;

    font-size:10px;
  }

  .result-count{
    margin:
      4px 0 7px;

    font-size:9px;
  }


  /* =====================
     PRODUCTS
     2 БАҒАН
  ===================== */

  .products{
    grid-template-columns:
      repeat(2,minmax(0,1fr));

    gap:6px;
  }

  .product{
    border-radius:12px;
  }

  .product:hover{
    transform:none;

    box-shadow:none;
  }


  /* =====================
     PHOTO
  ===================== */

  .product-photo{
    aspect-ratio:auto;

    height:100px;
  }

  .product-photo img{
    width:100%;
    height:100%;

    object-fit:contain;
  }


  /* =====================
     BODY
  ===================== */

  .product-body{
    padding:6px;
  }

  .product-category{
    margin-bottom:2px;

    font-size:7px;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
  }

  .product h3{
    min-height:25px;

    margin:
      0 0 3px;

    font-size:10.5px;

    line-height:1.18;

    display:-webkit-box;

    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;
  }


  /* =====================
     DESCRIPTION
  ===================== */

  .product-description{
    margin:
      0 0 5px;

    font-size:8.5px;

    line-height:1.25;

    color:#786d66;

    display:-webkit-box;

    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;

    overflow:hidden;
  }


  /* =====================
     PRICE
  ===================== */

  .price{
    margin-bottom:4px;

    font-size:12.5px;

    line-height:1.1;
  }


  /* =====================
     VARIANT
  ===================== */

  .variant{
    width:100%;

    min-height:27px;

    margin-bottom:4px;

    padding:
      3px 4px;

    border-radius:7px;

    font-size:9px;
  }


  /* =====================
     ADD BUTTON
  ===================== */

  .product .btn{
    width:100%;

    min-height:29px;

    padding:
      4px 3px;

    border-radius:7px;

    font-size:9.5px;
  }


  /* =====================
     FOOTER
  ===================== */

  .footer{
    margin-top:35px;

    padding-bottom:85px;
  }

  .footer-inner{
    display:grid;

    grid-template-columns:1fr;

    gap:16px;
  }


  /* =====================
     BOTTOM CART
  ===================== */

  .bottom-cart{
    left:8px;
    right:8px;
    bottom:8px;

    width:
      calc(100% - 16px);

    min-height:46px;

    border-radius:13px;
  }


  /* =====================
     DIALOG
  ===================== */

  dialog{
    width:
      calc(100% - 10px);

    max-width:none;

    max-height:92dvh;

    border-radius:18px;
  }

  .modal-header{
    padding:
      12px 14px;
  }

  .modal-header h2{
    font-size:18px;
  }

  .modal-body{
    padding:13px;

    max-height:
      calc(92dvh - 60px);
  }


  /* =====================
     CART ITEM
  ===================== */

  .cart-item{
    align-items:flex-start;

    gap:7px;
  }

  .cart-item strong{
    font-size:13px;
  }

  .cart-item small{
    font-size:11px;
  }

  .quantity button{
    width:31px;
    height:31px;
  }


  /* =====================
     SUMMARY
  ===================== */

  .summary{
    padding:11px;

    font-size:12px;
  }

  .grand{
    font-size:16px;
  }


  /* =====================
     FORM
  ===================== */

  .order-form{
    gap:9px;
  }

  .order-form .btn{
    width:100%;

    min-height:46px;

    font-size:13px;
  }


  /* =====================
     TOAST
  ===================== */

  .toast{
    width:max-content;

    max-width:
      calc(100% - 20px);

    bottom:64px;

    text-align:center;
  }

}


/* =====================================================
   VERY SMALL PHONE
===================================================== */

@media(max-width:390px){

  .container{
    padding-left:6px;
    padding-right:6px;
  }

  .logo{
    width:38px;
    height:38px;

    flex-basis:38px;
  }

  .brand-text strong{
    font-size:16px;

    letter-spacing:2px;
  }

  .brand-text small{
    font-size:7px;
  }

  .cart-icon{
    width:39px;
    height:39px;

    min-width:39px;
  }


  /* HERO */

  .hero{
    min-height:360px;

    border-radius:18px;
  }

  .hero-content{
    padding:
      17px 15px;
  }

  .hero h1{
    font-size:28px;
  }

  .hero p{
    font-size:12px;
  }


  /* INFO */

  .hero-info{
    gap:5px;
  }

  .info-card{
    padding:8px;
  }


  /* PRODUCTS */

  .products{
    grid-template-columns:
      repeat(2,minmax(0,1fr));

    gap:5px;
  }

  .product-photo{
    height:92px;
  }

  .product-body{
    padding:5px;
  }

  .product h3{
    min-height:23px;

    font-size:10px;
  }

  .product-description{
    font-size:8px;

    -webkit-line-clamp:3;
  }

  .price{
    font-size:12px;
  }

  .product .btn{
    min-height:28px;

    font-size:9px;
  }

}