/* =====================================================
   STIM Pet v3 - Styles
   ===================================================== */

/* Variables */
:root {
    --primary: #4a90a4;
    --primary-dark: #3a7a8e;
    --accent: #f39c12;
    --coral: #e74c3c;
    --success: #27ae60;
    --purple: #9b59b6;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-input: #0f3460;
    --text-primary: #f0f0f0;
    --text-secondary: #a0b4c0;
    --text-muted: #607080;
    --border: #2a3a5a;
    --header-height: 56px;
    --filter-height: 220px;
    --radius: 12px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
    overflow-x: hidden;
}

/* Paw pattern background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234a90a4' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='35' r='8'/%3E%3Ccircle cx='20' cy='25' r='4'/%3E%3Ccircle cx='40' cy='25' r='4'/%3E%3Ccircle cx='15' cy='35' r='3'/%3E%3Ccircle cx='45' cy='35' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* =====================================================
   HEADER - Fixed
   ===================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 3px solid var(--primary);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    color: var(--text-primary);
}

.logo-text span { color: var(--primary); }

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pet-mood {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
}

.pet-mood:hover { transform: scale(1.15) rotate(5deg); }
.pet-mood.happy { animation: wiggle 0.5s ease; }
.pet-mood.excited { animation: bounce 0.5s ease; }

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.header-btn {
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* =====================================================
   FILTER BAR - Collapsible
   ===================================================== */
.filter-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #2d5a6a 100%);
    padding: 16px;
    z-index: 90;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.filter-bar.collapsed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.filter-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Action Toolbar */
.action-toolbar {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.tool-btn.listening {
    background: var(--coral);
    border-color: var(--coral);
    animation: pulse-btn 1s infinite;
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Search Row */
.search-row {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { outline: none; border-color: var(--accent); }

.search-btn {
    background: linear-gradient(135deg, var(--accent), #d68910);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

/* Quick Chips */
.quick-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.quick-chips::-webkit-scrollbar { display: none; }

.quick-chip {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.quick-chip:hover, .quick-chip.active {
    background: white;
    color: var(--primary-dark);
}

/* Voice Status */
.voice-status {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--coral);
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 8px;
}

.voice-status.active { display: flex; }

.pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* =====================================================
   MINI HEADER - Shows when filter bar is hidden
   ===================================================== */
.mini-header {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 89;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mini-header.visible {
    transform: translateY(0);
    opacity: 1;
}

.mini-logo {
    font-size: 24px;
    cursor: pointer;
}

.mini-search {
    flex: 1;
    margin: 0 12px;
    padding: 8px 14px;
    background: var(--bg-input);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.mini-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
}

/* Track Button */
.result-buttons {
    display: flex;
    gap: 6px;
}

.track-btn {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
}

.track-btn:hover {
    background: rgba(16, 185, 129, 0.25) !important;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    padding-top: calc(var(--header-height) + var(--filter-height) + 32px);
    transition: padding-top 0.3s ease;
}

body.scrolled main {
    padding-top: calc(var(--header-height) + 66px);
}

/* Pet Profile Card */
#petProfileMini { margin-bottom: 16px; }

.pet-card {
    background: linear-gradient(135deg, var(--primary), #2d5a6a);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pet-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.pet-info { flex: 1; }
.pet-info h3 { font-family: 'Fredoka One', cursive; font-size: 18px; }
.pet-info p { font-size: 13px; opacity: 0.9; }

.pet-edit {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.add-pet-cta {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.add-pet-cta h3 { font-size: 16px; margin-bottom: 4px; }
.add-pet-cta p { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }

.add-pet-btn {
    background: linear-gradient(135deg, var(--accent), #d68910);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

/* Results Header */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.results-title {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-count {
    color: var(--text-muted);
    font-size: 13px;
}

.view-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

/* Results Container */
.results-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 12px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.results-grid.list-view {
    grid-template-columns: 1fr;
}

/* Result Card */
.result-card {
    background: var(--bg-input);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.result-card.hot-deal {
    border-color: var(--coral);
    animation: hot-pulse 2s infinite;
}

@keyframes hot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
}

.results-grid.list-view .result-card {
    flex-direction: row;
}

.result-image {
    height: 140px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.result-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.results-grid.list-view .result-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.result-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

.badge.best { background: var(--success); color: white; }
.badge.top { background: var(--accent); color: white; }
.badge.ship { background: var(--primary); color: white; }
.badge.hot { background: var(--coral); color: white; animation: pulse-badge 1s infinite; }

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.result-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.result-price {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    color: var(--success);
}

.result-condition {
    font-size: 11px;
    color: var(--text-muted);
}

.result-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.result-buttons {
    display: flex;
    gap: 6px;
}

.track-btn {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
}

.track-btn:hover {
    background: rgba(16, 185, 129, 0.35) !important;
}

/* Welcome State */
.welcome-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}

.welcome-state h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 22px;
    margin-bottom: 8px;
}

.welcome-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.welcome-buttons button {
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.welcome-buttons button:hover {
    border-color: var(--primary);
    background: var(--primary);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

.empty-state h3 { margin: 12px 0 8px; }
.empty-state p { color: var(--text-secondary); }

/* Other Retailers */
.other-retailers {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
}

.other-retailers h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

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

.retailer-btn {
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

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

/* =====================================================
   BREED SECTION
   ===================================================== */
.breed-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.breed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.breed-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
}

.breed-controls {
    display: flex;
    gap: 8px;
}

.breed-controls input,
.breed-controls select {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
}

.breed-controls input { width: 150px; }

.breed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.breed-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.breed-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.breed-card .emoji { font-size: 32px; }
.breed-card .name { font-weight: 700; font-size: 13px; margin: 6px 0 2px; }
.breed-card .meta { font-size: 11px; color: var(--text-muted); }

/* =====================================================
   BOTTOM NAV
   ===================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    transition: color 0.2s;
}

.nav-item.active { color: var(--primary); }
.nav-item span { font-size: 20px; margin-bottom: 2px; }

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal.modal-full {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
}

.modal.modal-sm { max-width: 320px; }

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-card);
}

.modal-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
}

.close-btn {
    background: var(--bg-input);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

.modal-body { padding: 16px; }

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
}

/* Forms */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hidden { display: none !important; }

.text-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

/* Buttons */
.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--accent), #d68910);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.btn-secondary {
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-danger {
    width: 100%;
    background: transparent;
    border: 2px solid var(--coral);
    color: var(--coral);
    padding: 12px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    margin: 0 16px 16px;
}

/* Filter Modal */
.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--primary);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.pill.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Share Modal */
.share-url-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.share-url-row input {
    flex: 1;
    padding: 10px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 12px;
}

.share-url-row button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius);
    cursor: pointer;
}

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

.share-grid button {
    background: var(--bg-input);
    border: 2px solid var(--border);
    font-size: 24px;
    padding: 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.share-grid button:hover {
    border-color: var(--primary);
}

/* Scanner */
#scanner-container {
    width: 100%;
    min-height: 250px;
    background: var(--bg-input);
    border-radius: var(--radius);
}

.hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 12px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 2px solid var(--primary);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .filter-row { flex-direction: column; }
    .filter-select { min-width: 100%; }
    .results-grid { grid-template-columns: 1fr; }
    .retailer-grid { grid-template-columns: repeat(2, 1fr); }
    .breed-grid { grid-template-columns: repeat(2, 1fr); }
    .breed-controls { width: 100%; flex-direction: column; }
    .breed-controls input { width: 100%; }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
    grid-column: 1 / -1;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--bg-card);
    border-top: 3px solid var(--primary);
    padding: 40px 16px 100px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 30px;
}

.footer-brand .footer-logo {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand .footer-logo span {
    color: var(--primary);
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.affiliate-disclosure {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.footer-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--primary);
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
