/* =========================================================
   UMKM THEME CSS (READY)
   - Fix: link/button text jadi hitam (override Tailwind)
   - Fix: :root dobel + var(--text) hilang
   ========================================================= */

:root {
  /* Base */
  --bg: #c07f46;
  --card: #ffffff;
  --text: #121212;
  --muted: #6b7280;
  --line: #eef0f4;

  /* Accent (ungu) */
  --accent: #7c3aed;
  --accent-2: #a78bfa;
  --accent-soft: rgba(124, 58, 237, 0.10);

  /* Shadow / Radius */
  --shadow: 0 18px 40px rgba(17, 12, 46, 0.10);
  --shadow2: 0 10px 25px rgba(17, 12, 46, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================================================
   FIX UTAMA: JANGAN OVERRIDE WARNA TAILWIND
   ========================================================= */

/* HAPUS: a { color: inherit; }  -> ini yang bikin text-white kalah */
/* Ganti jadi: hanya remove underline */
a { text-decoration: none; }

/* Link biasa (yang tidak punya class text-... dari Tailwind) boleh inherit */
a:not([class*="text-"]) { color: inherit; }

/* PAKSA: kalau tombol / button theme, teks selalu putih */
.btn,
.btn-accent,
a.btn,
a.btn-accent {
  color: #fff !important;
}

/* img */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* container */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--accent);
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
}

.nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: #2b2b2b;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background: #fafafa;
}

.footer-wrap {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.2px;
}

/* =========================================================
   BUTTONS (Theme)
   ========================================================= */
.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
  white-space: nowrap;
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.18);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--accent) !important; /* outline teks ungu */
}

.btn-outline:hover {
  background: var(--accent-soft);
  border-color: rgba(124, 58, 237, 0.25);
}

/* =========================================================
   PRODUCTS (grid lama)
   ========================================================= */
.products { padding: 18px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow2);
  transition: 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.18);
}

.product-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f8;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body { padding: 12px; }

.product-title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.1px;
}

.product-price {
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 10px;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   SINGLE
   ========================================================= */
.product-single { padding: 22px 0; }

.single-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.single-thumb img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.single-title {
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.single-price {
  font-size: 18px;
  font-weight: 1000;
  margin-bottom: 8px;
  color: var(--accent);
}

.single-cats {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.single-desc {
  color: #2b2b2b;
  line-height: 1.7;
}

.single-actions { margin-top: 14px; }

@media (min-width: 900px) {
  .single-wrap {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.umkm-top-blob-wrap{
  position: relative;
  overflow: hidden;
  isolation: isolate; /* penting: bikin stacking context baru */
}

/* blob benar2 di belakang */
.umkm-top-blob{
  position: absolute;
  top: -220px;
  right: -260px;
  width: 820px;
  height: 620px;

  background: radial-gradient(circle at 30% 30%, #ffb020 0%, #f59e0b 55%, #ea7c00 100%);

  border-bottom-left-radius: 420px 360px;
  border-bottom-right-radius: 140px 120px;
  border-top-left-radius: 220px 180px;
  border-top-right-radius: 360px 320px;

  z-index: -1;          /* ✅ ini yang bikin ga nimpa */
  pointer-events: none;
}

/* responsif */
@media (max-width: 1024px){
  .umkm-top-blob{
    top: -260px;
    right: -320px;
    width: 760px;
    height: 560px;
  }
}
@media (max-width: 640px){
  .umkm-top-blob{
    top: -280px;
    right: -380px;
    width: 720px;
    height: 520px;
  }
}
