/* ===== Kicau Katalog — stylesheet ===== */
:root {
  --green-900: #14342b;
  --green-700: #1f6f5c;
  --green-600: #2a9d8f;
  --green-500: #2fb8a0;
  --accent: #e9c46a;
  --accent-2: #e07a5f;
  --ink: #1f2a2e;
  --muted: #667b7a;
  --bg: #f4f7f5;
  --card: #ffffff;
  --line: #e2ebe7;
  --shadow: 0 10px 30px rgba(20, 52, 43, 0.08);
  --shadow-sm: 0 4px 14px rgba(20, 52, 43, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
img { max-width: 100%; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.muted { color: var(--muted); }
.section { padding: 3rem 0; }

h1, h2, h3 { line-height: 1.2; color: var(--green-900); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.25rem; color: var(--green-900); }
.brand-mark { font-size: 1.5rem; }
.brand-text strong { color: var(--green-600); }
.main-nav { display: flex; gap: .4rem; }
.main-nav a {
  padding: .5rem .95rem; border-radius: 999px; color: var(--ink);
  font-weight: 500; font-size: .98rem; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--bg); }
.main-nav a.active { background: var(--green-600); color: #fff; }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(42,157,143,.18), transparent 60%),
              linear-gradient(180deg, #eef5f1, var(--bg));
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 700; color: var(--green-600);
  background: rgba(42,157,143,.12); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.accent { color: var(--green-600); }
.lead { font-size: 1.12rem; color: #3d504e; max-width: 46ch; }
.hero-search { display: flex; gap: .5rem; margin: 1.5rem 0 1.75rem; max-width: 460px; }
.hero-search input {
  flex: 1; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 1rem; background: #fff; outline: none;
}
.hero-search input:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(47,184,160,.15); }
.hero-search button, .btn {
  border: none; cursor: pointer; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; background: var(--green-600); color: #fff;
  transition: transform .12s, background .15s; text-align: center;
}
.hero-search button:hover, .btn:hover { background: var(--green-700); transform: translateY(-1px); }
.hero-stats { display: flex; gap: 2rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--green-900); }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-art { position: relative; height: 320px; }
.hero-blob {
  position: absolute; width: 130px; height: 130px; border-radius: 40% 60% 55% 45%;
  display: grid; place-items: center; font-size: 4rem; box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fff, #eaf5f1);
  animation: float 6s ease-in-out infinite;
}
.hero-blob { top: 30px; left: 40%; }
.blob-2 { top: 140px; left: 10%; background: linear-gradient(135deg, #fff, #fdf1e7); animation-delay: 1s; }
.blob-3 { top: 170px; left: 62%; background: linear-gradient(135deg, #fff, #f2f7e7); animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }

/* ===== Section head ===== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head p { margin: .25rem 0 0; width: 100%; }
.link-more { font-weight: 600; white-space: nowrap; }

/* ===== Bird grid & cards ===== */
.bird-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.bird-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; color: var(--ink);
  transition: transform .16s, box-shadow .16s;
}
.bird-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.bird-thumb { position: relative; height: 150px; display: grid; place-items: center; }
.bird-emoji { font-size: 4.2rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.badge {
  position: absolute; top: .7rem; right: .7rem;
  background: rgba(255,255,255,.9); color: var(--green-900);
  font-size: .72rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px;
}
.badge.light { position: static; background: rgba(255,255,255,.22); color: #fff; }
.bird-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.bird-name { margin: 0; font-size: 1.2rem; }
.bird-sci { margin: 0; font-style: italic; color: var(--muted); font-size: .85rem; }
.bird-desc { margin: .5rem 0 .9rem; font-size: .93rem; color: #48595a; flex: 1; }
.bird-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.stars { color: var(--accent); font-size: .9rem; letter-spacing: 1px; }
.stars.light { color: #ffe6a0; }

/* Pills */
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; }
.pill-pemula { background: #e3f4e8; color: #1f7a3f; }
.pill-menengah { background: #fdf3dd; color: #9a6b00; }
.pill-mahir { background: #fbe4de; color: #b23a24; }
.pill-light { background: rgba(255,255,255,.2); color: #fff; }

/* ===== Category chips ===== */
.category-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.category-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.3rem; font-weight: 600; color: var(--green-900);
  box-shadow: var(--shadow-sm); transition: transform .12s, border-color .15s, color .15s;
}
.category-chip:hover { transform: translateY(-2px); border-color: var(--green-500); color: var(--green-600); }

/* ===== How section ===== */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.how-ico { font-size: 2rem; }
.how-card h3 { margin: .6rem 0 .3rem; font-size: 1.1rem; }
.how-card p { margin: 0; font-size: .92rem; color: #48595a; }

/* ===== Page head ===== */
.page-head { background: linear-gradient(180deg, #eef5f1, var(--bg)); padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3rem; }

/* ===== Filter bar ===== */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filter-search { flex: 1; min-width: 220px; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; background: #fff; }
.filter-select { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; background: #fff; }
.filter-search:focus, .filter-select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(47,184,160,.15); }
.filter-bar button {
  border: none; cursor: pointer; font-weight: 600; padding: .8rem 1.5rem;
  border-radius: var(--radius-sm); background: var(--green-600); color: #fff;
}
.filter-bar button:hover { background: var(--green-700); }
.btn-reset { display: inline-flex; align-items: center; padding: .8rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--muted); }
.result-count { margin: 0 0 1.4rem; }

/* ===== Empty state ===== */
.empty-state { text-align: center; padding: 3.5rem 1rem; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-emoji { font-size: 3rem; }
.btn { display: inline-block; margin-top: 1rem; }
.btn-outline { background: transparent; color: var(--green-700); border: 1px solid var(--green-600); }
.btn-outline:hover { background: var(--green-600); color: #fff; }

/* ===== Detail ===== */
.detail-hero { color: #fff; padding: 1.5rem 0 2.5rem; }
.breadcrumb { font-size: .88rem; margin-bottom: 1.2rem; color: rgba(255,255,255,.85); }
.breadcrumb a { color: rgba(255,255,255,.95); }
.breadcrumb span { margin: 0 .35rem; opacity: .7; }
.detail-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: center; }
.detail-emoji {
  width: 130px; height: 130px; border-radius: 30px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; font-size: 5rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.detail-hero-text h1 { color: #fff; margin: .5rem 0 .2rem; }
.detail-sci { font-style: italic; opacity: .9; margin: 0 0 .6rem; }
.detail-short { font-size: 1.05rem; max-width: 60ch; margin: 0 0 1rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }

.detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding: 2.5rem 0 1rem; align-items: start; }
.detail-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.detail-block h2 { display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.detail-block .ico { font-size: 1.4rem; }
.feature-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.feature-list li { padding-left: 1.6rem; position: relative; }
.feature-list li::before { content: "✔"; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }

/* Care grid */
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .5rem; }
.care-item { background: #f6faf8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.care-item.care-wide { grid-column: 1 / -1; }
.care-item h4 { margin: 0 0 .35rem; font-size: 1rem; color: var(--green-800, #1a5c4c); }
.care-item p { margin: 0; font-size: .92rem; color: #48595a; }

/* Food grid */
.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .5rem; }
.food-col { background: #f6faf8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.food-col.food-danger { background: #fdf5f3; }
.food-title { margin: 0 0 .5rem; font-size: 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); }
.food-col ul { margin: 0; padding-left: 1.1rem; }
.food-col li { font-size: .92rem; color: #48595a; margin-bottom: .3rem; }
.food-pantangan { color: #b23a24; }

/* Tip block */
.tip-block { background: linear-gradient(135deg, #fff9ec, #fef3d9); border-color: #f2e2b6; }
.tip-block h3 { margin: 0 0 .4rem; }
.tip-block p { margin: 0; }

/* Side */
.detail-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.2rem; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.side-card h3 { margin: 0 0 .8rem; font-size: 1.1rem; }
.spec-list { margin: 0; display: grid; gap: .7rem; }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .6rem; }
.spec-list div:last-child { border-bottom: none; padding-bottom: 0; }
.spec-list dt { color: var(--muted); font-size: .85rem; }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; font-size: .9rem; }
.related-list { display: grid; gap: .6rem; }
.related-item { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: var(--radius-sm); transition: background .15s; color: var(--ink); }
.related-item:hover { background: var(--bg); }
.related-emoji { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.related-item strong { display: block; font-size: .95rem; }
.related-item small { display: block; }
.back-bar { padding: 1rem 0 3rem; }

/* ===== About ===== */
.about-section { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.about-text h2 { margin-top: 2rem; }
.api-list { padding-left: 1.1rem; }
.api-list li { margin-bottom: .5rem; }
code { background: #eef3f0; padding: .15rem .45rem; border-radius: 6px; font-size: .9em; color: var(--green-900); }
.about-side { display: flex; flex-direction: column; gap: 1.2rem; }
.stat-row { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.stat-row:last-child { border-bottom: none; }
.stat-row span { font-size: 1.6rem; font-weight: 700; color: var(--green-600); }
.note-card { background: #fdf9ef; border-color: #f2e2b6; }

/* ===== Error page ===== */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-emoji { font-size: 3.5rem; margin-bottom: .5rem; }
.error-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: #cfe3db; margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer strong { color: #fff; }
.site-footer .muted { color: #93b3a9; margin: .3rem 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: #cfe3db; }
.footer-nav a:hover { color: #fff; }
.copyright { padding-top: 1.2rem; font-size: .85rem; color: #93b3a9; }

/* ============================================================
   KICAU SAYA — katalog pribadi (marketplace + galeri + form)
   ============================================================ */

/* ===== Header tambahan ===== */
.brand-private { font-size: .68rem; font-weight: 700; background: #fdf3dd; color: #9a6b00; padding: .2rem .55rem; border-radius: 999px; margin-left: .3rem; }
.nav-add { background: var(--accent-2); color: #fff !important; font-weight: 700; }
.nav-add:hover { background: #c9654c !important; }
.logout-form { display: inline; margin: 0; }
.logout-form button {
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer;
  padding: .5rem .95rem; border-radius: 999px; font-size: .95rem; font-weight: 500;
}
.logout-form button:hover { border-color: #d88; color: #b23a24; }

/* ===== Flash ===== */
.flash { position: sticky; top: 62px; z-index: 40; animation: slideDown .25s ease; }
.flash-inner { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1.1rem; border-radius: var(--radius-sm); margin-top: .6rem; box-shadow: var(--shadow-sm); font-weight: 500; }
.flash-ok .flash-inner { background: #e3f4e8; color: #1f7a3f; border: 1px solid #bfe5cb; }
.flash-error .flash-inner { background: #fbe4de; color: #b23a24; border: 1px solid #f0c4ba; }
.flash-close { border: none; background: none; font-size: 1.3rem; cursor: pointer; color: inherit; line-height: 1; }
@keyframes slideDown { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== Login ===== */
.login-page { background: linear-gradient(135deg, var(--green-900), var(--green-700)); min-height: 100vh; display: grid; place-items: center; }
.login-wrap { width: min(420px, 92%); }
.login-card { background: #fff; border-radius: 22px; padding: 2.5rem 2.2rem; text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.login-logo { font-size: 3rem; }
.login-card h1 { margin: .3rem 0 .2rem; }
.login-error { background: #fbe4de; color: #b23a24; border-radius: var(--radius-sm); padding: .6rem .9rem; margin: 1rem 0 0; font-size: .92rem; }
.login-form { display: grid; gap: .7rem; margin-top: 1.3rem; }
.login-form input {
  padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1.05rem; text-align: center;
}
.login-form input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(47,184,160,.15); }
.login-form button { border: none; cursor: pointer; background: var(--green-600); color: #fff; font-weight: 700; font-size: 1.05rem; padding: .9rem; border-radius: var(--radius-sm); }
.login-form button:hover { background: var(--green-700); }
.login-hint { font-size: .8rem; margin-top: 1.2rem; }

/* ===== Dashboard ===== */
.dash-hero { background: radial-gradient(900px 400px at 85% -20%, rgba(42,157,143,.2), transparent 60%), linear-gradient(180deg, #eef5f1, var(--bg)); padding: 3rem 0 1.5rem; }
.dash-actions { display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.1rem; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--green-700); line-height: 1.2; }
.stat-value .stat-num { font-size: 1.35rem; }
.stat-label { color: var(--muted); font-size: .88rem; }
.status-summary { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ===== Kartu koleksi (marketplace) ===== */
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.pet-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.pet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.pet-thumb { position: relative; aspect-ratio: 4 / 3; background: #e8f0ec; overflow: hidden; }
.pet-thumb img, .pet-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.5rem; background: linear-gradient(135deg, #dcebe3, #c9dfd4); }
.play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; color: #fff;
  background: rgba(0,0,0,.25); text-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none;
}
.media-count { position: absolute; left: .6rem; bottom: .6rem; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 600; padding: .22rem .55rem; border-radius: 999px; }

.status-badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: .28rem .65rem; border-radius: 999px; }
.pet-thumb .status-badge { position: absolute; top: .6rem; right: .6rem; }
.status-sehat { background: #e3f4e8; color: #1f7a3f; }
.status-mabung { background: #fdf3dd; color: #9a6b00; }
.status-sakit { background: #fbe4de; color: #b23a24; }
.status-karantina { background: #ece4fb; color: #5b3aad; }
.status-dijual { background: #def0fb; color: #1d6fa8; }
.status-meninggal { background: #e8e8e8; color: #666; }

.pet-card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pet-species-chip { align-self: flex-start; font-size: .72rem; font-weight: 700; background: rgba(42,157,143,.12); color: var(--green-700); padding: .22rem .6rem; border-radius: 999px; }
.pet-name { margin: .1rem 0 0; font-size: 1.15rem; }
.pet-price { font-size: 1.15rem; font-weight: 800; color: var(--accent-2); }
.pet-card-meta { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.pet-ring { font-size: .78rem; color: var(--muted); }

.page-head-flex { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ===== Halaman produk (detail hewan) ===== */
.detail-page { padding-top: 1.5rem; }
.breadcrumb.dark { color: var(--muted); margin-bottom: 1.2rem; font-size: .88rem; }
.breadcrumb.dark a { color: var(--green-700); }
.breadcrumb.dark span { margin: 0 .35rem; }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 2rem; align-items: start; margin-bottom: 1.6rem; }

/* Galeri slideshow */
.gallery { position: sticky; top: 90px; }
.gallery-stage { position: relative; aspect-ratio: 4 / 3; background: #0d1f1a; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-slide { position: absolute; inset: 0; display: none; }
.gallery-slide.active { display: block; }
.gallery-slide img, .gallery-slide video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0d1f1a; }
.gallery-placeholder { height: 100%; display: grid; place-items: center; text-align: center; color: #fff; }
.gallery-placeholder span { font-size: 4rem; }
.gallery-placeholder a { color: var(--accent); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--green-900); font-size: 1.1rem; font-weight: 700;
  display: grid; place-items: center; transition: background .15s;
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: .8rem; }
.gallery-nav.next { right: .8rem; }
.gallery-counter { position: absolute; right: .9rem; bottom: .8rem; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.gallery-thumb {
  position: relative; flex: 0 0 84px; height: 64px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: #dfe9e4;
}
.gallery-thumb img, .gallery-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--green-600); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: rgba(0,0,0,.3); pointer-events: none; }

/* Panel info */
.product-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.product-name { margin: .5rem 0 .2rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.product-price { font-size: 1.7rem; font-weight: 800; color: var(--accent-2); }
.product-price-note { font-size: .85rem; margin: .2rem 0 1rem; }
.product-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.pill-light-solid { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.product-actions { display: flex; gap: .7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.btn-danger { background: #c94f36; }
.btn-danger:hover { background: #b23a24; }
.template-link { display: block; margin-top: 1.1rem; font-size: .9rem; font-weight: 600; }
.btn-block { display: block; text-align: center; margin-top: 1rem; }

/* ===== Form ===== */
.form-page { padding-top: 1.5rem; max-width: 900px; }
.pet-form { margin-top: 1.5rem; }
.form-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; box-shadow: var(--shadow-sm); margin-bottom: 1.3rem; }
.form-block h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.form-block h2 small { font-weight: 500; font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; }
.pet-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--green-900); }
.pet-form label.full { margin-top: .9rem; }
.pet-form input[type="text"], .pet-form input[type="number"], .pet-form input[type="date"],
.pet-form select, .pet-form textarea {
  padding: .65rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; background: #fff; font-weight: 400; width: 100%;
}
.pet-form input:focus, .pet-form select:focus, .pet-form textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(47,184,160,.14);
}
.species-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dropzone-label { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 1.6rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: #fafcfb; }
.dropzone-label:hover, .dropzone-label.dragover { border-color: var(--green-500); background: #f0f8f4; }
.dropzone-label input[type="file"] { display: none; }
.dropzone-text { color: var(--muted); font-weight: 500; }
.upload-preview { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.upload-preview .media-item { border: 1px solid var(--line); }
.media-manage { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.media-item { position: relative; width: 120px; border-radius: 10px; overflow: hidden; background: #eef3f0; }
.media-item img, .media-item video { width: 100%; height: 84px; object-fit: cover; display: block; }
.media-item-controls { display: flex; justify-content: space-between; padding: .3rem .45rem; background: #fff; }
label.mini { flex-direction: row !important; align-items: center; gap: .25rem !important; font-size: .72rem !important; font-weight: 600; cursor: pointer; }
label.mini.danger { color: #b23a24; }
.media-item .file-name { font-size: .68rem; padding: .25rem .45rem; background: #fff; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-actions { display: flex; gap: .8rem; align-items: center; margin: 1.6rem 0 3rem; flex-wrap: wrap; }
.btn-big { font-size: 1.1rem; padding: 1rem 2rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .about-section { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .gallery { position: static; }
}
@media (max-width: 560px) {
  .detail-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .detail-emoji { margin: 0 auto; }
  .detail-tags { justify-content: center; }
  .care-grid, .food-grid { grid-template-columns: 1fr; }
  .main-nav a { padding: .45rem .7rem; font-size: .9rem; }
  .hero-stats { gap: 1.3rem; }
  .form-grid, .species-row { grid-template-columns: 1fr; }
  .main-nav { flex-wrap: wrap; justify-content: flex-end; }
  .pet-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
