:root{
  --primary:#2563EB;
  --primary-d:#1D4ED8;
  --accent:#38BDF8;

  --dark:#0F172A;
  --dark-2:#172554;

  --white:#FFFFFF;

  --bg:#F4F7FB;
  --surface:#FFFFFF;
  --surface-2:#EFF6FF;

  --text:#0F172A;
  --muted:#64748B;
  --line:#E2E8F0;

  --ok:#16A34A;
  --warn:#F59E0B;
  --danger:#DC2626;

  --r-s:12px;
  --r-m:20px;
  --r-l:28px;

  --shadow:
    0 8px 30px rgba(15,23,42,.08);

  --shadow-blue:
    0 10px 30px rgba(37,99,235,.18);

  --font:
    'Segoe UI',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}


/* =========================================================
   DARK MODE
   ========================================================= */

[data-theme="dark"]{
  --bg:#080F1F;

  --surface:#111827;
  --surface-2:#172033;

  --text:#F8FAFC;
  --muted:#94A3B8;
  --line:#263244;

  --dark:#020617;
  --dark-2:#0F172A;

  --shadow:
    0 10px 35px rgba(0,0,0,.45);

  --shadow-blue:
    0 10px 35px rgba(37,99,235,.25);
}


/* =========================================================
   GLOBAL
   ========================================================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  scroll-padding-top:130px;
}

body{
  margin:0;

  font-family:var(--font);

  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      #F8FAFC 100%
    );

  color:var(--text);

  line-height:1.5;

  -webkit-font-smoothing:antialiased;

  transition:
    background .25s ease,
    color .25s ease;
}

[data-theme="dark"] body{
  background:
    linear-gradient(
      180deg,
      #080F1F 0%,
      #0F172A 100%
    );
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
}

button{
  font:inherit;
  cursor:pointer;
  color:inherit;
}

input,
select,
textarea{
  font:inherit;
  color:inherit;
}

:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
}

.wrap{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.muted{
  color:var(--muted);
  font-size:.9rem;
  margin:.2rem 0;
}

[hidden]{
  display:none!important;
}


/* =========================================================
   HEADER
   ========================================================= */

.top{
  position:sticky;

  top:0;

  z-index:40;

  background:
    rgba(255,255,255,.92);

  border-bottom:1px solid var(--line);

  backdrop-filter:
    blur(16px);

  -webkit-backdrop-filter:
    blur(16px);

  transition:
    background .25s ease,
    border-color .25s ease;
}

[data-theme="dark"] .top{
  background:
    rgba(15,23,42,.92);
}

.top-in{
  display:flex;

  align-items:center;

  gap:14px;

  padding-top:10px;
  padding-bottom:10px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo{
  display:inline-flex;

  align-items:center;
  justify-content:flex-start;

  gap:8px;

  text-decoration:none;

  margin-left:0;

  flex:none;

  transition:
    transform .2s ease;
}

.logo:hover{
  transform:translateY(-1px);
}

.logo-img{
  width:150px;
  height:45px;

  object-fit:contain;

  display:block;

  flex-shrink:0;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search{
  flex:1;

  min-width:0;

  position:relative;
}

.search input{
  width:100%;

  padding:
    12px 18px;

  border-radius:999px;

  border:1px solid var(--line);

  background:var(--surface-2);

  color:var(--text);

  outline:none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.search input::placeholder{
  color:var(--muted);
}

.search input:focus{
  border-color:var(--primary);

  background:var(--surface);

  box-shadow:
    0 0 0 4px
    rgba(37,99,235,.12);
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.top-actions{
  display:flex;

  align-items:center;

  gap:8px;
}

.tel{
  font-weight:700;

  text-decoration:none;

  white-space:nowrap;

  margin-right:6px;

  color:var(--primary);

  transition:
    color .2s ease;
}

.tel:hover{
  color:var(--primary-d);
}

.icon-btn{
  width:42px;
  height:42px;

  border-radius:50%;

  border:1px solid var(--line);

  background:var(--surface);

  display:grid;

  place-items:center;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.icon-btn:hover{
  border-color:var(--primary);

  color:var(--primary);

  transform:translateY(-2px);

  box-shadow:
    0 6px 18px
    rgba(37,99,235,.15);
}

.cart-btn{
  display:flex;

  align-items:center;

  justify-content:center;

  gap:7px;

  padding:0 17px;

  height:40px;

  border:0;

  border-radius:999px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-d)
    );

  color:#fff;

  font-weight:800;

  box-shadow:
    0 7px 18px
    rgba(37,99,235,.25);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease;
}

.cart-btn:hover{
  transform:translateY(-2px);

  box-shadow:
    0 10px 24px
    rgba(37,99,235,.32);

  filter:brightness(1.04);
}

.cart-sum{
  opacity:.95;

  font-weight:600;

  margin-left:4px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.cats{
  border-top:1px solid var(--line);

  background:
    rgba(255,255,255,.88);

  backdrop-filter:
    blur(10px);
}

[data-theme="dark"] .cats{
  background:
    rgba(17,24,39,.9);
}

.cats-in{
  display:flex;

  gap:9px;

  overflow-x:auto;

  padding-top:9px;
  padding-bottom:9px;

  scrollbar-width:none;
}

.cats-in::-webkit-scrollbar{
  display:none;
}

.cats a{
  flex:none;

  text-decoration:none;

  padding:
    9px 17px;

  border-radius:999px;

  background:var(--surface-2);

  color:var(--text);

  font-weight:700;

  font-size:.92rem;

  border:1px solid transparent;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.cats a:hover{
  transform:translateY(-2px);

  border-color:
    rgba(37,99,235,.2);

  color:var(--primary);

  box-shadow:
    0 5px 14px
    rgba(37,99,235,.08);
}

.cats a.on{
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-d)
    );

  color:#fff;

  box-shadow:
    0 6px 16px
    rgba(37,99,235,.22);
}

[data-theme="dark"] .cats a.on{
  background:
    linear-gradient(
      135deg,
      #3B82F6,
      #2563EB
    );
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
  width:100%;

  padding-top:22px;

  padding-bottom:5px;
}


/* =========================================================
   SLIDER
   ========================================================= */

.slider{
  width:100%;

  display:flex;

  gap:10px;

  overflow-x:auto;

  scroll-snap-type:x mandatory;

  scroll-behavior:smooth;

  scrollbar-width:none;

  padding:
    6px 6px 22px;

  overscroll-behavior-x:contain;
}

.slider::-webkit-scrollbar{
  display:none;
}


/* =========================================================
   BANNER
   1200 x 500 px
   ========================================================= */

.slide{
  position:relative;

  flex:0 0 88%;

  aspect-ratio:12 / 5;

  min-height:50px;

  border-radius:var(--r-l);

  background:
    linear-gradient(
      135deg,
      #2563EB,
      #1D4ED8
    );

  color:#fff;

  text-decoration:none;

  overflow:hidden;

  display:flex;

  align-items:flex-end;

  scroll-snap-align:start;

  box-shadow:
    0 14px 38px
    rgba(37,99,235,.22);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.slide:hover{
  transform:translateY(-5px);

  box-shadow:
    0 20px 48px
    rgba(37,99,235,.28);
}

.slide:focus-visible{
  outline:3px solid var(--accent);

  outline-offset:3px;
}


/* =========================================================
   BANNER IMAGE
   ========================================================= */

.slide img{
  position:absolute;

  inset:0;

  width:100%;
  height:100%;

  display:block;

  object-fit:cover;

  object-position:center;

  transform:scale(1.001);

  transition:
    transform .5s ease,
    filter .5s ease;
}

.slide:hover img{
  transform:scale(1.04);
}


/* =========================================================
   BANNER OVERLAY
   ========================================================= */

.slide::after{
  content:"";

  position:absolute;

  inset:0;

  background:
    linear-gradient(
      90deg,
      rgba(2,6,23,.78) 0%,
      rgba(15,23,42,.55) 28%,
      rgba(15,23,42,.20) 58%,
      rgba(15,23,42,0) 100%
    );

  pointer-events:none;
}

.slide.no-text::after{
  display:none;
}


/* =========================================================
   BANNER TEXT
   ========================================================= */

.slide-txt{
  position:relative;

  z-index:2;

  width:100%;

  max-width:620px;

  padding:22px;

  color:#fff;
}

.slide h2{
  margin:0 0 8px;

  font-size:
    clamp(
      1.35rem,
      3.5vw,
      2.25rem
    );

  line-height:1.1;

  letter-spacing:-.03em;

  font-weight:850;

  text-shadow:
    0 3px 12px
    rgba(0,0,0,.3);
}

.slide p{
  margin:0;

  max-width:520px;

  font-size:
    clamp(
      .88rem,
      1.8vw,
      1.05rem
    );

  line-height:1.55;

  color:
    rgba(255,255,255,.94);

  text-shadow:
    0 2px 7px
    rgba(0,0,0,.25);
}


/* =========================================================
   BANNER BADGE
   ========================================================= */

.slide-badge{
  display:inline-flex;

  align-items:center;

  width:max-content;

  margin-bottom:10px;

  padding:
    6px 12px;

  border-radius:999px;

  background:
    rgba(56,189,248,.18);

  border:
    1px solid
    rgba(255,255,255,.3);

  color:#fff;

  font-size:.78rem;

  font-weight:800;

  backdrop-filter:
    blur(10px);

  box-shadow:
    0 5px 16px
    rgba(0,0,0,.12);
}


/* =========================================================
   BANNER BUTTON
   ========================================================= */

.slide-btn{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  gap:7px;

  margin-top:16px;

  padding:
    11px 19px;

  border-radius:999px;

  background:#fff;

  color:var(--primary);

  font-size:.88rem;

  font-weight:800;

  text-decoration:none;

  box-shadow:
    0 7px 20px
    rgba(0,0,0,.18);

  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.slide-btn:hover{
  transform:translateY(-2px);

  background:#F8FAFC;

  box-shadow:
    0 10px 25px
    rgba(0,0,0,.22);
}


/* =========================================================
   SLIDER DOTS
   ========================================================= */

.slider-dots{
  display:flex;

  justify-content:center;
  align-items:center;

  gap:8px;

  margin-top:-6px;
}

.slider-dots button{
  width:8px;
  height:8px;

  padding:0;

  border:0;

  border-radius:999px;

  background:var(--line);

  cursor:pointer;

  transition:
    width .2s ease,
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.slider-dots button.on{
  width:28px;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--accent)
    );

  transform:scale(1.02);

  box-shadow:
    0 3px 10px
    rgba(37,99,235,.22);
}


/* =========================================================
   SECTION
   ========================================================= */

.sec{
  padding-top:36px;
}

.sec-title{
  font-size:1.6rem;

  letter-spacing:-.025em;

  margin:0 0 17px;

  display:flex;

  align-items:center;

  gap:10px;

  font-weight:800;
}

#search-results{
  padding-top:24px;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.grid{
  display:grid;

  grid-template-columns:
    repeat(2,1fr);

  gap:13px;
}

@media(min-width:700px){
  .grid{
    grid-template-columns:
      repeat(3,1fr);

    gap:18px;
  }
}

@media(min-width:1000px){
  .grid{
    grid-template-columns:
      repeat(4,1fr);

    gap:20px;
  }
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.card{
  background:var(--surface);

  border-radius:var(--r-m);

  padding:10px;

  display:flex;

  flex-direction:column;

  justify-content:space-between;

  border:1px solid
    rgba(226,232,240,.8);

  box-shadow:var(--shadow);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

[data-theme="dark"] .card{
  border-color:var(--line);
}

.card:hover{
  transform:translateY(-4px);

  border-color:
    rgba(37,99,235,.22);

  box-shadow:
    0 14px 35px
    rgba(37,99,235,.12);
}

.card-open{
  all:unset;

  cursor:pointer;

  display:block;

  border-radius:var(--r-s);
}

.card-open:focus-visible{
  outline:3px solid var(--accent);
}

.card-img{
  position:relative;

  aspect-ratio:4 / 3;

  border-radius:var(--r-s);

  overflow:hidden;

  background:
    linear-gradient(
      135deg,
      var(--surface-2),
      #E0ECFF
    );

  display:grid;

  place-items:center;
}

.card-img img{
  width:100%;
  height:100%;

  object-fit:cover;

  transition:
    transform .35s ease;
}

.card:hover .card-img img{
  transform:scale(1.035);
}

.ph{
  font-size:3.4rem;
}

.ph-svg{
  color:var(--primary);

  opacity:.5;
}

.badge{
  position:absolute;

  top:8px;
  left:8px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-d)
    );

  color:#fff;

  font-size:.75rem;

  font-weight:800;

  padding:
    4px 10px;

  border-radius:999px;

  box-shadow:
    0 5px 12px
    rgba(37,99,235,.22);
}

.card h3{
  margin:10px 4px 0;

  font-size:1rem;

  line-height:1.25;

  font-weight:750;
}

.card .muted{
  margin:2px 4px;
}

.card-foot{
  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:8px;

  margin:10px 4px 2px;
}

.price{
  display:flex;

  flex-direction:column;

  line-height:1.2;
}

.price b{
  font-size:1.02rem;

  color:var(--primary);
}

.price s{
  color:var(--muted);

  font-size:.82rem;
}

.btn-add{
  width:40px;
  height:40px;

  border-radius:50%;

  border:0;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-d)
    );

  color:#fff;

  font-size:1.5rem;

  line-height:1;

  flex:none;

  box-shadow:
    0 6px 16px
    rgba(37,99,235,.22);

  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.btn-add:hover{
  background:
    linear-gradient(
      135deg,
      #3B82F6,
      #1D4ED8
    );

  transform:
    scale(1.08);

  box-shadow:
    0 9px 20px
    rgba(37,99,235,.3);
}

.empty{
  color:var(--muted);

  text-align:center;

  padding:30px 0;
}


/* =========================================================
   BRANCHES
   ========================================================= */

.branches{
  display:grid;

  gap:14px;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(250px,1fr)
    );
}

.branch{
  background:var(--surface);

  border-radius:var(--r-l);

  padding:18px;

  box-shadow:var(--shadow);

  border:1px solid var(--line);

  display:flex;

  flex-direction:column;

  gap:12px;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.branch:hover{
  transform:translateY(-3px);

  border-color:
    rgba(37,99,235,.22);

  box-shadow:
    0 14px 35px
    rgba(37,99,235,.1);
}

.branch-head{
  display:flex;

  gap:12px;

  align-items:flex-start;
}

.branch-ic{
  flex:none;

  width:44px;
  height:44px;

  border-radius:14px;

  background:
    rgba(37,99,235,.1);

  color:var(--primary);

  display:grid;

  place-items:center;

  font-size:1.4rem;
}

.branch-head h3{
  margin:0 0 2px;

  font-size:1.05rem;
}

.branch-head .muted{
  margin:0;
}

.branch-map{
  border-radius:var(--r-s);

  overflow:hidden;

  border:1px solid var(--line);

  aspect-ratio:16 / 9;
}

.branch-map iframe{
  width:100%;
  height:100%;

  border:0;

  display:block;
}

.branch-info{
  display:flex;

  flex-wrap:wrap;

  gap:14px;

  margin:0;
}

.branch-info div{
  display:flex;

  align-items:center;

  gap:6px;
}

.branch-info dt{
  margin:0;
}

.branch-info dd{
  margin:0;
}

.branch-info a{
  font-weight:600;

  color:var(--primary);

  text-decoration:none;
}

.branch-info a:hover{
  text-decoration:underline;
}

.branch-btns{
  display:flex;

  gap:8px;

  flex-wrap:wrap;

  margin-top:auto;
}

.btn-nav{
  display:inline-flex;

  align-items:center;

  gap:6px;

  padding:10px 16px;

  border-radius:999px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-d)
    );

  color:#fff;

  text-decoration:none;

  font-weight:750;

  font-size:.9rem;

  flex:1;

  justify-content:center;

  box-shadow:
    0 6px 15px
    rgba(37,99,235,.16);

  transition:
    background .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.btn-nav:hover{
  transform:translateY(-2px);

  box-shadow:
    0 9px 20px
    rgba(37,99,235,.24);
}

.btn-nav.sec{
  background:var(--surface-2);

  color:var(--text);

  box-shadow:none;
}

.foot-nav{
  margin-left:6px;

  font-weight:600;

  color:#fff;

  text-decoration:none;

  white-space:nowrap;
}

.foot-nav:hover{
  color:#93C5FD;

  text-decoration:underline;
}


/* =========================================================
   LOCATION PICKER
   ========================================================= */

.addr-row{
  display:flex;

  gap:8px;

  flex-wrap:wrap;
}

.addr-row input{
  flex:1;

  min-width:180px;
}

.locate-btn{
  display:inline-flex;

  align-items:center;

  gap:7px;

  padding:0 16px;

  height:44px;

  border:1px solid var(--line);

  border-radius:var(--r-s);

  background:var(--surface-2);

  color:var(--text);

  font-weight:700;

  font-size:.88rem;

  white-space:nowrap;

  transition:
    background .15s,
    border-color .15s,
    color .15s;
}

.locate-btn:hover{
  border-color:var(--primary);

  color:var(--primary);

  background:
    rgba(37,99,235,.06);
}

.locate-btn:disabled{
  opacity:.65;

  cursor:wait;
}

.lb-ic{
  font-size:1.05rem;
}

.loc-preview{
  margin-top:10px;

  border-radius:var(--r-m);

  overflow:hidden;

  border:1px solid var(--line);

  animation:
    fade-in .2s ease-out;
}

@keyframes fade-in{
  from{
    opacity:0;
    transform:translateY(-4px);
  }

  to{
    opacity:1;
    transform:none;
  }
}

.loc-preview iframe{
  width:100%;

  height:160px;

  border:0;

  display:block;
}

.loc-preview p{
  margin:0;

  padding:8px 12px;

  background:var(--surface-2);

  font-size:.82rem;
}

.loc-picker{
  margin-top:4px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.foot{
  margin-top:50px;

  background:
    linear-gradient(
      135deg,
      #0F172A,
      #172554
    );

  color:#EEF2FF;

  padding:36px 0 18px;

  border-top:
    1px solid
    rgba(255,255,255,.06);
}

.foot-in{
  display:grid;

  gap:22px;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px,1fr)
    );
}

.foot p{
  margin:4px 0;
}

.foot a{
  text-decoration:none;
}

.foot a:hover{
  color:#60A5FA;
}

.foot .muted{
  color:#94A3B8;
}

.copy{
  margin-top:22px;

  color:#94A3B8;

  font-size:.85rem;

  border-top:
    1px solid
    rgba(255,255,255,.08);

  padding-top:16px;
}


/* =========================================================
   MODAL
   ========================================================= */

.overlay{
  position:fixed;

  inset:0;

  background:
    rgba(2,6,23,.62);

  z-index:60;

  backdrop-filter:
    blur(5px);
}

.modal{
  position:fixed;

  z-index:70;

  left:50%;
  top:50%;

  transform:
    translate(-50%,-50%);

  width:min(560px,94vw);

  max-height:92vh;

  overflow:auto;

  background:var(--surface);

  border-radius:var(--r-l);

  border:1px solid var(--line);

  box-shadow:
    0 25px 70px
    rgba(2,6,23,.28);
}

.modal.small{
  width:min(440px,94vw);
}

.close{
  position:absolute;

  right:12px;
  top:12px;

  z-index:2;

  width:38px;
  height:38px;

  border-radius:50%;

  border:0;

  background:
    rgba(15,23,42,.68);

  color:#fff;

  font-size:1.5rem;

  line-height:1;

  transition:
    background .2s ease,
    transform .2s ease;
}

.close:hover{
  background:var(--primary);

  transform:rotate(4deg);
}

.close-inline{
  width:38px;
  height:38px;

  border-radius:50%;

  border:1px solid var(--line);

  background:var(--surface-2);

  font-size:1.4rem;

  line-height:1;
}

.pm-img{
  aspect-ratio:16 / 10;

  background:var(--surface-2);

  display:grid;

  place-items:center;

  font-size:5rem;

  overflow:hidden;
}

.pm-img img{
  width:100%;
  height:100%;

  object-fit:cover;
}

.pm-body{
  padding:20px 22px 22px;
}

.pm-body h2{
  margin:0 0 4px;

  font-size:1.5rem;

  letter-spacing:-.02em;
}


/* =========================================================
   ADDONS
   ========================================================= */

.addons{
  display:grid;

  gap:8px;

  margin:14px 0;
}

.addon{
  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:10px;

  padding:11px 14px;

  border:1px solid var(--line);

  border-radius:var(--r-s);

  cursor:pointer;

  transition:
    border-color .2s ease,
    background .2s ease;
}

.addon:hover{
  border-color:
    rgba(37,99,235,.3);

  background:
    rgba(37,99,235,.035);
}

.addon input{
  accent-color:var(--primary);

  width:18px;
  height:18px;
}

.addon span:first-of-type{
  flex:1;

  margin-left:10px;
}


/* =========================================================
   MODAL FOOT
   ========================================================= */

.pm-foot{
  display:flex;

  gap:12px;

  align-items:center;

  margin-top:18px;
}

.qty{
  display:flex;

  align-items:center;

  gap:4px;

  background:var(--surface-2);

  border-radius:999px;

  padding:4px;
}

.qty button{
  width:34px;
  height:34px;

  border-radius:50%;

  border:0;

  background:var(--surface);

  font-size:1.2rem;

  transition:
    color .2s ease,
    transform .2s ease;
}

.qty button:hover{
  color:var(--primary);

  transform:scale(1.05);
}

.qty span{
  min-width:28px;

  text-align:center;

  font-weight:800;
}

.btn-primary{
  border:0;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-d)
    );

  color:#fff;

  font-weight:800;

  padding:14px 22px;

  border-radius:999px;

  flex:1;

  box-shadow:
    0 7px 18px
    rgba(37,99,235,.22);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.btn-primary:hover{
  transform:translateY(-2px);

  box-shadow:
    0 10px 24px
    rgba(37,99,235,.3);
}

.btn-primary:disabled{
  opacity:.6;

  cursor:wait;
}

.btn-primary.block{
  display:block;

  width:100%;
}


/* =========================================================
   CART DRAWER
   ========================================================= */

.drawer{
  position:fixed;

  z-index:70;

  top:0;
  right:0;
  bottom:0;

  width:min(440px,100vw);

  background:var(--surface);

  display:flex;

  flex-direction:column;

  box-shadow:
    -15px 0 45px
    rgba(2,6,23,.18);

  animation:
    slide-in .22s ease-out;
}

@keyframes slide-in{
  from{
    transform:translateX(30px);

    opacity:0;
  }

  to{
    transform:none;

    opacity:1;
  }
}

.dr-head{
  display:flex;

  align-items:center;

  justify-content:space-between;

  padding:16px 18px;

  border-bottom:1px solid var(--line);
}

.dr-head h2{
  margin:0;

  font-size:1.3rem;

  font-weight:800;
}

.dr-body{
  flex:1;

  overflow-y:auto;

  padding:14px 18px;
}

.dr-foot{
  padding:
    14px 18px
    calc(14px + env(safe-area-inset-bottom));

  border-top:1px solid var(--line);

  background:var(--surface);
}

.dr-done{
  padding:40px 24px;

  text-align:center;
}

.done-ic{
  font-size:3.5rem;
}


/* =========================================================
   CART LINE
   ========================================================= */

.line{
  display:grid;

  grid-template-columns:
    56px 1fr auto;

  gap:12px;

  align-items:center;

  padding:10px 0;

  border-bottom:1px solid var(--line);
}

.line-img{
  width:56px;
  height:56px;

  border-radius:12px;

  background:var(--surface-2);

  display:grid;

  place-items:center;

  font-size:1.6rem;

  overflow:hidden;
}

.line-img img{
  width:100%;
  height:100%;

  object-fit:cover;
}

.line h4{
  margin:0;

  font-size:.95rem;

  line-height:1.25;
}

.line .qty{
  margin-top:6px;

  width:fit-content;
}

.line .qty button{
  width:28px;
  height:28px;
}

.line-sum{
  font-weight:800;

  color:var(--primary);

  white-space:nowrap;
}


/* =========================================================
   TOTAL
   ========================================================= */

.sum{
  margin:0 0 8px;
}

.sum div{
  display:flex;

  justify-content:space-between;

  padding:2px 0;
}

.sum dt,
.sum dd{
  margin:0;
}

.sum .grand{
  font-size:1.15rem;

  font-weight:850;

  border-top:1px dashed var(--line);

  margin-top:6px;

  padding-top:8px;

  color:var(--primary);
}


/* =========================================================
   ORDER FORM
   ========================================================= */

#order-form{
  margin-top:18px;

  display:grid;

  gap:12px;
}

.f{
  display:grid;

  gap:5px;

  font-weight:650;

  font-size:.9rem;
}

.f input,
.f select,
.f textarea{
  padding:12px 14px;

  border:1px solid var(--line);

  border-radius:var(--r-s);

  background:var(--surface-2);

  color:var(--text);

  font-weight:400;

  outline:none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.f input:focus,
.f select:focus,
.f textarea:focus{
  border-color:var(--primary);

  background:var(--surface);

  box-shadow:
    0 0 0 4px
    rgba(37,99,235,.10);
}


/* =========================================================
   SEGMENTED CONTROL
   ========================================================= */

.seg{
  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:8px;
}

.seg label{
  position:relative;
}

.seg input{
  position:absolute;

  opacity:0;
}

.seg span{
  display:block;

  text-align:center;

  padding:11px 8px;

  border-radius:var(--r-s);

  border:1px solid var(--line);

  background:var(--surface-2);

  font-weight:650;

  font-size:.9rem;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.seg span:hover{
  border-color:
    rgba(37,99,235,.3);
}

.seg input:checked+span{
  border-color:var(--primary);

  background:
    rgba(37,99,235,.08);

  color:var(--primary);

  box-shadow:
    0 4px 12px
    rgba(37,99,235,.08);
}

.seg input:focus-visible+span{
  outline:3px solid var(--accent);
}


/* =========================================================
   ERRORS / TRACKING
   ========================================================= */

.form-err{
  color:var(--danger);

  font-weight:650;

  margin:0;
}

.track-result{
  margin-top:16px;

  padding:14px;

  border-radius:var(--r-s);

  background:var(--surface-2);

  border:1px solid var(--line);
}

.track-result .st{
  display:inline-block;

  padding:4px 12px;

  border-radius:999px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-d)
    );

  color:#fff;

  font-weight:800;

  font-size:.85rem;
}

.track-result ul{
  padding-left:18px;

  margin:10px 0 0;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast{
  position:fixed;

  left:50%;

  bottom:24px;

  transform:
    translateX(-50%);

  z-index:90;

  background:
    linear-gradient(
      135deg,
      #0F172A,
      #172554
    );

  color:#fff;

  padding:
    12px 20px;

  border-radius:999px;

  box-shadow:
    0 10px 30px
    rgba(2,6,23,.25);

  font-weight:700;

  max-width:
    calc(100vw - 30px);

  text-align:center;
}


/* =========================================================
   ADMIN
   ========================================================= */

.adm-body{
  background:var(--bg);
}

.adm{
  display:grid;

  grid-template-columns:
    230px 1fr;

  min-height:100vh;
}

.adm-side{
  background:
    linear-gradient(
      180deg,
      #0F172A,
      #172554
    );

  color:#EEF2FF;

  padding:18px 12px;

  position:sticky;

  top:0;

  height:100vh;

  overflow-y:auto;

  border-right:
    1px solid
    rgba(255,255,255,.06);
}

.adm-side .brand{
  font-weight:850;

  font-size:1.2rem;

  padding:6px 12px 16px;

  color:#fff;
}

.adm-side a{
  display:block;

  padding:10px 14px;

  border-radius:12px;

  text-decoration:none;

  color:#CBD5E1;

  font-weight:650;

  margin-bottom:3px;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.adm-side a:hover{
  background:
    rgba(255,255,255,.07);

  color:#fff;

  transform:translateX(2px);
}

.adm-side a.on{
  background:
    linear-gradient(
      135deg,
      var(--primary),
      #1D4ED8
    );

  color:#fff;

  box-shadow:
    0 7px 18px
    rgba(37,99,235,.25);
}

.adm-main{
  padding:22px;

  min-width:0;
}

.adm-main h1{
  margin:0 0 18px;

  font-size:1.6rem;

  letter-spacing:-.025em;

  font-weight:850;
}


/* =========================================================
   ADMIN PANELS
   ========================================================= */

.panel{
  background:var(--surface);

  border-radius:var(--r-m);

  padding:18px;

  box-shadow:var(--shadow);

  border:1px solid var(--line);

  margin-bottom:18px;
}

.panel h2{
  margin:0 0 12px;

  font-size:1.1rem;

  font-weight:800;
}


/* =========================================================
   ADMIN STATS
   ========================================================= */

.stats{
  display:grid;

  gap:14px;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(180px,1fr)
    );

  margin-bottom:18px;
}

.stat{
  background:var(--surface);

  border-radius:var(--r-m);

  padding:16px;

  box-shadow:var(--shadow);

  border:1px solid var(--line);

  transition:
    transform .2s ease,
    border-color .2s ease;
}

.stat:hover{
  transform:translateY(-3px);

  border-color:
    rgba(37,99,235,.22);
}

.stat b{
  display:block;

  font-size:1.6rem;

  letter-spacing:-.025em;

  color:var(--primary);
}

.stat span{
  color:var(--muted);

  font-size:.9rem;
}


/* =========================================================
   ADMIN TABLE
   ========================================================= */

.tbl-wrap{
  overflow-x:auto;
}

table.tbl{
  width:100%;

  border-collapse:collapse;

  font-size:.93rem;
}

.tbl th,
.tbl td{
  text-align:left;

  padding:10px 8px;

  border-bottom:1px solid var(--line);

  vertical-align:middle;
}

.tbl th{
  color:var(--muted);

  font-weight:700;

  font-size:.85rem;
}

.tbl img{
  width:44px;
  height:44px;

  object-fit:cover;

  border-radius:10px;
}


/* =========================================================
   STATUS PILLS
   ========================================================= */

.pill{
  display:inline-block;

  padding:4px 10px;

  border-radius:999px;

  font-size:.78rem;

  font-weight:800;

  background:var(--surface-2);
}

.pill.NEW{
  background:#DBEAFE;

  color:#1D4ED8;
}

.pill.COOKING{
  background:#FEF3C7;

  color:#A16207;
}

.pill.READY{
  background:#E0F2FE;

  color:#0369A1;
}

.pill.DELIVERING{
  background:#EDE9FE;

  color:#6D28D9;
}

.pill.DONE{
  background:#DCFCE7;

  color:#15803D;
}

.pill.CANCELLED{
  background:#F1F5F9;

  color:#64748B;
}

.pill.on{
  background:#DCFCE7;

  color:#15803D;
}

.pill.off{
  background:#F1F5F9;

  color:#64748B;
}


/* =========================================================
   ADMIN FORM GRID
   ========================================================= */

.row{
  display:grid;

  gap:12px;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(200px,1fr)
    );
}

.adm .f input,
.adm .f select,
.adm .f textarea{
  background:var(--surface-2);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn{
  display:inline-block;

  border:0;

  border-radius:12px;

  padding:10px 16px;

  font-weight:750;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-d)
    );

  color:#fff;

  text-decoration:none;

  cursor:pointer;

  box-shadow:
    0 6px 15px
    rgba(37,99,235,.18);

  transition:
    background .2s ease,
    transform .15s ease,
    box-shadow .2s ease;
}

.btn:hover{
  transform:translateY(-2px);

  box-shadow:
    0 9px 20px
    rgba(37,99,235,.26);
}

.btn.sec2{
  background:var(--surface-2);

  color:var(--text);

  box-shadow:none;
}

.btn.danger{
  background:
    linear-gradient(
      135deg,
      #DC2626,
      #B91C1C
    );
}

.btn.sm{
  padding:6px 12px;

  font-size:.85rem;
}

.actions{
  display:flex;

  gap:8px;

  flex-wrap:wrap;

  align-items:center;
}


/* =========================================================
   FLASH
   ========================================================= */

.flash{
  padding:12px 16px;

  border-radius:12px;

  margin-bottom:16px;

  font-weight:650;

  border:1px solid transparent;
}

.flash.ok{
  background:#DCFCE7;

  color:#15803D;

  border-color:#BBF7D0;
}

.flash.err{
  background:#FEE2E2;

  color:#B91C1C;

  border-color:#FECACA;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.chk{
  display:flex;

  align-items:center;

  gap:8px;

  font-weight:650;
}

.chk input{
  width:18px;
  height:18px;

  accent-color:var(--primary);
}


/* =========================================================
   CHARTS
   ========================================================= */

.charts{
  display:grid;

  gap:18px;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(320px,1fr)
    );
}

.chart-box{
  position:relative;

  height:280px;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login{
  min-height:100vh;

  display:grid;

  place-items:center;

  padding:16px;

  background:
    radial-gradient(
      circle at top right,
      rgba(56,189,248,.18),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(37,99,235,.18),
      transparent 35%
    ),
    var(--bg);
}

.login .panel{
  width:min(400px,100%);

  box-shadow:
    0 25px 70px
    rgba(37,99,235,.14);
}


/* =========================================================
   ADMIN TOP
   ========================================================= */

.adm-top{
  display:none;
}


/* =========================================================
   TABLET / ADMIN MOBILE
   ========================================================= */

@media(max-width:860px){

  .adm{
    grid-template-columns:1fr;
  }

  .adm-side{
    position:static;

    height:auto;

    display:flex;

    flex-wrap:wrap;

    gap:4px;

    padding:10px;
  }

  .adm-side .brand{
    width:100%;

    padding:4px 8px;
  }

  .adm-side a{
    padding:8px 12px;

    margin:0;
  }
}


/* =========================================================
   TABLET BANNER
   ========================================================= */

@media(min-width:640px){

  .hero{
    padding-top:26px;
  }

  .slider{
    gap:18px;

    padding-left:8px;

    padding-right:8px;
  }

  .slide{
    flex:0 0 64%;

    aspect-ratio:12 / 5;

    min-height:250px;
  }

  .slide-txt{
    padding:30px;
  }
}


/* =========================================================
   DESKTOP BANNER
   ========================================================= */

@media(min-width:900px){

  .hero{
    padding-top:30px;
  }

  .slider{
    gap:18px;
  }

  .slide{
    flex:0 0 calc(50% - 9px);

    aspect-ratio:12 / 5;

    min-height:300px;
  }

  .slide-txt{
    padding:34px;
  }

  .slide h2{
    font-size:2rem;
  }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media(min-width:1300px){

  .slide{
    flex:0 0 calc(38% - 8px);

    aspect-ratio:12 / 5;

    min-height:300px;
  }
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media(max-width:720px){

  .tel{
    display:none;
  }

  .top-in{
    flex-wrap:wrap;
  }

  .search{
    order:3;

    flex-basis:100%;
  }

  .top-actions{
    margin-left:auto;
  }

  .cart-sum{
    display:none;
  }

  .logo{
    font-size:1.15rem;
  }

  .logo-img{
    width:115px;
    height:32px;
  }
}


/* =========================================================
   MOBILE BANNER
   ========================================================= */

@media(max-width:640px){

  .slide{
    flex:0 0 92%;

    aspect-ratio:12 / 6;

    min-height:190px;

    border-radius:22px;
  }

  .slide-txt{
    padding:22px;
  }

  .slide h2{
    font-size:1.35rem;

    line-height:1.15;

    margin-bottom:5px;
  }

  .slide p{
    font-size:.85rem;

    line-height:1.4;

    max-width:90%;
  }

  .slide-badge{
    font-size:.7rem;

    padding:5px 10px;

    margin-bottom:7px;
  }

  .slide-btn{
    margin-top:12px;

    padding:9px 15px;

    font-size:.8rem;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:480px){

  .hero{
    padding-top:16px;
  }

  .slider{
    gap:12px;

    padding:
      4px 4px 14px;
  }

  .slide{
    flex:0 0 92%;

    aspect-ratio:12 / 6;

    min-height:190px;

    border-radius:22px;
  }

  .slide-txt{
    padding:22px;
  }
}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media(max-width:360px){

  .slide{
    flex-basis:94%;

    min-height:180px;

    border-radius:20px;
  }

  .slide-txt{
    padding:18px;
  }

  .slide h2{
    font-size:1.2rem;
  }

  .slide p{
    font-size:.78rem;
  }
}


/* =========================================================
   DARK MODE BANNER
   ========================================================= */

[data-theme="dark"] .slide{
  box-shadow:
    0 15px 40px
    rgba(0,0,0,.5);
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media(prefers-reduced-motion:reduce){

  *,
  *::before,
  *::after{
    animation:none!important;

    transition:none!important;

    scroll-behavior:auto!important;
  }

  .slide:hover{
    transform:none;
  }

  .slide:hover img{
    transform:none;
  }

  .card:hover{
    transform:none;
  }
}