/**
 * S24.8 — Premium Category Select Page Styles (Stripe/Linear/Framer Style 2025)
 * 
 * Used for categories with children but no direct products (e.g., multi-split, ventilation)
 * Shows a landing page with selection cards for child categories.
 */

/* ============================================
   1. Page Container
   ============================================ */
.sh-select-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* ============================================
   2. Breadcrumb
   ============================================ */
.sh-select-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 32px;
}

.sh-select-page__breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.sh-select-page__breadcrumb a:hover {
    color: #111827;
}

.sh-select-page__breadcrumb-sep {
    color: #d1d5db;
}

/* ============================================
   3. Hero Section
   ============================================ */
.sh-select-page__hero {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.sh-select-page__hero-bg {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.sh-select-page__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    letter-spacing: -0.025em;
}

.sh-select-page__subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   4. Selection Cards Grid
   ============================================ */
.sh-select-page__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Single card layout for ventilation (single column) */
.sh-select-page__cards--single {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .sh-select-page__cards {
        grid-template-columns: 1fr;
    }
    
    .sh-select-page__title {
        font-size: 1.75rem;
    }
}

/* ============================================
   5. Selection Card
   ============================================ */
.sh-select-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.sh-select-card__glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.sh-select-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(59, 130, 246, 0.12);
}

.sh-select-card:hover .sh-select-card__glow {
    opacity: 1;
}

.sh-select-card__content {
    position: relative;
    z-index: 1;
}

/* ============================================
   6. Card Icon
   ============================================ */
.sh-select-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 14px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.sh-select-card__icon svg {
    width: 28px;
    height: 28px;
    color: #3b82f6;
}

.sh-select-card:hover .sh-select-card__icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: scale(1.05);
}

/* Icon variants for different category types */
.sh-select-card__icon--ventilation {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.sh-select-card__icon--ventilation svg {
    color: #10b981;
}

.sh-select-card:hover .sh-select-card__icon--ventilation {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

/* ============================================
   7. Card Text
   ============================================ */
.sh-select-card__text {
    margin-bottom: 20px;
}

.sh-select-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.sh-select-card__desc {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   8. Card Features List
   ============================================ */
.sh-select-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sh-select-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #374151;
}

.sh-select-card__check {
    color: #10b981;
    font-weight: 600;
}

/* ============================================
   9. Card Arrow/CTA
   ============================================ */
.sh-select-card__arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3b82f6;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sh-select-card__arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.sh-select-card:hover .sh-select-card__arrow svg {
    transform: translateX(4px);
}

/* ============================================
   10. Product Count Badge
   ============================================ */
.sh-select-card__count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 12px;
}

.sh-select-card__count-num {
    font-weight: 600;
    color: #111827;
}

/* ============================================
   11. Info Block
   ============================================ */
.sh-select-page__info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
}

.sh-select-page__info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sh-select-page__info-icon svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.sh-select-page__info-text {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.sh-select-page__info-text strong {
    display: block;
    color: #111827;
    margin-bottom: 2px;
}

.sh-select-page__info-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.sh-select-page__info-text a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .sh-select-page__info {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   12. Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .sh-select-card,
    .sh-select-card__glow,
    .sh-select-card__icon,
    .sh-select-card__arrow svg {
        transition: none;
    }
    
    .sh-select-card:hover {
        transform: none;
    }
    
    .sh-select-card:hover .sh-select-card__icon {
        transform: none;
    }
    
    .sh-select-card:hover .sh-select-card__arrow svg {
        transform: none;
    }
}
