/* Etsy Vitrine — Frontend */
.ev-vitrine { font-family: inherit; }

/* Filters */
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.ev-filter-btn {
    background: transparent;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    color: inherit;
}
.ev-filter-btn:hover,
.ev-filter-btn.ev-active {
    background: #F1641E;
    border-color: #F1641E;
    color: #fff;
}

/* Grid */
.ev-grid {
    display: grid;
    gap: 24px;
}
.ev-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ev-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ev-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.ev-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .22s, box-shadow .22s;
}
.ev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
}
.ev-card[data-hidden="1"] { display: none; }

.ev-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image */
.ev-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}
.ev-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.ev-card:hover .ev-card-img img { transform: scale(1.05); }
.ev-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}

/* Body */
.ev-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ev-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ev-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #F1641E;
}

/* Tags */
.ev-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ev-tag {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    color: #666;
}

/* Button */
.ev-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: opacity .2s, transform .15s;
}
.ev-card:hover .ev-btn { opacity: .88; transform: scale(1.03); }

/* Empty */
.ev-empty { color: #888; font-style: italic; padding: 2rem 0; }

/* Responsive */
@media (max-width: 900px) {
    .ev-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .ev-cols-3,
    .ev-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .ev-grid { gap: 14px; }
}
@media (max-width: 400px) {
    .ev-cols-2,
    .ev-cols-3,
    .ev-cols-4 { grid-template-columns: 1fr; }
}
