/* ==========================================================
   pressotherapy.co.uk - Catalog Page Styles
   Used by /reviews/ index and /best-machines/ pages.
   ========================================================== */

/* ========== PAGE HERO ========== */
.catalog-hero {
    background: var(--navy);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.catalog-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11,122,117,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.catalog-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.catalog-hero h1 em {
    font-style: normal;
    color: var(--teal-light);
}
.catalog-hero p {
    font-size: 1.0625rem;
    color: var(--grey-400);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}
.catalog-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
}
.catalog-hero .breadcrumb a {
    color: var(--grey-400);
    text-decoration: none;
    transition: var(--transition);
}
.catalog-hero .breadcrumb a:hover { color: white; }
.catalog-hero .breadcrumb span { color: var(--grey-500); }
.catalog-hero .breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    flex-shrink: 0;
    stroke: var(--grey-500);
}

/* ========== FILTER BAR ========== */
.filter-bar {
    background: white;
    border-bottom: 1px solid var(--grey-200);
    padding: 1rem 2rem;
    position: sticky;
    top: 64px;
    z-index: 50;
}
.filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.filter-tabs {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--grey-500);
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.filter-tab:hover {
    color: var(--navy);
    border-color: var(--grey-300);
}
.filter-tab.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}
.filter-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-sort-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.filter-sort select {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-200);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--navy);
    background: white;
    font-family: inherit;
    cursor: pointer;
}
.filter-count {
    font-size: 0.8125rem;
    color: var(--grey-400);
    font-weight: 500;
}

/* ========== PRODUCT GRID ========== */
.catalog-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--grey-400);
    font-size: 1rem;
}

/* ========== PRODUCT CARD ========== */
.product-card {
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.product-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.product-card-img {
    height: 180px;
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: relative;
}
.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-card-img-fb {
    font-size: 1rem;
    font-weight: 700;
    color: var(--grey-300);
}
.product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.product-card-badge.amazon-choice { background: #232F3E; color: #F90; }
.product-card-badge.best-value { background: var(--gold-bg); color: #B45309; }
.product-card-badge.budget-pick { background: var(--green-bg); color: #059669; }

.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-brand {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.product-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}
.product-card-stars {
    color: var(--gold);
    font-size: 0.8125rem;
    line-height: 1;
}
.product-card-rating-text {
    font-size: 0.75rem;
    color: var(--grey-400);
    font-weight: 500;
}
.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}
.product-card-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--grey-50);
    color: var(--grey-500);
    border: 1px solid var(--grey-200);
}
.product-card-tag.heat { background: var(--coral-light); color: var(--coral-dark); border-color: transparent; }
.product-card-tag.portable { background: #EFF6FF; color: #2563EB; border-color: transparent; }

.product-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--grey-100);
}
.product-card-price {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--navy);
}
.product-card-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--grey-400);
}
.product-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}
.product-card-link:hover { color: var(--teal-dark); }
.product-card-link svg {
    width: 14px;
    height: 14px;
}

/* ========== BEST MACHINES - CATEGORY SECTIONS ========== */
.bm-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 0;
}
.bm-intro p {
    font-size: 1rem;
    color: var(--grey-600);
    line-height: 1.75;
    max-width: 720px;
}
.bm-toc {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
}
.bm-toc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.bm-toc-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}
.bm-toc-link:hover {
    border-color: var(--teal);
    background: var(--teal-50);
}
.bm-toc-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bm-category {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--grey-200);
}
.bm-category:first-of-type { border-top: none; }
.bm-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.bm-category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.bm-category-icon.gold { background: var(--gold-bg); }
.bm-category-icon.green { background: var(--green-bg); }
.bm-category-icon.coral { background: var(--coral-light); }
.bm-category-icon.blue { background: #EFF6FF; }
.bm-category-icon.teal { background: var(--teal-light); }
.bm-category-icon.purple { background: #F5F3FF; }
.bm-category-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}
.bm-category-subtitle {
    font-size: 0.875rem;
    color: var(--grey-500);
    margin-top: 0.125rem;
}

/* Winner Card */
.bm-winner {
    background: white;
    border: 2px solid var(--teal);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.bm-winner-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}
.bm-winner-img {
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 240px;
}
.bm-winner-img img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}
.bm-winner-img-fb {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-300);
}
.bm-winner-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}
.bm-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: var(--teal);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: fit-content;
    margin-bottom: 0.75rem;
}
.bm-winner-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.bm-winner-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.bm-winner-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}
.bm-winner-stars { color: var(--gold); font-size: 0.875rem; }
.bm-winner-rating-text { font-size: 0.8125rem; color: var(--grey-400); }
.bm-winner-why {
    font-size: 0.9375rem;
    color: var(--grey-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.bm-winner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}
.bm-winner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--teal-50);
    color: var(--teal);
}
.bm-winner-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.bm-winner-price {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--navy);
}
.bm-winner-ctas {
    display: flex;
    gap: 0.5rem;
}
.bm-winner-ctas .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}
.bm-winner-ctas .btn svg {
    width: 14px;
    height: 14px;
}

/* Runner-up Cards */
.bm-runners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.bm-runner {
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}
.bm-runner:hover {
    border-color: var(--grey-300);
    box-shadow: var(--shadow-sm);
}
.bm-runner-img {
    width: 100px;
    height: 100px;
    background: var(--grey-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    flex-shrink: 0;
}
.bm-runner-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.bm-runner-body {
    flex: 1;
    min-width: 0;
}
.bm-runner-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.bm-runner-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bm-runner-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.bm-runner-ctas {
    display: flex;
    gap: 0.375rem;
}
.bm-runner-ctas a {
    padding: 0.3rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}
.bm-runner-ctas .runner-amazon {
    background: var(--coral);
    color: white;
}
.bm-runner-ctas .runner-amazon:hover { background: var(--coral-dark); }
.bm-runner-ctas .runner-review {
    background: var(--grey-50);
    color: var(--teal);
    border: 1px solid var(--grey-200);
}
.bm-runner-ctas .runner-review:hover {
    border-color: var(--teal);
    background: var(--teal-50);
}

/* ========== QUIZ CTA BANNER ========== */
.catalog-quiz-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2e47 100%);
    padding: 3rem 2rem;
    text-align: center;
}
.catalog-quiz-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
.catalog-quiz-cta h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}
.catalog-quiz-cta p {
    color: var(--grey-400);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.catalog-quiz-cta .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}
.catalog-quiz-cta .btn svg {
    width: 14px;
    height: 14px;
}

/* ========== LOADING STATE ========== */
.catalog-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--grey-400);
}
.catalog-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--grey-200);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: catalogSpin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes catalogSpin {
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
    .bm-winner-grid { grid-template-columns: 220px 1fr; }
    .bm-toc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .catalog-hero h1 { font-size: 1.75rem; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-inner { flex-direction: column; align-items: stretch; }
    .filter-sort { justify-content: flex-end; }
    .bm-winner-grid { grid-template-columns: 1fr; }
    .bm-winner-img { min-height: 180px; }
    .bm-runners { grid-template-columns: 1fr; }
    .bm-toc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .catalog-hero { padding: 2rem 1.5rem 1.5rem; }
    .catalog-hero h1 { font-size: 1.5rem; }
    .catalog-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .product-card-img { height: 140px; padding: 1rem; }
    .product-card-body { padding: 0.75rem; }
    .product-card-title { font-size: 0.8125rem; }
    .catalog-grid-wrap { padding: 1.5rem; }
    .bm-category { padding: 2rem 1.5rem; }
}
@media (max-width: 400px) {
    .catalog-grid { grid-template-columns: 1fr; }
}
