/* ================================================================
   Brands pages — index (all brands) & show (single brand)
================================================================ */

/* ---- Page header ---- */
.brands-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}
.brands-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: .25rem; }
.brands-header p  { opacity: .7; margin: 0; }

/* ---- Brand section (index) ---- */
.brand-section { padding: 3rem 0 1rem; }
.brand-section + .brand-section { border-top: 1px solid #f0f0f0; }

.brand-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}
.brand-section__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}
.brand-section__desc {
    color: #666;
    font-size: .9rem;
    margin-top: .25rem;
    margin-bottom: 0;
}
.brand-section__all {
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand, #c0392b);
    text-decoration: none;
    white-space: nowrap;
}
.brand-section__all:hover { text-decoration: underline; }

/* ---- Single brand header (show) ---- */
.brand-show-header {
    background: #fafafa;
    border-bottom: 1px solid #efefef;
    padding: 2.5rem 0 2rem;
}
.brand-show-header__name {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: .25rem;
}
.brand-show-header__desc {
    color: #666;
    margin: 0;
    font-size: .95rem;
}
.brand-show-header__count {
    font-size: .85rem;
    color: #999;
    margin-top: .4rem;
}

/* ---- Product cards ---- */
.product-card {
    border-radius: 12px;
    border: 1px solid #efefef;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-3px);
}
.product-card__img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    overflow: hidden;
}
.img-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #ccc;
    transition: opacity .3s;
}
.img-placeholder--secondary { opacity: 0; background: #ece9e4; }
.product-card:hover .img-placeholder--primary  { opacity: 0; }
.product-card:hover .img-placeholder--secondary { opacity: 1; }

/* Actual product images */
.product-card__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.product-card__badge {
    position: absolute; top: .6rem; left: .6rem;
    font-size: .65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; padding: .2rem .55rem;
    border-radius: 4px;
}
.product-card__wishlist {
    position: absolute; top: .5rem; right: .5rem;
    background: #fff; border: none; border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.product-card__colors { display: flex; gap: 5px; flex-wrap: wrap; }
.color-dot {
    width: 14px; height: 14px;
    border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
    display: inline-block;
}
.color-dot--overflow {
    background: #eee; border-color: #ddd;
    font-size: .6rem; font-weight: 700; color: #555;
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
}

/* ---- Empty state ---- */
.brands-empty-msg { color: #aaa; font-size: .875rem; }
