.store-header-hero {
    background-image: url('/static/img/teacher-school-k12-lekktura-store.webp');
    background-position: center 55%;
    background-size: cover;
    background-repeat: no-repeat;
} 
.store-content {
    padding-top: 4.3rem;  /* Just enough for fixed header */
    padding-bottom: 4rem;  /* Add space before footer */
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0;
    justify-content: flex-start;
}

.product-card {
    flex: 1 1 320px;
    max-width: 350px;
    min-width: 280px;
    margin-bottom: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card.hidden {
    display: none !important;
}

.product-image {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    background: #fff;
    min-height: 0;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    color: #27ae60;
    font-weight: bold;
}

.buy-button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    box-sizing: border-box;
}

.buy-button:hover {
    background-color: #1d4fd7;
}

.search-bar {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 1.2rem 0 1rem 0;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    color: #111;
}

.search-bar:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.search-container {
    position: relative;
    max-width: 350px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7280;
    z-index: 2;
    transition: color 0.2s ease;
}

.search-bar:focus + .search-icon {
    color: #2563eb;
}

.category-filter {
    margin-bottom: 2rem;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.filter-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-input {
    width: 80px;
    padding: 0.5rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: left;
}

.price-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #2563eb22;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-button {
    background: none;
    border: 2px solid #cbd5e1;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.price-button:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.price-button.active {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #2563eb22;
    font-weight: 600;
}

.clear-filters {
    background: #f3f4f6;
    color: #dc2626;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    margin-top: 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.clear-filters:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.filter-summary {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-summary-icon {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

.category-button {
    background: none;
    border: 2px solid #cbd5e1;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.category-button.active {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #2563eb22;
    font-weight: 600;
    z-index: 1;
}

.store-header {
    background-color: #f3f4f6;
    color: #1e293b;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.product-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.no-products-message {
    text-align: left;
    color: #6b7280;
    font-size: 1rem;
    padding: 2.5rem 1rem;
    letter-spacing: 0.01em;
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 2rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.no-products-icon {
    width: 32px;
    height: 32px;
    color: #9ca3af;
    opacity: 0.7;
    flex-shrink: 0;
}

.no-products-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.no-products-suggestion {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

.store-header-hero {
    position: relative;
    background-position: center 55%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
}
.store-header-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.60);
}
.store-header-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    color: #fff;
    max-width: none;
    margin: 0;
    padding: 2.5rem 0;
}
@media (min-width: 640px) {
    .store-header-hero .hero-content {
        padding-left: 0;
    }
}
@media (min-width: 1024px) {
    .store-header-hero .hero-content {
        padding-left: 0;
    }
}
.store-header-hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.store-header-hero p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #e0e7ef;
}
.store-header-hero .search-bar {
    max-width: 350px;
    margin-bottom: 1.2rem;
    display: block;
}

.filter-bar {
    background: #f8fafc;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
    margin-top: 0;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    padding: 0.7rem 0 0.7rem 0;
}
.filter-bar .max-w-6xl {
    gap: 1.2rem;
}
.filter-bar .filter-title {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
    font-weight: 600;
}
.filter-bar .filter-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}
.filter-bar .category-filter {
    margin-bottom: 0;
}
.filter-bar .price-filter, .filter-bar .category-filter {
    gap: 0.5rem;
}
.filter-bar .price-button, .filter-bar .category-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-weight: 500;
}
.filter-bar .price-button:hover, .filter-bar .category-button:hover {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #9ca3af;
}
.filter-bar .price-button.active, .filter-bar .category-button.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
}
.filter-bar .price-input {
    width: 100px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    transition: all 0.2s ease;
}
.filter-bar .price-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
}

@media (max-width: 900px) {
    .filter-bar .max-w-6xl {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .filter-bar {
        padding: 1.5rem 0;
    }
    .price-inputs {
        flex-direction: column;
        gap: 1rem;
    }
    .category-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .category-button {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
    }
    .clear-filters {
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .filter-bar {
        padding: 1rem 0;
    }
    .filter-group-title {
        font-size: 0.8rem;
    }
    .price-input {
        width: 100%;
        min-width: 140px;
    }
    .category-button {
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

.price-cards {
    display: flex;
    gap: 1.2rem;
}
.price-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    min-width: 120px;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.price-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.price-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.price-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}
.category-label {
    font-size: 0.9rem;
    color: #374151;
    margin-right: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.price-value-input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    outline: none;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.price-value-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.price-inputs {
    display: flex;
    gap: 0.7rem;
    align-items: end;
}
.price-input-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}
.price-label {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.price-input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    outline: none;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    width: 120px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.price-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.filter-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.filter-tooltip {
    position: relative;
    cursor: help;
}

.filter-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    margin-bottom: 0.5rem;
}

.filter-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    margin-bottom: -4px;
}

.filter-tooltip:hover::after,
.filter-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group-title {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}