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

:root {
  --primary: #f57c00;
  --primary-dark: #e65100;
  --accent: #4caf50;
  --accent-dark: #388e3c;
  --bg: #fff8f0;
  --bg2: #fff3e0;
  --bg3: #e8f5e9;
  --text: #2d1a00;
  --text2: #5a3e28;
  --text3: #888;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(245,124,0,0.10);
  --shadow2: 0 4px 24px rgba(245,124,0,0.16);
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* DEMO BAR */
.demo-bar {
  background: #2d1a00;
  color: #ffd180;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.demo-bar a { color: #ffab40; text-decoration: underline; }
.demo-bar a:hover { color: #fff; }

/* NAV */
header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.nav-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 62px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-text span { color: var(--accent); }

nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 12px; border-radius: 8px; transition: background 0.2s, color 0.2s; }
nav a:hover, nav a.active { background: var(--bg2); color: var(--primary); }

/* MOBILE MENU */
.menu-toggle { display: none; }
.menu-label { display: none; cursor: pointer; padding: 8px; border-radius: 8px; }
.menu-label:hover { background: var(--bg2); }
.hamburger { display: block; width: 24px; height: 2px; background: var(--primary); position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 24px; height: 2px; background: var(--primary); left: 0; transition: transform 0.2s; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

@media (max-width: 700px) {
  .menu-label { display: block; }
  nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--white); padding: 12px 16px; box-shadow: var(--shadow2); flex-direction: column; }
  nav a { display: block; padding: 12px 8px; border-bottom: 1px solid #f5e0cc; }
  .menu-toggle:checked ~ .nav-wrap nav { display: flex; flex-direction: column; }
  header { position: relative; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8f00 60%, var(--accent) 100%);
  color: var(--white);
  padding: 60px 16px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(76,175,80,0.25) 0%, transparent 70%);
}
.hero-inner { max-width: 640px; margin: 0 auto; position: relative; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 4px 16px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; margin-bottom: 14px; line-height: 1.15; }
.hero p { font-size: 1.05rem; opacity: 0.93; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 30px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; border: none; }
.btn-white { background: var(--white); color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 16px rgba(245,124,0,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 4px 16px rgba(76,175,80,0.35); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* SECTION */
.section { padding: 52px 16px; }
.section-alt { background: var(--bg2); }
.section-green { background: var(--bg3); }
.container { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; color: var(--text); margin-bottom: 8px; }
.section-head p { color: var(--text2); font-size: 1rem; }
.section-head h2 em { color: var(--primary); font-style: normal; }

/* KATEGORI CHIPS */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
.cat-card { background: var(--white); border-radius: var(--radius); padding: 24px 12px; text-align: center; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.cat-icon { width: 52px; height: 52px; margin: 0 auto 10px; }
.cat-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--primary); }
.cat-card p { font-size: 0.78rem; color: var(--text3); margin-top: 2px; }

/* PRODUCT GRID */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.product-thumb { height: 160px; display: flex; align-items: center; justify-content: center; background: var(--bg2); }
.product-thumb svg { width: 90px; height: 90px; }
.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.72rem; text-transform: uppercase; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 4px; }
.product-name { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.product-old { font-size: 0.8rem; color: var(--text3); text-decoration: line-through; margin-bottom: 8px; }
.product-badge { display: inline-block; background: #ff3d00; color: #fff; border-radius: 6px; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; margin-bottom: 8px; }
.product-card .btn { margin-top: auto; width: 100%; text-align: center; border-radius: 8px; }

/* FILTER (CSS-only) */
.filter-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-wrap input[type=radio] { display: none; }
.filter-wrap label { padding: 7px 18px; border-radius: 20px; border: 2px solid var(--primary); color: var(--primary); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.filter-wrap label:hover { background: var(--bg2); }
.filter-wrap input[type=radio]:checked + label { background: var(--primary); color: var(--white); }

/* CSS filter show/hide product cards */
.catalog-section .product-card { display: flex; }
#cat-all:checked ~ .product-grid .product-card { display: flex; }
#cat-anjing:checked ~ .product-grid .product-card:not([data-cat="anjing"]) { display: none; }
#cat-kucing:checked ~ .product-grid .product-card:not([data-cat="kucing"]) { display: none; }
#cat-ikan:checked ~ .product-grid .product-card:not([data-cat="ikan"]) { display: none; }
#cat-aksesoris:checked ~ .product-grid .product-card:not([data-cat="aksesoris"]) { display: none; }
#cat-kandang:checked ~ .product-grid .product-card:not([data-cat="kandang"]) { display: none; }

/* PROMO BANNER */
.promo-banner { background: linear-gradient(90deg, var(--accent) 0%, #66bb6a 100%); border-radius: var(--radius); padding: 32px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.promo-banner .pb-text { flex: 1; min-width: 200px; }
.promo-banner h3 { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.promo-banner p { color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.promo-banner .btn-white { flex-shrink: 0; color: var(--accent-dark); }

/* PRODUCT DETAIL */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .product-detail { grid-template-columns: 1fr; } }
.product-visual { background: var(--bg2); border-radius: var(--radius); height: 320px; display: flex; align-items: center; justify-content: center; }
.product-visual svg { width: 180px; height: 180px; }
.product-meta h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.product-meta .price-big { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin: 10px 0; }
.product-meta .price-old { font-size: 1rem; color: var(--text3); text-decoration: line-through; }
.product-desc { color: var(--text2); margin: 14px 0; font-size: 0.97rem; }
.variant-label { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 8px; }
.variant-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.variant-btn { padding: 6px 16px; border-radius: 8px; border: 2px solid #ddd; background: var(--white); font-size: 0.88rem; cursor: pointer; font-weight: 600; transition: border-color 0.2s; }
.variant-btn.sel { border-color: var(--primary); color: var(--primary); background: var(--bg2); }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.spec-table td { padding: 7px 10px; border-bottom: 1px solid #f0e0d0; }
.spec-table td:first-child { font-weight: 700; color: var(--text2); width: 40%; }
.stock-ok { color: var(--accent); font-weight: 700; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.detail-actions .btn { flex: 1; min-width: 120px; text-align: center; }

/* FORM */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 600px; margin: 0 auto; }
.form-card h2 { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.form-card p { color: var(--text2); font-size: 0.92rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--text2); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 2px solid #f0d8c0; border-radius: 10px;
  font-family: inherit; font-size: 0.97rem; 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 { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-submit { width: 100%; padding: 14px; font-size: 1.05rem; border-radius: 10px; margin-top: 8px; }
.payment-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-opt input[type=radio] { display: none; }
.payment-opt label { display: block; padding: 10px 14px; border: 2px solid #f0d8c0; border-radius: 10px; font-size: 0.88rem; font-weight: 600; color: var(--text2); cursor: pointer; text-align: center; transition: border-color 0.2s, background 0.2s; }
.payment-opt input:checked + label { border-color: var(--primary); background: var(--bg2); color: var(--primary); }

/* KONTAK */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 700px) { .kontak-grid { grid-template-columns: 1fr; } }
.kontak-info h3 { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-icon { width: 40px; height: 40px; background: var(--bg2); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-text strong { display: block; font-size: 0.88rem; color: var(--text2); }
.contact-text span { font-size: 0.95rem; color: var(--text); font-weight: 600; }
.jam-buka { background: var(--bg3); border-radius: var(--radius); padding: 18px; margin-top: 8px; }
.jam-buka h4 { font-size: 0.92rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 10px; }
.jam-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 4px 0; border-bottom: 1px solid #c8e6c9; }
.jam-row:last-child { border-bottom: none; }
.warna-accent { color: var(--accent); font-weight: 700; }

/* HERO PETS SVG area */
.hero-pets { margin-top: 32px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-pet-badge { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); border-radius: 12px; padding: 8px 16px; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hero-pet-badge svg { width: 20px; height: 20px; }

/* STATS BAR */
.stats-bar { background: var(--primary); color: var(--white); }
.stats-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 24px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.7rem; font-weight: 900; }
.stat-label { font-size: 0.78rem; opacity: 0.85; margin-top: 2px; }
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

/* TESTIMONIAL */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.testi-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.testi-stars { color: #ff8f00; font-size: 1rem; margin-bottom: 8px; }
.testi-text { font-size: 0.92rem; color: var(--text2); margin-bottom: 12px; font-style: italic; }
.testi-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.testi-pet { font-size: 0.78rem; color: var(--text3); }

/* FOOTER */
footer { background: #1a0e00; color: #f5d9b5; padding: 40px 16px 20px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand .logo-text { color: #ffab40; font-size: 1.1rem; }
.footer-brand p { font-size: 0.85rem; color: #c4a882; margin-top: 10px; line-height: 1.7; }
.footer-col h4 { font-size: 0.88rem; font-weight: 800; color: #ffd180; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.85rem; color: #c4a882; text-decoration: none; margin-bottom: 7px; transition: color 0.2s; }
.footer-col a:hover { color: #ffab40; }
.footer-bottom { border-top: 1px solid #3a2200; padding-top: 18px; text-align: center; font-size: 0.8rem; color: #8a6040; }

/* UTILS */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.w-btn { width: 100%; text-align: center; }
.pill { display: inline-block; background: var(--bg3); color: var(--accent-dark); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-right: 4px; }
.alert-success { background: var(--bg3); border: 2px solid var(--accent); border-radius: 10px; padding: 16px; color: var(--accent-dark); font-weight: 700; font-size: 0.95rem; margin-top: 16px; display: none; }
