
:root{
  --bg:#f6f8fb;
  --bg-soft:#eef3f8;
  --surface:rgba(255,255,255,.86);
  --surface-strong:#ffffff;
  --surface-muted:#f3f6fa;
  --text:#0f1721;
  --text-soft:#526072;
  --line:rgba(15,23,33,.08);
  --brand:#0b3d2a;
  --brand-2:#125d43;
  --accent:#c4a85b;
  --accent-2:#e9d6a1;
  --success:#0c8f57;
  --warning:#d18b15;
  --danger:#c23b3b;
  --shadow:0 20px 50px rgba(10, 22, 35, .09);
  --shadow-soft:0 10px 30px rgba(10, 22, 35, .07);
  --radius:26px;
  --radius-sm:18px;
  --radius-xs:14px;
  --header-h:60px;
  --nav-h:74px;
  --content-max:1280px;
}

body[data-theme="dark"]{
  --bg:#07111a;
  --bg-soft:#0d1823;
  --surface:rgba(12,20,30,.78);
  --surface-strong:#0d1722;
  --surface-muted:#121e2b;
  --text:#eef4fa;
  --text-soft:#9fb0c2;
  --line:rgba(255,255,255,.08);
  --brand:#61d39f;
  --brand-2:#2fb884;
  --accent:#d8bf74;
  --accent-2:#f1dfad;
  --success:#2bd380;
  --warning:#efbc57;
  --danger:#ff7f7f;
  --shadow:0 24px 60px rgba(0,0,0,.32);
  --shadow-soft:0 10px 30px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(196,168,91,.12), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(17,117,84,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color:var(--text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x:hidden;
  padding-bottom:calc(var(--nav-h) + 20px);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
::selection{background:rgba(196,168,91,.28)}
.container{
  width:min(100%, var(--content-max));
  margin:0 auto;
}
.page-main{
  width:min(100%, var(--content-max));
  margin:0 auto;
  padding:18px clamp(14px, 2.4vw, 24px) 28px;
}
.section{
  margin-top:18px;
}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  margin:0 0 14px;
}
.section-title{
  margin:0;
  font-size:clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing:-.02em;
}
.section-subtitle{
  margin:6px 0 0;
  color:var(--text-soft);
  font-size:.95rem;
  line-height:1.45;
}
.section-actions{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(24px);
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.48));
  border-bottom:1px solid var(--line);
}
body[data-theme="dark"] .header{
  background:linear-gradient(180deg, rgba(7,17,26,.82), rgba(7,17,26,.56));
}
.header-inner{
  width:min(100%, var(--content-max));
  margin:0 auto;
  padding:12px clamp(14px, 2.4vw, 24px);
  min-height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-logo{
  min-width:48px;height:48px;
  border-radius:50%;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line);
  flex:0 0 auto;
}
.brand-copy{min-width:0}
.brand-name{
  margin:0;
  font-size:1rem;
  font-weight:800;
  letter-spacing:-.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-tag{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:3px;
  color:var(--text-soft);
  font-size:.75rem;
  white-space:nowrap;
}
.status-dot{
  width:8px;height:8px;border-radius:99px;
  background:var(--success);
  box-shadow:0 0 0 6px rgba(12,143,87,.12);
}
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.icon-btn,.ghost-btn,.primary-btn,.chip,.tag,.nav-btn,.switch,.select,.input,.textarea{
  border:1px solid var(--line);
  border-radius:18px;
}
.icon-btn,.ghost-btn,.primary-btn,.chip,.nav-btn{
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.icon-btn:hover,.ghost-btn:hover,.primary-btn:hover,.chip:hover,.nav-btn:hover{
  transform:translateY(-1px);
}
.icon-btn{
  width:44px;height:44px;
  display:grid;
  place-items:center;
  background:var(--surface);
  color:var(--text);
  box-shadow:var(--shadow-soft);
}
.icon-btn svg{width:20px;height:20px}
.primary-btn,.ghost-btn{
  height:44px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  font-weight:700;
}
.primary-btn{
  color:#fff;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color:transparent;
  box-shadow:0 14px 30px rgba(11,61,42,.18);
}
.ghost-btn{
  background:var(--surface);
  color:var(--text);
  box-shadow:var(--shadow-soft);
}
.pill{
  height:28px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  font-size:.8rem;
  font-weight:700;
  background:rgba(12,143,87,.08);
  color:var(--success);
  border:1px solid rgba(12,143,87,.12);
}
.pill.neutral{
  background:rgba(196,168,91,.12);
  color:var(--accent);
  border-color:rgba(196,168,91,.16);
}
.cart_count{
  position:absolute;
  top:0px;right:30%;
  width:18px;height:18px;
  display:grid;place-items:center;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
}
.slider {
  overflow: hidden;
  width: 100%;
  height: 180px;
  border-radius: 16px;
  background: #fafafa;
  margin-bottom: 16px;
  position: relative;
}

.slider-track {
  display: flex;
  width: 300%; height: 100%;
  transition: transform 1s ease;
}

.slider-slide {
  min-width: 100%;
  max-width: 100% !important;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('/assets/images/banner-home.png')  ;
  background-size: 100vw auto;
  background-repeat: no-repeat; 
}
.slider-btn{
  position: absolute;
  z-index: 10;
  top: 50%; transform: translateY(-50%);
  width: 35px;height: 35px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%; backdrop-filter: blur(55px);
  border: 1px solid rgba(0, 0, 0, 0.5);
  font-size: 30px; font-weight: bolder;
  display: grid;place-content: center;color: #eff;
}
.slider-btn-next{
  right: 8px;
}
.slider-btn-prev{left: 8px;}

.slider-slide img {
  min-width: 100%;
  max-width: 100vw;
  height: 100%;
  display: block; 
  display: none;
}
.hero{
  overflow:hidden;
  position:relative;
  border-radius:clamp(24px, 3vw, 34px);
  background:linear-gradient(135deg, rgba(11,61,42,.58), rgba(13,24,34,.56));
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.06);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:0;  
  align-items:stretch;
}
.hero-copy{
  padding:clamp(8px, 3vw, 20px);
  color:#fff; position:relative; z-index:10;
  background: rgba(19, 15, 39, 0.65); 
}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.02em;
}
.hero-title{
  margin:18px 0 12px;
  font-size:clamp(1.75rem, 5vw, 2rem);
  line-height:1.4;
  letter-spacing:-.045em;
}
.hero-text{
  margin:0;
  color:rgb(242, 243, 237);
  font-size:clamp(.9rem, 1.5vw, 1rem);
  line-height:1.5;
  max-width:60ch;
}
.hero-metrics{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.metric{
  padding:4px;
  border-radius:20px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.12);
  display: grid;place-items:center;
}
.metric strong{
  display:block;
  font-size:15px;
  margin-bottom:4px;
}
.metric span{font-size:13px;color:rgba(255,255,255,.78)}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap; 
}
.hero-media{
  height:100%;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    url('../images/banner-home.png') center/cover no-repeat;
  position: absolute;
  top:0;left:0;
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(11,61,42,.15), rgba(11,61,42,.45));
}
.hero-media .media-badge{ 
  display: none;
  z-index:10;
  font-size: 13px;
  padding:5px 12px;
  border-radius:18px;
  background:rgba(255,255,255,.14);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow-soft);
}
.feature-strip{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
}
.info-card,.surface-card,.product-card,.cart-card,.panel,.profile-card,.menu-card,.settings-card,.summary-card{
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  border-radius:var(--radius);
  backdrop-filter:blur(16px);
}
.info-card{
  padding:16px;
}
.info-card h4{margin:0 0 8px;font-size:1rem}
.info-card p{margin:0;color:var(--text-soft);font-size:.92rem;line-height:1.55}
.chip-row{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom:4px;
  scrollbar-width:thin;
}
.category-section{
  padding: 8px 0px;
  border-radius:5px;
  background:var(--surface);
}
.chip{
  flex:0 0 auto;
  height:42px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  gap:8px; 
  color:var(--text);
  cursor:pointer;
  font-size:.75rem;
  font-weight:700;
  white-space:nowrap;
  box-shadow:var(--shadow-soft);
}
.chip.active{
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  border-color:transparent;
}
.filters{
  display:grid;
  grid-template-columns:2fr repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}
.input,.select,.textarea{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  background:var(--surface-strong);
  color:var(--text);
  outline:none;
}
.textarea{min-height:110px;resize:vertical}
.input::placeholder,.textarea::placeholder{color:var(--text-soft)}
.field_group{
  display: grid;grid-template-columns: 1fr 1fr; gap:12px;
}
.field{
  display:flex;flex-direction:column;gap:8px;
}
.field label{
  font-size:.84rem;font-weight:700;color:var(--text-soft)
}
.range-wrap{
  display:flex;flex-direction:column;gap:8px;
}
.range{
  width:100%;
  accent-color:var(--brand-2);
}
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}
.product-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.product-media{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  background:var(--surface-muted);
}
.product-media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .35s ease;
}
.product-card:hover .product-media img{transform:scale(1.04)}
.product-badge{
  position:absolute;
  top:12px;left:12px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:#10202a;
  font-size:.76rem;
  font-weight:800;
  box-shadow:var(--shadow-soft);
}
body[data-theme="dark"] .product-badge{
  background:rgba(7,17,26,.78);
  color:#fff;
}
.product-fav{
  position:absolute;
  top:12px;right:12px;
  z-index:2;
}

.product-fav.active{
  background:rgba(196,168,91,.14);
  color:var(--accent);
  border-color:rgba(196,168,91,.35);
}
body[data-theme="dark"] .product-fav.active{background:rgba(196,168,91,.16)}
.product-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.product-name{
  margin:0;
  font-size:1rem;
  line-height:1.35;
  letter-spacing:-.02em;
}
.product-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color:var(--text-soft);
  font-size:.84rem;
}
.price-row{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
}
.price{
  font-size:1.2rem;
  font-weight:900;
  letter-spacing:-.02em;
}
.stock{
  font-size:.78rem;
  font-weight:800;
  padding:7px 10px;
  border-radius:999px;
}
.stock.available{background:rgba(12,143,87,.12);color:var(--success)}
.stock.low{background:rgba(209,139,21,.12);color:var(--warning)}
.stock.out{background:rgba(194,59,59,.12);color:var(--danger)}
.card-actions{
  display:flex;
  gap:10px;
  margin-top:4px;
}
.card-actions .primary-btn,.card-actions .ghost-btn{
  flex:1;
  justify-content:center;
  height:42px;
  padding-inline:10px;
}
.small{
  font-size:.82rem;
  color:var(--text-soft);
}
.empty-state,.loading-state{
  padding:28px;
  text-align:center;
  color:var(--text-soft);
}
.empty-state .empty-emoji{
  font-size:2.3rem;margin-bottom:10px
}
.skeleton{
  position:relative;
  overflow:hidden;
  background:var(--surface);
}
.skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  animation:shimmer 1.3s infinite;
}
@keyframes shimmer{100%{transform:translateX(100%)}}
.cart-layout,.profile-layout,.settings-layout{
  display:grid;
  grid-template-columns:1.35fr .85fr;
  gap:16px;
  align-items:start;
}
.cart-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.cart-item{
  display:grid;
  grid-template-columns:92px 1fr auto;
  gap:14px;
  padding:14px;
  align-items:center;
}
.cart-thumb{
  width:92px;height:92px;border-radius:22px;object-fit:cover;
  border:1px solid var(--line);
}
.cart-title{
  margin:0 0 6px;font-weight:800;letter-spacing:-.02em
}
.cart-info{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--text-soft);font-size:.88rem
}
.qty-control{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px;
  border-radius:16px;
  background:var(--surface-muted);
  border:1px solid var(--line);
}
.qty-control button{
  width:34px;height:34px;border-radius:12px;border:none;background:var(--surface-strong);color:var(--text);cursor:pointer;
  box-shadow:var(--shadow-soft);
}
.qty-control input{
  width:48px;text-align:center;border:none;background:transparent;color:var(--text);outline:none;
}
.muted{color:var(--text-soft)}
.summary-card,.panel,.settings-card,.profile-card,.menu-card{
  padding:16px;
}
.summary-row{
  display:flex;justify-content:space-between;gap:10px;
  padding:10px 0;
  border-bottom:1px dashed var(--line);
}
.summary-row:last-child{border-bottom:none}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.form-grid .field.full{grid-column:1/-1}
.helper{
  margin-top:8px;
  font-size:.84rem;
  color:var(--text-soft);
  line-height:1.55;
}
.divider{
  height:1px;background:var(--line);margin:14px 0
}
.avatar{
  width:84px;height:84px;border-radius:28px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, var(--brand), var(--accent));
  color:#fff;
  font-size:2rem;
  font-weight:900;
  box-shadow:var(--shadow-soft);
}
.profile-top{
  display:flex;
  gap:14px;
  align-items:center;
}
.profile-top h3{margin:0 0 6px}
.profile-top p{margin:0;color:var(--text-soft)}
.list-vertical{
  display:flex;flex-direction:column;gap:10px;
}
.list-item{
  padding:14px;
  border-radius:20px;
  background:var(--surface-strong);
  border:1px solid var(--line);
  display:flex;justify-content:space-between;gap:12px;align-items:flex-start;
}
.list-item strong{display:block;margin-bottom:4px}
.list-item small{color:var(--text-soft)}
.menu-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
.menu-card h3,.settings-card h3,.profile-card h3,.summary-card h3,.panel h3{
  margin:0 0 10px;font-size:1.05rem
}
.menu-links{
  display:grid;
  gap:10px;
}
.menu-link{
  display:flex;justify-content:space-between;gap:12px;align-items:center;
  padding:14px;
  border-radius:18px;
  background:var(--surface-strong);
  border:1px solid var(--line);
}
.menu-link:hover{border-color:rgba(196,168,91,.28)}
.footer-note{
  text-align:center;
  color:var(--text-soft);
  font-size:.82rem;
  margin:22px 0 0;
}
.switch-row{
  display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0
}
.switch{
  position:relative;width:58px;height:34px;display:inline-block;background:var(--surface-strong);border-radius:999px;cursor:pointer;
}
.switch input{display:none}
.switch span{
  position:absolute;top:3px;left:3px;width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  transition:transform .2s ease;
}
.switch input:checked + span{transform:translateX(24px)}
.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:8px ;
  border-radius: 16px;
  z-index:60;
  width:min(100% , 760px);
  padding:8px; 
  background:rgba(255,255,255,.74);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(24px);
}
body[data-theme="dark"] .bottom-nav{
  background:rgba(8,14,22,.78);
}
.nav-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:8px;
}
.nav-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px; position:relative;
  padding:10px 12px;
  border-radius:18px;
  background:transparent;
  color:var(--text-soft);
  font-weight:800;
  border: none;
}
.nav-btn svg{width:18px;height:18px}
.nav-btn.active{
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  border-color:transparent;
}
.toolbar{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center
}
.breadcrumb{
  display:flex;gap:8px;align-items:center;color:var(--text-soft);font-size:.85rem
}
.badge{
  display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:var(--surface-strong);border:1px solid var(--line);font-size:.8rem;font-weight:800
}
.toast{
  position:fixed;left:50%;bottom:96px;transform:translateX(-50%);
  background:var(--surface-strong);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:18px;
  padding:12px 14px;
  z-index:100;
  min-width:min(92vw, 360px);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  animation:pop .18s ease;
}
@keyframes pop{from{transform:translateX(-50%) translateY(10px);opacity:0}to{transform:translateX(-50%) translateY(0);opacity:1}}
.compact-mode .page-main{padding-top:14px;padding-bottom:20px}
.compact-mode .section{margin-top:14px}
.compact-mode .product-body,.compact-mode .summary-card,.compact-mode .panel,.compact-mode .profile-card,.compact-mode .settings-card,.compact-mode .menu-card{padding:14px}
.compact-mode .hero-copy{padding:18px}
.compact-mode .product-media{aspect-ratio:1/1}
@media (max-width: 1080px){
  .hero-grid,.cart-layout,.profile-layout,.settings-layout,.menu-grid,.feature-strip,.filters{
    grid-template-columns:1fr;
  }
  .feature-strip{grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap: 6px;}
}
@media (max-width: 760px){
  body{padding-bottom:calc(var(--nav-h) + 12px)}
  .page-main{padding:0px 6px }
  .header-inner{padding:0px 8px; gap: 5px;}
  .brand-name{font-size:.95rem} 
  .header-actions .ghost-btn span{display:none}
  .hero-title{font-size:clamp(1rem, 8vw, 1.5rem)}
  .hero-metrics{grid-template-columns:1fr 1fr 1fr}
  .form-grid{grid-template-columns:1fr}
  .cart-item{grid-template-columns:76px 1fr}
  .cart-item .cart-actions{grid-column:1/-1;justify-self:stretch}
  .menu-grid{grid-template-columns:1fr}
  .nav-btn{font-size:.72rem;flex-direction:column;gap:4px;padding:8px 6px}
  .nav-btn svg{width:20px;height:20px}
  .bottom-nav{bottom:0px;border-radius:0px}
  .info-card{padding:12px; gap:6px; border-radius:18px}
  .info-card h4{font-size: 13px}
  .info-card p{font-size:11px}
  .products-grid{gap: 6px;}
  .hero-actions{
    justify-content: space-between;
  }
}
@media(max-width: 480px){
  .products-grid{
    grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap: 4px;
  } 
  .hero-actions a{
    font-size: 12px;
    padding: 0px 12px;
    height: 30px;
  }
  .stock{
    padding:5px 8px;
    font-size: 10px;
  }
  .metric span{font-size: 12px;}
}
hr.sep{
  border:none;height:1px;background:var(--line);margin:0;
}
