/* DapurKu Shop — style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #bf360c;
  --primary-dark: #870000;
  --primary-light: #f4511e;
  --accent: #ffccbc;
  --accent-light: #fff8f5;
  --bg: #fff8f5;
  --text: #2c1a0e;
  --text-muted: #7a5c4e;
  --border: #f0d5c8;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(191,54,12,0.10);
  --radius: 12px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── DEMO BAR ── */
.demo-bar {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.demo-bar a { color: var(--accent); text-decoration: underline; margin: 0 4px; }

/* ── HEADER / NAV ── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo svg { width: 32px; height: 32px; }

/* Hamburger checkbox hack */
#nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}
nav ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a.active {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 680px) {
  .nav-label { display: flex; }
  nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--accent);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  #nav-toggle:checked ~ nav { max-height: 320px; }
  nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 4px; }
  nav ul li a { padding: 10px 14px; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #e64a19 60%, #ff7043 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.hero p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Hero illustration */
.hero-art {
  margin: 32px auto 0;
  width: 180px; height: 130px;
  position: relative;
}

/* ── SECTION ── */
.section { padding: 56px 20px; }
.section-alt { background: var(--white); }
.container { max-width: 1100px; margin: auto; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.section-sub { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 36px; }

/* ── CATEGORY CHIPS ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.cat-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-card svg { display: block; margin: 0 auto 10px; }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(191,54,12,0.14); transform: translateY(-4px); }

.product-thumb {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.product-info .cat-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-info .price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
  margin-bottom: 12px;
}
.product-info .price .old {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 4px;
}
.btn-sm {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-sm:hover { background: var(--primary-dark); }
.btn-sm-outline {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 8px;
}
.btn-sm-outline:hover { background: var(--primary); color: #fff; }

/* ── BADGE ── */
.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.badge-sale { background: #c62828; }

/* ── BANNER STRIP ── */
.banner-strip {
  background: linear-gradient(90deg, var(--primary) 0%, #e64a19 100%);
  color: #fff;
  text-align: center;
  padding: 28px 20px;
}
.banner-strip h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.banner-strip p { opacity: 0.9; margin-bottom: 18px; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.feature-card svg { margin: 0 auto 12px; display: block; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ── PRODUCT DETAIL ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: auto;
}
@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
}
.product-detail-thumb {
  background: var(--accent-light);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-detail-info h1 { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.product-detail-info .price-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.product-detail-info .price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 16px;
}
.product-desc { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 20px; line-height: 1.7; }
.variant-label { font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; }
.variant-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.variant-btn {
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.variant-btn.active, .variant-btn:hover { border-color: var(--primary); background: var(--accent); color: var(--primary-dark); }
.product-specs { background: var(--accent-light); border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.product-specs h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.product-specs ul { list-style: none; }
.product-specs ul li { font-size: 0.88rem; color: var(--text-muted); padding: 4px 0; display: flex; gap: 8px; }
.product-specs ul li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ── FORM ── */
.form-section { max-width: 620px; margin: auto; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.form-title { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.form-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.btn-submit:hover { background: var(--primary-dark); }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.contact-info-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-item svg { flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.contact-item span { font-size: 0.88rem; color: var(--text-muted); }
.wa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.97rem;
  margin-top: 18px;
  transition: background 0.2s;
}
.wa-btn:hover { background: #1da851; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 8px; }
.hours-grid span { font-size: 0.87rem; color: var(--text-muted); }
.hours-grid strong { font-size: 0.87rem; }

/* ── FOOTER ── */
footer {
  background: #1a0a04;
  color: #c8a99a;
  padding: 40px 20px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand .logo { color: var(--accent); font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
footer h4 { color: #fff; font-size: 0.92rem; font-weight: 700; margin-bottom: 10px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 6px; }
footer ul li a { color: #c8a99a; text-decoration: none; font-size: 0.87rem; }
footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* ── PAGE HERO MINI ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #e64a19 100%);
  color: #fff;
  padding: 36px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; font-size: 0.97rem; }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  align-items: center;
}
.filter-btn {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--primary); background: var(--accent); color: var(--primary-dark); }

/* ── TOAST ── */
.toast {
  display: none;
  background: #2e7d32;
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  margin-top: 16px;
}

/* ── RATING ── */
.rating { color: #f57c00; font-size: 1.1rem; letter-spacing: 1px; display: inline-flex; gap: 2px; }

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
