/* Catalog-specific styles — extends landing_pages.css + Bootstrap 5 */

/* ── Page wrapper ─────────────────────────────────── */
.catalog-page {
    background: var(--bh-alt);
    min-height: 70vh;
    padding: 1.5rem 0 3rem;
}

/* ── Sticky sidebar ───────────────────────────────── */
.catalog-sidebar {
    position: sticky;
    top: 68px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

.sidebar-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bh-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

/* ── Toolbar ──────────────────────────────────────── */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
}

/* ── View toggle buttons ──────────────────────────── */
.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    background: #f0f0f0;
    color: var(--bh-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.view-toggle-btn:hover {
    background: #e2e2e2;
    color: var(--bh-text);
}

.view-toggle-btn.active {
    background: var(--bh-blue);
    border-color: var(--bh-blue);
    color: #fff;
}

/* ── Product card (grid view) ─────────────────────── */
.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: var(--bh-alt);
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ── Image wrapper + overlaid buttons ────────────── */
.product-img-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.product-img-wrapper .product-img,
.product-img-wrapper .product-img-placeholder,
.product-img-wrapper .product-carousel {
    margin-bottom: 0;
}

.product-img-actions {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.product-card:hover .product-img-actions {
    opacity: 1;
}

/* ── Carousel inside card ─────────────────────────── */
.product-carousel {
    height: 190px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-carousel .carousel-inner,
.product-carousel .carousel-item {
    height: 100%;
}

.product-carousel .product-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    background: var(--bh-alt);
    margin-bottom: 0;
    border-radius: 0;
}

.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    width: 2rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
    opacity: 0.75;
}

.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
}

.product-carousel .carousel-indicators {
    margin-bottom: 0.35rem;
}

.product-carousel .carousel-indicators [data-bs-target] {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    opacity: 0.5;
    background-color: #fff;
}

.product-carousel .carousel-indicators .active {
    opacity: 1;
}

.product-img-placeholder {
    width: 100%;
    height: 190px;
    background: var(--bh-alt);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0.2rem 0 0.5rem;
    line-height: 1.3;
}

.product-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--bh-blue);
    letter-spacing: 0.5px;
}

.product-detail {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--bh-muted);
    letter-spacing: 0.5px;
}

.product-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--bh-danger);
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 0.875rem;
    color: var(--bh-muted);
    flex: 1;
    margin-bottom: 1rem;
}

/* ── Product row (list view) ──────────────────────── */
.product-row {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-row-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-row-img-placeholder {
    width: 72px;
    height: 72px;
    background: var(--bh-alt);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.product-row-body {
    flex: 1;
    min-width: 0;
}

.product-row-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bh-text);
    margin-bottom: 0.15rem;
}

.product-row-meta {
    font-size: 0.75rem;
    color: var(--bh-muted);
}

.product-row-desc {
    font-size: 0.85rem;
    color: var(--bh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}