/* ==========================================================================
   Category / sub-category listing page (pages/partials/catalog.blade.php),
   after the reference shop's category page: hero band, breadcrumb, filter
   pills + sort, product grid, pagination, "How to place your order", quote bar.
   Brand colour #003135; the same 6px side gutter as the home page on phones.
   ========================================================================== */
.cp { --cp-brand: #003135; --cp-line: #e5e7eb; --cp-soft: #f8fafc; --cp-muted: #64748b; padding: 22px 0 8px; background: #fff; }

/* -- hero ------------------------------------------------------------------ */
.cp-hero {
    text-align: center; padding: 40px 24px 34px; border-radius: 14px; border: 1px solid #edf1f3;
    background:
        radial-gradient(600px 220px at 12% 0%, rgba(0, 49, 53, .07), transparent 70%),
        radial-gradient(520px 200px at 92% 100%, rgba(255, 230, 0, .16), transparent 70%),
        var(--cp-soft);
}
.cp-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0f766e; }
.cp-hero h1 { margin: 8px 0 0; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.15; font-weight: 800; color: var(--cp-brand); overflow-wrap: anywhere; }
.cp-hero p { max-width: 720px; margin: 14px auto 0; font-size: 16.5px; line-height: 1.65; color: #475569; }
.cp-hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.cp-count {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--cp-line); font-size: 14px; font-weight: 600; color: var(--cp-brand);
}
.cp-count i, .cp-count svg { color: #0f766e; }
.cp-quote {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; text-decoration: none;
    border: 1px solid var(--cp-brand); color: var(--cp-brand); background: #fff; font-weight: 700; font-size: 14.5px;
    transition: background .15s, color .15s;
}
.cp-quote:hover { background: var(--cp-brand); color: #fff; }
.cp-quote.is-solid { background: var(--cp-brand); color: #fff; padding: 12px 24px; font-size: 15.5px; }
.cp-quote.is-solid:hover { background: #014a50; }
.cp-quote i, .cp-quote svg { font-size: .9em; }

/* -- breadcrumb -------------------------------------------------------------- */
.cp-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 2px 14px; font-size: 14.5px; color: var(--cp-muted); }
.cp-crumb a { color: #334155; text-decoration: none; }
.cp-crumb a:hover { color: var(--cp-brand); text-decoration: underline; }
.cp-crumb i, .cp-crumb svg { font-size: 10px; color: #94a3b8; }
.cp-crumb span { color: var(--cp-muted); }

/* -- pills + sort -------------------------------------------------------------- */
.cp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cp-pills { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.cp-pills a {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    border: 1px solid var(--cp-line); background: #fff; color: #334155; font-size: 15px; font-weight: 500; transition: border-color .15s, background .15s;
}
.cp-pills a:hover { border-color: var(--cp-brand); color: var(--cp-brand); }
.cp-pills a.is-on { border-color: var(--cp-brand); background: #eaf3f3; color: var(--cp-brand); font-weight: 700; }
.cp-pills a i, .cp-pills a svg { font-size: 14px; }
.cp-short { display: none; }
.cp-sort { flex: 0 0 auto; margin: 0; }
.cp-sort select {
    appearance: none; -webkit-appearance: none; padding: 9px 40px 9px 18px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--cp-brand); color: var(--cp-brand); background-color: #fff; font-size: 15px; font-weight: 500;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23003135' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}

/* -- grid ------------------------------------------------------------------------- */
.cp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cp-grid > .product-card { height: 100%; }
@media (max-width: 1399.98px) { .cp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1099.98px) { .cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cp-empty { text-align: center; padding: 56px 20px; border: 1px dashed #cbd5e1; border-radius: 14px; background: var(--cp-soft); }
.cp-empty > i, .cp-empty > svg { font-size: 38px; width: 42px; height: 38px; color: #94a3b8; }
.cp-empty h2 { margin: 12px 0 6px; font-size: 22px; color: var(--cp-brand); }
.cp-empty p { max-width: 460px; margin: 0 auto 18px; color: var(--cp-muted); }

/* -- pagination ------------------------------------------------------------------------- */
.cp-pages { display: flex; justify-content: center; margin: 30px 0 6px; }
.cp-pager { display: inline-flex; align-items: stretch; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cp-pager a, .cp-pager span {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: 10px; border: 1px solid transparent; color: #475569; font-size: 15px; text-decoration: none;
}
.cp-pager a { border-color: var(--cp-line); background: #fff; }
.cp-pager a:hover { border-color: var(--cp-brand); color: var(--cp-brand); }
.cp-pager b { font-weight: 500; }
.cp-pager .is-on { background: var(--cp-brand); border-color: var(--cp-brand); color: #fff; font-weight: 700; }
.cp-pager .is-off { opacity: .4; }
.cp-pager .is-gap { min-width: 24px; padding: 0; }
.cp-pager i, .cp-pager svg { font-size: 11px; }

/* -- how to place your order ------------------------------------------------------------------- */
.cp-steps { text-align: center; margin: 56px 0 10px; }
.cp-steps h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #111827; }
.cp-steps-sub { margin: 10px 0 30px; color: #475569; font-size: 16.5px; }
.cp-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.cp-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cp-step-ico {
    width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px;
    background: #eaf3f3; color: var(--cp-brand); font-size: 30px; box-shadow: inset 0 0 0 6px #f6fafa;
}
.cp-step-ico i, .cp-step-ico svg { width: 30px; height: 30px; }
.cp-steps li b { font-size: 18px; font-weight: 700; color: #111827; }
.cp-steps li small { max-width: 240px; font-size: 15px; line-height: 1.55; color: #475569; }

/* -- quote bar -------------------------------------------------------------------------------- */
.cp-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0 26px; padding: 28px 32px;
    border-radius: 12px; background: var(--cp-soft); border: 1px solid #edf1f3;
}
.cp-cta h2 { margin: 0; font-size: 22px; font-weight: 700; color: #111827; }
.cp-cta p { margin: 6px 0 0; color: var(--cp-muted); font-size: 16px; }
.cp-cta .cp-quote { flex: 0 0 auto; }

/* -- tablet ---------------------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .cp-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
}

/* -- phone: the 6px gutter of the home page, 2 cards across ---------------------------------------- */
@media (max-width: 767.98px) {
    .cp { padding-top: 12px; }
    .cp > .container { padding-left: 6px; padding-right: 6px; }
    .cp-hero { padding: 26px 16px 24px; border-radius: 12px; }
    .cp-hero p { font-size: 15px; margin-top: 10px; }
    .cp-hero-actions { margin-top: 16px; gap: 8px; }
    .cp-count, .cp-quote { font-size: 13.5px; padding: 7px 14px; }
    .cp-crumb { margin: 14px 2px 10px; font-size: 13.5px; gap: 8px; }

    /* pills wrap onto as many lines as they need (nothing is cut off at the edge); the sort box goes under them, full width */
    .cp-bar { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 14px; }
    .cp-pills { gap: 6px; }
    .cp-pills a { padding: 7px 11px; font-size: 13.5px; gap: 6px; }
    .cp-pills a.is-on { font-weight: 500; }                  /* bold would make the current pill wider than the others */
    .cp-pills a > i, .cp-pills a > svg { display: none; }    /* the grid icon of "All" costs 20px the row needs */
    /* inside "Business Cards" the pill "Standard Business Cards" reads "Standard", so the row fits on one line */
    .cp-full { display: none; }
    .cp-short { display: inline; }
    .cp-sort select { width: 100%; padding: 10px 40px 10px 16px; font-size: 14.5px; }

    .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .cp-pages { margin-top: 22px; }
    .cp-pager a, .cp-pager span { min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; }
    .cp-pager b { display: none; }               /* arrows only, so the numbers fit */

    .cp-steps { margin-top: 38px; }
    .cp-steps-sub { font-size: 14.5px; margin-bottom: 22px; }
    .cp-step-ico { width: 64px; height: 64px; font-size: 24px; }
    .cp-step-ico i, .cp-step-ico svg { width: 24px; height: 24px; }
    .cp-steps li b { font-size: 15.5px; }
    .cp-steps li small { font-size: 13px; }

    .cp-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 18px; margin: 34px 0 18px; }
    .cp-cta h2 { font-size: 19px; }
    .cp-cta .cp-quote { justify-content: center; }
}

/* -- category text: headline + big title, FAQs, long text sections (reference shop's category pages) ------------- */
.cp-hero h1.cp-eyebrow { margin: 0; font-size: 12.5px; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0f766e; }
.cp-hero .cp-big { margin: 8px 0 0; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.15; font-weight: 800; color: var(--cp-brand); overflow-wrap: anywhere; }
.cp-faq { margin: 56px 0 10px; padding: 38px 28px 34px; border-radius: 14px; background: var(--cp-soft); }
.cp-faq { text-align: center; }
.cp-faq h2 { margin: 6px 0 24px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #111827; }
.cp-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; text-align: left; align-items: start; }
.cp-faq-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cp-faq.is-text { margin-top: 26px; padding: 26px 28px; }
@media (max-width: 767.98px) {
    .cp-faq { margin-top: 38px; padding: 26px 14px 22px; border-radius: 12px; }
    .cp-faq h2 { margin-bottom: 16px; }
    .cp-faq-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .cp-faq-col { gap: 10px; }
    .cp-faq.is-text { margin-top: 18px; padding: 14px; }
}
