:root {
    /* Calming eco-conscious palette */
    --color-sage: #87a878;
    --color-sage-light: #a8c49a;
    --color-sage-dark: #6b8f5c;
    --color-forest: #2c4a3e;
    --color-moss: #4a6741;
    --color-sand: #f5f2eb;
    --color-cream: #fdfcfa;
    --color-stone: #e8e4dc;
    --color-bark: #5c4d3c;
    --color-text: #3d3d3d;
    --color-text-light: #6b6b6b;
    --color-text-muted: #9a9a9a;
    --color-white: #ffffff;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(44, 74, 62, 0.04);
    --shadow-sm: 0 2px 4px rgba(44, 74, 62, 0.06);
    --shadow-md: 0 4px 12px rgba(44, 74, 62, 0.08);
    --shadow-lg: 0 8px 24px rgba(44, 74, 62, 0.12);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-sand);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-moss) 0%, var(--color-sage-dark) 100%);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
}

.logo-image {
    height: 32px;
    width: auto;
}

/* Search */
.search-wrapper {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    padding-left: 3rem;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    outline: none;
    transition: all var(--transition-fast);
}

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

.search-input:focus {
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.search-wrapper::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239a9a9a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 50;
}

.search-dropdown {
    list-style: none;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-stone);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.search-result-item:hover,
.search-result-item:active {
    background-color: var(--color-sand);
}

.search-result-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--color-stone);
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.search-result-name {
    font-weight: 500;
    font-size: 0.9375rem;
}

.search-result-brand {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.search-no-results {
    padding: 1.25rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-light);
    text-align: center;
    font-size: 0.9375rem;
}

/* Main */
.main {
    flex: 1;
    padding: 3rem 0;
}

/* Product Page Layout */
.product-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.sidebar {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 6rem;
    border: 1px solid var(--color-stone);
}

.sidebar h2 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.sidebar h2:not(:first-child) {
    margin-top: 1.5rem;
}

.dietary-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.625rem 1rem;
    background: var(--color-sand);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.filter-toggle:hover {
    background: var(--color-stone);
}

.filter-toggle input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--color-sage);
    cursor: pointer;
}

.filter-toggle .filter-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

.tag-filters {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tag-group {
    margin-top: 1.5rem;
}

.tag-group h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tag-link {
    display: block;
    padding: 0.625rem 1rem;
    text-decoration: none;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    font-weight: 450;
    -webkit-tap-highlight-color: transparent;
}

.tag-link:hover,
.tag-link:active {
    background-color: var(--color-sand);
    color: var(--color-moss);
}

.tag-link.active {
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    color: var(--color-white);
}

/* Product Section */
.product-section {
    min-width: 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-forest);
    letter-spacing: -0.02em;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    min-height: 300px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-stone);
    -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-sage-light);
}

.product-card:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.product-card-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-stone) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.no-image-placeholder {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.product-card-content {
    padding: 0.75rem 1rem 1rem;
}

.product-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    color: var(--color-text);
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.product-card-brand {
    color: var(--color-sage-dark);
    font-weight: 500;
}

.product-card-size {
    color: var(--color-text-light);
}

.product-card-badges {
    display: flex;
    gap: 0.25rem;
}

.gf-badge {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    background: var(--color-sage);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.po-badge {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    background: #a08060;
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

/* Load More */
.load-more {
    margin-top: 3rem;
    text-align: center;
}

.load-more-btn {
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-stone);
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: var(--color-sage);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(.disabled) {
    background: var(--color-sage-dark);
    transform: translateY(-1px);
}

.pagination-btn.disabled {
    background: var(--color-stone);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Product Detail */
.product-detail {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-stone);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--color-sand);
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
}

.product-thumbnail {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.product-thumbnail:hover {
    opacity: 1;
    border-color: var(--color-sage);
}

.no-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-stone) 100%);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-forest);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.125rem;
    margin-bottom: 0.5rem;
}

.product-volume {
    font-size: 0.875rem;
    color: var(--color-forest);
    font-weight: 500;
}

.product-brand {
    font-size: 0.875rem;
    color: var(--color-sage-dark);
    font-weight: 500;
}

.meta-separator {
    color: var(--color-sage-dark);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--color-sand);
    color: var(--color-moss);
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-stone);
}

.tag:hover {
    background-color: var(--color-sage-light);
    color: var(--color-white);
    border-color: var(--color-sage-light);
}

.tag-gluten-free {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.tag-gluten-free:hover {
    background: #fcd34d;
    color: #78350f;
    border-color: #f59e0b;
}

.product-detail .product-section {
    border-top: 1px solid var(--color-stone);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.product-detail .product-section h2 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.product-detail .product-section p {
    color: var(--color-text-light);
    line-height: 1.8;
}

.ingredients-text {
    font-size: 0.9375rem;
}

.allergen-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.allergen-item {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #fef3e2 0%, #fdecd2 100%);
    color: var(--color-bark);
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Sold By Section */
.sold-by-section {
    margin-top: 1.5rem;
}

.sold-by-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.retailer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid #a5d6a7;
}

.retailer-link:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.retailer-link .retailer-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.vegan-section {
    background: linear-gradient(135deg, var(--color-sand) 0%, #e8f5e9 100%);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-sage-light);
}

.vegan-description {
    font-size: 0.9375rem;
    color: var(--color-text);
}

.vegan-confidence {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.confidence-high {
    color: var(--color-sage-dark);
    font-weight: 600;
}

.confidence-moderate {
    color: #b8860b;
    font-weight: 600;
}

.confidence-low {
    color: #cd5c5c;
    font-weight: 600;
}

.product-meta {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-stone);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.product-meta p {
    margin-bottom: 0.375rem;
}

.product-meta strong {
    font-weight: 500;
    color: var(--color-text-light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    color: var(--color-sage-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--color-forest);
}

/* Footer */
.footer {
    background: var(--color-moss);
    color: var(--color-white);
    padding: 1.5rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
}

.footer-logo {
    height: 24px;
    width: auto;
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-stone);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 1rem;
}

.mobile-filter-toggle:hover {
    background: var(--color-sand);
}

.mobile-filter-toggle::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233d3d3d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.mobile-filter-toggle.active {
    background: var(--color-sage);
    color: var(--color-white);
    border-color: var(--color-sage);
}

.mobile-filter-toggle.active::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .product-page {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .tag-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tag-group {
        margin-top: 0;
        display: contents;
    }

    .tag-group h3 {
        display: none;
    }

    .tag-link {
        display: inline-flex;
        padding: 0.5rem 1rem;
        background: var(--color-sand);
        border-radius: var(--radius-xl);
        border: 1px solid var(--color-stone);
    }

    .tag-link:hover {
        background: var(--color-stone);
    }

    .tag-link.active {
        background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
        border-color: var(--color-sage);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    /* Header */
    .header {
        padding: 0.625rem 0;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo-image {
        height: 24px;
    }

    .search-wrapper {
        width: 100%;
        max-width: none;
        order: 3;
    }

    .search-input {
        padding: 0.75rem 1rem;
        padding-left: 2.75rem;
        font-size: 1rem;
    }

    .search-wrapper::before {
        left: 1rem;
    }

    /* Main */
    .main {
        padding: 1.25rem 0;
    }

    /* Mobile Filter Toggle */
    .mobile-filter-toggle {
        display: flex;
    }

    /* Sidebar as collapsible on mobile */
    .sidebar {
        display: none;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .sidebar.mobile-visible {
        display: block;
    }

    .sidebar h2 {
        font-size: 0.6875rem;
        margin-bottom: 0.75rem;
        margin-top: 1rem;
    }

    .sidebar h2:first-child {
        margin-top: 0;
    }

    .tag-filters {
        gap: 0.375rem;
    }

    .tag-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
        font-weight: 500;
    }

    .filter-toggle {
        padding: 0.625rem 0.875rem;
        border-radius: var(--radius-md);
    }

    .filter-toggle .filter-label {
        font-size: 0.8125rem;
    }

    .dietary-filters {
        margin-top: 0.5rem;
    }

    /* Product Section */
    .section-header {
        margin-bottom: 1.25rem;
    }

    .section-header h1 {
        font-size: 1.375rem;
    }

    /* Product Grid - 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .product-card-content {
        padding: 0.625rem 0.75rem 0.75rem;
    }

    .product-card-title {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }

    .product-card-meta {
        font-size: 0.6875rem;
    }

    .gf-badge,
    .po-badge {
        font-size: 0.5625rem;
        padding: 0.125rem 0.25rem;
    }

    /* Product Detail */
    .product-detail {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .product-detail-grid {
        gap: 1.5rem;
    }

    .product-title {
        font-size: 1.125rem;
    }

    .product-meta-row {
        flex-wrap: wrap;
    }

    .product-tags {
        gap: 0.375rem;
    }

    .tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .product-section {
        padding-top: 1.25rem;
    }

    .product-detail .product-section h2 {
        font-size: 0.75rem;
    }

    .ingredients-text {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .allergen-item {
        padding: 0.3rem 0.625rem;
        font-size: 0.75rem;
    }

    .retailer-link {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .vegan-section {
        padding: 1rem;
    }

    .vegan-description {
        font-size: 0.875rem;
    }

    .back-link {
        margin-top: 1.5rem;
        font-size: 0.875rem;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .pagination-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    /* Footer */
    .footer {
        padding: 1.25rem 0 1.5rem;
    }

    .footer-logo {
        height: 20px;
    }

    /* Landing Page */
    .landing-logo {
        width: 160px;
        margin-bottom: 1.5rem;
    }

    .landing-heading {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }

    .landing-form {
        max-width: 280px;
    }

    .landing-password-input,
    .landing-submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .container {
        padding: 0 0.75rem;
    }

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

    .product-card-title {
        font-size: 0.875rem;
    }
}

/* Loading states for HTMX */
.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity var(--transition-fast);
}

/* Smooth content swap */
.htmx-swapping {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

/* Landing Page */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-moss) 0%, var(--color-forest) 100%);
}

.landing-logo {
    width: 200px;
    max-width: 80%;
    height: auto;
    margin-bottom: 2rem;
}

.landing-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-sage-light);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.landing-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.landing-password-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--color-stone);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--color-white);
    color: var(--color-text);
    outline: none;
    transition: all var(--transition-fast);
    text-align: center;
}

.landing-password-input::placeholder {
    color: var(--color-text-muted);
}

.landing-password-input:focus {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(135, 168, 120, 0.2);
}

.landing-submit-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.landing-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.landing-error {
    margin-top: 1rem;
    color: #ff8a8a;
    font-size: 0.9375rem;
    font-weight: 500;
}
