/**
 * shared.css — Racik Media Nusantara (BOB)
 * Style umum yang sebelumnya diduplikasi di tag <style> setiap halaman.
 * Di-load setelah style.css agar rules di sini dapat override jika diperlukan.
 */

/* ── Reset / Anti-overflow ── */
html, body          { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
img, video, table   { max-width: 100%; }

/* ── Base typography (mirror style.css — aman diduplikasi karena identik) ── */
body { font-family: 'Inter', system-ui, sans-serif; }
h1, h2, h3, h4, .font-serif { font-family: 'Lora', Georgia, serif; }

/* ── Admin / Dashboard sidebar ── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 240px; background: #0f172a;
  display: flex; flex-direction: column;
  z-index: 40; overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-logo-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: #059669; color: #fff;
  padding: 2px 8px; border-radius: 99px;
}
.sidebar-section {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 16px 20px 6px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 20px; font-size: 13px; color: rgba(255,255,255,.65);
  text-decoration: none; border-left: 3px solid transparent;
  transition: all .15s ease;
}
.sidebar-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-item.active { color: #fff; background: rgba(255,255,255,.1); border-left-color: #10b981; font-weight: 600; }
.sidebar-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Notification badge ── */
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: #fff; font-size: 9px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, transform .2s;
}

/* ── Product card ── */
.product-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); transform: translateY(-2px); }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.badge-discount {
  position: absolute; top: 8px; left: 8px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}

/* ── Section card container ── */
.section-card { background: #fff; border-radius: 12px; padding: 20px 20px 16px; }

/* ── Tab underline ── */
.tab-active { border-bottom: 2px solid #34d399; color: #047857; font-weight: 600; }

/* ── Promo tag ── */
.promo-tag { background: #fef3c7; color: #92400e; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }

/* ── Recommended tag ── */
.rec-tag { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 99px; }

/* ── Avatar / user button ── */
.avatar-btn { border: none; background: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #38bdf8);
  display: flex; align-items: center; justify-content: center;
  color: #064e3b; font-weight: 700; font-size: 14px; flex-shrink: 0;
}

/* ── Search bar ── */
.search-bar {
  display: flex; align-items: center;
  background: #f5f5f5; border: 1.5px solid #e5e7eb;
  border-radius: 8px; padding: 0 12px; height: 42px; flex: 1;
}
.search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; color: #374151; }
.search-bar input::placeholder { color: #9ca3af; }

/* ── Hero banner ── */
.hero-banner {
  background: linear-gradient(135deg, #047857 0%, #065f46 40%, #059669 80%, #10b981 100%);
  border-radius: 16px; padding: 32px 36px;
  position: relative; overflow: hidden; min-height: 140px;
  box-shadow: 0 10px 25px -5px rgba(4, 120, 87, 0.2);
}

/* ── Nav hero pill (animated gradient button) ── */
@keyframes heroRunningGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.nav-hero-pill {
  position: relative; background: #ffffff;
  border: 1.5px solid #e5e7eb; border-radius: 8px;
  color: #374151; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
}
.nav-hero-pill:hover, .nav-hero-pill.active {
  background: linear-gradient(135deg, #047857 0%, #059669 45%, #065f46 70%, #10b981 100%);
  background-size: 240% 240%;
  animation: heroRunningGlow 3s ease infinite;
  border-color: transparent; color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.28);
}
.nav-hero-pill:hover svg, .nav-hero-pill.active svg { color: #ffffff !important; }

/* ── User pill hover ── */
.user-pill-hover {
  border: none !important; border-radius: 10px;
  padding: 4px 8px; transition: all 0.25s ease; cursor: pointer;
}
.user-pill-hover:hover {
  background: linear-gradient(135deg, rgba(4,120,87,.12) 0%, rgba(5,150,105,.18) 50%, rgba(16,185,129,.12) 100%);
}

/* ── Category icon button ── */
.cat-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  transition: background .15s; font-size: 11px; font-weight: 500;
  color: #374151; white-space: nowrap; background: transparent; border: none;
}
.cat-btn:hover { background: #f0fdf4; }
.cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* ── Scrollable product row ── */
.products-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }

/* ── Banner slider dots ── */
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.banner-dot.active { background: #fff; }

/* ── Top info bar ── */
.top-bar { background: #fff; border-bottom: 1px solid #e5e7eb; }
