/*
 * ck-collections-v1.css - the layer for the occasion-wear collection pages.
 *
 * Scoped entirely under .ck-col, so nothing here reaches the shelf, the home page or the product
 * page. It uses the shop's own ink and grey, and adds no new accent of its own: a collection page
 * is a way into the catalogue, not a campaign.
 *
 * Mobile first. The only thing that changes shape between a phone and a desktop is the door row,
 * which becomes a grid; nothing moves between the two.
 */

.ck-col {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 14px 28px;
}

/* ------------------------------------------------------------------ crumbs and head */

.ck-col .ck-col-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.ck-col .ck-col-crumbs a {
    color: #b91c1c;
    font-weight: 500;
    text-decoration: none;
}

.ck-col .ck-col-crumb-now {
    color: #111827;
    font-weight: 600;
}

.ck-col .ck-col-head {
    margin: 14px 0 6px;
}

.ck-col .ck-col-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b91c1c;
}

.ck-col .ck-col-title {
    margin: 4px 0 0;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
}

.ck-col .ck-col-copy {
    margin: 8px 0 0;
    max-width: 62ch;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.ck-col .ck-col-count {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* ------------------------------------------------------------------ collection cards (index) */

.ck-col .ck-col-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.ck-col .ck-col-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.ck-col .ck-col-card:active {
    border-color: #b91c1c;
}

.ck-col .ck-col-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.ck-col .ck-col-card-copy {
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
}

.ck-col .ck-col-card-count {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

/* ------------------------------------------------------------------ doors */

.ck-col .ck-col-doors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.ck-col .ck-col-door {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    text-decoration: none;
}

.ck-col .ck-col-door:active {
    background: #f3f4f6;
}

.ck-col .ck-col-door-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.ck-col .ck-col-door-count {
    font-size: 12px;
    color: #6b7280;
}

.ck-col .ck-col-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* ------------------------------------------------------------------ grid and empty state */

.ck-col .ck-col-grid {
    margin-top: 18px;
}

.ck-col .ck-col-empty {
    margin-top: 18px;
    padding: 22px 18px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    background: #f9fafb;
    text-align: center;
}

.ck-col .ck-col-empty-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.ck-col .ck-col-empty-copy {
    margin: 8px auto 0;
    max-width: 46ch;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

.ck-col .ck-col-empty-link {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #b91c1c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* ------------------------------------------------------------------ siblings */

.ck-col .ck-col-siblings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.ck-col .ck-col-sibling {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* ------------------------------------------------------------------ desktop */

@media (min-width: 720px) {
    .ck-col {
        padding: 24px 24px 40px;
    }

    .ck-col .ck-col-title {
        font-size: 32px;
    }

    .ck-col .ck-col-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ck-col .ck-col-doors {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------------ dark theme */

html[data-theme="dark"] .ck-col .ck-col-crumbs,
html[data-theme="dark"] .ck-col .ck-col-count,
html[data-theme="dark"] .ck-col .ck-col-card-count,
html[data-theme="dark"] .ck-col .ck-col-door-count,
html[data-theme="dark"] .ck-col .ck-col-note {
    color: #9ca3af;
}

html[data-theme="dark"] .ck-col .ck-col-crumb-now,
html[data-theme="dark"] .ck-col .ck-col-title,
html[data-theme="dark"] .ck-col .ck-col-card-name,
html[data-theme="dark"] .ck-col .ck-col-door-name,
html[data-theme="dark"] .ck-col .ck-col-empty-title {
    color: #f3f4f6;
}

html[data-theme="dark"] .ck-col .ck-col-copy,
html[data-theme="dark"] .ck-col .ck-col-card-copy,
html[data-theme="dark"] .ck-col .ck-col-empty-copy {
    color: #d1d5db;
}

html[data-theme="dark"] .ck-col .ck-col-card,
html[data-theme="dark"] .ck-col .ck-col-door,
html[data-theme="dark"] .ck-col .ck-col-sibling,
html[data-theme="dark"] .ck-col .ck-col-empty {
    border-color: #33333a;
    background: #1b1b20;
}

html[data-theme="dark"] .ck-col .ck-col-siblings {
    border-top-color: #33333a;
}
