/* =========================
   PetDrops — Sunny Theme
   ========================= */

:root{
  --bg: #fdfefe;
  --panel: #ffffff;
  --card: #ffffff;

  --primary: #ffd84d;     /* sunflower */
  --primary-soft: #fff3b0;

  --cyan: #5fd3ff;        /* sky */
  --green: #7ed957;       /* grass */

  --text: #1f2937;
  --muted: #6b7280;

  --shadow: 0 8px 18px rgba(0,0,0,0.08);
  --radius: 18px;
  font-family: "Nunito", system-ui, sans-serif;
}

/* ---------- Base ---------- */
body{
  margin:0;
  background:
    radial-gradient(circle at 20% 10%, #eaffff 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #f0ffe6 0%, transparent 40%),
    var(--bg);
  color:var(--text);
  padding:22px;
}

h1,h2,h3{ letter-spacing:.2px; }

/* ---------- Header ---------- */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

header h1{
  font-size:26px;
  color:#2b2b2b;
}

header p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:14px;
}

/* ---------- Toolbar ---------- */
.toolbar, header > div:last-child{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* search */
input{
  border-radius:999px;
  padding:10px 14px;
  border:2px solid #f1f5f9;
  background:white;
}

input:focus{
  border-color:var(--cyan);
  outline:none;
}

/* ---------- Buttons ---------- */
button{
  border:none;
  border-radius:999px;
  padding:9px 14px;
  font-weight:700;
  cursor:pointer;
  transition:transform .08s ease, box-shadow .08s ease;
}

button:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

/* types */
.bg-emerald-600, .primary{
  background:var(--primary);
}

.bg-blue-700{
  background:var(--cyan);
}

.bg-indigo-600{
  background:#a0e7ff;
}

.bg-red-700{
  background:#ff8c8c;
  color:white;
}

.bg-yellow-600{
  background:#ffe58f;
}

.bg-slate-700, .bg-slate-800{
  background:#f1f5f9;
}

.border{
  border:none !important;
}

/* ---------- Sections ---------- */
section{
  margin-bottom:34px;
}

section h2{
  margin-bottom:10px;
  padding-left:6px;
  font-size:20px;
  color:#374151;
}

/* ---------- Grid ---------- */
.grid{
  display:grid;
  grid-template-columns:repeat(1,1fr);
  gap:16px;
}

@media(min-width:650px){ .grid{ grid-template-columns:repeat(2,1fr);} }
@media(min-width:1000px){ .grid{ grid-template-columns:repeat(3,1fr);} }
@media(min-width:1300px){ .grid{ grid-template-columns:repeat(4,1fr);} }

/* ---------- Product Card ---------- */
article{
  background:var(--card);
  border-radius:var(--radius);
  padding:12px;
  box-shadow:var(--shadow);
  transition:transform .12s ease;
}

article:hover{
  transform:translateY(-4px);
}

/* image */
article .h-36{
  height:170px;
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(#f0f9ff,#e0ffe7);
}

article img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* text */
article h3{
  margin:8px 0 4px;
  font-size:16px;
}

article p{
  margin:2px 0;
  font-size:13px;
  color:var(--muted);
}

/* card buttons */
article .mt-3{
  margin-top:10px;
  display:flex;
  gap:6px;
}

/* ---------- Modal ---------- */
.fixed{
  backdrop-filter:blur(3px);
}

.fixed > div{
  background:white !important;
  border-radius:20px !important;
  box-shadow:0 18px 60px rgba(0,0,0,0.18);
}

/* ---------- Footer ---------- */
footer{
  margin-top:40px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

/* ---------- Mobile tweaks ---------- */
@media(max-width:600px){
  header{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
}
