:root {
  --g: #006B38;
  --gd: #004D28;
  --gl: #E8F5E9;
  --a: #F4A300;
  --al: #FFF8E1;
  --bg: #F4F6F4;
  --cb: #FFFFFF;
  --ch: #F0F0F0;
  --tx: #0D1F15;
  --ts: #556B4E;
  --tm: #99AFA0;
  --br: #E0E6E2;
  --sd: 0 15px 35px rgba(0, 107, 56, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
  --f: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--f); background: var(--bg); color: var(--tx); overflow-x: hidden; }

/* 3D Depth Card effect */
.premium-3d {
  background: var(--cb);
  border: 1px solid var(--br);
  border-radius: 20px;
  box-shadow: var(--sd);
  transform: perspective(1000px) translate3d(0,0,0);
  transition: var(--transition);
}
.premium-3d:hover {
  transform: perspective(1000px) translate3d(0, -8px, 15px);
  box-shadow: 0 22px 40px rgba(0, 107, 56, 0.18), 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--g);
}

.sec { max-width: 1400px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px); }
.sec-t { font-size: 24px; font-weight: 900; margin-bottom: 20px; letter-spacing: -0.5px; }
.sec-t span { color: var(--g); }
.sec-l { color: var(--g); font-size: 14px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.sec-l:hover { color: var(--gd); }
.sec-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* STICKY TOP APP BANNER (Mobile Only) */
.top-app-banner {
  display: none;
  background: linear-gradient(135deg, var(--g), var(--gd));
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1001;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.top-app-banner a {
  color: var(--a);
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 12px;
  text-decoration: none;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.top-app-banner a:hover { background: #fff; color: var(--g); }

/* HEADER */
.main-header-frag { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--br); }
.header-inner { max-width: 1500px; margin: 0 auto; padding: 10px clamp(12px, 3vw, 32px); }
.hdr-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hdr-logo img { height: 38px; width: 38px; filter: drop-shadow(0 4px 6px rgba(0,107,56,0.15)); }
.hdr-logo-text { font-family: var(--f); font-weight: 900; font-size: 24px; color: var(--g); letter-spacing: -0.5px; }
.hdr-logo-text tspan { color: var(--a); }

.hdr-search { flex: 1; max-width: 420px; display: flex; align-items: center; background: #F3F6F4; border: 2px solid var(--br); border-radius: 30px; overflow: hidden; transition: var(--transition); }
.hdr-search:focus-within { border-color: var(--g); background: #fff; box-shadow: 0 0 0 4px rgba(0,107,56,0.08); }
.hdr-search input { flex: 1; padding: 10px 16px; background: none; border: none; color: var(--tx); font-size: 14px; outline: none; font-family: var(--f); }
.hdr-search button { padding: 8px 18px; background: var(--g); border: none; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; border-radius: 20px; margin-right: 4px; transition: var(--transition); }
.hdr-search button:hover { background: var(--gd); }

/* Nav actions */
.hdr-actions { display: flex; align-items: center; gap: 12px; }
.hdr-btn { padding: 10px 20px; border-radius: 30px; font-size: 13px; font-weight: 800; text-decoration: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hdr-btn.outline { border: 2px solid var(--g); color: var(--g); background: transparent; }
.hdr-btn.outline:hover { background: var(--gl); }
.hdr-btn.solid { background: var(--g); color: #fff; border: 2px solid var(--g); }
.hdr-btn.solid:hover { background: var(--gd); border-color: var(--gd); }

.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--ts); text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 8px; transition: var(--transition); }
.nav-links a:hover { color: var(--g); background: var(--gl); }

.hdr-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: none; border: none; color: var(--ts); font-size: 18px; padding: 10px; border-radius: 12px; cursor: pointer; position: relative; transition: var(--transition); }
.icon-btn:hover { color: var(--g); background: var(--gl); }
.cart-badge { position: absolute; top: 4px; right: 4px; background: var(--g); color: #fff; font-size: 9px; font-weight: 900; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.login-btn { padding: 10px 24px; background: var(--g); color: #fff; border: none; border-radius: 12px; font-size: 13px; font-weight: 800; cursor: pointer; transition: var(--transition); }
.login-btn:hover { background: var(--gd); transform: translateY(-2px); }

/* DARAZ STYLE HERO SLIDER + QR SIDEBAR */
.hero-container { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 24px; }
.hero-slider { position: relative; height: 360px; border-radius: 20px; overflow: hidden; box-shadow: var(--sd); }
.slide { position: absolute; top:0; left:0; width:100%; height:100%; opacity:0; transition: opacity 0.8s ease-in-out; display:flex; align-items:center; padding:0 48px; background-size: cover; background-position: center; }
.slide.active { opacity:1; z-index:1; }
.slide::before { content:''; position:absolute; top:0; left:0; right:0; bottom:0; background:linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); }
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 500px; }
.slide-content h2 { font-size: 38px; font-weight: 900; margin-bottom: 12px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.slide-content h2 span { color: var(--a); }
.slide-content p { font-size: 16px; margin-bottom: 24px; opacity: 0.9; line-height: 1.5; }
.slide-btn { padding: 12px 28px; background: var(--a); color: #fff; text-decoration: none; border-radius: 30px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.slide-btn:hover { background: #e09200; transform: translateY(-3px); }

.qr-sidebar { background: linear-gradient(135deg, var(--g), var(--gd)); border-radius: 20px; padding: 24px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: var(--sd); }
.qr-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; color: var(--a); }
.qr-desc { font-size: 13px; opacity: 0.9; margin-bottom: 20px; line-height: 1.4; }
.qr-code { width: 140px; height: 140px; background: #fff; border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.qr-code img { width: 100%; height: 100%; object-fit: contain; }
.qr-badge { font-size: 11px; font-weight: 700; background: var(--a); color: #fff; padding: 4px 12px; border-radius: 20px; margin-top: 14px; }

/* SEARCH TAGS (TABS STYLE) */
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.hero-tags span { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: #fff; border: 1px solid var(--br); border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--tx); cursor: pointer; transition: var(--transition); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.hero-tags span:hover { border-color: var(--g); color: var(--g); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,107,56,0.1); }
.hero-tags span i { color: var(--g); font-size: 14px; }

/* ALL SERVICES - 6 COLUMNS GRID */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc-card { display: block; background: #fff; border: 1px solid var(--br); border-radius: 20px; padding: 24px 16px; text-align: center; text-decoration: none; color: var(--tx); transition: var(--transition); box-shadow: 0 8px 20px rgba(0,0,0,0.03); position: relative; overflow: hidden; }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--g); transform: scaleX(0); transition: var(--transition); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--sd); border-color: var(--g); }
.svc-card i { font-size: 32px; color: var(--g); display: block; margin-bottom: 12px; transition: var(--transition); }
.svc-card:hover i { transform: scale(1.15) rotate(5deg); color: var(--gd); }
.svc-card .sn { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.svc-card .sd { font-size: 11px; color: var(--ts); font-weight: 500; }

/* BROWSE CATEGORIES */
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill { padding: 10px 22px; background: #fff; border: 1px solid var(--br); border-radius: 30px; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; color: var(--ts); text-decoration: none; transition: var(--transition); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.cat-pill:hover, .cat-pill.active { border-color: var(--g); color: var(--g); background: var(--gl); transform: translateY(-2px); }

/* PRODUCT CARD */
.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--br); border-radius: 16px; overflow: hidden; cursor: pointer; transition: var(--transition); text-decoration: none; color: var(--tx); position: relative; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--g); transform: translateY(-8px) scale(1.01); box-shadow: var(--sd); }
.pcard-img-wrap { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #F0F2F0; }
.pcard-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: var(--transition); }
.pcard:hover .pcard-img { transform: scale(1.08); }

.pcard-badge { position: absolute; top: 10px; left: 10px; background: var(--g); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 10px; font-weight: 800; box-shadow: 0 4px 10px rgba(0,107,56,0.25); z-index: 2; }
.pcard-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.pcard-body .pn { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; color: var(--tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 36px; }
.pcard-body .pr { font-size: 17px; font-weight: 900; color: var(--g); margin-bottom: 6px; }
.pcard-body .meta { display: flex; justify-content: space-between; margin-top: auto; font-size: 11px; color: var(--ts); font-weight: 500; }
.pcard-body .stars { color: var(--a); font-weight: 700; display: flex; align-items: center; gap: 2px; }

.pcard-chat-btn {
  position: absolute; right: 10px; top: 10px; width: 34px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--br); color: var(--g); display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: var(--transition); z-index: 5;
}
.pcard-chat-btn:hover { background: var(--g); color: #fff; border-color: var(--g); transform: scale(1.1); }

/* STORES */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.store-card { background: #fff; border: 1px solid var(--br); border-radius: 18px; overflow: hidden; transition: var(--transition); text-decoration: none; color: var(--tx); }
.store-card:hover { border-color: var(--g); transform: translateY(-6px); box-shadow: var(--sd); }
.store-img { width: 100%; height: 170px; object-fit: cover; }
.store-body { padding: 16px; }
.store-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.store-body .open { font-size: 10px; padding: 4px 10px; border-radius: 8px; font-weight: 700; }
.open.yes { color: var(--g); background: var(--gl); }
.open.no { color: #DC2626; background: #FEE2E2; }
.store-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.store-tag { font-size: 11px; padding: 4px 10px; background: var(--ch); border-radius: 8px; color: var(--ts); font-weight: 600; }
.store-meta { display: flex; gap: 14px; font-size: 12px; color: var(--ts); font-weight: 500; }
.store-meta .sr { color: var(--a); font-weight: 700; }

/* YMAL */
.ymal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ymal-card { background: #fff; border: 1px solid var(--br); border-radius: 14px; overflow: hidden; cursor: pointer; text-decoration: none; color: var(--tx); transition: var(--transition); display: flex; flex-direction: column; position: relative; }
.ymal-card:hover { border-color: var(--g); transform: translateY(-6px); box-shadow: var(--sd); }
.ymal-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #F3F6F4; }
.ymal-body { padding: 10px; display: flex; flex-direction: column; flex: 1; }
.ymal-body .yn { font-size: 12px; font-weight: 600; color: var(--tx); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ymal-body .yp { font-size: 15px; font-weight: 900; color: var(--g); margin-bottom: 4px; }
.ymal-body .ys { font-size: 11px; color: var(--ts); font-weight: 500; margin-top: auto; }

/* APP DOWNLOAD BANNER */
.app-banner { background: linear-gradient(135deg, var(--g), var(--gd)); border-radius: 20px; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; box-shadow: var(--sd); }
.app-banner h3 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.app-banner p { font-size: 14px; opacity: 0.9; line-height: 1.4; }
.app-btn { padding: 12px 28px; background: #fff; color: var(--g); border: none; border-radius: 12px; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.app-btn:hover { transform: scale(1.05); background: var(--gl); }

/* STATS */
.stats { background: var(--g); padding: 40px clamp(16px, 4vw, 48px); text-align: center; }
.stats-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat h3 { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.stat p { font-size: 13px; color: rgba(255,255,255,0.8); font-weight: 600; margin-top: 6px; }

/* SHOW MORE */
.show-more { text-align: center; margin-top: 24px; }
.show-more button { padding: 12px 48px; background: #fff; border: 2px solid var(--br); border-radius: 30px; color: var(--g); font-size: 14px; font-weight: 800; cursor: pointer; transition: var(--transition); font-family: var(--f); }
.show-more button:hover { border-color: var(--g); background: var(--gl); transform: translateY(-2px); }

/* BOTTOM NAV (Mobile Only) */
.btm-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--br); z-index: 1000; padding: 8px 0; box-shadow: 0 -5px 15px rgba(0,0,0,0.05); }
.btm-nav-inner { display: flex; justify-content: space-around; max-width: 500px; margin: 0 auto; width: 100%; }
.btm-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ts); font-size: 11px; font-weight: 700; transition: var(--transition); width: 20%; }
.btm-nav a i { font-size: 18px; }
.btm-nav a:hover, .btm-nav a.active { color: var(--g); }

/* FLOATING BACK TO TOP BUTTON */
.back-to-top { position: fixed; bottom: 80px; right: 24px; width: 44px; height: 44px; background: var(--g); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.15); opacity: 0; pointer-events: none; transition: var(--transition); z-index: 999; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--gd); transform: translateY(-4px); }

/* Mobile Drawer */
#mobileDrawer {
  position: fixed; top: 0; left: 0; width: 300px; height: 100vh;
  background: #fff; z-index: 10000; transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 5px 0 30px rgba(0,0,0,0.15); overflow-y: auto; padding: 24px;
}
#mobileDrawer.open { transform: translateX(0); }
.drawer-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--g); color: #fff !important; padding: 14px;
  border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 14px;
  margin-bottom: 24px; box-shadow: 0 4px 15px rgba(0,107,56,0.2);
}
.drawer-section { margin-bottom: 24px; border-bottom: 1px solid var(--br); padding-bottom: 16px; }
.drawer-section:last-child { border-bottom: none; }
.drawer-title { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--ts); letter-spacing: 1px; margin-bottom: 12px; }
.drawer-section a {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 12px; text-decoration: none; color: var(--tx); font-size: 14px;
  font-weight: 700; transition: var(--transition);
}
.drawer-section a:hover { background: var(--gl); color: var(--g); }
.drawer-section a i { font-size: 16px; color: var(--ts); width: 20px; text-align: center; }
.drawer-section a:hover i { color: var(--g); }

@media(max-width:1024px) {
  .pgrid { grid-template-columns: repeat(4, 1fr); }
  .ymal-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-container { grid-template-columns: 1fr; }
  .qr-sidebar { display: none; }
}
@media(max-width:768px) {
  .top-app-banner { display: flex; }
  .hdr-search, .hdr-mega, .nav-links, .hdr-actions { display: none !important; }
  .hamburger { display: flex; }
  .header-inner { padding: 10px 4%; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .store-grid { grid-template-columns: 1fr; }
  .ymal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .btm-nav { display: block; }
  body { padding-top: 0; padding-bottom: 75px; }
  .app-banner { flex-direction: column; text-align: center; padding: 24px; }
  .footer-grid { display: none !important; }
  footer { padding: 0 !important; }
}

.footer-grid { display: grid; }
@media(max-width:768px) {
  .footer-grid { display: none !important; }
  footer { padding: 0 12px 24px !important; }
}

.gharse-btm-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff !important;
  border-top: 1px solid #e0e6e2 !important;
  z-index: 10000 !important;
  box-shadow: 0 -5px 25px rgba(0, 107, 56, 0.08) !important;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 12px)) 0 !important;
}
.gharse-btm-nav-inner {
  display: flex !important;
  justify-content: space-around !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.gharse-btm-nav-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  text-decoration: none !important;
  color: #556B4E !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  width: 25% !important;
  background: transparent !important;
  border: none !important;
}
.gharse-btm-nav-link i {
  font-size: 18px !important;
  display: block !important;
  margin: 0 auto !important;
}
.gharse-btm-nav-link.active, .gharse-btm-nav-link:hover {
  color: #006B38 !important;
}
@media(max-width: 768px) {
  .gharse-btm-nav { display: block !important; }
  .btm-nav, .bottom-nav { display: none !important; }
  body { padding-bottom: calc(75px + env(safe-area-inset-bottom, 12px)) !important; }
}
