:root{
  --primary:#20409A;
  --accent:#EF7822;

  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111;
  --muted:#666;
  --line:#ececec;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
}

.wrap{ max-width:1100px; margin:0 auto; padding:0 16px; }

.topbar{ background:var(--primary); color:#fff; font-size:13px; }
.topbar-inner{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; }
.topbar a{ color:#fff; text-decoration:none; opacity:.92; margin-left:10px; }
.topbar a:hover{ opacity:1; }
.dot{ opacity:.7; margin:0 8px; }

.header{ background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; }
.brand a{ font-weight:900; color:var(--primary); text-decoration:none; font-size:18px; }
.brand span{ margin-left:6px; }

.nav{ display:flex; gap:14px; align-items:center; }
.nav a{ text-decoration:none; color:#222; font-weight:700; font-size:14px; padding:8px 10px; border-radius:10px; }
.nav a:hover{ background:#f1f1f1; }
.nav a.active{ background:var(--primary); color:#fff; }

.header-cta{ display:flex; gap:10px; align-items:center; }

.btn{
  background:var(--primary);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  display:inline-block;
  font-weight:800;
  border:0;
}
.btn:hover{ filter:brightness(.96); }

.btn.accent{ background:var(--accent); }
.btn.ghost{
  background:#fff;
  color:var(--primary);
  border:1px solid rgba(32,64,154,.25);
}
.btn.ghost:hover{ background:#f5f7ff; }
.btn.small{ padding:8px 10px; border-radius:10px; font-size:13px; }

.nav-toggle{ display:none; background:#fff; border:1px solid #ddd; border-radius:10px; padding:8px 10px; cursor:pointer; color:var(--primary); }

.mobile-nav{ display:none; padding:10px 0 14px; }
.mobile-nav a{ display:block; padding:10px 10px; border-radius:10px; text-decoration:none; color:#222; font-weight:700; }
.mobile-nav a:hover{ background:#f1f1f1; }
.mobile-actions{ display:flex; gap:10px; padding:10px 10px 0; }

.hero{ background:linear-gradient(180deg, #fff, var(--bg)); padding:26px 0; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:20px; align-items:center; }
.hero-left h1{ margin:0; font-size:34px; line-height:1.1; color:#0d1b3a; }
.hero-left p{ color:var(--muted); margin:10px 0 14px; }
.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.hero-stats{ display:flex; gap:14px; margin-top:18px; flex-wrap:wrap; }
.stat{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 14px; min-width:140px; box-shadow:var(--shadow); }
.stat .num{ font-size:20px; font-weight:900; color:var(--primary); }
.stat .label{ color:var(--muted); font-size:13px; margin-top:2px; }

.slider{ position:relative; background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow); }
.slides{ display:flex; transition:transform .4s ease; }
.slide{ min-width:100%; padding:18px; }
.slide-card{ border-radius:16px; padding:16px; background:#fff; }
.slide-badge{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}
.slide-title{ margin-top:10px; font-size:18px; font-weight:900; }
.slide-meta{ margin-top:6px; color:var(--muted); font-size:13px; }
.slide-price{ margin-top:10px; font-size:22px; font-weight:900; color:var(--primary); }
.slide-actions{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }

.slider-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  border:none; background:var(--primary); color:#fff;
  width:38px; height:38px; border-radius:12px;
  cursor:pointer; opacity:.92;
}
.slider-btn:hover{ opacity:1; }
.slider-btn.prev{ left:10px; }
.slider-btn.next{ right:10px; }

.dots{ display:flex; gap:8px; justify-content:center; padding:10px 0 14px; }
.dot-btn{ width:10px; height:10px; border-radius:999px; border:1px solid #aaa; background:#fff; cursor:pointer; }
.dot-btn.active{ background:var(--accent); border-color:var(--accent); }

.section{ padding:26px 0; background:var(--bg); }
.section.alt{ background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:14px; }
.section-head h2{ margin:0; color:#000; }
.section-head p{ margin:6px 0 0; color:#000; }
.link{ text-decoration:none; font-weight:900; color:#fff; }

.grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
.card{ background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); overflow:hidden; }
.card-body{ padding:14px; }
.card-title{ font-weight:900; font-size:15px; }
.card-sub{ color:var(--muted); font-size:13px; margin-top:6px; }
.card-price{ margin-top:10px; font-weight:900; font-size:16px; color:var(--primary); }
.card-actions{ display:flex; gap:10px; margin-top:12px; }

.pill{
  display:inline-block;
  font-size:12px;
  font-weight:900;
  background:rgba(239,120,34,.12);
  color:var(--accent);
  padding:6px 10px;
  border-radius:999px;
}

.sellers{ grid-template-columns:repeat(3, 1fr); }
.seller-card{
  display:block; text-decoration:none; color:#111;
  background:#fff; border:1px solid var(--line);
  border-radius:16px; padding:14px; box-shadow:var(--shadow);
}
.seller-name{ font-weight:900; color:#0d1b3a; }
.seller-meta{ color:var(--muted); margin-top:6px; }
.seller-cta{ margin-top:10px; font-weight:900; color:var(--primary); }

.cats{ grid-template-columns:repeat(6, 1fr); }
.cat-card{
  display:block; text-decoration:none; color:#111;
  background:#fff; border:1px solid var(--line);
  border-radius:16px; padding:14px; box-shadow:var(--shadow);
}
.cat-name{ font-weight:900; color:#0d1b3a; }
.cat-meta{ color:var(--muted); margin-top:6px; font-size:13px; }

.empty{ background:#fff; border:1px dashed #ccc; border-radius:16px; padding:18px; color:var(--muted); }

.vendor-banner{ background:linear-gradient(90deg, var(--primary), #1a3180); color:#fff; padding:26px 0; }
.vendor-inner{ display:flex; justify-content:space-between; gap:14px; align-items:center; flex-wrap:wrap; }
.vendor-banner p{ color:#e7ecff; margin:8px 0 0; }
.vendor-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.vendor-actions .btn.ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.35); }
.vendor-actions .btn.accent{ background:var(--accent); }

.footer{ background:#0b1022; color:#fff; padding:26px 0 14px; }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:16px; }
.footer a{ color:#d9def5; text-decoration:none; display:block; margin-top:8px; }
.footer a:hover{ color:#fff; }
.footer-brand{ font-weight:900; font-size:18px; color:#fff; }
.muted{ color:#b7bfdc; }
.footer-bottom{ display:flex; justify-content:space-between; gap:12px; border-top:1px solid rgba(255,255,255,.12); margin-top:18px; padding-top:12px; flex-wrap:wrap; }

@media (max-width: 980px){
  .grid{ grid-template-columns:repeat(2, 1fr); }
  .cats{ grid-template-columns:repeat(3, 1fr); }
  .sellers{ grid-template-columns:repeat(2, 1fr); }
  .hero-grid{ grid-template-columns:1fr; }
  .nav{ display:none; }
  .nav-toggle{ display:block; }
  .mobile-nav.open{ display:block; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 520px){
  .grid{ grid-template-columns:1fr; }
  .cats{ grid-template-columns:1fr 1fr; }
  .sellers{ grid-template-columns:1fr; }
  .topbar-inner{ flex-direction:column; align-items:flex-start; }
}

/* Product images */
.card-media{
  height:160px;
  background:#f2f4ff;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.slide-media{
  height:170px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#f2f4ff;
  margin-bottom:10px;
}
.slide-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Make header sticky + add shadow */
.header.sticky{
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* Cart icon button */
.icon-btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(32,64,154,.25);
  text-decoration:none;
  background:#fff;
  color:var(--primary);
}
.icon-btn:hover{ background:#f5f7ff; }
.icon-btn .icon{ font-size:18px; line-height:1; }
.badge{
  position:absolute;
  top:-6px; right:-6px;
  background:var(--accent);
  color:#fff;
  font-size:12px;
  font-weight:900;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
}

/* Product images (already had) */
.card-media{
  height:160px;
  background:#f2f4ff;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.slide-media{
  height:200px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#f2f4ff;
  margin-bottom:10px;
}
.slide-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Category pictures */
.cat-media{
  height:90px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#f2f4ff;
  margin-bottom:10px;
}
.cat-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Better responsiveness: keep content above bottom nav */
@media (max-width: 980px){
  body{ padding-bottom: 74px; }
  .slide-media{ height:160px; }
  .hero-left h1{ font-size:28px; }
}

/* Bottom navigation (mobile only) */
.bottom-nav{
  display:none;
  position:fixed;
  left:0; right:0; bottom:0;
  background:#fff;
  border-top:1px solid var(--line);
  padding:10px 10px calc(10px + env(safe-area-inset-bottom));
  z-index:1000;
}
.bottom-nav a{
  flex:1;
  text-decoration:none;
  color:#333;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:12px;
  font-weight:800;
}
.bottom-nav .bicon{ font-size:18px; }
.bottom-nav a.active{ color:var(--primary); }

@media (max-width: 980px){
  .bottom-nav{ display:flex; }
}

/* --- Slider image height fix --- */
.slider .slide-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* make the image area tall */
.slider .slide-media{
  width: 100%;
  height: 380px;          /* desktop height */
  border-radius: 18px;
  overflow: hidden;
  background: #f2f4ff;
  flex: 0 0 auto;
}

/* image fills the box */
.slider .slide-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fills area nicely */
  display: block;
}

/* keep content below nicely */
.slider .slide-title,
.slider .slide-meta,
.slider .slide-price,
.slider .slide-actions{
  padding-left: 2px;
}

/* responsive heights */
@media (max-width: 980px){
  .slider .slide-media{ height: 240px; }
}
@media (max-width: 560px){
  .slider .slide-media{ height: 200px; }
}