/**
 * Shoes Catalogue — boutique-style layout
 */

/* ── Catalogue shell ─────────────────────────────────────────── */
.catalogue {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem);
    background: #f7f8fc;
    min-height: 60vh;
}

.catalogue__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Filter sidebar ──────────────────────────────────────────── */
.filter-panel {
    background: #fff;
    border: 1px solid rgba(13, 27, 62, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.filter-panel__title {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a365d;
    margin: 0 0 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.3rem;
}

.filter-form .form-control {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(13, 27, 62, 0.12);
}

.filter-form .btn {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.filter-form .btn + .btn {
    margin-top: 0.5rem;
}

/* Browse links */
.browse-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.browse-links li + li {
    border-top: 1px solid rgba(13, 27, 62, 0.06);
}

.browse-links a {
    display: block;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.browse-links a:hover {
    color: #2b6cb0;
    padding-left: 6px;
}

/* ── Mobile filter toggle ────────────────────────────────────── */
.catalogue__filter-toggle {
    display: none;
    margin-bottom: 1rem;
}

/* ── Results bar ─────────────────────────────────────────────── */
.catalogue__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid rgba(13, 27, 62, 0.08);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.catalogue__bar-label {
    font-weight: 600;
    color: #1a365d;
}

.catalogue__bar-count {
    color: #718096;
}

/* ── Product grid ────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* ── Product card ────────────────────────────────────────────── */
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(13, 27, 62, 0.07);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 27, 62, 0.1), 0 4px 8px rgba(13, 27, 62, 0.06);
    border-color: rgba(43, 108, 176, 0.15);
    text-decoration: none;
    color: inherit;
}

/* Image */
.product-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(13, 27, 62, 0.05);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #e2e8f0;
    font-size: 2.5rem;
    background: #fafbfe;
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 1;
}

.product-card__badge--girls {
    background: #fed7e2;
    color: #97266d;
}

.product-card__badge--boys {
    background: #bee3f8;
    color: #2a4365;
}

.product-card__badge--sports {
    background: #c6f6d5;
    color: #276749;
}

.product-card__badge--unisex {
    background: #e9d8fd;
    color: #553c9a;
}

/* Body */
.product-card__body {
    padding: 0.875rem 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__brand {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a0aec0;
    margin-bottom: 0.25rem;
}

.product-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a365d;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #2b6cb0;
    margin-top: auto;
}

/* Sizes */
.product-card__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #edf2f7;
}

.size-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #4a5568;
    background: #f0f4fa;
    border-radius: 6px;
    line-height: 1.4;
}

.size-chip--more {
    background: #1a365d;
    color: #fff;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(13, 27, 62, 0.08);
}

.pagination-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2b6cb0;
    background: #fff;
    border: 1px solid rgba(43, 108, 176, 0.25);
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pagination-nav__btn:hover {
    background: #2b6cb0;
    color: #fff;
    text-decoration: none;
}

.pagination-nav__btn.is-disabled {
    color: #cbd5e0;
    border-color: rgba(13, 27, 62, 0.06);
    pointer-events: none;
}

.pagination-nav__info {
    font-size: 0.8125rem;
    color: #718096;
    font-weight: 500;
}

/* ── Empty state ─────────────────────────────────────────────── */
.catalogue__empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #718096;
}

.catalogue__empty i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
    display: block;
}

.catalogue__empty h2 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.catalogue__empty p {
    margin-bottom: 1.5rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .catalogue__layout {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .catalogue__layout {
        display: block;
    }

    .catalogue__filters {
        display: none;
        margin-bottom: 1.25rem;
    }

    .catalogue__filters.is-open {
        display: block;
    }

    .catalogue__filter-toggle {
        display: inline-flex;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card__body {
        padding: 0.75rem;
    }

    .product-card__title {
        font-size: 0.8125rem;
    }

    .product-card__price {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .product-card__image {
        aspect-ratio: 4 / 3;
    }
}
