/* Import der Farbvariablen aus dem Haupt-Theme (angenommen) */
:root {
    --primary-color: #ffc934;
    --secondary-color: #da4732;
    --dark-color: #453532;
    --light-color: #faf7f6;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 15px;
}

#tiny-crafts-shop-container {
    font-family: var(--font-family);
    color: var(--dark-color);
}

/* --- Header: Suche, Filter, Zurück --- */
.tcs-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1.5rem;
}

.tcs-search-wrapper {
    flex-grow: 1;
    position: relative;
}

#tcs-search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}
#tcs-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 201, 52, 0.4);
}

#tcs-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    z-index: 100;
    overflow: hidden;
    display: none; /* Wird via JS gezeigt */
}
#tcs-search-results a {
    display: block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}
#tcs-search-results a:hover {
    background-color: var(--light-color);
}
#tcs-search-results a small {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 5px;
    margin-right: 0.5rem;
}

/* --- Filter Panel --- */
#tcs-filter-panel {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: none; /* Standardmäßig versteckt */
}

#tcs-filter-form h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

#tcs-filter-form label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
#tcs-filter-form input[type="checkbox"] {
    margin-right: 0.5rem;
}
.tcs-price-filter input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* --- Content Grid & Cards --- */
.tcs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tcs-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(69, 53, 50, 0.08);
    text-decoration: none;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: tcs-fade-in 0.5s ease forwards;
    opacity: 0;
}
@keyframes tcs-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tcs-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(69, 53, 50, 0.15);
}

.tcs-card-image {
    width: 100%;
    padding-top: 100%; /* Sorgt für ein quadratisches Bild */
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 4px solid var(--primary-color);
}

.tcs-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tcs-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.tcs-card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}
.tcs-card-content p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
}
.tcs-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* --- Allgemeiner Button Style --- */
.tcs-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color) !important;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    font-family: var(--font-family);
    text-align: center;
}
.tcs-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 201, 52, 0.4);
}

#tcs-back-button {
    background-color: var(--dark-color);
    color: white !important;
}
#tcs-back-button:hover {
    box-shadow: 0 6px 15px rgba(69, 53, 50, 0.3);
}