
/* ========================================
   CATEGORIES — REDESIGNED (Option B)
   Dark + glass-morphism + asymmetric grid
   1 featured 2x2 card + 4 small cards
======================================== */
.ch-categories-redesigned {
    position: relative;
    background: #0a0a0a;
    color: #fff;
    padding: 6rem 0 7rem;
    overflow: hidden;
}
.ch-categories-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center,
        rgba(45, 204, 211, 0.12) 0%,
        rgba(45, 204, 211, 0.04) 30%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.ch-cat-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.ch-cat-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.ch-cat-header-text { flex: 1; min-width: 280px; }
.ch-cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    background: rgba(45, 204, 211, 0.08);
    border: 1px solid rgba(45, 204, 211, 0.25);
    border-radius: 99px;
    color: #2DCCD3;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.ch-cat-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #2DCCD3;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(45, 204, 211, 0.8);
    animation: chCatPulse 2s infinite;
}
@keyframes chCatPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.ch-cat-title {
    font-family: 'Oswald', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0;
    color: #fff;
}
.ch-cat-title .accent {
    color: #2DCCD3;
    font-style: italic;
}
.ch-cat-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    max-width: 460px;
    margin-top: 0.75rem;
}
.ch-cat-shop-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 99px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.ch-cat-shop-all:hover {
    background: #2DCCD3;
    color: #000 !important;
    border-color: #2DCCD3;
    transform: translateY(-1px);
}
.ch-cat-shop-all svg { transition: transform 0.25s ease; }
.ch-cat-shop-all:hover svg { transform: translateX(3px); }

/* Asymmetric grid: 4 cols, first child spans 2x2 */
.ch-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 320px 320px;
    gap: 1.25rem;
}

.ch-cat-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    cursor: pointer;
    background: #1a1a1a;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    isolation: isolate;
    color: #fff !important;
}
.ch-cat-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* Background image layer */
.ch-cat-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease;
    filter: brightness(0.7) saturate(1.15);
}
.ch-cat-bg-fallback {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #0891a1 100%);
    filter: none;
}

/* Vignette + cyan tint overlay */
.ch-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%),
        linear-gradient(135deg, rgba(45, 204, 211, 0.15) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ch-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Glass label at bottom of card */
.ch-cat-label {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    padding: 1rem 1.25rem;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.ch-cat-label-text { flex: 1; min-width: 0; }
.ch-cat-name {
    font-family: 'Oswald', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.15rem;
}
.ch-cat-card.featured .ch-cat-name { font-size: 2rem; }
.ch-cat-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Arrow icon */
.ch-cat-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.ch-cat-arrow svg {
    width: 16px;
    height: 16px;
    color: #fff;
    transition: transform 0.3s ease;
}

/* Featured tag (top corner) */
.ch-cat-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 204, 211, 0.35);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2DCCD3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.ch-cat-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #2DCCD3;
    border-radius: 50%;
    box-shadow: 0 0 6px #2DCCD3;
}

/* Hover state — subtle as requested */
.ch-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.ch-cat-card:hover .ch-cat-bg {
    transform: scale(1.06);
    filter: brightness(0.85) saturate(1.25);
}
.ch-cat-card:hover::after {
    border-color: rgba(45, 204, 211, 0.4);
    box-shadow: 0 0 0 1px rgba(45, 204, 211, 0.15) inset;
}
.ch-cat-card:hover .ch-cat-label {
    background: rgba(45, 204, 211, 0.12);
    border-color: rgba(45, 204, 211, 0.35);
    transform: translateY(-2px);
}
.ch-cat-card:hover .ch-cat-arrow {
    background: #2DCCD3;
    border-color: #2DCCD3;
}
.ch-cat-card:hover .ch-cat-arrow svg {
    color: #000;
    transform: translate(2px, -2px);
}

/* Mobile responsive */
@media (max-width: 900px) {
    .ch-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 260px 260px 260px;
    }
    .ch-cat-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    .ch-cat-card.featured .ch-cat-name { font-size: 1.6rem; }
    .ch-categories-redesigned { padding: 4rem 0 5rem; }
    .ch-cat-header { flex-direction: column; align-items: stretch; }
}
@media (max-width: 500px) {
    /* Stay 2 columns on phones — featured spans full width as banner, then 2x2 grid below */
    .ch-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 200px 180px 180px;
        gap: 0.85rem;
    }
    .ch-cat-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    .ch-cat-card.featured .ch-cat-name { font-size: 1.5rem; }
    .ch-cat-name { font-size: 1.05rem; }
    .ch-cat-meta { font-size: 0.65rem; }
    .ch-cat-label {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0.7rem 0.85rem;
        gap: 0.5rem;
    }
    .ch-cat-arrow {
        width: 32px;
        height: 32px;
    }
    .ch-cat-arrow svg { width: 13px; height: 13px; }
    .ch-cat-tag {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ch-cat-card, .ch-cat-bg, .ch-cat-label, .ch-cat-arrow, .ch-cat-shop-all, .ch-cat-eyebrow::before {
        transition: none !important;
        animation: none !important;
    }
    .ch-cat-card:hover { transform: none; }
    .ch-cat-card:hover .ch-cat-bg { transform: none; }
}

