@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
  --primary:        #03AC0E;
  --primary-dark:   #029A0C;
  --primary-light:  #E8F9E9;
  --primary-mid:    #C5EEC7;
  --white:    #FFFFFF;
  --bg:       #F5F5F5;
  --bg-card:  #FFFFFF;
  --border:   #E8E8E8;
  --border-2: #D4D4D4;
  --text-primary:   #212121;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --text-light:     #AAAAAA;
  --success:  #03AC0E;
  --warning:  #F57C00;
  --danger:   #E53935;
  --info:     #0288D1;
  --badge-new:     #FF6900;
  --badge-popular: #E53935;
  --badge-vaksin:  #03AC0E;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.10);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --t: all .2s ease;
  --t-slow: all .35s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════
   RESET
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--primary);
  height: 64px;
  display: flex; align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo {
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-brand-name {
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); letter-spacing: -.01em;
}
.nav-brand-tagline {
  font-size: .65rem; color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}
.nav-search {
  flex: 1; max-width: 640px;
  display: flex; align-items: center;
  background: var(--white); border-radius: var(--radius-sm);
  overflow: hidden; height: 38px;
}
.nav-search-input {
  flex: 1; border: none; outline: none;
  padding: 0 1rem; font-size: .9rem;
  font-family: var(--font); color: var(--text-primary);
}
.nav-search-btn {
  height: 38px; width: 48px;
  background: var(--primary-dark); border: none;
  color: var(--white); cursor: pointer; font-size: 1rem;
  transition: var(--t); flex-shrink: 0;
}
.nav-search-btn:hover { background: #028a0b; }
.nav-actions {
  display: flex; align-items: center; gap: .75rem;
  margin-left: auto; flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}
.nav-links a {
  font-size: .8rem; color: rgba(255,255,255,.85);
  text-decoration: none; padding: .35rem .6rem;
  border-radius: var(--radius-xs); transition: var(--t);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,.15);
}
.btn-cart {
  position: relative; background: none; border: none;
  cursor: pointer; font-size: 1.3rem; color: var(--white);
  transition: var(--t); padding: .25rem;
}
.btn-cart:hover { opacity: .8; transform: scale(1.05); }
.cart-badge {
  position: absolute; top: -5px; right: -8px;
  background: var(--badge-new); color: var(--white);
  font-size: .6rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.25rem;
  font-family: var(--font); font-size: .85rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: var(--t); white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-gold { background: var(--primary); color: var(--white); }
.btn-gold:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover:not(:disabled) { background: #c62828; }
.btn-white { background: var(--white); color: var(--primary); font-weight: 700; }
.btn-white:hover:not(:disabled) { background: #f0fdf0; transform: translateY(-1px); }
.btn-sm { padding: .4rem .9rem; font-size: .78rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: .95rem; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════
   PAGES
══════════════════════════════════════ */
.page { display: none; padding-top: 64px; }
.page.active { display: block; }

/* ══════════════════════════════════════
   BACKGROUND PAW PRINT — BERANDA
══════════════════════════════════════ */
#page-home {
  background-color: #f0faf0;
  background-image:
    linear-gradient(rgba(3,172,14,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3,172,14,0.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(3,172,14,0.07) 1.5px, transparent 1.5px);
  background-size: 40px 40px, 40px 40px, 20px 20px;
  background-attachment: scroll;
}
#page-home .banner-section {
  background: transparent !important;
}
#page-home .category-bar {
  background: rgba(255, 255, 255, 0.95) !important;
}
#page-home .section {
  background: transparent !important;
}
#page-home .footer {
  background: rgba(255, 255, 255, 0.95) !important;
}
#page-home .banner-section {
  background: transparent;
}
#page-home .banner-main {
  background: linear-gradient(120deg, #00880E 0%, #03AC0E 50%, #05C913 100%);
}

/* ══════════════════════════════════════
   BANNER SLIDER (HOME)
══════════════════════════════════════ */
.banner-section {
  background: var(--bg); padding: .75rem 0 0;
}
.banner-wrapper {
  max-width: 1200px; margin: 0 auto; padding: 0 1rem;
  display: grid; grid-template-columns: 1fr 300px; gap: .75rem;
}
.banner-main {
  background: linear-gradient(120deg, #00880E 0%, #03AC0E 50%, #05C913 100%);
  border-radius: var(--radius-md); overflow: hidden;
  min-height: 220px; position: relative;
  display: flex; align-items: center;
  padding: 2rem 2.5rem;
}
.banner-bg-circles {
  position: absolute; right: -20px; top: -40px;
  width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.banner-bg-circles::after {
  content: ''; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: 60px; right: 30px;
}
.banner-content { position: relative; z-index: 1; }
.banner-label {
  display: inline-block;
  background: rgba(255,255,255,.25); color: var(--white);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  padding: .25rem .75rem; border-radius: var(--radius-pill);
  margin-bottom: .75rem; text-transform: uppercase;
}
.banner-title {
  font-size: 1.75rem; font-weight: 800;
  color: var(--white); line-height: 1.2; margin-bottom: .5rem;
}
.banner-sub {
  font-size: .85rem; color: rgba(255,255,255,.85);
  margin-bottom: 1.25rem;
}
.banner-emoji {
  position: absolute; right: 2rem; bottom: 0;
  font-size: 7rem; line-height: 1; opacity: .9;
}
.banner-side { display: flex; flex-direction: column; gap: .75rem; }
.banner-side-card {
  flex: 1; border-radius: var(--radius-md); overflow: hidden;
  padding: 1.25rem 1rem;
  display: flex; align-items: center; gap: 1rem;
  cursor: pointer; transition: var(--t);
}
.banner-side-card:first-child { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.banner-side-card:last-child  { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.banner-side-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.banner-side-icon { font-size: 2.5rem; flex-shrink: 0; }
.banner-side-title { font-size: .9rem; font-weight: 700; color: var(--text-primary); }
.banner-side-sub { font-size: .75rem; color: var(--text-secondary); margin-top: .1rem; }

/* ══════════════════════════════════════
   CATEGORY BAR
══════════════════════════════════════ */
.category-bar { background: var(--white); padding: 1rem 0; border-bottom: 1px solid var(--border); }
.category-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1rem;
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
}
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--t); white-space: nowrap;
  flex-shrink: 0; border: 1.5px solid transparent;
  background: var(--bg); min-width: 80px;
}
.cat-chip:hover { border-color: var(--primary); background: var(--primary-light); }
.cat-chip.active { border-color: var(--primary); background: var(--primary-light); }
.cat-chip-icon {
  font-size: 1.5rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.cat-chip-icon svg {
  width: 36px; height: 36px;
  transition: transform .2s;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.1));
}
.cat-chip:hover .cat-chip-icon svg,
.cat-chip.active .cat-chip-icon svg { transform: scale(1.12); }
.cat-chip-label { font-size: .72rem; font-weight: 500; color: var(--text-secondary); }
.cat-chip.active .cat-chip-label { color: var(--primary); font-weight: 600; }

/* ══════════════════════════════════════
   SECTION
══════════════════════════════════════ */
.section { padding: 1.5rem 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: .5rem;
}
.section-title::before {
  content: ''; display: block;
  width: 4px; height: 18px; background: var(--primary); border-radius: 2px;
}
.section-link {
  font-size: .8rem; color: var(--primary); text-decoration: none;
  font-weight: 600; transition: var(--t);
}
.section-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   PETS GRID — 3 COLUMN
══════════════════════════════════════ */
.pets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ══════════════════════════════════════
   PET CARD
══════════════════════════════════════ */
.pet-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border);
  transition: var(--t-slow); cursor: pointer;
  animation: fadeUp .4s ease both; position: relative;
}
.pet-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pet-card-image {
  height: 200px; position: relative; overflow: hidden;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.pet-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pet-card:hover .pet-card-image img { transform: scale(1.05); }
.pet-card-emoji { font-size: 4.5rem; opacity: .5; }
.pet-badge {
  position: absolute; top: .6rem; left: .6rem;
  padding: .2rem .6rem; border-radius: var(--radius-pill);
  font-size: .65rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; z-index: 2;
}
.badge-dog     { background: #E8F5E9; color: #2E7D32; }
.badge-cat     { background: #FFF3E0; color: #E65100; }
.badge-sold    { background: #FFEBEE; color: var(--danger); }
.badge-new     { background: var(--badge-new); color: var(--white); }
.badge-popular { background: var(--badge-popular); color: var(--white); }
.pet-card-wishlist {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  background: var(--white); border: 1px solid var(--border);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--t); font-size: .85rem; box-shadow: var(--shadow-xs);
}
.pet-card-wishlist:hover { border-color: var(--danger); color: var(--danger); transform: scale(1.1); }
.pet-card-wishlist.active { color: var(--danger); border-color: var(--danger); }
.pet-card-body { padding: .85rem; }
.pet-card-name {
  font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: .2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pet-card-meta {
  font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pet-card-rating { display: flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.stars { color: #FFC107; font-size: .8rem; letter-spacing: -.05em; }
.rating-num { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.rating-sold { font-size: .73rem; color: var(--text-light); }
.rating-sep { color: var(--border-2); font-size: .6rem; }
.pet-card-tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .65rem; }
.tag { padding: .15rem .5rem; border-radius: var(--radius-xs); font-size: .65rem; font-weight: 600; }
.tag-green { background: #E8F5E9; color: #2E7D32; }
.tag-gold  { background: #FFF8E1; color: #F57C00; }
.tag-gray  { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.pet-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .65rem; border-top: 1px solid var(--border); gap: .5rem;
}
.pet-card-price { font-size: 1rem; font-weight: 700; color: var(--danger); line-height: 1.1; }
.pet-card-price-original { font-size: .72rem; color: var(--text-light); text-decoration: line-through; display: block; }

/* ══════════════════════════════════════
   FILTER BAR (CATALOG)
══════════════════════════════════════ */
.catalog-header { background: var(--white); padding: .85rem 0; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.catalog-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.catalog-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.catalog-page-title { font-size: 1.1rem; font-weight: 700; }
.catalog-count { font-size: .8rem; color: var(--text-muted); }
.filters-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; pointer-events: none; }
.search-input {
  width: 100%; padding: .55rem 1rem .55rem 2.25rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .85rem;
  background: var(--bg); color: var(--text-primary);
  transition: var(--t); outline: none;
}
.search-input:focus { border-color: var(--primary); background: var(--white); }
.filter-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  padding: .35rem .85rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); font-size: .78rem; font-weight: 500;
  cursor: pointer; transition: var(--t); background: var(--white);
  color: var(--text-secondary); white-space: nowrap;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); font-weight: 600; }
select.filter-select {
  padding: .5rem 2rem .5rem .85rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .8rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right .65rem center;
  color: var(--text-primary); appearance: none; cursor: pointer;
  transition: var(--t); outline: none;
}
select.filter-select:focus { border-color: var(--primary); }

/* ══════════════════════════════════════
   WHY US (HOME)
══════════════════════════════════════ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem 1.25rem;
  text-align: center; transition: var(--t);
}
.why-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.why-icon {
  width: 52px; height: 52px; margin: 0 auto 1rem;
  background: var(--primary-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.why-title { font-size: .9rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.why-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-md);
  width: 100%; max-width: 640px; max-height: 92vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 1.25rem 1.5rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close {
  background: var(--bg); border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted); transition: var(--t);
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }
.modal-body { padding: 1.5rem; }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.form-control {
  width: 100%; padding: .6rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .88rem;
  background: var(--white); color: var(--text-primary);
  transition: var(--t); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3,172,14,.1); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.radio-group, .checkbox-group { display: flex; gap: .75rem; flex-wrap: wrap; }
.radio-item, .checkbox-item { display: flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .85rem; }
.radio-item input, .checkbox-item input { accent-color: var(--primary); }

/* ══════════════════════════════════════
   AUTH MODAL
══════════════════════════════════════ */
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.auth-tab {
  flex: 1; padding: .75rem; text-align: center;
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--t);
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ══════════════════════════════════════
   DETAIL MODAL
══════════════════════════════════════ */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.detail-image-main {
  height: 320px; border-radius: var(--radius-md);
  background: var(--bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.detail-image-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-emoji { font-size: 7rem; }
.detail-name { font-size: 1.3rem; font-weight: 700; margin-bottom: .25rem; }
.detail-price { font-size: 1.6rem; font-weight: 800; color: var(--danger); margin: .5rem 0 1rem; }
.detail-species-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: var(--radius-pill); margin-bottom: .5rem;
  background: var(--primary-light); color: var(--primary);
  text-transform: uppercase; letter-spacing: .05em;
}
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0 1.25rem; }
.spec-item { padding: .6rem .8rem; background: var(--bg); border-radius: var(--radius-xs); border: 1px solid var(--border); }
.spec-label { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.spec-value { font-size: .85rem; font-weight: 600; color: var(--text-primary); }
.detail-rating {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 1rem;
}
.detail-stars { color: #FFC107; font-size: 1rem; }
.detail-rating-num { font-size: .9rem; font-weight: 700; }
.detail-rating-count { font-size: .8rem; color: var(--text-muted); }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 3000; display: flex; flex-direction: column; gap: .6rem; }
.toast {
  padding: .75rem 1.1rem; border-radius: var(--radius-sm);
  background: #323232; color: var(--white);
  font-size: .85rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .6rem;
  animation: slideInRight .25s ease; min-width: 240px; max-width: 320px;
}
.toast.success { background: #1B5E20; }
.toast.error   { background: #B71C1C; }
.toast.info    { background: #01579B; }
@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ══════════════════════════════════════
   CART SIDEBAR
══════════════════════════════════════ */
.cart-sidebar {
  position: fixed; top: 0; right: -400px; width: 400px;
  height: 100vh; background: var(--white); z-index: 1500;
  box-shadow: var(--shadow-lg); transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1499; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cart-backdrop.open { opacity: 1; pointer-events: all; }
.cart-header { padding: 1.25rem 1.5rem; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: space-between; }
.cart-title { font-size: 1rem; font-weight: 700; }
.cart-header .modal-close { background: rgba(255,255,255,.2); color: var(--white); }
.cart-header .modal-close:hover { background: rgba(255,255,255,.35); }
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--white); }
.cart-item { display: flex; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.cart-item-icon { font-size: 2rem; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .88rem; font-weight: 600; margin-bottom: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-breed { font-size: .75rem; color: var(--text-muted); }
.cart-item-price { font-size: .88rem; font-weight: 700; color: var(--danger); margin-top: .2rem; }
.cart-item-remove { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: .85rem; padding: .2rem; transition: var(--t); flex-shrink: 0; }
.cart-item-remove:hover { color: var(--danger); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; border-top: 1px solid var(--border); margin-bottom: .75rem; }
.cart-total-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.cart-total-value { font-size: 1.2rem; font-weight: 800; color: var(--danger); }

/* ══════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--text-primary); padding: 1.5rem 0; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.admin-sidebar-brand { padding: 0 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: .75rem; }
.admin-sidebar-title { font-size: .9rem; font-weight: 700; color: var(--white); }
.admin-sidebar-sub { font-size: .7rem; color: var(--primary); margin-top: .15rem; }
.admin-nav-section { padding: .5rem 1.25rem .25rem; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-top: .5rem; }
.admin-nav-item { display: flex; align-items: center; gap: .65rem; padding: .65rem 1.25rem; color: rgba(255,255,255,.6); font-size: .83rem; font-weight: 500; transition: var(--t); cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.admin-nav-item:hover { color: var(--white); background: rgba(255,255,255,.07); }
.admin-nav-item.active { color: var(--white); background: var(--primary); }
.admin-content { padding: 1.5rem; background: var(--bg); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.admin-page-title { font-size: 1.2rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 1.25rem; border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: var(--t); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-icon { font-size: 1.5rem; margin-bottom: .6rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: .72rem; color: var(--text-muted); font-weight: 500; margin-top: .2rem; }

/* ══════════════════════════════════════
   TABLE
══════════════════════════════════════ */
.table-wrap { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
table { width: 100%; border-collapse: collapse; }
thead { background: #FAFAFA; }
th { padding: .75rem 1rem; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .85rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFA; }

/* ══════════════════════════════════════
   STATUS BADGE
══════════════════════════════════════ */
.status-badge { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .65rem; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700; }
.status-pending   { background: #FFF8E1; color: #F57C00; }
.status-confirmed { background: #E8F5E9; color: #2E7D32; }
.status-shipped   { background: #E3F2FD; color: #1565C0; }
.status-delivered { background: #E8F5E9; color: #1B5E20; }
.status-cancelled { background: #FFEBEE; color: #C62828; }

/* ══════════════════════════════════════
   PAYMENT METHODS
══════════════════════════════════════ */
.payment-methods { display: grid; grid-template-columns: repeat(2,1fr); gap: .65rem; }
.payment-method { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem; cursor: pointer; display: flex; align-items: center; gap: .65rem; transition: var(--t); font-size: .85rem; }
.payment-method:hover { border-color: var(--primary); }
.payment-method.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-method input { accent-color: var(--primary); }

/* ══════════════════════════════════════
   LOADER & EMPTY STATE
══════════════════════════════════════ */
.loader { display: inline-block; width: 20px; height: 20px; border: 2.5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; gap: .75rem; color: var(--text-muted); font-size: .85rem; }
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3.5rem; margin-bottom: .75rem; opacity: .4; }
.empty-state-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer { background: var(--text-primary); color: rgba(255,255,255,.6); padding: 3rem 1rem 1.5rem; margin-top: 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand-name { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.footer-brand-name span { color: var(--primary); }
.footer-brand-desc { font-size: .8rem; line-height: 1.7; max-width: 280px; }
.footer-heading { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: .85rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { color: rgba(255,255,255,.45); text-decoration: none; font-size: .82rem; transition: var(--t); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; font-size: .75rem; flex-wrap: wrap; gap: .5rem; }

/* ══════════════════════════════════════
   ORDERS PAGE
══════════════════════════════════════ */
.orders-page-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 1.25rem 0; margin-bottom: 1rem; }
.orders-page-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.orders-page-title { font-size: 1.1rem; font-weight: 700; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .pets-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-wrapper { grid-template-columns: 1fr; }
  .banner-side { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 .75rem; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .pets-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .cart-sidebar { width: 100%; right: -100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .banner-wrapper { padding: 0 .75rem; }
  .banner-emoji { display: none; }
  .banner-main { min-height: 160px; padding: 1.5rem; }
  .banner-title { font-size: 1.3rem; }
  #page-home { background-size: 200px 200px; }
}
@media (max-width: 480px) {
  .pets-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .pet-card-image { height: 150px; }
  .pet-card-body { padding: .65rem; }
  .pet-card-name { font-size: .85rem; }
  .pet-card-price { font-size: .9rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
/* ══════════════════════════════════════
   NAVBAR ICONS (Notif, Chat, Profil)
══════════════════════════════════════ */
.btn-notif, .btn-nav-icon {
  position: relative; background: none; border: none;
  cursor: pointer; font-size: 1.2rem; color: var(--white);
  transition: var(--t); padding: .25rem .35rem;
  border-radius: var(--radius-sm);
}
.btn-notif:hover, .btn-nav-icon:hover { background: rgba(255,255,255,.15); }
.notif-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--danger); color: var(--white);
  font-size: .58rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ══════════════════════════════════════
   NOTIF PANEL
══════════════════════════════════════ */
.notif-overlay {
  display: none; position: fixed; inset: 0; z-index: 1099;
}
.notif-overlay.active { display: block; }
.notif-panel {
  position: fixed; top: 68px; right: 1rem; z-index: 1100;
  width: 340px; background: var(--white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); display: none; flex-direction: column;
  max-height: 480px; overflow: hidden;
}
.notif-panel.active { display: flex; }
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .9rem;
}
.notif-read-all {
  font-size: .72rem; color: var(--primary); background: none;
  border: none; cursor: pointer; font-weight: 600;
}
.notif-list { overflow-y: auto; flex: 1; }
.notif-item {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: var(--t); display: flex; gap: .75rem; align-items: flex-start;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-light); }
.notif-item-icon { font-size: 1.4rem; flex-shrink: 0; }
.notif-item-title { font-weight: 600; font-size: .82rem; margin-bottom: .2rem; }
.notif-item-body { font-size: .76rem; color: var(--text-secondary); }
.notif-item-time { font-size: .68rem; color: var(--text-muted); margin-top: .25rem; }
.notif-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* ══════════════════════════════════════
   PAGE: PROFIL
══════════════════════════════════════ */
.profile-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
  box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}
.profile-avatar-wrap {
  position: relative; display: inline-block; margin-bottom: .85rem;
}
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem; margin: 0 auto;
  border: 3px solid var(--primary); overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-edit {
  position: absolute; bottom: 2px; right: 2px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; cursor: pointer;
}
.profile-name { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.profile-role {
  font-size: .75rem; color: var(--white); background: var(--primary);
  display: inline-block; padding: .2rem .75rem; border-radius: var(--radius-pill);
  margin-bottom: 1rem; text-transform: capitalize;
}
.profile-stats {
  display: flex; gap: 1.5rem; justify-content: center;
  margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border);
}
.profile-stat { text-align: center; }
.profile-stat-num { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.profile-stat-label { font-size: .7rem; color: var(--text-muted); }
.profile-form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════
   PAGE: CHAT
══════════════════════════════════════ */
.chat-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 1rem; height: calc(100vh - 140px); min-height: 500px;
}
.chat-sidebar {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden;
}
.chat-sidebar-header {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.chat-list { overflow-y: auto; flex: 1; }
.chat-list-item {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: var(--t);
}
.chat-list-item:hover { background: var(--bg); }
.chat-list-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }
.chat-list-subject { font-weight: 600; font-size: .82rem; margin-bottom: .2rem; }
.chat-list-preview { font-size: .75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-time { font-size: .68rem; color: var(--text-light); margin-top: .2rem; }
.chat-status-badge {
  font-size: .65rem; padding: .15rem .5rem; border-radius: var(--radius-pill);
  font-weight: 600;
}
.chat-status-open { background: var(--primary-light); color: var(--primary); }
.chat-status-closed { background: #f5f5f5; color: var(--text-muted); }
.chat-main {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden;
}
.chat-empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .75rem;
  color: var(--text-muted); text-align: center;
}
.chat-main-header {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.chat-main-subject { font-weight: 700; font-size: .9rem; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem;
}
.chat-bubble {
  max-width: 70%; padding: .6rem .9rem; border-radius: var(--radius-md); font-size: .82rem; line-height: 1.5;
}
.chat-bubble.me {
  align-self: flex-end; background: var(--primary); color: var(--white);
  border-bottom-right-radius: 4px;
}
.chat-bubble.them {
  align-self: flex-start; background: var(--bg); color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-bubble-sender { font-size: .68rem; font-weight: 600; margin-bottom: .2rem; opacity: .8; }
.chat-bubble-time { font-size: .65rem; margin-top: .25rem; opacity: .7; text-align: right; }
.chat-input-area {
  padding: .75rem 1rem; border-top: 1px solid var(--border);
  display: flex; gap: .5rem; flex-shrink: 0;
}
.chat-input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .55rem .85rem; font-family: var(--font); font-size: .85rem;
  outline: none; resize: none; max-height: 100px;
}
.chat-input:focus { border-color: var(--primary); }

/* ══════════════════════════════════════
   SKELETON ANIMATION
══════════════════════════════════════ */
@keyframes skeleton-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}

/* Skeleton Pet Card */
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.skeleton-card-img {
  height: 200px;
  width: 100%;
}
.skeleton-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.skeleton-line {
  height: 12px;
  border-radius: 6px;
}
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-line.h-20 { height: 20px; }
.skeleton-line.h-16 { height: 16px; }

/* Skeleton Order */
.skeleton-order {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: .85rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Skeleton Chat */
.skeleton-bubble {
  height: 40px;
  border-radius: var(--radius-md);
  margin-bottom: .5rem;
}
.skeleton-bubble.me { width: 55%; margin-left: auto; }
.skeleton-bubble.them { width: 65%; }

/* Skeleton Notif */
.skeleton-notif {
  display: flex;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.skeleton-notif-icon { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.skeleton-notif-body { flex: 1; display: flex; flex-direction: column; gap: .4rem; }