/* RECKLESS STORE — Store catalog refinements (scoped to store.html) */

.catalog-controls {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
    gap: var(--rt-space-3);
}
.catalog-select {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 12px; min-height: 44px;
    border: 1px solid var(--rt-border); border-radius: var(--rt-radius-full);
    background: rgba(216,216,216,.045); color: var(--rt-text-soft);
    font-size: var(--rt-fs-sm);
}
.catalog-select .icon { width: 16px; height: 16px; color: var(--rt-primary); flex: none; }
.catalog-select select {
    appearance: none; border: 0; outline: 0; background: transparent;
    color: var(--rt-text-soft); font: inherit; cursor: pointer; padding: 4px 0;
    direction: rtl;
}
.catalog-select select option { background: #101D14; color: var(--rt-text); }
.catalog-select:focus-within { border-color: var(--rt-border-primary); }

.search-box { position: relative; }
.search-clear {
    position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; display: grid; place-items: center;
    border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(216,216,216,.12); color: var(--rt-text-soft);
    font-size: 18px; line-height: 1;
}
.search-clear[hidden] { display: none; }

.catalog-summary {
    margin: calc(-1 * var(--rt-space-4)) 0 var(--rt-space-5);
    color: var(--rt-text-muted); font-size: var(--rt-fs-sm);
}

.pill-icon { display: inline-flex; align-items: center; gap: 7px; }
.pill-icon .icon { width: 16px; height: 16px; flex: none; }

/* Fixed-height product cards: descriptions never stretch the grid */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.product-card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--rt-space-2); min-height: 0; }
.card-desc-clamp {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    line-clamp: 2; overflow: hidden; min-height: 2.9em; max-height: 2.9em;
    line-height: 1.45; margin: 0;
}
.product-card .price-box { margin-top: auto; }
.product-card .card-footer {
    display: flex; flex-wrap: nowrap; gap: 8px; align-items: stretch;
    margin-top: auto; border-top: 1px solid var(--rt-border);
}
.product-card .card-footer .btn {
    flex: 1 1 0; min-width: 0; white-space: nowrap;
    padding-inline: 8px; gap: 6px; justify-content: center;
}
.product-card .card-footer .btn .icon { flex: none; }
.store-empty { text-align: center; display: grid; justify-items: center; gap: var(--rt-space-3); padding-block: var(--rt-space-12); }

@media (max-width: 820px) {
    .catalog-controls { justify-content: stretch; width: 100%; }
    .catalog-select, .search-box { flex: 1 1 160px; }
    .product-card .card-footer { flex-wrap: nowrap; }
}
@media (max-width: 480px) {
    .product-card .card-footer .btn { font-size: 12px; padding-inline: 6px; }
}
