/* ============================================================
   KITCHEN KEEPERS - Main Stylesheet
   Premium Bangla E-Commerce Design System
   ============================================================ */

/* --- Variables --- */
:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --accent: #f97316;
  --card-bg: #ffefe0;
  --accent-dark: #ea580c;
  --accent-light: #ffedd5;
  --dark: #0f172a;
  --dark-secondary: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f0fdee;
  --bg-card: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all .2s ease;
  --font: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  color: #000000;
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* --- AD LOADER ===================================== */
.ad-loader-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: #0f172a;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.ad-loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ad-loader-inner {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.ad-slides-track {
  flex: 1;
  position: relative; overflow: hidden;
}
.ad-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .5s ease;
}
.ad-slide.active { opacity: 1; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; }
.ad-slide-content {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 60px 24px 100px;
  text-align: center; color: #fff;
}
.ad-slide-content h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.ad-slide-content p  { font-size: 16px; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ad-slide-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #16a34a 100%);
}
.ad-brand { text-align: center; color: #fff; }
.ad-logo-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgb(246, 255, 249);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px; color: #fff;
  box-shadow: 0 0 40px rgba(22,163,74,.5);
  animation: pulse 2s infinite;
}
.ad-brand h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.ad-brand p  { font-size: 16px; opacity: .8; }
.ad-spinner { margin-top: 32px; }
.spinner-ring {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.ad-indicators {
  position: absolute; bottom: 60px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.ad-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: var(--transition); cursor: pointer;
}
.ad-dot.active { width: 24px; border-radius: 4px; background: var(--primary); }
.ad-progress-bar {
  height: 3px; background: rgba(255,255,255,.2);
  position: absolute; bottom: 0; left: 0; right: 0;
}
.ad-progress-fill {
  height: 100%; background: var(--primary);
  width: 0%; transition: width linear;
}
.ad-skip-btn {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.15);
  color: #fff; border-radius: var(--radius-full);
  padding: 8px 16px; font-size: 13px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  transition: var(--transition);
}
.ad-skip-btn:hover { background: rgba(255,255,255,.25); }

/* Animations */
@keyframes zoom-in {
  from { transform: scale(1.15); }
  to   { transform: scale(1); }
}
@keyframes zoom-out {
  from { transform: scale(0.85); }
  to   { transform: scale(1); }
}
@keyframes slide-left {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes slide-right {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@keyframes slide-top {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
@keyframes slide-bottom {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{box-shadow:0 0 40px rgba(22,163,74,.5);} 50%{box-shadow:0 0 60px rgba(22,163,74,.8);} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn  { from{opacity:0;} to{opacity:1;} }

.anim-zoom-in   { animation: zoom-in .8s ease forwards; }
.anim-zoom-out  { animation: zoom-out .8s ease forwards; }
.anim-slide-left   { animation: slide-left .6s ease forwards; }
.anim-slide-right  { animation: slide-right .6s ease forwards; }
.anim-slide-top    { animation: slide-top .6s ease forwards; }
.anim-slide-bottom { animation: slide-bottom .6s ease forwards; }

.container{
  max-width: 1120px;
}
/* --- TOP BAR --- */
.top-bar {
  background: #094e2e;
  color: #dcfce7;
  font-size: 13px;
  padding: 8px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.top-bar a { color: #dcfce7; }
.top-bar a:hover { color: #94a3b8; }
.top-bar a i, .top-bar span i { color: #ffc107; }

/* --- footer BAR --- */
.footer-top-bar {
  background: #094e2e;
  color: #dcfce7;
  font-size: 13px;
  padding: 8px 0;
}
.footer-top-bar a { color: #dcfce7;}
.footer-top-bar a:hover { color: #94a3b8; }
.footer-top-bar a i, .top-bar span i { color: #ffc107; }
/* --- HEADER --- */
.main-header {
  background: #f0fdee;
  border-bottom: 1px solid var(--border);
  padding: 12px 10px;
  position: fixed;
  top: 30px; left: 0; right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
/* Mobile header — fixed, 2-row */
.mobile-header {
  position: fixed;
  top: 30px; left: 0; right: 0;
  z-index: 1050;
  background: #f0fdee;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 8px 12px 6px;
}
.mh-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mh-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mh-row2 .header-search { flex: 1; max-width: none; }
.mh-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.main-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; gap: 16px;
}

.header-logo {
  display: flex; align-items: flex-end; gap: 10px; flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgb(246, 255, 249);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 4px 12px rgba(22,163,74,.3);
  overflow: hidden;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-icon-sm { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px; }
.logo-name { display: block; font-size: 18px; font-weight: 700; color: var(--dark); line-height: 1.1; }
.logo-tagline { display: block; font-size: 11px; color: var(--text-muted); }
.header-search { flex: 1; max-width: 520px; }
.search-wrap { position: relative; }
.search-input {
  width: 100%; padding: 10px 50px 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px; font-family: var(--font);
  background: var(--bg);
  transition: var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22,163,74,.1);
}
.search-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }
.search-results-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  max-height: 480px; overflow-y: auto;
  z-index: 1001; display: none;
}
.search-results-dropdown.show { display: block; animation: fadeIn .15s ease; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.search-result-item:hover { background: var(--bg); }
.search-result-item:last-child { border-bottom: none; }
.search-result-img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); }
.search-result-info .name { font-size: 14px; font-weight: 500; color: var(--dark); }
.search-result-info .price { font-size: 13px; color: var(--primary); font-weight: 600; }
/* Enhanced search result items */
.sr-item { display:flex; align-items:center; gap:4px; padding:4px 4px; border-bottom:1px solid var(--border); cursor:pointer; transition:var(--transition);  }
.sr-item:hover { background:var(--bg); }
.sr-item:last-child { border-bottom:none; }
.sr-icon { width:28px; height:28px; display:flex; align-items:center; justify-content:center; color:#9ca3af; flex-shrink:0; font-size:13px; }
.sr-text { flex:1; min-width:0; }
.sr-name { font-size:13px; font-weight:600; color:var(--dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sr-label { font-size:11px; font-weight:600; margin-top:1px; }
.sr-thumb { width:44px; height:44px; object-fit:cover; border-radius:6px; background:var(--bg); flex-shrink:0; }
.sr-prod-info { flex:1; min-width:0; }
.sr-prod-meta { display:flex; flex-wrap:wrap; gap:4px; margin-top:3px; font-size:11px; color:#6b7280; align-items:center; }
.sr-actions { display:flex; flex-direction:column; gap:4px; flex-shrink:0; }
.sr-cart-btn { width:28px; height:28px; border:none; border-radius:6px; background:#16a34a; color:#fff; cursor:pointer; font-size:12px; display:flex; align-items:center; justify-content:center; }
.sr-cart-btn:hover { background:#15803d; }
.sr-wish-btn { width:28px; height:28px; border:none; border-radius:6px; background:#fee2e2; color:#dc2626; cursor:pointer; font-size:12px; display:flex; align-items:center; justify-content:center; }
.sr-wish-btn:hover { background:#fecaca; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-location {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-light); font-size: 13px; cursor: pointer;
}
.header-location i { color: var(--primary); }
.header-btn {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
  background: transparent;
}
.header-btn:hover { background: var(--bg); color: var(--primary); }
.header-btn i { font-size: 20px; }
.btn-badge {
  position: absolute; top: 0px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--danger); color: #fff;
  border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.header-user { display: flex; align-items: center; margin-left: auto; }
.top { margin-top: 180px; }
/* --- CATEGORY NAV --- */
.cat-nav {
  background: #f0fdee;
  border-bottom: 1px solid var(--border);
      position: fixed;
    top: 100px;
    left: 0;
    right: 0;
  overflow: hidden;
      z-index: 900;
}
.cat-nav-inner {
  display: flex; gap: 4px;
  overflow-x: auto; padding: 10px 0px 0px 0px;
  scrollbar-width: none;
  justify-content: space-between;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius);
  color: var(--text); font-size: 13px;
  white-space: nowrap; flex-shrink: 0;
  cursor: pointer; transition: var(--transition);
  
}
.cat-nav-item:hover, .cat-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.cat-nav-item i { font-size: 22px; margin-bottom: 2px; }
.cat-nav-item .cat-name { font-weight: 500; }
.cat-nav-loading { display: flex; align-items: center; justify-content: center; padding: 16px 32px; color: var(--text-muted); }

/* --- PAGE LOADER (disabled — no loading overlay on navigation) --- */
.page-loader { display: none !important; }
.page-loader.show { display: none !important; }

/* --- PAGE TRANSITION --- */
#pageContent { transition: opacity 0.12s ease; }
.page-loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pl-logo-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgb(246,255,249);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 0 32px rgba(22,163,74,.5);
  animation: pulse 2s infinite;
}
.pl-logo-circle img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.pl-name { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.pl-tagline { font-size: 13px; color: rgba(255,255,255,.75); }
.pl-dots { display: flex; gap: 8px; margin-top: 16px; }
.pl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  animation: dotBounce 1.4s ease infinite;
}
.pl-dot:nth-child(2) { animation-delay: .16s; }
.pl-dot:nth-child(3) { animation-delay: .32s; }
@keyframes dotBounce { 0%,80%,100%{transform:scale(0);opacity:.3;} 40%{transform:scale(1);opacity:1;} }

/* --- HOME PAGE SECTIONS --- */
.main-content { min-height: 60vh; }

/* Dual Hero Banners */
.hero-dual { display: flex; gap: 12px; margin: 20px 0 28px; margin-top: 200px; }
.hero-dual-main {
  flex: 742; height: 290px; border-radius: var(--radius-lg); overflow: hidden;
  position: relative; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-width: 0;
}
.hero-dual-side {
  flex: 366; height: 290px; border-radius: var(--radius-lg); overflow: hidden;
  position: relative; background: linear-gradient(135deg, #e94560 0%, #c0392b 100%);
  min-width: 0;
}
.hero-dual-main img,
.hero-dual-side img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.hero-dual-content {
  position: absolute; inset: 0; z-index: 2; padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.65) 40%, transparent 100%);
  color: #fff;
}
.hero-dual-side .hero-dual-content {
  background: linear-gradient(to top, rgba(0,0,0,.5) 40%, transparent 100%);
  padding: 20px 22px;
}
.hero-dual-tag {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-full); margin-bottom: 8px; width: fit-content;
}
.hero-dual-title {
  font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 8px;
}
.hero-dual-side .hero-dual-title { font-size: 20px; }
.hero-dual-sub { font-size: 14px; opacity: .85; margin-bottom: 16px; }
.hero-dual-side .hero-dual-sub { font-size: 13px; margin-bottom: 12px; }
.hero-dual-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: var(--radius-full); width: fit-content;
  transition: var(--transition);
}
.hero-dual-btn:hover { background: var(--accent-dark); transform: translateY(-2px); color: #fff; }
@media (max-width: 768px) {
  .hero-dual { flex-direction: column; gap: 10px; margin-top: 150px;}
  .hero-dual-main {display: none;} 
  .hero-dual-side { flex: none; width: 100%; height: 200px; }
  .hero-dual-title { font-size: 20px; }
  .hero-dual-side .hero-dual-title { font-size: 17px; }
}

/* Hero Carousel */
.hc-wrap { position: relative; overflow: hidden; }
.hc-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.hc-slide { min-width: 100%; height: 100%; position: relative; flex-shrink: 0; overflow: hidden; }
.hc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; border: none; }
.hc-dot.active { background: #fff; width: 22px; border-radius: 4px; }
.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(0,0,0,.35); color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; transition: background .2s; }
.hc-arrow:hover { background: rgba(0,0,0,.6); }
.hc-prev { left: 8px; }
.hc-next { right: 8px; }

/* Hero Banner */
.hero-section { margin-bottom: 32px; }
.hero-swiper { border-radius: var(--radius-lg); overflow: hidden; }
.hero-slide {
  position: relative; height: 400px; overflow: hidden;
  display: flex; align-items: center;
}
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-content {
  position: relative; z-index: 2; padding: 40px;
  background: linear-gradient(to right, rgba(0,0,0,.7) 40%, transparent 100%);
  width: 100%; height: 100%; display: flex; flex-direction: column;
  justify-content: center; color: #fff;
}
.hero-badge { display: inline-block; background: var(--primary); padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.hero-title { font-size: 36px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.hero-text { font-size: 16px; opacity: .9; margin-bottom: 24px; max-width: 380px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 12px 28px; border-radius: var(--radius-full); font-weight: 600; transition: var(--transition); }
.hero-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* Section */
.section { padding: 4px 0; background: #f0fdee; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.section-title { font-size: 22px; font-weight: 700; color: var(--dark); }
.section-title span { color: var(--primary); }
.section-title-ch { font-size: 22px; font-weight: 700; color: var(--dark); margin-top: 190px; }
.section-title-ch span { color: var(--primary); }
.section-subtitle { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.section-link { color: var(--primary); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--primary-dark); }
#app { background: #f0fdee;}
/* Category Cards Grid */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 30px; }
.cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cat-card-icon {
  width: 60px; height: 60px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 12px;
}
.cat-card-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.cat-card-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Product Cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-img-wrap {
  position: relative; overflow: hidden;
  padding-top: 75%; /* 4:3 aspect ratio */
}
.product-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.08); }
.product-badge {
  position: absolute; top: 6px; left: 6px;
  background: #15803d; color: #fff;
  padding: 0px 5px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 600;
}
.product-badge.badge-new { background: var(--success); }
.product-badge.badge-popular { background: var(--accent); }
.wishlist-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
  transition: var(--transition); backdrop-filter: blur(4px);
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--danger); }
.wishlist-btn.active i { font-weight: 900; }
.product-body { padding: 14px; }
.product-category { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.product-name {
  font-size: 14px; font-weight: 600; color: var(--dark);
  margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 4px; justify-content: center; font-weight: 700; }
.product-rating .stars { color: var(--warning); font-size: 11px; }
.product-rating .count { font-size: 11px; color: #15803d; }
.product-price-row {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: space-between;
    padding: 0px 4px;
}

.product-price {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex: 1;
}
.price-main { font-size: 16px; font-weight: 700; color: var(--primary); }
.price-original { font-size: 14px; color: #dc3545; font-weight: 700; text-decoration: line-through; }
.price-unit { font-size: 11px; color: #070cff; margin-top: 1px; }
.add-to-cart-btn {
  top: 53%; right: 6px; position: absolute;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition);
  flex-shrink: 0;
}

.add-to-cart-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.product-stock-out { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--danger); }
.product-stock-very-low {   position: absolute; top: 6px; right: 6px;
  background: #801515; color: #fff;
  padding: 0px 5px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 600; 
}
.product-stock-low {   position: absolute; top: 6px; right: 6px;
  background: #d84b0a; color: #fff;
  padding: 0px 5px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 600;
}

/* Restaurant Cards */
.restaurant-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.restaurant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.restaurant-banner { height: 140px; overflow: hidden; position: relative; }
.restaurant-banner img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-logo-wrap {
  position: absolute; bottom: -20px; left: 16px;
  width: 50px; height: 50px; border-radius: var(--radius);
  border: 3px solid #fff; overflow: hidden;
  box-shadow: var(--shadow);
}
.restaurant-body { padding: 28px 16px 16px; }
.restaurant-name { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.restaurant-cuisine { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.restaurant-meta { display: flex; gap: 16px; }
.meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-light); }

/* Special Landing Sections */
.special-section {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  padding: 48px 40px;
  color: #fff;
  margin-bottom: 32px;
}
.special-section::before {
  content: ''; position: absolute; inset: 0;
  background: inherit; z-index: 0;
}
.special-section-inner { position: relative; z-index: 1; }

/* Announcement / Promo Strip */
.promo-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center; padding: 10px;
  font-size: 14px;
}
.promo-strip strong { font-weight: 700; }

/* --- CART DRAWER --- */
.cart-drawer { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.cart-drawer.open { pointer-events: all; }
.cart-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.5);
  opacity: 0; transition: opacity .3s ease;
  backdrop-filter: blur(4px);
}
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-inner {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 100%; max-width: 420px;
  background: #fff;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.cart-drawer.open .cart-drawer-inner { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.cart-drawer-header h5 { font-size: 18px; font-weight: 700; margin: 0; }
.cart-drawer-header button { width: 32px; height: 32px; border-radius: 50%; background: #ef4444; display:flex;align-items:center;justify-content:center; color:#fff; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 6px 4px; }
.cart-drawer-footer { padding: 0px 10px 10px 10px; border-top: 1px solid var(--border); background: #fff; }

.cart-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px; height: 64px; border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-num { font-size: 15px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-remove { color: var(--danger); font-size: 13px; }

.cart-summary { margin-top: 8px; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 4px; font-size: 14px; }
.cart-summary-row.total { font-size: 18px; font-weight: 700; color: var(--dark); border-top: 1px solid var(--border); padding-top: 2px; }
.cart-summary-row .free-delivery { color: var(--success); font-size: 12px; }

.btn-checkout {
  display: block; width: 100%;
  background: var(--primary); color: #fff;
  padding: 6px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  text-align: center; margin-top: 2px;
  transition: var(--transition);
}
.btn-checkout:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 300px; color: var(--text-muted); text-align: center;
}
.cart-empty i { font-size: 64px; margin-bottom: 16px; opacity: .3; }
.cart-empty p { font-size: 16px; margin-bottom: 16px; }

/* --- FULL CART PAGE --- */
.cart-page-item { background:#fff; border-radius:var(--radius-lg); padding:16px; margin-bottom:16px; box-shadow:var(--shadow-sm); }
.cart-sa-coloum { display:flex; flex-wrap:nowrap; gap:6px;}
.cart-sa-area { padding: 2px 2px; font-size: 12px; font-weight: 500; align-content: center; margin-bottom:4px; padding-bottom:4px;}
.cart-sa-row { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:4px; padding-bottom:4px; border-bottom:1px solid var(--border); }
.cart-sa-badge { background:#ecfdf5; color:#059669; border:1px solid #a7f3d0; padding:2px 10px; border-radius:20px; font-size:12px; font-weight:500; }
.cart-page-main { display:flex; gap:12px; align-items:flex-start; align-items: center; }
.cart-page-img { width:90px; height:90px; border-radius:var(--radius); object-fit:cover; flex-shrink:0; }
.cart-page-mid { flex:1; min-width:0; }
.cart-page-name { font-size:15px; font-weight:600; color:var(--dark); margin-bottom:5px; }
.cart-price-row { display:flex; align-items:center; gap:8px; margin-bottom:5px; flex-wrap:wrap; }
.cp-sale { font-size:16px; font-weight:700; color:var(--primary); }
.cp-orig { font-size:13px; color:#dc3545; font-weight: 700; text-decoration:line-through; }
.cp-vol-text { font-size:12px; color:var(--text-muted); background:var(--bg); padding:2px 8px; border-radius:10px; }
.cp-sel-btn { font-size:12px; border:1px solid var(--border); background:var(--bg); border-radius:20px; padding:2px 10px; cursor:pointer; transition:var(--transition); }
.cp-sel-btn:hover, .cp-sel-btn.has-val { border-color:var(--primary); color:var(--primary); background:#f0fdf4; }
.cart-qty-color-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; }
.cart-page-right { display:flex; flex-direction:column; align-items:flex-end; gap:10px; min-width:70px; }
.cp-icon-btn { width:32px; height:32px; border-radius:50%; background:var(--bg); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:var(--transition); color:var(--text-muted); font-size:14px; }
.cp-icon-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.cp-icon-btn.del:hover { background:#ef4444; color:#fff; border-color:#ef4444; }
.cp-line-total { font-size:16px; font-weight:700; color:var(--primary); white-space:nowrap; }
/* Packaging */
.cart-pkg { margin-top:4px; padding:4px; border-top:1px dashed var(--border); }
.pkg-opts { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; justify-content: space-between; }
.pkg-opt { display:flex; align-items:center; gap:5px; padding:4px 4px; border-radius:6px; border:1.5px solid var(--border); font-size:12px; cursor:pointer; transition:var(--transition); user-select:none; }
.pkg-opt.active { border-color:var(--primary); background:#f0fdf4; color:var(--primary-dark); font-weight:600; }
.pkg-cb { width:14px; height:14px; accent-color:var(--primary); cursor:pointer; flex-shrink:0; }
.pkg-info-btn { width:16px; height:16px; border-radius:50%; border: 1px solid #f5430b; color: #100bf5; background:none; font-size:9px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; padding:0; line-height:1; }
.pkg-return-row { display:flex; align-items:center; gap:6px; font-size:12px; color:#059669; margin-top:5px; flex-wrap:wrap; justify-content: center; }
.pkg-comment-box { background:#fffbeb; border:1px solid #fde68a; border-radius:8px; padding:10px 12px; font-size:12px; color:#78350f; margin-top:8px; line-height:1.7; }
/* Affiliate apply form */
.aff-section { margin-bottom:20px; padding-bottom:18px; border-bottom:1px solid #f3f4f6; }
.aff-section:last-of-type { border-bottom:none; }
.aff-section-title { font-weight:700; font-size:.88rem; color:#111; margin-bottom:10px; }
.aff-section-title .req { color:#ef4444; }
.aff-checks { display:flex; flex-wrap:wrap; gap:8px; }
.aff-check { display:flex; align-items:center; gap:6px; font-size:.82rem; color:#374151; cursor:pointer; background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:8px; padding:6px 12px; transition:.15s; }
.aff-check:hover { border-color:var(--primary); }
.aff-check input { width:15px; height:15px; cursor:pointer; accent-color:var(--primary); }
.aff-input { width:100%; padding:9px 12px; border:1.5px solid #e2e8f0; border-radius:8px; font-size:.84rem; font-family:inherit; outline:none; box-sizing:border-box; }
.aff-input:focus { border-color:var(--primary); }
.aff-select { width:100%; padding:9px 12px; border:1.5px solid #e2e8f0; border-radius:8px; font-size:.84rem; font-family:inherit; outline:none; background:#fff; }
.aff-select:focus { border-color:var(--primary); }
/* Cart option modals */
.ck-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9500; display:flex; align-items:center; justify-content:center; }
.ck-modal { background:#fff; border-radius:var(--radius-lg); padding:20px; max-width:460px; width:92%; max-height:75vh; overflow-y:auto; }
.ck-modal-head { display:flex; justify-content:space-between; align-items:center; font-size:16px; font-weight:700; margin-bottom:14px; }
.ck-modal-close { width:30px; height:30px; border-radius:50%; background:var(--bg); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.ck-card { display:flex; align-items:center; gap:10px; padding:10px 12px; border:2px solid var(--border); border-radius:var(--radius); cursor:pointer; margin-bottom:8px; transition:var(--transition); }
.ck-card:hover { border-color:var(--primary); }
.ck-card.sel { border-color:var(--primary); background:#f0fdf4; }
.ck-swatch { width:32px; height:32px; border-radius:50%; border:2px solid rgba(0,0,0,.1); flex-shrink:0; }
.ck-card-mid { flex:1; min-width:0; }
.ck-card-name { font-weight:600; font-size:14px; }
.ck-card-sub { font-size:12px; color: #dc3545; font-weight: 700; }
.ck-card-price { font-size:14px; font-weight:700; color:var(--primary); white-space:nowrap; }
.ck-pv-thumb { width:48px; height:48px; border-radius:var(--radius); object-fit:cover; flex-shrink:0; background:var(--bg); border:1px solid var(--border); }

/* --- PRODUCT DETAIL PAGE --- */
.product-detail { animation: fadeInUp .4s ease; }
.product-detail-gallery { position: sticky; top: 90px; }
.product-main-img {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1; background: var(--bg);
  margin-bottom: 12px;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.product-thumb.active { border-color: var(--primary); }
.product-detail-info { padding-left: 24px; }

/* --- BREADCRUMB --- */
.breadcrumb-wrap { padding: 16px 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* --- FILTERS SIDEBAR --- */
.filter-sidebar { position: sticky; top: 90px; }
.filter-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 16px; }
.filter-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.filter-option input { width: 16px; height: 16px; accent-color: var(--primary); }
.filter-option label { font-size: 14px; cursor: pointer; }
.price-range-wrap { margin-top: 8px; }
.price-range { width: 100%; accent-color: var(--primary); }

/* --- AUTH MODAL --- */
.auth-modal { border: none; border-radius: var(--radius-xl); overflow: hidden; padding: 0; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  z-index: 9300; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); color: var(--text); border: none;
  display: flex; align-items: center; justify-content: center;
}
.auth-step { padding: 40px 22px 32px; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(22,163,74,.3);
}
.auth-icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}
.auth-header h2 { font-size: 24px; font-weight: 700; color: var(--dark); }
.auth-header p { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.auth-phone-display { font-size: 16px; font-weight: 600; color: var(--primary); margin-top: 8px; }
.input-with-flag {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); margin-bottom: 10px;
}
.input-with-flag:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22,163,74,.1); }
.input-with-flag .flag { padding: 12px 14px; background: var(--bg); font-size: 14px; white-space: nowrap; border-right: 2px solid var(--border); }
.input-with-flag input { flex: 1; padding: 12px 14px; border: none; outline: none; font-size: 16px; font-family: var(--font); }
.btn-primary-full {
  display: block; width: 100%;
  background: var(--primary); color: #fff;
  padding: 11px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  transition: var(--transition); border: none;
}
.btn-primary-full:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline-full {
  display: block; width: 100%;
  background: transparent; color: var(--primary);
  padding: 12px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  border: 2px solid var(--primary);
  transition: var(--transition); margin-top: 8px;
}
.btn-outline-full:hover { background: var(--primary-light); }

/* Sell & Earn button */
.btn-earn .btn-inner { width:100%; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.btn-earn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000; border: none; border-radius: 9px;
  font-weight: 700; font-size: .85rem; font-family: var(--font);
  cursor: pointer; transition: opacity .18s, transform .15s;
  position: relative; overflow: hidden;
}
.btn-earn:hover { opacity: .9; transform: translateY(-1px); }
.btn-earn:active { transform: translateY(0); }
.btn-earn .btn-spin { display: none; }
.btn-earn.loading .btn-inner { display: none; }
.btn-earn.loading .btn-spin { display: flex; align-items: center; justify-content: center; }
.btn-earn .spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth modal always on top */
#authModal { z-index: 10060 !important; }
#authModal ~ .modal-backdrop { z-index: 10059 !important; }

/* Register step redesign */
.reg-step-styled { padding: 28px 28px 24px; }
.reg-avatar-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.reg-avatar-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 2.5px dashed #16a34a;
  background: #f0fdf4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
  position: relative;
}
.reg-avatar-circle:hover { border-color: #15803d; background: #dcfce7; }
.reg-field-wrap { margin-bottom: 14px; }
.reg-label { display: block; font-size: .78rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.req-star { color: #ef4444; }
.reg-input { border-radius: 10px !important; border: 1.5px solid #e5e7eb !important; padding: 10px 14px !important; font-size: .9rem !important; transition: border-color .2s !important; }
.reg-input:focus { border-color: #16a34a !important; box-shadow: 0 0 0 3px rgba(22,163,74,.1) !important; }

.auth-divider-small { display: flex; align-items: center; gap: 8px; }
.auth-divider-small::before, .auth-divider-small::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.auth-modal-footer { padding: 10px 10px 10px; border-top: 1px solid #f0f4f0; margin-top: 2px; }
.auth-footer-brand { text-align: center; font-size: .92rem; font-weight: 700; color: #16a34a; margin: 0 0 5px; letter-spacing: .2px; }
.auth-footer-desc { font-size: .89rem; color: #000; text-align: center; margin: 0; line-height: 1.55; }

.auth-divider { text-align: center; color: var(--text-muted); margin: 16px 0; font-size: 13px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-input {
  width: 44px; height: 52px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 22px; font-weight: 700;
  text-align: center; outline: none;
  transition: var(--transition); font-family: var(--font);
}
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22,163,74,.1); }
.resend-section { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.resend-section button { color: var(--primary); font-weight: 600; font-family: var(--font); }
.btn-back { display: block; width: 100%; color: var(--text-light); font-size: 14px; text-align: center; padding: 8px; margin-top: 4px; font-family: var(--font); }

/* --- USER HEADER STATES --- */
.user-btn-group { display: flex; gap: 8px; }
.btn-login { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 8px 20px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; transition: var(--transition); }
.btn-login:hover { background: var(--primary); color: #fff; }
.btn-register { background: var(--primary); color: #fff; padding: 8px 20px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; transition: var(--transition); }
.btn-register:hover { background: var(--primary-dark); }
.user-avatar-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.user-avatar-btn:hover { border-color: var(--primary); }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 14px; font-weight: 600; color: var(--dark); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- USER SIDEBAR --- */
.user-sidebar { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.user-sidebar.open { pointer-events: all; }
.user-sidebar-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.5); opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(4px); }
.user-sidebar.open .user-sidebar-overlay { opacity: 1; }
.user-sidebar-inner {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: #fff4ea1a;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    height: 100vh;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.user-sidebar.open .user-sidebar-inner { transform: translateX(0); }
.user-sidebar-header {
    padding: 30px 20px 20px 50px;
    border-bottom: 1px solid var(--border);
    display: flex;
    
    justify-content: space-between;
    background: #ffe9cfc4;
}
.user-sidebar-header button { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display:flex;align-items:center;justify-content:center; }
.user-menu { padding: 8px 0; background: #edffe6b8;}
.user-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;     
  color: #060910;
  font-size: 14px;
  transition: var(--transition);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.user-menu a:hover { background: var(--primary-light); color: var(--primary); padding-left: 24px; }
.user-menu a i { width: 20px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.logout-link { color: var(--danger) !important; }
.logout-link:hover { background: #fef2f2 !important; }



/* --- NOTIFICATION DROPDOWN --- */
.notif-dropdown {
  position: fixed; top: 75px; right: 16px;
  width: 360px; max-height: 480px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border);
  z-index: 1500; overflow: hidden;
  animation: fadeInUp .2s ease;
}
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.notif-header h6 { font-size: 16px; font-weight: 700; margin: 0; }
.notif-header button { color: var(--primary); font-size: 13px; font-family: var(--font); }
.notif-item {
  display: flex; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: #f0fdf4; }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display:flex;align-items:center;justify-content:center; flex-shrink: 0; }
.notif-text .title { font-size: 14px; font-weight: 600; color: var(--dark); }
.notif-text .msg { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.notif-text .time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.notif-empty i { font-size: 48px; margin-bottom: 12px; opacity: .3; display: block; }

/* --- MOBILE NAV --- */
.mobile-nav {
display: none;
}
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2px;
    background: var(--surface-color);
}

.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 6px 8px; color: var(--text-muted);
  font-size: 11px; transition: var(--transition);
}
.mobile-nav-item i { font-size: 22px; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary); }
.mobile-cart-bubble { position: relative; }
.mobile-cart-badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 16px; height: 16px;
  background: var(--danger); color: #fff;
  border-radius: var(--radius-full);
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.mobile-nav-item.active-read{ color: #830c0c;}
.mobile-nav-item.active-comments{ color: #51228c; }
.mobile-nav-item.active-categories{ color: #22248c}
.mobile-nav-item.active-money{ color: #6c44ef; }

/* --- FOOTER --- */
.main-footer {
     background: #f0fdee;
    color: #212529;
  padding: 10px 0 0; margin-top: 10px;
}
.footer-brand-name { font-size: 20px; font-weight: 700; color: #212529; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-heading { font-size: 15px; font-weight: 700; color: #212529; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: #212529; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact .contact-item { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; font-size: 14px; }
.footer-contact .contact-item i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; justify-content: space-around;}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #ff420059; color: #2d31ff;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 10px 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; font-size: 13px; }
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-icon { height: 24px; width: auto; filter: brightness(0.8); }
.app-download-btn { display: flex; align-items: center; gap: 8px; background: #19875459; color: #000000; padding: 10px 16px; border-radius: var(--radius); font-size: 13px; font-family: var(--font); transition: var(--transition); }
.app-download-btn:hover { background: rgba(255,255,255,.2); }
.footer-app-text { font-size: 12px;
    font-weight: 800;
    color: #151780; }

/* --- PAGES --- */
/* Checkout */
.checkout-page { padding: 32px 0; }
.checkout-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 20px; }
.checkout-card-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 20px; display: flex;  align-items: center; gap: 10px; }
.checkout-card-title i { color: var(--primary); }
.form-label-bn { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
/* Address cards */
.btn-add-addr-sm { background:var(--primary); color:#fff; border:none; border-radius:20px; padding:6px 14px; font-size:12px; font-weight:600; cursor:pointer; font-family:var(--font); white-space:nowrap; }
.btn-add-addr-sm:hover { background:var(--primary-dark); }
.addr-card {display: flex; flex-wrap: nowrap; gap: 10px; border:2px solid var(--border); border-radius:var(--radius); padding:14px; margin-bottom:10px; cursor:pointer; transition:var(--transition); }
.addr-card:hover { border-color:var(--primary); background:#f0fdf4; }
.addr-card.selected { border-color:var(--primary); background:#f0fdf4; }
.addr-sel-dot { width:20px; height:20px; border-radius:50%; border:2px solid var(--border); background:#fff; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:transparent; margin-top:2px; transition:var(--transition); }
.addr-sel-dot.active { border-color:var(--primary); background:var(--primary); color:#fff; }
.addr-edit-btn { background:none; border:1px solid #2563eb; color:#2563eb; border-radius:6px; padding:3px 10px; font-size:11px; cursor:pointer; font-family:var(--font); }
.addr-edit-btn:hover { background:#2563eb; color:#fff; }
.addr-del-btn { background:none; border:1px solid #ef4444; color:#ef4444; border-radius:6px; padding:3px 10px; font-size:11px; cursor:pointer; font-family:var(--font); }
.addr-del-btn:hover { background:#ef4444; color:#fff; }
.addr-cards-grid { display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width:480px) { .addr-cards-grid { grid-template-columns:repeat(2,1fr); } }
.addr-see-more-btn { width:100%; background:none; border:1px solid var(--border); border-radius:var(--radius); padding:8px; font-size:13px; color:var(--text-muted); cursor:pointer; font-family:var(--font); margin-top:4px; }
.addr-see-more-btn:hover { border-color:var(--primary); color:var(--primary); }
.checkout-presentation {display: flex; flex-wrap: nowrap; gap: 10px; }
.ts-slot-btn { display:block; width:100%; padding:5px 3px; margin-bottom:3px; border:1px solid #e5e7eb; border-radius:5px; background:#fff; font-size:11px; cursor:pointer; color:#374151; text-align:center; transition:all .15s; font-family:var(--font); line-height:1.4; }
.ts-slot-btn:hover { background:#dcfce7; border-color:#16a34a; color:#16a34a; }
.ts-slot-btn.active { background:#16a34a !important; color:#fff !important; border-color:#16a34a; font-weight:700; }
.cal-date-btn { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; padding:8px 6px; border-radius:50px; border:2px solid #e5e7eb; background:#fff; cursor:pointer; min-width:54px; font-family:var(--font); transition:all .15s; color:#374151; }
.cal-date-btn:hover { border-color:#764ba2; background:#f5f3ff; }
.cal-date-btn.active { background:linear-gradient(135deg,#667eea,#764ba2); color:#fff !important; border-color:#667eea; }
.form-control-bn {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: var(--font);
  transition: var(--transition); background: var(--bg);
}
.form-control-bn:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(22,163,74,.1); }
.payment-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.payment-option {
  border: 2px solid #e5e7eb; border-radius: 12px;
  padding: 14px 8px 12px; text-align: center; cursor: pointer;
  transition: all .2s; background: #fff; position: relative; overflow: hidden;
}
.payment-option::before { content:''; position:absolute; inset:0; opacity:0; transition:opacity .2s; }
.payment-option[data-method="cod"]::before { background:linear-gradient(135deg,#dcfce7,#bbf7d0); }
.payment-option[data-method="Mobile-banking"]::before { background:linear-gradient(135deg,#ede9fe,#ddd6fe); }
.payment-option[data-method="bank-transfer"]::before { background:linear-gradient(135deg,#dbeafe,#bfdbfe); }
.payment-option.selected::before { opacity:1; }
.payment-option[data-method="cod"].selected { border-color:#16a34a; }
.payment-option[data-method="Mobile-banking"].selected { border-color:#7c3aed; }
.payment-option[data-method="bank-transfer"].selected { border-color:#1d4ed8; }
.payment-option:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.1); }
.payment-option .pmnt-icon-wrap { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; position:relative; z-index:1; transition:all .2s; }
.payment-option[data-method="cod"] .pmnt-icon-wrap { background:#dcfce7; }
.payment-option[data-method="Mobile-banking"] .pmnt-icon-wrap { background:#ede9fe; }
.payment-option[data-method="bank-transfer"] .pmnt-icon-wrap { background:#dbeafe; }
.payment-option[data-method="cod"].selected .pmnt-icon-wrap { background:#16a34a; }
.payment-option[data-method="Mobile-banking"].selected .pmnt-icon-wrap { background:#7c3aed; }
.payment-option[data-method="bank-transfer"].selected .pmnt-icon-wrap { background:#1d4ed8; }
.payment-option i { font-size:30px; display:block; position:relative; z-index:1; }
.payment-option[data-method="cod"] i { color:#16a34a; }
.payment-option[data-method="Mobile-banking"] i { color:#7c3aed; }
.payment-option[data-method="bank-transfer"] i { color:#1d4ed8; }
.payment-option.selected i { color:#fff !important; }
.payment-option span { font-size:11px; font-weight:700; display:block; position:relative; z-index:1; }
.payment-option[data-method="cod"] span { color:#15803d; }
.payment-option[data-method="Mobile-banking"] span { color:#6d28d9; }
.payment-option[data-method="bank-transfer"] span { color:#1e40af; }
.payment-option .pmnt-check { position:absolute; top:6px; right:6px; width:16px; height:16px; border-radius:50%; background:#16a34a; color:#fff; font-size:9px; display:none; align-items:center; justify-content:center; z-index:2; }
.payment-option[data-method="Mobile-banking"] .pmnt-check { background:#7c3aed; }
.payment-option[data-method="bank-transfer"] .pmnt-check { background:#1d4ed8; }
.payment-option.selected .pmnt-check { display:flex; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; }
.coupon-row button { padding: 12px 20px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; transition: var(--transition); }
.coupon-row button:hover { background: var(--accent-dark); }
.pmnt-check i { font-size: 9px; }
/* Orders Page */
.order-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 20px; border: 1px solid var(--border);
  margin-bottom: 16px; transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.order-no { font-size: 13px; color: var(--text-muted); }
.order-status-badge { padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.status-requested  { background: #fff7ed; color: #c2410c; }
.status-processing { background: #eff6ff; color: #1d4ed8; }
.status-shipping   { background: #f0fdf4; color: #15803d; }
.status-delivered  { background: #dcfce7; color: #15803d; }
.status-cancelled  { background: #fef2f2; color: #dc2626; }
.order-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0; font-size: 13px; color: var(--text-light); }
.order-meta i { color: var(--primary); margin-right: 4px; }

/* Profile Page */
.profile-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius-xl); padding: 40px 32px; color: #fff; text-align: center; margin-bottom: 32px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid rgba(255,255,255,.4); overflow: hidden; margin: 0 auto 16px; background: rgba(255,255,255,.2); display:flex;align-items:center;justify-content:center;font-size:40px; }
.profile-name { font-size: 24px; font-weight: 700; }
.profile-phone { font-size: 15px; opacity: .85; margin-top: 4px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.profile-stat { text-align: center; background: rgba(255,255,255,.15); border-radius: var(--radius); padding: 16px; }
.profile-stat .val { font-size: 24px; font-weight: 700; }
.profile-stat .lbl { font-size: 12px; opacity: .8; }

/* Dashboard Cards (User) */
.dash-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.dash-card-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }

/* Investment */
.invest-card { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); border-radius: var(--radius-xl); padding: 32px; color: #fff; }
.invest-package { font-size: 13px; color: rgba(255,255,255,.7); }
.invest-amount { font-size: 36px; font-weight: 700; }
.invest-roi { font-size: 14px; color: var(--success); margin-top: 4px; }
.invest-dates { display: flex; gap: 24px; margin-top: 16px; font-size: 13px; }

/* Special Sections */
.popular-restaurant { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.reputable-cook { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }
.clean-green-bd { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.dignified-seller { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.honorable-investor { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }

/* Affiliate Page */
.ref-link-box { background: var(--bg); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); }
.ref-link-url { font-size: 13px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-link-copy { background: var(--primary); color: #fff; padding: 6px 16px; border-radius: var(--radius-sm); font-size: 13px; transition: var(--transition); }
.ref-link-copy:hover { background: var(--primary-dark); }
/* Stats boxes */
.stat-box {
  background: #fff; border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); text-align: center;
}
.stat-box .icon { font-size: 36px; margin-bottom: 12px; }
.stat-box .num { font-size: 32px; font-weight: 700; color: var(--dark); }
.stat-box .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Utilities */
.text-primary { color: var(--primary) !important; }
.text-accent  { color: var(--accent) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.card-base { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.section-divider { border: none; border-top: 2px solid var(--border); margin: 40px 0; }

/* Pagination */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.page-btn { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; color: var(--text); display:flex;align-items:center;justify-content:center; transition: var(--transition); font-family: var(--font); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; pointer-events: none; }

/* Toast notifications */
.kk-toast, .SmartO-toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--dark); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: 14px; box-shadow: var(--shadow-xl);
  z-index: 99999; animation: toastIn .3s ease;
  max-width: 90vw; text-align: center;
}
.kk-toast.success, .SmartO-toast.success { background: var(--primary); }
.kk-toast.error,   .SmartO-toast.error   { background: var(--danger); }
.kk-toast.warning, .SmartO-toast.warning { background: var(--warning); color: var(--dark); }
.SmartO-toast.info { background: #2563eb; }
@keyframes toastIn { from{opacity:0;transform:translate(-50%,-60%);} to{opacity:1;transform:translate(-50%,-50%);} }
.swal2-container.swal2-top-end { z-index: 99999 !important; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from{background-position:200% 0;} to{background-position:-200% 0;} }
.skeleton-product { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); }
.skeleton-img { height: 160px; }
.skeleton-line { height: 14px; margin: 8px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }



/* Safe area for iOS */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

/* ===== All Categories Page ===== */
.ac-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 8px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.ac-breadcrumb a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ac-breadcrumb a:hover { text-decoration: underline; }
.ac-sep { font-size: 10px; color: var(--text-muted); }
.ac-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  padding: 12px 0 48px;
  align-items: start;
}
.ac-sidebar {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.ac-sidebar-head {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-bottom: 1px solid #e9ecef;
}
.ac-accordion { padding: 6px 0; }
.ac-acc-item { border-bottom: 1px solid #f3f4f6; }
.ac-acc-item:last-child { border-bottom: none; }
.ac-acc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  user-select: none;
}
.ac-acc-head:hover { background: #f8fafc; }
.ac-acc-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ac-acc-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-acc-cnt {
  font-size: 11px;
  color: #fff;
  background: var(--primary);
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.ac-acc-arr {
  font-size: 11px;
  color: #0d6efd;
  flex-shrink: 0;
  transition: transform .2s;
}
.ac-acc-body {
  display: none;
  flex-direction: column;
  padding: 4px 0 8px;
  background: #fafafa;
}
.ac-acc-item.open .ac-acc-arr { transform: rotate(-180deg); }
.ac-acc-item.open .ac-acc-head { background: #f0fdf4; }
.ac-acc-item.open .ac-acc-body { display: flex; }
.ac-acc-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 20px;
  font-size: 12.5px;
  color: var(--text-light);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.ac-acc-sub:hover { background: #ecfdf5; color: var(--primary); }
.ac-acc-sub span:first-of-type { flex: 1; }
.ac-sub-cnt {
  font-size: 11px;
  color: var(--text-muted);
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 20px;
}
.ac-sub-all {
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px dashed #d1fae5;
  margin-bottom: 2px;
}
.ac-main { min-width: 0; }


/* ===== Home Section Scroll (2-row grid + arrows) ===== */
.rtc-section { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%); }
.rtc-section .section-header { padding: 0 0 4px; }
.rtc-carousel-wrap { position: relative; padding: 8px 28px 20px; }
.rtc-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 12px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rtc-track::-webkit-scrollbar { display: none; }
.rtc-track .product-card { width: 210px; min-width: 210px; }
.hm-arr {
  position: absolute; top: 49%; transform: translateY(-50%);
  width: 26px; height: 56px; border-radius: 20%; border: none;
  background: #fff; color: #374151; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); z-index: 2;
  display: none; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; transition: background .15s, color .15s;
}
.hm-arr:hover { background: #2563eb; color: #fff; }
.hm-arr-l { left: 0; }
.hm-arr-r { right: 0; }
@media (max-width: 768px) {
  .rtc-carousel-wrap { padding: 8px 12px 20px; }
  .rtc-track { grid-auto-columns: 175px; gap: 10px; }
  .rtc-track .product-card { width: 175px; min-width: 175px; }
}
@media (max-width: 480px) {
  .rtc-carousel-wrap { padding: 8px 8px 16px; }
  .rtc-track { grid-auto-columns: 148px; gap: 8px; }
  .rtc-track .product-card { width: 148px; min-width: 148px; }
}


/* =============================================
   CATEGORY DETAIL PAGE (/categories/{slug})
   ============================================= */
.cd-layout-cat { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 12px 10px 8px; align-items: start;}
.cd-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 12px 10px 8px; align-items: start; margin-top: 170px; }
.cd-sidebar {scrollbar-width: thin; background: #fff; border-radius: 14px; border: 1px solid #e9ecef; overflow: hidden; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.cd-sidebar-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e9ecef; }
.cd-sidebar-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.cd-sidebar-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-accordion { padding: 4px 0; }
.cd-acc-item { border-bottom: 1px solid #f3f4f6; }
.cd-acc-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; transition: background .15s; user-select: none; }
.cd-acc-head:hover { background: #f8fafc; }
.cd-acc-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.cd-acc-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-acc-arr { font-size: 11px; color: black; transition: transform .3s ease; margin-left: auto; }
.cd-acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.cd-acc-item.open .cd-acc-head { background: #f0fdf4; }
.cd-acc-item.open .cd-acc-arr { transform: rotate(-180deg); }
.cd-acc-item.open .cd-acc-body { max-height: 300px; }
.cd-acc-sub { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 22px; font-size: 12.5px; color: var(--text-light); text-decoration: none; transition: background .12s, color .12s; }
.cd-acc-sub:hover { background: #ecfdf5; color: var(--primary); }
.cd-acc-sub span { flex: 1; }
.cd-sub-all { font-weight: 600; color: var(--primary); border-bottom: 1px dashed #d1fae5; margin-bottom: 2px; }
.cd-main { min-width: 0; padding: 10px 0px 10px;}
.cd-sub-section { margin-bottom: 36px; }
.cd-sub-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 12px; border-bottom: 2px solid #f3f4f6; margin-bottom: 10px; }
.cd-sub-title { font-size: 16px; font-weight: 700; color: var(--dark); margin: 0; }

.cd-carousel-wrap { position: relative; padding: 4px 28px 16px; }
.cd-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 12px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cd-track::-webkit-scrollbar { display: none; }
.cd-track .product-card { width: 190px; min-width: 190px; }
@media (max-width: 768px) {
  .cd-carousel-wrap { padding: 4px 12px 16px; }
  .cd-track { grid-auto-columns: 170px; gap: 10px; }
  .cd-track .product-card { width: 170px; min-width: 170px; }
}
@media (max-width: 480px) {
  .cd-carousel-wrap { padding: 4px 8px 12px; }
  .cd-track { grid-auto-columns: 148px; gap: 8px; }
  .cd-track .product-card { width: 148px; min-width: 148px; }
}
.cd-ads-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 4px; }
.cd-ad-wrap { border-radius: 12px; overflow: hidden; }
.cd-ad-img { width: 100%; height: 110px; object-fit: cover; display: block; border-radius: 12px; transition: transform .2s; }
.cd-ad-wrap:hover .cd-ad-img { transform: scale(1.02); }
.hero-main { display: flex; }
/* Checkout fixed footer — mobile only */


/* ── Subcategory Product Detail (SPD) ── */
.spd-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 0 6px; }
.spd-sel { border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--dark); background: #fff; cursor: pointer; outline: none; transition: border .15s; }
.spd-sel:focus { border-color: var(--primary); }
.spd-hero { border-radius: 14px; overflow: hidden; margin: 10px 0; }
.spd-hero .spd-hero-inner { border-radius: 14px; overflow: hidden; height: 180px; }
@media (max-width:600px) { .spd-hero .spd-hero-inner { height: 120px; } }
.spd-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0px 8px; flex-wrap: wrap; }
.spd-sort { display: flex; align-items: center; gap: 6px; }
.spd-sort-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.spd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 8px 0 20px; }
.spd-sec-head { display: flex; align-items: center; gap: 8px; padding: 16px 0 8px; border-bottom: 2px solid #f3f4f6; margin-bottom: 10px; }
.spd-sec-head h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin: 0; }
.spd-sec-head h3 span { color: var(--primary); }
.spd-scroll-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: thin; }
.spd-scroll-row .product-card { flex: 0 0 170px; min-width: 170px; }
.spd-combo { background: linear-gradient(135deg,#fef3c7,#fde68a); border: 1.5px solid #fbbf24; border-radius: 14px; padding: 18px; margin: 20px 0; }
.spd-combo-head { font-size: 15px; font-weight: 700; color: #92400e; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.spd-combo-badge { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 50px; margin-left: auto; }
.spd-combo-body { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.spd-combo-card { background: #fff; border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; flex: 1; min-width: 120px; transition: transform .15s; }
.spd-combo-card:hover { transform: translateY(-2px); }
.spd-combo-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.spd-combo-name { font-size: 12px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spd-combo-price { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 2px; }
.spd-combo-plus { font-size: 22px; font-weight: 800; color: #b45309; flex-shrink: 0; }
.spd-combo-total { font-size: 14px; color: #78350f; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spd-combo-final { font-size: 20px; font-weight: 800; color: #16a34a; }
.spd-combo-save { background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 50px; }
.p {
    margin-top: 0px;
    margin-bottom: 0px;
  }


/* ===== SERVICE CATEGORY PAGES ===== */
.svc-cat-hero {
  padding: 44px 24px 36px; text-align: center; border-radius: 20px;
  margin: 20px 0 28px; border: 1px solid var(--svc-c, #16a34a);
  background: linear-gradient(135deg, color-mix(in srgb,var(--svc-c,#16a34a) 10%,#fff), color-mix(in srgb,var(--svc-c,#16a34a) 5%,#fff));
}
.svc-cat-hero-icon {
  width: 70px; height: 70px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  margin: 0 auto 16px; background: var(--svc-c, #16a34a); color: #fff;
}
.svc-cat-hero h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.svc-cat-hero p { font-size: 14px; color: #64748b; max-width: 540px; margin: 0 auto; }

.svc-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; margin: 0 0 32px;
}
.svc-card {
  background: #fff; border-radius: 16px; border: 1.5px solid #e2e8f0;
  padding: 24px 20px; cursor: pointer; transition: all .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.svc-card:hover {
  border-color: var(--svc-c, #16a34a);
  box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px);
}
.svc-card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: color-mix(in srgb,var(--svc-c,#16a34a) 12%,#fff);
  color: var(--svc-c, #16a34a);
}
.svc-card h3 { font-size: 15px; font-weight: 700; margin: 0; }
.svc-card p { font-size: 13px; color: #64748b; margin: 0; flex: 1; line-height: 1.55; }
.svc-card-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 50px; font-size: 12px; font-weight: 700;
  background: var(--svc-c, #16a34a); color: #fff; border: none; cursor: pointer; margin-top: 4px;
}

/* Service subcategory detail page */
.svc-detail-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 12px 10px 48px; align-items: start; margin-top: 170px; }
.svc-detail-main { max-width: 760px; }
.svc-detail-hero {
  background: linear-gradient(135deg, color-mix(in srgb,var(--svc-c,#16a34a) 12%,#fff), color-mix(in srgb,var(--svc-c,#16a34a) 5%,#fff));
  border: 1px solid color-mix(in srgb,var(--svc-c,#16a34a) 30%,#fff);
  border-radius: 18px; padding: 36px 28px; margin-bottom: 24px;
}
.svc-detail-hero h1 { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: #1e293b; }
.svc-detail-hero p { font-size: 14px; color: #475569; margin: 0; line-height: 1.65; }

.svc-section {
  background: #fff; border-radius: 14px; border: 1px solid #e9ecef;
  padding: 22px 22px 18px; margin-bottom: 18px;
}
.svc-section-title {
  display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; color: #1e293b;
}
.svc-section-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.svc-for-text { font-size: 14px; color: #374151; line-height: 1.65; }
.svc-benefits-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.svc-benefits-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #374151; line-height: 1.5;
}
.svc-benefit-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
.svc-discount-box {
  background: linear-gradient(135deg, #fef9c3, #fffbeb); border: 1.5px solid #fcd34d;
  border-radius: 12px; padding: 16px 20px; display: flex; align-items: flex-start; gap: 14px;
}
.svc-discount-icon { font-size: 30px; flex-shrink: 0; }
.svc-discount-text { font-size: 14px; color: #78350f; line-height: 1.6; }
.svc-discount-text strong { display: block; font-size: 16px; margin-bottom: 4px; }
.svc-why-text { font-size: 14px; color: #374151; line-height: 1.7; }

.svc-cta-box {
  border-radius: 18px; padding: 30px 24px; text-align: center; color: #fff; margin-top: 24px;
  background: linear-gradient(135deg, var(--svc-c, #16a34a), color-mix(in srgb,var(--svc-c,#16a34a) 75%,#000));
}
.svc-cta-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.svc-cta-box p { font-size: 13px; opacity: .85; margin-bottom: 20px; }
.svc-cta-btn {
  background: #fff; color: var(--svc-c, #16a34a); border: none; border-radius: 50px;
  padding: 12px 36px; font-size: 15px; font-weight: 700; cursor: pointer; transition: .15s;
}
.svc-cta-btn:hover { opacity: .92; transform: translateY(-1px); }

/* ── Inline service card (category page carousel replacement) ── */
.svc-sb-link { display:flex;align-items:center;gap:10px;padding:10px 14px;text-decoration:none;color:var(--text);border-bottom:1px solid var(--border);transition:background .15s; }
.svc-sb-link:hover { background:var(--bg-secondary); }
.svc-inline-card { background:var(--card-bg);border:1px solid var(--border);border-radius:14px;padding:22px 24px;margin-bottom:6px; }
.svc-ic-subtitle { font-size:15px;font-weight:700;color:var(--primary);margin:0 0 8px; }
.svc-ic-desc { font-size:13.5px;color:var(--text-muted);line-height:1.75;margin:0 0 18px; }
.svc-ic-why { margin-bottom:18px; }
.svc-ic-why-title { font-size:14px;font-weight:700;color:var(--text);margin-bottom:10px; }
.svc-ic-bullets { list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:7px 18px; }
.svc-ic-bullets li { font-size:13px;color:var(--text);display:flex;align-items:flex-start;gap:6px;line-height:1.5; }
.svc-check { color:#16a34a;font-weight:800;flex-shrink:0; }
.svc-ic-benefit { background:#fef9c3;border-left:4px solid #ca8a04;border-radius:8px;padding:12px 16px;font-size:13px;color:#92400e;margin-bottom:18px;display:flex;align-items:flex-start;gap:8px;line-height:1.6; }
.svc-ic-gift { font-size:18px;flex-shrink:0; }
.svc-ic-btn { background:var(--primary);color:#fff;border:none;border-radius:8px;padding:9px 22px;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .2s; }
.svc-ic-btn:hover { opacity:.85; }



/* ── Schedule Shop & Cart ─────────────────────────────────── */
.sched-shop-hdr { background:var(--card-bg);border-bottom:2px solid var(--border);padding:10px 16px;position:fixed;top:105px;left:0;right:0;width:100%;z-index:901;box-shadow:0 2px 8px rgba(0,0,0,.06); }
.sched-shop-hdr-inner { display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1120px;margin:0 auto; }
.sched-shop-spacer { height:170px; }
.sched-cart-btn { display:inline-flex;align-items:center;gap:6px;background:var(--primary);color:#fff;border:none;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;transition:opacity .2s;flex-shrink:0; }
.sched-cart-btn:hover { opacity:.86; }
.sched-cart-badge { background:#ef4444;color:#fff;border-radius:50px;font-size:11px;font-weight:800;padding:1px 7px;margin-left:2px;vertical-align:middle; }
.sched-type-btn { background:var(--bg-secondary);border:1.5px solid var(--border);border-radius:50px;padding:5px 14px;font-size:12px;font-weight:600;color:var(--text);cursor:pointer;transition:all .15s; }
.sched-type-btn.active,.sched-type-btn:hover { background:var(--primary);border-color:var(--primary);color:#fff; }
.sched-cart-drawer { position:fixed;right:-100%;top:0;bottom:0;width:100%;max-width:420px;background:var(--card-bg);z-index:1100;display:flex;flex-direction:column;box-shadow:-6px 0 32px rgba(0,0,0,.18);transition:right .28s cubic-bezier(.4,0,.2,1); }
.sched-cart-drawer.open { right:0; }
.sched-cart-head { display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:2px solid var(--border);font-size:15px;font-weight:800;flex-shrink:0; }
.sched-cart-body { flex:1;overflow-y:auto;padding:8px 10px; }
.sched-cart-footer { padding:14px 16px;border-top:2px solid var(--border);flex-shrink:0; }
.sched-cart-item { display:flex;align-items:flex-start;gap:10px;padding:10px 16px;border-bottom:1px solid var(--border); }
.sched-cart-img { width:54px;height:54px;object-fit:cover;border-radius:8px;flex-shrink:0; }
.sched-cart-info { flex:1;min-width:0; }
.sched-cart-name { font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical; }
.sched-cart-price { font-size:13px;font-weight:700;color:var(--primary);margin:4px 0; }
.sched-cart-qty-row { display:flex;align-items:center;gap:6px;margin-top:4px; }
.sched-qty-btn { width:26px;height:26px;border-radius:50%;border:1.5px solid var(--border);background:var(--bg-secondary);color:var(--text);font-size:14px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1; }
.sched-qty-btn:hover { background:var(--primary);border-color:var(--primary);color:#fff; }
.sched-qty-num { min-width:20px;text-align:center;font-size:13px;font-weight:700; }
.sched-cart-del { background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:14px;padding:4px;flex-shrink:0;margin-top:4px; }
.sched-cart-del:hover { color:#ef4444; }

.pd-main-img { width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;cursor:zoom-in;transition:opacity .18s;border:1px solid #f3f4f6;display:block;}
.pd-sale-savings {position:absolute;top:8px;left:8px;background: #198754;color: #fff;padding:3px 9px;border-radius:20px;font-size:.9rem;font-weight:700;}

.pd-left-btn { position:absolute;left:6px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;border:none;background:rgba(0,0,0,.45);color:#fff;cursor:pointer;font-size:.65rem;display:flex;align-items:center;justify-content:center;font-family:inherit;}
.pd-right-btn { position:absolute;right:6px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;border:none;background:rgba(0,0,0,.45);color:#fff;cursor:pointer;font-size:.65rem;display:flex;align-items:center;justify-content:center;font-family:inherit;}

.pd-gallery-thumbs { display:flex;flex-wrap:wrap;gap:1px;margin-top:8px;justify-content: center;}
.pd-info { font-size:13px;font-weight:600;display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-bottom:4px;}
.pd-sku { background:#f3f4f6;color:#6b7280;padding:1px 6px;border-radius:4px;font-family:monospace;}
.pd-name { font-size:1.3rem;font-weight:700;line-height:1.3;color:#111;margin:0 0 6px;}
.pd-short-desc { font-size:1rem;color:#6b7280;border-left:3px solid #2563eb;padding-left:10px;line-height:1.6;margin:0 0 8px; }
.pd-rating { display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px;}
.pd-rating-value { font-weight:700;font-size:1rem;color:#111;}
.pd-rating-count { font-size:1rem;color: #1d4ed8; font-weight:700;}
.pd-price { display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:10px;}
.pd-price-value { font-size:1.2rem;font-weight:800;color:#16a34a;}
.pd-price-original { font-size:1.2rem; font-weight:600; color:#dc3545;text-decoration:line-through;}
.pd-sale-savings {background: #198754;color: #fff;font-size:.9rem;font-weight:700;padding:2px 7px;border-radius:20px;}
.pd-volume {font-size:1rem;color: #1d4ed8; font-weight:700;}
.pd-stok-container { display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px; margin-top:12px;}
.pd-stok { background:#fee2e2;color:#dc2626;padding:4px 12px;border-radius:20px;font-size:.9rem;font-weight:600;}
.pd-stok-in {background:#dcfce7;color: #16a34a;padding:4px 12px;border-radius:20px;font-size:.9rem;font-weight:600;} 

.pd-wish-actions { display:flex;gap:8px;}
.wish-btn { width:38px;height:38px;border-radius:50%;border:1.5px solid #ef4444;background:#ef4444;color:#fff ;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.9rem;transition:all .2s;flex-shrink:0;}
.share-btn { width:38px;height:38px;border-radius:50%;border:1.5px solid #44b9ef;background:#fff;color:#44b9ef;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.9rem;transition:all .2s;flex-shrink:0;}
.pd-actions { display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
.pd-cart-btn { flex:1;min-width:100px;padding:10px 4px;background:#2563eb;color:#fff;border:none;border-radius:9px;font-weight:700;font-size:.85rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;}
.pd-buy-btn { flex:1;min-width:100px;padding:10px 4px;background:#16a34a;color:#fff;border:none;border-radius:9px;font-weight:700;font-size:.85rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;}

.pd-badges { display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding-top:10px;border-top:1px solid #f3f4f6;}
.pd-badge { display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;}
.pd-badge-container {width:36px;height:36px;border-radius:7px;background:#f0fdf4;display:flex;align-items:center;justify-content:center;font-size:20px;color:#16a34a;}
.pd-badge-label { font-size:.8rem;font-weight:600;color:#15803d; }

.pd-tabs { display:flex;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #e5e7eb; padding: 10px;} 
 

/* ── Review & Rating (.rr-) ─────────────────────────────────── */
.rr-section-title { font-size:.9rem;font-weight:700;color:#111;padding:14px 14px 0; }

/* Overview */
.rr-overview { display:grid;grid-template-columns:140px 1fr;gap:36px;padding:14px;border-top:1px solid #e5e7eb; margin-left: 40px; margin-right: 40px;}
.rr-overview-score { font-size:2.5rem;font-weight:800;color:#111;line-height:1; }
.rr-overview-stars { display:flex;gap:1px;margin:4px 0; }
.rr-overview-count { font-size:.9rem;color:#6b7280;margin-bottom:10px; }
.rr-write-btn { width:100%;padding:7px;background:#2563eb;color:#fff;border:none;border-radius:7px;font-size:.78rem;font-weight:600;cursor:pointer;font-family:inherit; }
.rr-login-box { background:#fef9c3;border:1px solid #fde68a;padding:7px;border-radius:6px;font-size:.72rem;color:#92400e;text-align:center; }
.rr-bar-row { display:flex;align-items:center;gap:5px;margin-bottom:5px; }
.rr-bar-stars { display:flex;gap:1px;min-width:54px; }
.rr-bar-track { flex:1;height:5px;background:#f3f4f6;border-radius:3px;overflow:hidden; }
.rr-bar-fill { height:100%;background:#f59e0b; }
.rr-bar-cnt { min-width:16px;text-align:right;font-size:.8rem;color:#6b7280; }

/* Review form */
.rr-form { display:none;padding:14px;background:#f8fafc;border-top:1px solid #e5e7eb; }
.rr-form-title { font-size:.88rem;font-weight:700;margin-bottom:10px;color:#111; }
.rr-star-picker { display:flex;gap:6px;margin-bottom:10px; }
.rr-star-icon { font-size:1.8rem;color:#d1d5db;cursor:pointer;transition:color .15s; }
.rr-low-label { font-size:.75rem;font-weight:600;color:#374151;display:block;margin-bottom:4px; }
.rr-textarea { width:100%;border:1px solid #e5e7eb;border-radius:7px;padding:7px;font-size:.8rem;font-family:inherit;resize:none;box-sizing:border-box;outline:none; }
.rr-img-upload { margin-bottom:10px; }
.rr-img-preview { display:none;margin-top:6px; }
.rr-img-preview img { width:60px;height:60px;object-fit:cover;border-radius:6px;border:1px solid #e5e7eb; }
.rr-upload-btn { padding:5px 12px;background:transparent;border:1px solid #e5e7eb;border-radius:6px;font-size:.75rem;cursor:pointer;font-family:inherit; }
.rr-form-actions { display:flex;gap:7px;justify-content:flex-end; }
.rr-btn-cancel { padding:7px 14px;background:transparent;border:1px solid #e5e7eb;border-radius:7px;font-size:.8rem;cursor:pointer;font-family:inherit; }
.rr-btn-submit { padding:7px 14px;background:#2563eb;color:#fff;border:none;border-radius:7px;font-size:.8rem;font-weight:600;cursor:not-allowed;opacity:.5;font-family:inherit; }

/* Review list controls */
.rr-list-header { padding:0 14px 6px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px; }
.rr-list-count { font-size:.9rem;color:#03b912; }
.rr-sort-select { padding:4px 9px;border:1px solid #e5e7eb;border-radius:5px;font-size:.78rem;background:#fff;cursor:pointer;font-family:inherit; }
.rr-list { padding:0 14px 10px; }
.rr-more-wrap { text-align:center;padding:0 4px 4px; }
.rr-more-btn { padding:7px 18px;background:transparent;border:1px solid #e5e7eb;border-radius:7px;font-size:.8rem;cursor:pointer;font-family:inherit; }

/* Review card */
.rr-card { background:#fff;border:1px solid #f3f4f6;border-radius:10px;padding:14px;margin-bottom:10px; }
.rr-card-header { display:flex;align-items:flex-start;gap:8px;margin-bottom:8px;flex-wrap:wrap; }
.rr-avatar { width:34px;height:34px;border-radius:50%;background:#2563eb;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.78rem;color:#fff;flex-shrink:0;overflow:hidden; }
.rr-avatar-img { width:100%;height:100%;object-fit:cover;border-radius:50%; }
.rr-user-info { flex:1;min-width:0; }
.rr-user-name { font-weight:600;font-size:.83rem;color:#111; }
.rr-stars-row { display:flex;gap:1px;margin-top:2px; }
.rr-date { font-size:.9rem;color:#9ca3af;flex-shrink:0; }
.rr-text { font-size:.9rem;color:#374151;line-height:1.6;margin-bottom:6px; }
.rr-low-msg { margin-top:6px;padding:6px 10px;background:#fef9c3;border-radius:6px;font-size:.78rem;color:#92400e; }
.rr-img-wrap { margin-top:8px; }
.rr-img-thumb { width:72px;height:72px;object-fit:cover;border-radius:7px;border:1px solid #e5e7eb;cursor:pointer; }
.rr-reply-box { margin-top:8px;padding:8px 12px;background:#f0fdf4;border-left:3px solid #16a34a;border-radius:6px;font-size:.9rem;color:#023a96; }
.rr-reply-author { color:#16a34a;font-size:.9rem;display:block;margin-bottom:3px;font-weight:700; }
.rr-actions { display:flex;gap:6px;margin-top:8px;flex-wrap:wrap; }
.rr-btn { font-size:.9rem;padding:4px 10px;border:1px solid #e5e7eb;border-radius:5px;background:transparent;color:#6b7280;cursor:pointer;font-family:inherit; }
.rr-login-hint { font-size:.9rem;color:#9ca3af; }
.rr-reply-area { display:none;margin-top:8px;flex-direction:column;gap:6px; }
.rr-reply-btns { display:flex;gap:6px;justify-content:flex-end;margin-top:4px; }
.rr-btn-sm-cancel { padding:5px 12px;background:transparent;border:1px solid #e5e7eb;border-radius:6px;font-size:.9rem;cursor:pointer;font-family:inherit; }
.rr-btn-sm-send { padding:5px 12px;background:#2563eb;color:#fff;border:none;border-radius:6px;font-size:.9rem;font-weight:600;cursor:pointer;font-family:inherit; }

/* Report */ 
.rr-report-wrap { padding:14px;border-top:1px solid #e5e7eb;text-align:center; }
.rr-report-btn { padding:7px 14px;background:transparent;border:1px solid #dc3545;border-radius:7px;font-size:.9rem;cursor:pointer;color:#ef4444;font-family:inherit; }
.rr-report-form { display:none;margin-top:10px;background:#fef9c3;border:1px solid #fde68a;border-radius:9px;padding:12px;text-align:left; }
.rr-select { width:100%;padding:7px;border:1px solid #e5e7eb;border-radius:6px;font-size:.9rem;margin-bottom:7px;background:#fff;font-family:inherit; }
.rr-report-img-wrap { display:none;margin-top:5px; }
.rr-report-img-wrap img { width:55px;height:55px;object-fit:cover;border-radius:6px;border:1px solid #e5e7eb; }
.rr-report-actions { display:flex;gap:6px;justify-content:flex-end; }
.rr-btn-submit-report { padding:6px 12px;background:#d97706;color:#fff;border:none;border-radius:6px;font-size:.9rem;font-weight:600;cursor:pointer;font-family:inherit; }

/* Product description HTML (TinyMCE content) */
.pd-desc-html { word-break:break-word; }
.pd-desc-html img { max-width:100%;height:auto;border-radius:6px;display:block;margin:8px auto; }
.pd-desc-html table { max-width:100%;overflow-x:auto;display:block; }
.pd-desc-html p { margin:0 0 8px; }
.pd-desc-html ul,.pd-desc-html ol { padding-left:20px;margin:0 0 8px; }


/* Product section scroll + arrows */
.pd-scroll-track { display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:4px 2px;scroll-behavior:smooth; }
.pd-scroll-track::-webkit-scrollbar { display:none; }
.pd-sarr { position:absolute;top:40%;transform:translateY(-50%);width:18px;height:28px;border-radius:20%;border:none;background:rgba(255, 255, 255, 0.651);box-shadow:0 2px 8px rgba(114, 231, 5, 0.514);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;font-size:1.5rem;font-weight: 700; color:#000000;padding:0;line-height:1;transition:background .15s,color .15s; }
.pd-sarr-l { left:0; }
.pd-sarr-r { right:0; }
.pd-sarr:hover { background:#000000a6;  color:#fff; }

/* FAQ Section */
.pd-faq-section { padding:16px 14px 20px;background:linear-gradient(135deg,#f0fdf4 0%,#f8fafc 100%);border-top:1px solid #e5e7eb; }
.pd-faq-header { display:flex;align-items:center;gap:8px;margin-bottom:14px; }
.pd-faq-title { font-size:.95rem;font-weight:700;color:#111;margin:0; }
.pd-faq-list { display:flex;flex-direction:column;gap:8px; }
.pd-faq-item { background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;transition:box-shadow .2s; }
.pd-faq-item:hover { box-shadow:0 2px 10px rgba(0,0,0,.07); }
.pd-faq-item.pd-faq-open { border-color:var(--primary);box-shadow:0 0 0 2px #dcfce7; }
.pd-faq-btn { width:100%;text-align:left;background:none;border:none;padding:12px 14px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;font-family:inherit;font-size:.84rem;font-weight:600;color:#111; }
.pd-faq-btn:hover { background:#f9fafb; }
.pd-faq-icon { font-size:.72rem;color:#9ca3af;flex-shrink:0;transition:transform .3s; }
.pd-faq-item.pd-faq-open .pd-faq-icon { transform:rotate(180deg);color:var(--primary); }
.pd-faq-ans { padding:0 14px 14px;font-size:.9rem;color:#4b5563;line-height:1.75; }

.cr-section-title { font-size: 22px; font-weight: 700; color: var(--dark); margin-top: 180px; }
.affiliate-section { background:linear-gradient(135deg,#0369a1,#0ea5e9);color:#fff;padding:64px 0 48px;background:linear-gradient(135deg,#0369a1,#0ea5e9);color:#fff;padding:64px 0 48px; margin-top: 180px; } 
/* --- RESPONSIVE --- */
@media (max-width: 1200px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 992px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .main-content { padding-bottom: 0px; }
  .main-footer {
    background: #f0fdee;
    color: #212529;
    padding: 10px 0 0;
    margin-top: 10px;
    margin-bottom: 60px;
 }
}
@media (max-width: 768px) {
  .hero-slide { height: 220px; }
  .hero-title { font-size: 22px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .special-section { padding: 32px 24px; }
  .payment-method-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .notif-dropdown { right: 8px; width: calc(100vw - 16px); }
  .container { max-width: 1120px; --bs-gutter-x: rem; padding: 0px 10px;}
  /* Offset for fixed mobile header (~116px tall) */
  .heart-btn {display: none; }
  .balence-btn {display: none;}
  .search-input {
  width: 100%; padding: 5px 50px 5px 10px;
  }
  .cr-section-title { margin-top: 120px; }
  .affiliate-section { margin-top: 120px; }
  .search-btn {
    width: 26px; height: 26px; border-radius: 50%;
  }
  .cart-drawer-header {
      padding: 5px 20px;
  }
  .cart-page-item {
    padding: 6px;
    margin-bottom: 6px;
  }
   .mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #f0fdee; border-top: 1px solid var(--border);
  display: flex; z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
 }
 .cat-nav {
  background: #f0fdee;
  border-bottom: 1px solid var(--border);
  position: sticky;
    top: 130px;
    left: 0;
    right: 0;
    z-index: 100;}
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .product-name { font-size: 13px; }
  .price-main { font-size: 15px; }
  .hero-title { font-size: 18px; }
  .otp-input { width: 40px; height: 48px; font-size: 20px; }
  .checkout-card { padding: 20px 16px; }
  .cart-drawer-inner { max-width: 100%; }
  .cart-page-main {gap: 4px;}
  .cart-page-right { min-width: 50px;}
  .cart-qty-color-row {gap: 4px;}
}

@media (max-width: 900px) {
  .ac-layout { grid-template-columns: 1fr; }
  .ac-sidebar { position: static; }
}
@media (max-width: 600px) {
  .ac-breadcrumb { font-size: 12px; }
}
@media (max-width: 350px) {
  .user-name {font-size: 10px;}
  .checkout-card-title { font-size: 13px; font-weight: 600;}

}

@media (min-width: 768px) {
  #checkoutFixedFooter { display: none !important; }
  .checkout-payable-dt { display: block !important; }
  .checkout-page { padding-bottom: 0 !important; }
}
@media (max-width: 767px) {
  .checkout-payable-dt { display: none !important; }
}
.cd-special-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 4px; }
.cd-special-row .special-section { margin: 0; }
@media (max-width: 960px) { .cd-layout-cat { grid-template-columns: 1fr; } .cd-layout { grid-template-columns: 1fr; } .cd-sidebar { position: static; max-height: none; } }
@media (max-width: 768px) { 
  .cd-track { grid-auto-columns: 165px; gap: 10px; }
  .cd-track .product-card { width: 165px; min-width: 165px; }
  .cd-ads-row { gap: 10px; }
  .cd-ad-img { height: 90px; }
  .cd-layout { margin-top: 130px; }
  .top { margin-top: 90px; }

}
@media (max-width: 480px) { 
  .cd-track { grid-auto-columns: 148px; gap: 8px; padding: 4px 8px; }
  .cd-track .product-card { width: 148px; min-width: 148px; }
  .cd-ads-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .spd-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .spd-topbar { flex-direction: column; align-items: flex-start; }
  .spd-combo-card img { width: 60px; height: 60px; }
  
  .hero-main { display: none; }

  .cd-special-row {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 14px 0 4px;
    grid-auto-flow: row;
    flex-direction: column;
 }

 .product-body {
    padding: 5px;
}
.product-name {
  margin-bottom: 0px;
}
.product-rating {
    margin-bottom: 0px;
}

.add-to-cart-btn {
    top: 55%;
    right: 6px;
    position: absolute;
    width: 30px;
    height: 30px;
 }
}
@media (max-width: 480px) {
  .spd-filter-bar { gap: 6px; }
  .spd-grid { grid-template-columns: repeat(2, 1fr); }
  .spd-combo-body { gap: 4px; }
  .add-to-cart-btn {
    top: 53%;
    right: 6px;
    position: absolute;
    width: 25px;
    height: 25px;
 }
 .product-stock-very-low {
    top: 26px;
    right: 6px;
  }
}
@media (prefers-color-scheme:dark) {
  .svc-ic-benefit { background:#422006;border-color:#a16207;color:#fde68a; }
}
:root[data-theme="dark"] .svc-ic-benefit { background:#422006;border-color:#a16207;color:#fde68a; }
:root[data-theme="light"] .svc-ic-benefit { background:#fef9c3;border-color:#ca8a04;color:#92400e; }
@media (max-width:600px) {
  .svc-ic-bullets { grid-template-columns:1fr; }
  .svc-inline-card { padding:16px 14px; }
}

@media (max-width: 900px) {
  .svc-detail-layout { grid-template-columns: 1fr; margin-top: 0; }
  .svc-detail-layout .cd-sidebar { display: none; }
}
@media (max-width: 767px) {
  .svc-cards-grid { grid-template-columns: 1fr 1fr; }
  .svc-cat-hero { padding: 28px 16px 24px; }
  .svc-cat-hero h1 { font-size: 20px; }
  .svc-detail-hero { padding: 24px 18px; }
  .svc-section { padding: 18px 16px; }
  .sched-shop-hdr { top: 135px; }
  .sched-shop-spacer { height: 125px; }
  .section-title-ch { margin-top: 140px;}
  .rr-overview { gap:16px; margin-left: 0px; margin-right: 0px;}
  .search-results-dropdown { width: 320px;}
  .mobile-none { display: none;}
}

@media (max-width: 480px) {
  .svc-cards-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 18px 16px; }
}


