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

/* ── SVG Icon System ──────────────────────────────────────────────── */
svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.nav-chevron {
    vertical-align: middle;
    opacity: 0.7;
    margin-left: 2px;
}

.footer-icon {
    vertical-align: middle;
    opacity: 0.8;
    margin-right: 6px;
}

.meta-icon {
    vertical-align: middle;
    opacity: 0.6;
}

.btn-icon {
    vertical-align: middle;
    margin-right: 5px;
}

.wishlist-icon {
    color: var(--text-muted);
}

.wishlist-icon-active {
    color: #e74c3c;
}

.health-icon {
    color: var(--primary);
    vertical-align: middle;
    margin-right: 6px;
}


:root {
    --primary: #2D5A27;
    --primary-light: #4A7C44;
    --secondary: #3E2723;
    --accent: #D4AF37;
    --bg-cream: #F9F7F2;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.7;
    /* Improved readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.25;
    color: var(--secondary);
    text-wrap: balance;
    /* Modern browser support for better heading wraps */
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Typography Utilities ─── */
.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.body-copy {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.section-heading {
    margin-bottom: 1.5rem;
}

/* ─── Glassmorphism ─── */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background: var(--primary-light);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #4E342E;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 1rem;
    font-weight: 700;
}

.btn-whatsapp:hover {
    background: #20b857;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-muted {
    border: 2px solid #ddd;
    color: var(--text-muted);
    background: transparent;
}

.btn-outline-muted:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-wishlist-active {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

/* Makes entire animal card clickable */
.animal-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.animal-card-link:hover .animal-card {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ─── Hero Slider ─── */
.hero-slider {
    position: relative;
    height: 63vh;
    min-height: 420px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    visibility: hidden;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s linear;
    transform: scale(1);
    z-index: 0;
}

.slide.active .slide-bg {
    transform: scale(1.15);
    /* Subtle Ken Burns zoom */
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(45, 90, 39, 0.1) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1200px;
    /* Increased to allow single-row titles */
    padding: 0 50px;
    transform: translateY(30px);
    transition: transform 0.8s ease-out 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-content h2 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--accent);
    /* Premium Gold */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    /* Enforce single row */
}

@media (max-width: 992px) {
    .slide-content h2 {
        white-space: normal;
        /* Safe wrapping for tablets/mobile */
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* ─── Stats Section ─── */
.stats-section {
    background: var(--secondary);
    padding: clamp(40px, 6vh, 60px) 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Auth Forms ─── */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
}

.auth-card h2 {
    margin-bottom: 30px;
    text-align: center;
}

.auth-card p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.form-footer a:hover {
    border-bottom-color: var(--primary);
}

/* ─── Forms ─── */
.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-bottom: 20px;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
    background: white;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ─── Animations ─── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

/* ─── Page Header (inner pages) ─── */
.page-header {
    padding: 140px 0 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 15px;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Section title ─── */
.section-title {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    margin-top: 10px;
}

/* ─── Header / Navigation ─── */
/* ─── Header Navigation (Mobile First) ────────────────────────── */
.nav-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.header-top {
    background: #f8f9fa;
    /* Ash */
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 15px;
}

.top-left,
.top-right {
    flex: 0 0 auto;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.top-center {
    display: block;
    order: 3;
    flex: 0 0 100%;
}

@media (max-width: 576px) {
    .top-container {
        padding: 10px 0;
        gap: 8px 10px;
    }

    .logo-img {
        height: 38px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary) !important;
    transition: var(--transition);
}

.action-label {
    display: none;
    /* Hide labels on mobile */
}

/* AJAX Search */
.header-search-container {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--primary);
    pointer-events: none;
}

#ajaxSearchInput {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    background: #fff;
    font-size: 0.85rem;
    outline: none;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    margin-top: 8px;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    overflow-y: auto;
    max-height: 400px;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9fbf9;
}

.result-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.result-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.result-price {
    font-weight: 800;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-left: 10px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Header Menu (Desktop only) */
.header-menu {
    display: none;
    background: #fff;
    padding: 8px 0;
}

.main-nav {
    display: flex;
    gap: 8px;
    /* Added breathing room */
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    /* Center items instead of squashing them to edges */
    width: 100%;
    overflow: visible;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.75rem;
    /* Slightly smaller for density */
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.main-nav a.nav-link:hover,
.main-nav button.nav-link:hover {
    color: var(--primary);
    background: rgba(45, 90, 39, 0.05);
}

.nav-marketplace {
    color: var(--primary) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

/* Navigation Dropdowns */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Standardize dropdown naming to .dropdown-menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* Center dropdown */
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    border-radius: 12px;
    margin-top: 12px;
    overflow: hidden;
    padding: 10px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    color: var(--text-dark) !important;
    padding: 12px 20px !important;
    text-decoration: none;
    display: block !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary) !important;
    padding-left: 25px !important;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* For JS toggle if needed */
.dropdown-menu.show {
    display: block !important;
}

.nav-chevron {
    margin-left: 5px;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav Sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px 25px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.mobile-nav-close {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: 0.3s;
}

.mobile-nav-close:hover {
    background: var(--primary);
    color: white;
}

.mobile-nav a {
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--secondary);
    padding: 14px 30px;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.mobile-nav a:hover {
    background: #f9fbf9;
    color: var(--primary);
}

.mobile-nav-hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 10px 30px;
}

/* Toggles */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    z-index: 1003;
    width: 40px;
    height: 40px;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: #eee;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

/* Desktop Breakpoint */
@media (min-width: 992px) {
    .header-top {
        padding: 15px 0;
    }

    .top-container {
        display: grid;
        grid-template-columns: 200px 1fr 280px;
    }

    .logo-img {
        height: 45px;
    }

    .top-center {
        display: block;
        order: 0;
    }

    .header-search-container {
        max-width: 520px;
        margin: 0 auto;
    }

    .header-menu {
        display: block;
    }

    .menu-container {
        display: flex;
        justify-content: center;
    }

    .action-label {
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        margin-top: 2px;
        text-transform: uppercase;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .header-actions {
        gap: 25px;
    }
}

/* Scroll Transparency Disabled: Header is now separate from Hero */
body.home-page .nav-header:not(.scrolled) .logo-img {
    filter: none;
}

body.home-page .nav-header:not(.scrolled) .main-nav a,
body.home-page .nav-header:not(.scrolled) .action-btn {
    color: var(--text-dark);
}

/* ─── Category Grid (Home) ─── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 30px 0;
}

.category-card {
    position: relative;
    height: 175px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    padding: 15px;
}

.category-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.category-overlay p {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ─── Marketplace / Animal Grid ─── */
.filter-bar {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-link {
    padding: 8px 22px;
    border-radius: 50px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #ddd;
}

.filter-link.active,
.filter-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Link wrapper — must be a proper grid item */
.animal-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animal-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.animal-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.animal-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.animal-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.animal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.animal-card-link:hover .animal-image img {
    transform: scale(1.05);
}

.animal-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.animal-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.animal-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.animal-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 4px;
}

.animal-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

/* ─── Animal Details Page ─── */
.details-container {
    padding: 150px 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.image-gallery {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.image-gallery img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.info-panel h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.status-pill {
    display: inline-block;
    padding: 6px 22px;
    background: #E8F5E9;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.price-tag {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 25px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.spec-item {
    padding: 18px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.spec-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.animal-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ─── FAQ Item (reused across pages) ─── */
.faq-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    border-left: 5px solid var(--primary);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── Footer ─── */
.main-footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 0;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: white;
    text-decoration: none;
    font-weight: 800;
    display: block;
    margin-bottom: 18px;
}

.footer-brand p {
    opacity: 0.65;
    font-size: 0.92rem;
    margin-bottom: 20px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-grid h4 {
    color: var(--accent);
    margin-bottom: 22px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 11px;
}

.footer-grid ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.92rem;
}

.footer-grid ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    opacity: 0.7;
    /* FIX: raised from 0.45 — WCAG AA requires ≥4.5:1 contrast ratio */
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 6px;
}

.footer-bottom a:hover {
    color: white;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .details-container {
        grid-template-columns: 1fr;
        padding-top: 110px;
    }

    .image-gallery img {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .animal-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ─── Landing Page Enhancements ─── */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.advantage-section {
    padding: clamp(60px, 8vh, 80px) 0;
    background: white;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.advantage-item:hover {
    background: var(--bg-cream);
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
}

.arrivals-section {
    padding: clamp(60px, 8vh, 80px) 0;
    background: var(--bg-cream);
}

.arrivals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.newsletter-shelf {
    background: var(--primary);
    padding: clamp(60px, 8vh, 80px) 0;
    color: white;
    text-align: center;
    margin-top: clamp(40px, 6vh, 80px);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    color: var(--text-dark);
    /* FIX: prevent white-on-white invisible text */
    background: white;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form .btn {
    padding: 0 40px;
}

@media (max-width: 992px) {

    .arrivals-grid,
    .advantage-grid,
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {

    .arrivals-grid,
    .advantage-grid,
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .highland-feature-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    .highland-feature-grid ul {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .animal-card h4 {
        font-size: 1.1rem;
    }

    .animal-info {
        padding: 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .highland-feature-grid h2 {
        font-size: 2.2rem !important;
    }
}

/* --- Landing Page Utilities --- */
.section-spacer {
    padding: clamp(60px, 8vh, 80px) 0;
}

.card-listing {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    position: relative;
    display: block;
    transition: var(--transition);
}

.card-listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.card-img-container {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--accent);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.listing-price {
    font-weight: 800;
    color: var(--secondary);
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-img-panel {
    padding: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
}

.feature-img-panel img {
    width: 100%;
    border-radius: 15px;
    display: block;
    filter: saturate(1.1);
    transition: var(--transition);
}

.feature-img-panel:hover img {
    filter: saturate(1.2);
    transform: scale(1.02);
}

.quote-panel {
    padding: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-text {
    font-size: 1.6rem;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    max-width: 850px;
    line-height: 1.6;
    font-style: italic;
    text-wrap: balance;
}

.quote-author {
    margin-top: 30px;
}

.quote-author h4 {
    margin-bottom: 5px;
}

/* --- Account Dashboard --- */
.account-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .account-layout aside {
        position: static !important;
    }
}

/* --- Animal Detail Page --- */
.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 130px 0 80px;
    align-items: start;
}

.gallery-main {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
    margin-bottom: 15px;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .3s;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: .6;
    transition: var(--transition);
    flex-shrink: 0;
    border: 3px solid transparent;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-panel h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 12px;
}

.status-pill {
    display: inline-block;
    padding: 6px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 15px;
}

.status-available {
    background: #E8F5E9;
    color: var(--primary);
}

.status-reserved {
    background: #FFF8E1;
    color: #F57F17;
}

.status-sold {
    background: #FFEBEE;
    color: #c0392b;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 25px 0;
}

.spec-item {
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.spec-label {
    display: block;
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.spec-value {
    font-weight: 700;
    font-size: 1rem;
}

.animal-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 20px 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-row {
    display: flex;
    gap: 12px;
}

.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.share-bar span {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.share-btn {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.share-fb {
    background: #1877F2;
    color: white;
}

.share-tw {
    background: #1DA1F2;
    color: white;
}

.share-wa {
    background: #25D366;
    color: white;
}

.share-link {
    background: #f0f0f0;
    color: var(--text-dark);
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.health-callout {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-cream);
    border-radius: 16px;
}

.health-callout p {
    font-size: .88rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .details-container {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .action-row {
        flex-direction: column;
    }
}