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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

h1 {
    margin-bottom: 20px;
}

.search-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#searchInput {
    width: 70%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#clearSearch {
    padding: 10px 20px;
    margin-left: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#clearSearch:hover {
    background: #0056b3;
}

.checkboxes {
    margin-top: 10px;
}

.checkboxes label {
    margin-right: 20px;
}

.filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.filter-row label {
    flex: 1;
}

.filter-row select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
}

.tea-filters {
    margin-top: 20px;
}

.notice {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.filter-grid label {
    display: flex;
    flex-direction: column;
}

.filter-grid select,
.filter-grid input {
    margin-top: 5px;
    padding: 5px;
}

.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.item-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

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

.item-card h3 {
    color: #007bff;
    margin-bottom: 5px;
}

.item-card .category {
    font-size: 14px;
    color: #666;
}

.item-detail {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-detail h2 {
    margin-bottom: 20px;
}

.item-detail .back-button {
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.item-detail .back-button:hover {
    background: #5a6268;
}

.item-detail .content {
    white-space: pre-wrap;
    font-family: monospace;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.item-detail .images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.item-detail .images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.hidden {
    display: none !important;
}
