/* ============================================================
   Vintage Veterinary Pharmacy — Agrovet
   Design system: deep green × amber × cream, Fraunces display serif
   ============================================================ */
:root {
  --green-950: #0b2e1a;
  --green-900: #123c24;
  --green-800: #14532d;
  --green-700: #166534;
  --green-600: #15803d;
  --green-500: #16a34a;
  --green-100: #e9f5ec;
  --green-50:  #f4faf6;
  --amber:     #f59e0b;
  --amber-dk:  #d97706;
  --amber-lt:  #fef3c7;
  --cream:     #fdfbf7;
  --ink:       #1c2b21;
  --muted:     #5b6b60;
  --radius:    1rem;
  --shadow:    0 10px 30px rgba(18, 60, 36, .12);
  --shadow-sm: 0 4px 12px rgba(18, 60, 36, .10);
}

* { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--cream); color: var(--ink); }
h1, h2, h3, h4, .display-font, .brand-text, .footer-brand, .section-title { font-family: 'Fraunces', Georgia, serif; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-950); font-size: .78rem; letter-spacing: .01em; }
.topbar-link { color: #cfe6d5; text-decoration: none; }
.topbar-link:hover { color: #fff; }
.topbar-social { color: #0b2e1a; background: var(--amber); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: .72rem; }
.topbar-social:hover { background: #ffce54; color: var(--green-950); }

/* ---------- Navbar ---------- */
.brand-nav { background: rgba(253, 251, 247, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #e7e2d6; padding: .55rem 0; transition: box-shadow .25s; }
.brand-nav.scrolled { box-shadow: 0 6px 24px rgba(11, 46, 26, .15); }
.brand-logo { filter: drop-shadow(0 2px 4px rgba(11,46,26,.35)); }
.brand-line1 { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.1; color: var(--green-900); letter-spacing: .01em; }
.brand-line2 { display: block; font-family: 'Inter'; font-weight: 600; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-dk); }
.brand-amp { color: var(--green-700); }
.nav-link { font-weight: 600; color: var(--green-900) !important; border-radius: .5rem; padding: .4rem .75rem !important; }
.nav-link:hover { background: var(--green-100); }
.nav-link.active { color: #fff !important; background: var(--green-800); }

.btn-brand { background: var(--green-800); border: 1px solid var(--green-800); color: #fff; font-weight: 600; border-radius: .6rem; padding: .45rem 1rem; transition: all .2s; }
.btn-brand:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; transform: translateY(-1px); }
.btn-outline-brand { border: 1.5px solid var(--green-800); color: var(--green-900); font-weight: 600; border-radius: .6rem; padding: .4rem .8rem; background: #fff; }
.btn-outline-brand:hover { background: var(--green-800); color: #fff; }
.btn-amber { background: var(--amber); border: 1px solid var(--amber-dk); color: #3a2b00; font-weight: 700; border-radius: .6rem; padding: .6rem 1.4rem; transition: all .2s; }
.btn-amber:hover { background: #fbbf24; color: #241a00; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-wa { background: #25d366; border: 1px solid #1eb855; color: #053a1a; font-weight: 700; border-radius: .6rem; }
.btn-wa:hover { background: #4bea84; color: #053a1a; }

.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -9px; right: -9px; background: var(--amber); color: #3a2b00; border: 2px solid var(--cream); border-radius: 999px; min-width: 24px; height: 24px; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(rgba(11, 46, 26, .80), rgba(15, 61, 34, .86)), url("../img/fb/gallery2.jpg") center 30% / cover no-repeat; color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='70' cy='86' rx='13' ry='10.5'/%3E%3Ccircle cx='50' cy='68' r='6.5'/%3E%3Ccircle cx='63' cy='59' r='6.5'/%3E%3Ccircle cx='77' cy='59' r='6.5'/%3E%3Ccircle cx='90' cy='68' r='6.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.22), transparent 70%); top: -140px; right: -140px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem .9rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #fde68a; }
.hero-title { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; line-height: 1.08; margin: 1.1rem 0; }
.hero-title .accent { color: var(--amber); }
.hero-sub { color: #d6ecdd; font-size: 1.08rem; max-width: 34rem; }
.hero-stats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-stat b { font-family: 'Fraunces'; font-size: 1.5rem; color: #fff; display: block; }
.hero-stat span { font-size: .78rem; color: #a7cdb4; letter-spacing: .05em; text-transform: uppercase; }

/* Hero order card */
.order-card { background: var(--cream); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid #e8ddc8; overflow: hidden; }
.order-card .card-top { background: var(--green-800); color: #fff; padding: .8rem 1.25rem; font-family:'Fraunces'; font-weight:600; display:flex; align-items:center; gap:.6rem; }
.order-card .card-body { padding: 1.25rem; color: var(--ink); }
.order-mini { display:flex; align-items:center; gap:.7rem; padding:.5rem .6rem; border-radius:.7rem; background:#fff; border:1px solid #eee7d8; }
.order-mini + .order-mini { margin-top:.5rem; }
.order-mini-icon { width:44px; height:44px; border-radius:.6rem; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.1rem; flex:0 0 44px; }
.order-mini b { font-size:.82rem; display:block; }
.order-mini span { font-size:.72rem; color:var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-title { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--green-900); }
.section-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--amber-dk); }
.text-muted-2 { color: var(--muted); }

/* Category tiles */
.cat-tile { display:block; text-decoration:none; background:#fff; border:1px solid #eee7d8; border-radius: var(--radius); padding:1.1rem .8rem; text-align:center; transition:all .2s; height:100%; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--amber); }
.cat-icon { width:58px; height:58px; margin:0 auto .6rem; border-radius: 1rem; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.4rem; }
.cat-tile b { color: var(--green-900); font-size: .85rem; display:block; }
.cat-tile small { color: var(--muted); font-size: .68rem; }

/* Product cards */
.product-card { background:#fff; border:1px solid #eee7d8; border-radius: var(--radius); overflow:hidden; transition:all .2s; height:100%; display:flex; flex-direction:column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-visual { height:150px; display:flex; align-items:center; justify-content:center; position:relative; color:#fff; }
.product-visual i { font-size: 3.2rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.product-badge { position:absolute; top:.6rem; left:.6rem; background:var(--amber); color:#3a2b00; font-size:.62rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; border-radius:999px; padding:.22rem .6rem; }
.low-stock { position:absolute; top:.6rem; right:.6rem; background:#b91c1c; color:#fff; font-size:.62rem; font-weight:700; border-radius:999px; padding:.22rem .6rem; }
.product-body { padding:.85rem .9rem .9rem; display:flex; flex-direction:column; flex:1; }
.product-cat { font-size:.62rem; text-transform:uppercase; letter-spacing:.12em; color:var(--amber-dk); font-weight:700; }
.product-name { font-weight:600; color:var(--green-900); font-size:.9rem; line-height:1.3; min-height:2.4em; margin:.25rem 0 .35rem; text-decoration:none; display:block; }
.product-name:hover { color: var(--green-700); }
.product-unit { font-size:.68rem; color:var(--muted); }
.product-price { font-family:'Fraunces'; font-weight:700; font-size:1.15rem; color:var(--green-900); margin:.35rem 0 .6rem; }
.qty-group { display:flex; align-items:center; border:1px solid #ddd6c7; border-radius:.55rem; overflow:hidden; width:max-content; }
.qty-group button { border:0; background:#f4f1e8; width:30px; height:30px; font-weight:700; color:var(--green-900); }
.qty-group input { border:0; width:44px; text-align:center; font-weight:600; background:#fff; }
.btn-add-cart { background:var(--green-800); color:#fff; border:0; border-radius:.55rem; padding:.45rem .8rem; font-weight:600; font-size:.82rem; }
.btn-add-cart:hover { background:var(--green-600); color:#fff; }

/* Services */
.service-card { background:#fff; border-radius:var(--radius); border:1px solid #eee7d8; padding:1.4rem; height:100%; transition:all .2s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon { width:56px; height:56px; border-radius:.8rem; background:var(--green-100); color:var(--green-800); display:flex;align-items:center;justify-content:center; font-size:1.4rem; margin-bottom:.75rem; }

/* Blog cards */
.post-card { background:#fff; border-radius:var(--radius); border:1px solid #eee7d8; overflow:hidden; height:100%; display:flex; flex-direction:column; transition:all .2s; text-decoration:none; }
.post-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.post-cover { height:150px; display:flex; align-items:center; justify-content:center; color:#fff; background: linear-gradient(135deg, var(--green-800), var(--green-600)); }
.post-cover i { font-size:2.6rem; opacity:.9; }
.post-tag { font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:var(--amber-dk); }

/* Trust strip */
.trust-strip { background: var(--amber-lt); border-top:1px solid #f0dfab; border-bottom:1px solid #f0dfab; font-weight:600; color:#5c4708; font-size:.78rem; }
.trust-icon { color:var(--amber-dk); margin-right:.35rem; }

/* Footer */
.site-footer { background: var(--green-950); }
.footer-brand { font-weight:600; line-height:1.25; font-size:.95rem; }
.footer-heading { text-transform:uppercase; letter-spacing:.14em; font-size:.68rem; color:#fbbf24; margin-bottom:.6rem; }
.footer-link { display:block; color:#bcd8c4; text-decoration:none; font-size:.8rem; padding:.12rem 0; }
.footer-link:hover { color:#fff; text-decoration:underline; }
.footer-link-inline { color:#fff; text-decoration:none; }
.footer-link-inline:hover { color: var(--amber); }
.footer-social { width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none; }
.footer-social:hover { background: var(--amber); color: var(--green-950); }

/* WhatsApp float */
.wa-float { position:fixed; bottom:1.4rem; right:1.4rem; z-index:1040; width:62px; height:62px; border-radius:50%; background:#25d366; color:#063; display:flex; align-items:center; justify-content:center; font-size:2rem; box-shadow:0 10px 28px rgba(6,95,50,.4); text-decoration:none; animation:waPulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.1); color:#063; }
@keyframes waPulse { 0%,100% { box-shadow:0 10px 28px rgba(6,95,50,.4), 0 0 0 0 rgba(37,211,102,.5);} 50% { box-shadow:0 10px 28px rgba(6,95,50,.4), 0 0 0 14px rgba(37,211,102,0);} }

/* Page hero (subpages) */
.page-hero { background: linear-gradient(120deg, var(--green-950), var(--green-800)); color:#fff; padding: 2.6rem 0; position:relative; overflow:hidden; }
.breadcrumb-item a { color:#a7f3d0; text-decoration:none; }
.breadcrumb-item.active { color:#fde68a; }

/* Cart / checkout */
.cart-table img { width:44px;height:44px; }
.cart-line-icon { width:52px;height:52px;border-radius:.6rem;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.2rem; }
.summary-box { background:#fff;border:1px solid #eee7d8;border-radius:var(--radius);box-shadow:var(--shadow-sm); }
.summary-row { display:flex; justify-content:space-between; padding:.4rem 0; }
.summary-total { border-top:2px dashed #e4dcc8; margin-top:.5rem; padding-top:.75rem; font-family:'Fraunces'; font-size:1.2rem; font-weight:700; color:var(--green-900); }

/* Appointment / contact forms */
.form-card { background:#fff; border:1px solid #eee7d8; border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:1.6rem; }
.form-label { font-weight:600; font-size:.82rem; color:var(--green-900); }
.form-control, .form-select { border:1px solid #ddd6c7; border-radius:.55rem; padding:.55rem .75rem; }
.form-control:focus, .form-select:focus { border-color:var(--green-600); box-shadow:0 0 0 .2rem rgba(22,101,52,.15); }

/* Filters */
.filter-pill { border:1px solid #ddd6c7; background:#fff; border-radius:999px; padding:.35rem .85rem; font-size:.78rem; font-weight:600; color:var(--green-900); text-decoration:none; }
.filter-pill.active, .filter-pill:hover { background:var(--green-800); border-color:var(--green-800); color:#fff; }

/* Admin */
.admin-shell { background:#f3f1ea; min-height:100vh; }
.admin-sidebar { background:var(--green-950); min-height:100vh; }
.admin-sidebar a { color:#bcd8c4; text-decoration:none; display:flex; align-items:center; gap:.6rem; padding:.55rem .8rem; border-radius:.55rem; font-size:.88rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background:rgba(255,255,255,.09); color:#fff; }
.stat-card { background:#fff; border:1px solid #e8e3d4; border-radius:var(--radius); padding:1rem 1.1rem; }
.stat-card b { font-family:'Fraunces'; font-size:1.6rem; color:var(--green-900); }
.status-pill { display:inline-block; padding:.18rem .6rem; border-radius:999px; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.status-pending { background:#fef3c7; color:#92400e; }
.status-confirmed { background:#dbeafe; color:#1e40af; }
.status-ready { background:#e0e7ff; color:#3730a3; }
.status-completed { background:#dcfce7; color:#166534; }
.status-cancelled { background:#fee2e2; color:#991b1b; }

/* Misc */
.map-embed { border:0; width:100%; height:280px; border-radius: var(--radius); }
.divider-paw { text-align:center; color:#d8d2c0; font-size:1.1rem; letter-spacing:.5em; }
.stock-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:.3rem; }
.stock-in { background:#16a34a; } .stock-low { background:#f59e0b; } .stock-out { background:#dc2626; }
@media (max-width: 991px) { .hero-stats { gap: 1rem; } }

/* -------- Off-canvas sidebar (slides from left) -------- */
.offcanvas.vintage-sidebar { background: linear-gradient(168deg, #0b2e1a 0%, #14532d 55%, #166534 100%); color:#fff; width: 330px; box-shadow: 8px 0 40px rgba(0,0,0,.4); }
.offcanvas.show.vintage-sidebar, .offcanvas.showing.vintage-sidebar { transform: translateX(0); visibility: visible; }
.vintage-sidebar .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.14); padding: 1rem 1.1rem; }
.sidebar-brand { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.02rem; line-height: 1.15; color: #fff; }
.sidebar-brand span { font-family: 'Inter'; font-weight: 700; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: #fbbf24; }
.sidebar-nav { gap: .18rem; }
.sidebar-link { display: flex; align-items: center; gap: .9rem; color: #cfe6d5; text-decoration: none; padding: .72rem .9rem; border-radius: .65rem; font-weight: 600; transition: background .15s, color .15s, transform .15s; }
.sidebar-link i { width: 1.5rem; text-align: center; color: #fbbf24; }
.sidebar-link:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateX(4px); }
.sidebar-link.active { background: #fbbf24; color: #3a2b00; }
.sidebar-link.active i { color: #3a2b00; }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,.14); margin: .85rem 0; }
.sidebar-contact div { color: #bcd8c4; font-size: .83rem; padding: .18rem 0; }
.sidebar-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.sidebar-contact i { color: #fbbf24; }
.sidebar-social { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; transition: all .15s; }
.sidebar-social:hover { background: #fbbf24; color: #3a2b00; transform: translateY(-2px); }
.sidebar-staff { color: #8fb79d; font-size: .8rem; text-decoration: none; }
.sidebar-staff:hover { color: #fff; }
.btn-ghost-menu { border: 0; background: transparent; color: var(--green-900); font-size: 1.4rem; padding: .3rem .6rem; border-radius: .55rem; line-height: 1; }
.btn-ghost-menu:hover { background: var(--green-100); }

/* -------- Glassmorphism hero panel -------- */
.hero-glass { background: rgba(13, 42, 24, .42); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border: 1px solid rgba(255,255,255,.28); border-radius: 1.4rem; padding: 1.4rem 1.6rem 1.5rem; box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4); }
@media (max-width: 575px) { .hero-glass { padding: 1.1rem 1.15rem 1.2rem; border-radius: 1.1rem; } }
.btn-glass { background: rgba(255,255,255,.15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.45); color: #fff; font-weight: 600; border-radius: .6rem; padding: .6rem 1.3rem; transition: all .2s; }
.btn-glass:hover { background: rgba(255,255,255,.28); color: #fff; border-color: #fff; }

/* -------- Hero carousel -------- */
.hero-carousel .carousel-inner { border-radius: 1.4rem; }
.hero-indicators { position: static; justify-content: flex-start; gap: .5rem; margin: .9rem 0 0 .2rem; }
.hero-indicators [data-bs-target] { width: 34px; height: 6px; border-radius: 999px; border: 0; background: rgba(255,255,255,.35); opacity: 1; transition: all .3s; }
.hero-indicators .active { background: #fbbf24; width: 48px; }

@media (max-width: 991px) { .hero-carousel .hero-title br { display: none; } }
