/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: 
        radial-gradient(ellipse 120% 80% at bottom, #fff8f5 0%, #fff0e6 20%, #ffe8d6 40%, #f8f9fa 60%, #ffffff 85%, #ffffff 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pawprints" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><image href="images/PetHelpr_favicon.png" x="20" y="30" width="15" height="15" opacity="0.08" transform="rotate(15 27.5 37.5)"/><image href="images/PetHelpr_favicon.png" x="80" y="60" width="12" height="12" opacity="0.06" transform="rotate(-20 86 66)"/><image href="images/PetHelpr_favicon.png" x="150" y="40" width="18" height="18" opacity="0.05" transform="rotate(45 159 49)"/><image href="images/PetHelpr_favicon.png" x="40" y="120" width="14" height="14" opacity="0.07" transform="rotate(-30 47 127)"/><image href="images/PetHelpr_favicon.png" x="120" y="140" width="16" height="16" opacity="0.04" transform="rotate(60 128 148)"/><image href="images/PetHelpr_favicon.png" x="60" y="180" width="13" height="13" opacity="0.06" transform="rotate(-45 66.5 186.5)"/></pattern></defs><rect width="100" height="100" fill="url(%23pawprints)"/></svg>');
    min-height: 100vh;
}

/* Playful font for branding */
.logo-text, .brand-name {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

/* Mobile header layout - hamburger on left */
@media (max-width: 768px) {
    .header {
        display: flex;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    
    .header .logo {
        order: 2;
        flex: 1;
        justify-content: flex-start;
        margin-left: 1rem;
    }
    
    /* Make header logo larger on mobile since it's the primary branding */
    .logo-image {
        height: 40px;
    }
    
    .hamburger-menu {
        order: 1;
        margin-right: 1rem;
    }
    
    .user-icon {
        order: 3;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
}

.user-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-icon:hover {
    background: #e9e9e9;
    color: #333;
}

/* Profile Slideover Styles */
.profile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.profile-popover {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    border-left: 1px solid #e9ecef;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.profile-popover.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    display: block !important;
}

.profile-popover-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.profile-popover-content > *:not(.profile-popover-header):not(.profile-logout) {
    padding: 0 2rem;
}

.profile-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.profile-popover-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.profile-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.profile-close-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Coming Soon Banner */
.profile-coming-soon-banner {
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 32px;
    background: #ffb366;
    transform: rotate(-15deg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.coming-soon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.coming-soon-content i {
    font-size: 0.9rem;
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 3.5rem 2rem;
}

.profile-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.profile-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    display: block;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.profile-name span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.edit-profile-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.edit-profile-btn:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.profile-email {
    color: #6c757d;
    font-size: 0.875rem;
}

.profile-saves {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.profile-section-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.profile-search-history,
.profile-saved-products {
    margin-bottom: 1.5rem;
}

.profile-search-history {
    margin-top: 1rem;
}

.profile-saved-products:last-child {
    margin-bottom: 0;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.no-items {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.profile-expand-btn {
    background: none;
    border: none;
    color: #6c757d;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    border-radius: 4px;
}

.profile-section-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    border-radius: 4px;
}

.profile-section-link:hover {
    color: #ff6b35;
    padding: 0.25rem 0.5rem;
}

.profile-section-icon {
    color: #ff6b35;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.profile-expand-icon {
    color: #6c757d;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.profile-section-link:hover .profile-expand-icon {
    color: #ff6b35;
}

/* Disabled section links - pages not ready yet */
.profile-section-link.disabled {
    color: #95a5a6;
    cursor: not-allowed;
}

.profile-section-link.disabled:hover {
    color: #7f8c8d;
    padding: 0.25rem 0.5rem;
}

.profile-section-link.disabled .profile-section-icon {
    color: #bdc3c7;
}

.profile-section-link.disabled:hover .profile-section-icon {
    color: #95a5a6;
}

.profile-section-link.disabled .profile-expand-icon {
    color: #bdc3c7;
}

.profile-section-link.disabled:hover .profile-expand-icon {
    color: #95a5a6;
}

.saves-expand-btn:hover {
    color: #ff6b35;
    background: #fff7f0;
}

.saves-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.no-items {
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
    padding: 0.5rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 6px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-item:hover {
    transform: translateX(4px);
}

.profile-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    font-size: 0.875rem;
    font-weight: 900;
}

.profile-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    transition: all 0.2s ease;
}

.profile-item-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
    min-width: 0;
}

.profile-item-title-link:hover {
    text-decoration: none;
    color: inherit;
}

.profile-item-title-link:hover .profile-item-title {
    color: #e67e22;
    text-decoration: underline;
}

.profile-item:hover .profile-item-title {
    color: #ff6b35;
}

.profile-item-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Card Header with Save Button */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.save-toggle-btn {
    background: none;
    border: none;
    color: #6c757d;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.save-toggle-btn:hover {
    color: #ff6b35;
    background: #fff7f0;
}

.save-toggle-btn.saved {
    background: none;
    color: #ff6b35;
}

.save-toggle-btn.saved i {
    font-weight: 900; /* Makes the bookmark filled/solid */
}

.save-toggle-btn.saved:hover {
    background: #fff7f0;
    color: #e55a2b;
}

/* Logout Button Styles */
.profile-logout {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    flex-shrink: 0;
}

.logout-btn {
    width: 100%;
    background: none;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    color: #ff6b35;
}

.logout-btn i {
    font-size: 0.875rem;
}

/* Beta Banner Styles */
.beta-banner {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    position: relative;
    z-index: 1000;
    display: none; /* Hidden by default, shown via JavaScript */
}

.beta-banner-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.beta-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.beta-pill {
    background: #FFF7F0;
    border: 1px solid #FED7AA;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ff6b35;
    white-space: nowrap;
    flex-shrink: 0;
}

.beta-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
    text-align: center;
}

.beta-dismiss {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.beta-dismiss:hover {
    background: #F3F4F6;
    color: #374151;
}

.beta-dismiss:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(0);
}

.back-to-top-btn:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Header Navigation - No longer used as separate container */

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    transform: translateY(2px);
}

.nav-link:hover {
    color: #ff6b35;
    transform: translateY(1px);
}

.nav-link.active {
    color: #ff6b35;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b35;
    border-radius: 1px;
}

/* Logo Image Styles */
.logo-image, .main-logo-image, .footer-logo-image {
    display: block;
    flex-shrink: 0;
}

/* About Page Styles */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: 'Nunito', 'Inter', sans-serif;
}


.about-content-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 800px;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.content-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: #666;
}

.content-placeholder i {
    font-size: 3rem;
    color: #ff6b35;
    opacity: 0.7;
}

.content-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.content-placeholder p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0;
}

/* About Page Content Styles */
.about-content {
    text-align: left;
    max-width: none;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Nunito', 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url('images/PetHelpr_favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    opacity: 0.8;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
    font-family: 'Nunito', 'Inter', sans-serif;
}

.section-text.emphasis {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ff8c00;
    text-align: center;
    margin-top: 1.5rem;
}

.difference-list {
    margin: 1.5rem 0;
}

.difference-item {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-left: 1rem;
}

.difference-icon {
    color: #ff6b35;
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    -webkit-text-stroke: 1.5px #ff6b35;
    -webkit-text-fill-color: white;
}

.difference-content {
    flex: 1;
}


.difference-item:last-child {
    margin-bottom: 0;
}

.difference-item strong {
    color: #333;
    font-weight: 600;
}

/* Mascot Photo Styling for About Page */
.mascot-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.mascot-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 200px;
    max-height: 350px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
}

.mascot-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Hover effect for interactive logos */
.footer-logo-image:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 2rem;
    gap: 2rem;
}

.hero-section {
    text-align: center;
    max-width: 600px;
}

.main-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.25rem;
}

.main-logo-image {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    animation: gentle-bounce 3s ease-in-out infinite;
}

.footer-logo-image {
    height: 20px;
    width: auto;
    display: block;
    object-fit: contain;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff8c00;
    margin-bottom: 0;
    text-align: center;
    min-height: 1.5em; /* Prevent layout shift during typing */
    display: inline-block;
}

/* Input Card */
.input-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
    border: 1px solid #f0f0f0;
}

/* Input Card States */
.input-card-initial {
    display: block;
}

.input-card-display {
    display: block;
}

.prompt-display {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e9e9e9;
}

.prompt-content {
    flex: 1;
}

.displayed-prompt {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edit-prompt-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.edit-prompt-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.edit-prompt-btn:active {
    transform: translateY(0);
}

.edit-prompt-btn i {
    font-size: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: 1.5em; /* Prevent layout shift during typing */
    display: block;
    width: 100%;
}

.card-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.problem-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group {
    position: relative;
}

#problemInput {
    width: 100%;
    min-height: 120px;
    padding: 1.25rem;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafafa;
}

#problemInput:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#problemInput::placeholder {
    color: #999;
    font-style: normal;
    font-family: 'Nunito', inherit;
    font-size: 0.9375rem;
}

.character-count {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.875rem;
    color: #999;
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.pet-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field label {
    font-weight: 500;
    color: #333;
    font-size: 0.875rem;
}

.input-field select {
    padding: 0.875rem;
    border: 2px solid #e9e9e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Nunito', inherit;
    background: white;
    transition: all 0.3s ease;
}

.input-field select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Nunito', inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1rem;
}

/* Beta Signup Form */
.beta-signup-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.beta-signup-content {
    text-align: center;
}

.beta-signup-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.beta-signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.beta-signup-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.beta-signup-input-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Nunito', inherit;
    background: #fafafa;
    transition: all 0.3s ease;
}

.beta-signup-input-group input:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.beta-signup-input-group input::placeholder {
    color: #999;
    font-style: normal;
}

.beta-signup-btn {
    background: #f7931e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Nunito', inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.beta-signup-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.beta-signup-btn:active {
    transform: translateY(0);
}

.beta-signup-error {
    color: #e74c3c;
    font-size: 0.875rem;
    text-align: left;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.beta-signup-error::before {
    content: "⚠";
    font-size: 0.875rem;
}

.beta-signup-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.beta-signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.beta-signup-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success State */
.beta-signup-success {
    text-align: center;
    padding: 1rem 0;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.5rem;
    font-family: 'Nunito', 'Inter', sans-serif;
}

.success-message {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem;
}

.cat-kneading-animation {
    margin: 0 auto 1rem;
    text-align: center;
}

.cat-gif {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.loading-text {
    color: #666;
    font-size: 1.1rem;
}

/* Results Section */
.results-section {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.advice-card, .products-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.advice-title, .products-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.advice-title i, .products-title i {
    color: #ff6b35;
    font-size: 1.1rem;
}

.advice-content, .products-content {
    line-height: 1.7;
    color: #444;
}

.advice-content h4 {
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.favicon-divider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem auto;
    padding: 0.5rem 0;
    width: 75%;
}

.favicon-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.favicon-icon:nth-child(1) { transform: rotate(0deg); }
.favicon-icon:nth-child(2) { transform: rotate(60deg); }
.favicon-icon:nth-child(3) { transform: rotate(120deg); }
.favicon-icon:nth-child(4) { transform: rotate(180deg); }
.favicon-icon:nth-child(5) { transform: rotate(240deg); }
.favicon-icon:nth-child(6) { transform: rotate(300deg); }

.favicon-icon:hover {
    opacity: 0.8;
    transform: scale(1.1) !important;
}

/* Inline layout for advice content with text wrapping around photo */
.advice-content-layout {
    margin: 1rem 0;
    overflow: hidden; /* Clear floats */
}

.pet-photo-container {
    float: left;
    width: 35%;
    margin-right: 2rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.key-takeaway-content {
    padding: 0;
}


.pet-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
}

.pet-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.photo-caption {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    text-align: center;
    max-width: 350px;
    line-height: 1.4;
}

.photo-credit {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    font-style: normal;
    opacity: 0.8;
}

.photo-credit a {
    color: #999;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.photo-credit a:hover {
    color: #666;
}

.advice-content ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.advice-content li {
    margin-bottom: 0.5rem;
}

/* Watchouts list styling to match suggestions indentation */
.watchouts-list {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.watchouts-list li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 3rem;
    line-height: 1.4;
}

.watchouts-list li::before {
    content: "⚠";
    position: absolute;
    left: 0.9rem;
    top: 0.1rem;
    color: #ff6b35;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.advice-content ol {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
    counter-reset: step-counter;
}

.advice-content ol li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 3rem;
    white-space: pre-line;
    line-height: 1.4;
    counter-increment: step-counter;
}

.advice-content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0.5rem;
    top: 0.1rem;
    color: #ff6b35;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    background: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



.advice-content ol li strong {
    display: block;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}



/* Star Rating Styles */
.star-container {
    position: relative;
    display: inline-block;
    margin-right: 2px;
}

.star-empty {
    color: #e5e7eb;
    font-size: 1rem;
}

.star-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #fbbf24;
    font-size: 1rem;
}

/* Products Section Photo */
.products-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0 0.5rem 0;
    padding: 0;
}

.products-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
}

.products-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.products-photo-credit {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    font-style: normal;
    opacity: 0.8;
}

.products-photo-credit a {
    color: #999;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.products-photo-credit a:hover {
    color: #666;
}

/* Products Disclaimer */
.products-disclaimer {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.products-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
    font-style: normal;
}

/* See More Products Button */
.see-more-products-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem 0;
}

.see-more-products-btn {
    background: none;
    color: #ff6b35;
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nunito', 'Inter', sans-serif;
    cursor: pointer;
    transform: translateY(2px);
}

.see-more-products-btn:hover {
    color: #ff6b35;
    transform: translateY(1px);
}

.see-more-products-btn:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b35;
    border-radius: 1px;
}

.see-more-products-btn:active {
    color: #ff6b35;
}

.see-more-products-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    transform: translateY(2px);
}

.see-more-products-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.see-more-products-btn:hover i {
    transform: translateY(1px);
}

/* New 3-Column Product Card Layout */
.product-card {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-header {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-name-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.3;
    flex: 1;
}

.product-name-link:hover {
    color: #ff6b35;
    text-decoration: underline;
}

.product-save-btn {
    background: none;
    border: none;
    color: #6c757d;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.product-save-btn:hover {
    color: #ff6b35;
    background: #fff7f0;
}

.product-save-btn.saved {
    background: none;
    color: #ff6b35;
}

.product-save-btn.saved:hover {
    background: #fff7f0;
    color: #e55a2b;
}

.product-save-btn.saved i {
    font-weight: 900; /* Makes the bookmark filled/solid */
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    width: 200px;
    height: 200px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    aspect-ratio: 1;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-image-link:hover {
    transform: scale(1.02);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.recommendation-section {
    padding: 0.5rem 0;
}

.recommendation-section h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.recommendation-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-bullets li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.recommendation-bullets li:last-child {
    border-bottom: none;
}

.recommendation-bullets li:before {
    content: "•";
    color: #ff6b35;
    font-weight: bold;
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    line-height: 1;
}

.listing-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.retailer-button {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.retailer-button:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.product-price-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0.25rem;
    margin-bottom: 0;
    display: inline-block;
}

.product-price-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.product-rating-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0.25rem;
    margin-bottom: 0;
}

.product-rating-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Endorsements Section */
.endorsements-section {
    grid-column: 1 / -1;
    margin: 1rem 0;
    padding: 0;
}

.endorsements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 100%;
}

.endorsement-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    text-align: center;
}

.endorsement-checkmark {
    color: #ff6b35;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem; /* Middle-align with first line of text */
}

.endorsement-text {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    word-wrap: break-word;
    text-align: left;
}

/* Responsive Design for Product Cards */
@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "image"
            "listing"
            "recommendations";
        gap: 1rem;
        padding: 1rem;
    }
    
    .product-header {
        grid-area: header;
        margin-bottom: 0.5rem;
    }
    
    .product-image {
        grid-area: image;
        width: 80%;
        aspect-ratio: 1;
        margin: 0 auto;
        padding: 0.75rem;
        background: white;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-image-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .product-image-link:hover {
        transform: scale(1.02);
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 4px;
    }
    
    .listing-section {
        grid-area: listing;
        margin-bottom: 1rem;
    }
    
    .recommendation-section {
        grid-area: recommendations;
        grid-column: 1 / -1;
    }
    
    .recommendation-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .recommendation-bullets li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        padding-left: 1.5rem;
    }
    
    .recommendation-bullets li:before {
        left: 0.25rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .endorsements-section {
        grid-column: 1 / -1;
    }
    
    .endorsements-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .endorsement-item {
        padding: 0.2rem 0;
        justify-content: flex-start;
    }
    
    .endorsement-text {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .product-rating {
        font-size: 0.8rem;
    }
}

/* Legacy product-item styles for backward compatibility */
.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.product-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.product-icon {
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.product-info h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.product-info p {
    color: #666;
    font-size: 0.9rem;
}

.new-problem-btn {
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.new-problem-btn:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

/* Homepage Blurb */
.homepage-blurb {
    background: transparent;
    padding: 2rem 2rem 1rem 2rem;
    margin-top: auto;
}

.blurb-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.blurb-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    font-weight: 400;
    margin: 0;
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Footer */
.footer {
    background: transparent;
    border-top: 1px solid rgba(240, 240, 240, 0.3);
    padding: 2rem;
    margin-top: auto;
}

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

.disclaimer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.75rem;
    max-width: 800px;
}

.disclaimer i {
    color: #ff6b35;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

.footer-links .separator {
    color: #999;
}

.footer-copyright {
    color: #666;
}

.form-consent-text {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.form-consent-text a {
    color: #6c757d;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.form-consent-text a:hover {
    color: #ff6b35;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    height: 2px;
    background: #666;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

.hamburger-menu span:nth-child(1) {
    width: 20px;
}

.hamburger-menu span:nth-child(2) {
    width: 14px;
}

.hamburger-menu span:nth-child(3) {
    width: 8px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-3px, 4px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-3px, -4px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-nav-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 400px;
    background: white;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
}

.mobile-nav-overlay.visible .mobile-nav-content {
    transform: translateY(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.mobile-nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-nav-close:hover {
    background: #e9ecef;
    color: #333;
}

.mobile-nav-logo {
    height: 30px;
    width: auto;
}

.mobile-nav-user-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 3;
}

.mobile-nav-user-icon:hover {
    background: #e9e9e9;
    color: #333;
}


.mobile-nav-links {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Adjust logo spacing on mobile */
    .logo {
        gap: 1rem;
    }
    
    .profile-popover {
        width: 100vw;
        border-radius: 0;
    }
    
    .profile-popover-content {
        border-radius: 0;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    /* Hide the main logo on mobile - header logo is sufficient */
    .main-logo {
        display: none;
    }
    
    /* Adjust hero section spacing since main logo is hidden */
    .hero-section {
        margin-top: 1rem;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .input-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .beta-signup-card {
        padding: 1.25rem 1rem;
        max-width: 100%;
    }
    
    .beta-signup-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .beta-signup-btn {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .disclaimer {
        max-width: none;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .beta-banner-content {
        gap: 0.5rem;
    }
    
    .beta-text {
        font-size: 0.8rem;
    }
    
    .homepage-blurb {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .blurb-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2rem;
    }
    
    .input-card {
        padding: 1.5rem 1rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .homepage-blurb {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    
    .blurb-content p {
        font-size: 0.9rem;
    }
    
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    
    .about-content-card {
        padding: 2rem 1.5rem;
    }
    
    .content-placeholder i {
        font-size: 2.5rem;
    }
    
    .content-placeholder h3 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-text {
        font-size: 0.95rem;
    }
    
    .difference-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .difference-icon {
        font-size: 1.1rem;
    }
    
    .section-text.emphasis {
        font-size: 1rem;
    }
    
    .beta-banner-container {
        padding: 0 1rem;
        height: 40px;
    }
    
    .beta-banner-content {
        gap: 0.375rem;
    }
    
    .beta-pill {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
    
    .beta-text {
        font-size: 0.75rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .input-card, .advice-card, .products-card {
        border: 2px solid #333;
    }
    
    .submit-btn {
        background: #333;
        border: 2px solid #333;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Feedback System Styles */
.feedback-card {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 0 0 0;
    margin: 1.5rem 0 0 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid #f0f0f0;
}

.feedback-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feedback-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.feedback-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.feedback-buttons {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-left: 1rem;
}

.feedback-btn {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0.25rem;
    position: relative;
}

.feedback-btn i {
    -webkit-text-stroke: 1px #d1d5db;
    color: #d1d5db;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.2));
}

.feedback-btn:active {
    transform: translateY(0);
}

.feedback-btn.selected i {
    -webkit-text-stroke: 1px #ff6b35 !important;
    color: #ff6b35 !important;
    font-weight: 900;
}

.feedback-btn:not(.selected) i {
    -webkit-text-stroke: 1px #d1d5db;
    color: #d1d5db;
}

.feedback-btn:not(.selected):hover i {
    -webkit-text-stroke: 1px #ff6b35;
    color: #ff6b35;
}

.feedback-reason {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e9e9e9;
}

.feedback-reason label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.feedback-reason textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.feedback-reason textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.feedback-reason-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.submit-reason-btn,
.cancel-reason-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-reason-btn {
    background: #ff6b35;
    color: white;
}

.submit-reason-btn:hover {
    background: #e55a2b;
}

.cancel-reason-btn {
    background: #6c757d;
    color: white;
}

.cancel-reason-btn:hover {
    background: #5a6268;
}

.feedback-confirmation {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-top: 1rem;
    animation: slideIn 0.3s ease-out;
}

.feedback-confirmation i {
    color: #28a745;
    font-size: 1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for feedback */
@media (max-width: 768px) {
    .feedback-card {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .feedback-container {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .feedback-question {
        font-size: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .feedback-buttons {
        margin-left: 1rem;
        gap: 0.75rem;
        align-items: center;
    }
    
    .feedback-btn {
        font-size: 1.25rem;
    }
    
    .feedback-btn i {
        -webkit-text-stroke: 1px #d1d5db;
        color: #d1d5db;
    }
    
    .feedback-btn:not(.selected) i {
        -webkit-text-stroke: 1px #d1d5db;
        color: #d1d5db;
    }
    
    .feedback-reason {
        padding: 1rem;
    }
    
    .favicon-divider {
        margin: 1.5rem 0;
        justify-content: space-around;
        width: 100%;
        display: flex;
    }
    
    .favicon-icon {
        width: 18px;
        height: 18px;
    }
    
    .advice-content-layout {
        margin: 1rem 0;
    }
    
    .pet-photo-container {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        padding: 0;
    }
    
    .advice-content ol li {
        padding-left: 0;
        margin-left: 0;
    }
    
    .advice-content ol li::before {
        left: 0;
        top: 0;
    }
    
    .advice-content ol li strong {
        margin-left: 1rem;
        display: block;
    }
    
    .watchouts-list li {
        padding-left: 1.75rem;
        margin-left: 0;
    }
    
    .watchouts-list li::before {
        left: 0;
        top: 0.1rem;
    }
    
    .feedback-container {
        margin-left: 0;
    }
    
    .feedback-question {
        margin-left: 0;
    }
    
    .pet-photo {
        max-width: 100%;
        height: auto;
        min-height: 200px;
        max-height: none; /* Remove height constraint */
        object-fit: contain; /* Show full image instead of cropping */
        object-position: center;
    }
    
    /* For very tall portrait images, limit width and height for better balance */
    .pet-photo[data-orientation="portrait"] {
        max-width: 60%;
        max-height: 300px;
        margin: 0 auto;
    }
    
    /* Products photo mobile styling */
    .products-photo {
        max-width: 100%;
        height: auto;
        min-height: 200px;
        max-height: none; /* Remove height constraint */
        object-fit: contain; /* Show full image instead of cropping */
        object-position: center;
    }
    
    /* For very tall portrait images in products section, limit width and height for better balance */
    .products-photo[data-orientation="portrait"] {
        max-width: 60%;
        max-height: 300px;
        margin: 0 auto;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .pet-photo[data-orientation="portrait"] {
        max-width: 55%;
        max-height: 250px;
    }
    
    .products-photo[data-orientation="portrait"] {
        max-width: 55%;
        max-height: 250px;
    }
    .feedback-reason-actions {
        flex-direction: column;
    }
    
    .submit-reason-btn,
    .cancel-reason-btn {
        width: 100%;
    }
}

/* Medical Response Styling - Removed aggressive styling */

.medical-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #856404;
}

.medical-note i {
    color: #f39c12;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.safety-notice {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #0c5460;
}

.safety-notice i {
    color: #17a2b8;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Professional guidance styling removed */

/* Emergency and urgent response styling removed - using gentle approach */

/* Mobile responsiveness for medical responses */
@media (max-width: 768px) {
    .medical-note,
    .safety-notice {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .medical-note i,
    .safety-notice i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .medical-note,
    .safety-notice {
        padding: 0.5rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
    }
    
    .medical-note i,
    .safety-notice i {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
}

/* AI Disclaimer Pop-up Styles */
.ai-disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-disclaimer-modal.hidden {
    display: none;
}

.ai-disclaimer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.ai-disclaimer-popup {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 625px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ai-disclaimer-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    font-family: 'Nunito', sans-serif;
    text-align: left;
}

.ai-disclaimer-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.ai-disclaimer-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.5rem 0;
    gap: 0.75rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-disclaimer-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ff6b35;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    appearance: none;
    position: relative;
    flex-shrink: 0;
}

.ai-disclaimer-checkbox:checked {
    background: #ff6b35;
    border-color: #ff6b35;
}

.ai-disclaimer-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-radius: 1px;
}

.ai-disclaimer-checkbox-label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.ai-disclaimer-button {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Nunito', sans-serif;
    outline: none;
    box-shadow: none;
}

.ai-disclaimer-button:hover {
    background: #e55a2b;
}

.ai-disclaimer-button:active {
    background: #d14e25;
}

.ai-disclaimer-button:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Mobile responsiveness for disclaimer popup */
@media (max-width: 768px) {
    .ai-disclaimer-popup {
        padding: 1.5rem;
        margin: 1rem;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .ai-disclaimer-title {
        font-size: 1.25rem;
    }
    
    .ai-disclaimer-text {
        font-size: 0.9rem;
    }
    
    .ai-disclaimer-checkbox-container {
        gap: 0.5rem;
    }
    
    .ai-disclaimer-checkbox {
        width: 16px;
        height: 16px;
    }
    
    .ai-disclaimer-checkbox-label {
        font-size: 0.85rem;
    }
    
    .ai-disclaimer-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        width: auto;
        min-width: fit-content;
    }
}

/* Error State Styles */
.error-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff8f5;
    border: 2px solid #ff6b35;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.error-icon {
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: #d14e25;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-state p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-suggestions {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid #f0f0f0;
}

.error-suggestions h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    color: #666;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.error-suggestions li:before {
    content: "•";
    color: #ff6b35;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.retry-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.retry-btn:active {
    background: #d14e25;
    transform: translateY(0);
}

.retry-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Mobile responsive error state */
@media (max-width: 768px) {
    .error-state {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .error-icon {
        font-size: 2.5rem;
    }
    
    .error-state h3 {
        font-size: 1.3rem;
    }
    
    .error-state p {
        font-size: 1rem;
    }
    
    .error-suggestions {
        padding: 1rem;
    }
    
    .retry-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Mobile Footer Layout */
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .disclaimer {
        font-size: 0.7rem;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-copyright {
        display: inline;
        margin-bottom: 0;
    }
    
    .footer-links .separator {
        display: inline;
    }
}

/* Loading dots animation for "See More Products" button */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

/* Async Product Loading Styles */
.products-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #666;
}

.products-loading .loading-spinner {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.products-loading p {
    font-size: 1.1rem;
    font-weight: 500;
}

.products-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    margin: 1rem 0;
}

.products-error i {
    font-size: 2rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.products-error p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.retry-btn:active {
    transform: translateY(0);
}
/* Cache bust 1761335658 */
