/* ── CATALOG PAGES — light theme matching landing ── */

/* ── Hero ── */
.catalog-hero-section {
    padding: 72px 5% 64px;
    background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 60%, #eef2ff 100%);
    text-align: center;
}
.catalog-hero__label {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-light); color: var(--brand);
    font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
}
.catalog-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 14px;
}
.catalog-hero__sub {
    font-size: 1rem; color: var(--muted); margin-bottom: 36px;
}

/* ── Search ── */
.catalog-search-wrap {
    max-width: 560px; margin: 0 auto;
}
.catalog-search-form {
    display: flex; gap: 0;
    background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: border-color .2s, box-shadow .2s;
}
.catalog-search-form:focus-within {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.catalog-search-input {
    flex: 1; border: none; outline: none; padding: 14px 18px;
    font-size: .95rem; color: var(--text); font-family: inherit; background: transparent;
}
.catalog-search-input::placeholder { color: var(--muted); }
.catalog-search-btn {
    border: none; cursor: pointer; padding: 14px 22px;
    background: var(--gradient); color: #fff;
    font-size: .9rem; font-weight: 600; font-family: inherit;
    transition: opacity .2s;
}
.catalog-search-btn:hover { opacity: .88; }

/* ── Section wrapping categories grid ── */
.catalog-section {
    padding: 56px 5% 72px;
    background: #fff;
}
.catalog-section-inner {
    max-width: 1100px; margin: 0 auto;
}

/* ── Category cards grid ── */
.cat-grid-light {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cat-card-light {
    background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
    padding: 28px 24px; transition: all .2s; cursor: pointer;
    display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
}
.cat-card-light::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--gradient);
    transform: scaleY(0); transform-origin: bottom; transition: transform .2s;
}
.cat-card-light:hover {
    border-color: rgba(14,165,233,.35);
    box-shadow: 0 8px 32px rgba(14,165,233,.1);
    transform: translateY(-3px);
}
.cat-card-light:hover::before { transform: scaleY(1); }
.cat-card-light__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cat-card-light__icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.cat-card-light__icon svg { width: 24px; height: 24px; }
.cat-card-light__count {
    background: var(--brand-light); color: var(--brand);
    font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px;
    white-space: nowrap; margin-top: 4px;
}
.cat-card-light__name {
    font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.cat-card-light__price {
    font-size: .82rem; color: var(--muted);
}
.cat-card-light__arrow {
    font-size: .9rem; color: var(--brand); font-weight: 700;
    transition: transform .2s; align-self: flex-end;
}
.cat-card-light:hover .cat-card-light__arrow { transform: translateX(4px); }

/* ── Search results ── */
.search-results-wrap { max-width: 1100px; margin: 0 auto; }
.search-results-header {
    font-size: .95rem; color: var(--muted); margin-bottom: 24px;
}
.search-results-header strong { color: var(--text); font-weight: 600; }
.search-group-light {
    background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
    margin-bottom: 16px; overflow: hidden;
}
.search-group-light__title {
    padding: 14px 20px; font-size: .78rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
    background: #f8fafc; border-bottom: 1px solid var(--border);
}
.svc-row-light {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px; border-bottom: 1px solid var(--border);
    transition: background .15s; color: var(--text);
}
.svc-row-light:last-child { border-bottom: none; }
.svc-row-light:hover { background: #f8fafc; }
.svc-row-light__name { flex: 1; font-size: .9rem; }
.svc-row-light__price { font-size: .82rem; color: var(--brand); font-weight: 600; white-space: nowrap; }
.svc-row-light__arrow { color: var(--muted); font-size: .85rem; }
.search-empty-light {
    padding: 48px 20px; text-align: center; color: var(--muted); font-size: .95rem;
}

/* ── CTA block ── */
.catalog-cta-light {
    padding: 72px 5%;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    text-align: center;
}
.catalog-cta-light__inner { max-width: 560px; margin: 0 auto; }
.catalog-cta-light__title {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
    color: #fff; margin-bottom: 12px;
}
.catalog-cta-light__sub {
    font-size: .95rem; color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 1.6;
}
.catalog-cta-light__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 10px;
    background: #fff; color: #0ea5e9;
    font-size: 1rem; font-weight: 700; font-family: inherit;
    transition: opacity .2s, transform .15s, box-shadow .2s;
}
.catalog-cta-light__btn:hover {
    opacity: .92; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ══ SHOW PAGE ══ */

/* ── Category header ── */
.cat-show-hero {
    padding: 52px 5% 48px;
    background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 60%, #eef2ff 100%);
}
.cat-show-hero__inner { max-width: 1100px; margin: 0 auto; }
.cat-show-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 24px;
    transition: color .15s;
}
.cat-show-back:hover { color: var(--brand); }
.cat-show-hero__head {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cat-show-hero__icon {
    width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cat-show-hero__icon svg { width: 32px; height: 32px; }
.cat-show-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 4px;
}
.cat-show-hero__meta { font-size: .9rem; color: var(--muted); }

/* ── Category pills ── */
.cat-pills-wrap {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 0 5%; overflow-x: auto; scrollbar-width: none;
}
.cat-pills-wrap::-webkit-scrollbar { display: none; }
.cat-pills-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; gap: 4px; padding: 12px 0;
    white-space: nowrap;
}
.cat-pill-light {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 8px; font-size: .82rem; font-weight: 600;
    color: var(--muted); border: 1.5px solid transparent;
    transition: all .15s; flex-shrink: 0;
}
.cat-pill-light:hover { background: var(--brand-light); color: var(--brand); }
.cat-pill-light.active {
    background: var(--brand-light); color: var(--brand); border-color: rgba(14,165,233,.2);
}
.cat-pill-light__icon {
    display: inline-flex; align-items: center; width: 14px; height: 14px; flex-shrink: 0;
}

/* ── Services table ── */
.cat-show-body {
    padding: 48px 5% 64px; background: #fff;
}
.cat-show-body__inner { max-width: 1100px; margin: 0 auto; }
.svc-table-light {
    width: 100%; border-collapse: collapse;
    border: 1.5px solid var(--border); border-radius: 16px;
    overflow: hidden;
}
.svc-table-light thead th {
    background: #f8fafc; padding: 13px 20px;
    text-align: left; font-size: .75rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.svc-table-light tbody tr {
    border-bottom: 1px solid var(--border); transition: background .15s;
}
.svc-table-light tbody tr:last-child { border-bottom: none; }
.svc-table-light tbody tr:hover { background: #f8fafc; }
.svc-table-light td {
    padding: 14px 20px; font-size: .9rem; color: var(--text); vertical-align: middle;
}
.svc-name { font-weight: 500; }
.svc-minmax { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.price-badge-light {
    display: inline-block; padding: 4px 12px; border-radius: 8px;
    background: var(--brand-light); color: var(--brand);
    font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.svc-order-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 16px; border-radius: 8px;
    background: var(--gradient); color: #fff;
    font-size: .78rem; font-weight: 700; font-family: inherit;
    border: none; cursor: pointer; white-space: nowrap;
    transition: opacity .2s, transform .15s;
}
.svc-order-btn:hover { opacity: .88; transform: translateY(-1px); }
.svc-login-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 16px; border-radius: 8px;
    background: transparent; color: var(--brand);
    border: 1.5px solid rgba(14,165,233,.3);
    font-size: .78rem; font-weight: 700; font-family: inherit;
    cursor: pointer; white-space: nowrap; transition: all .15s;
}
.svc-login-btn:hover { background: var(--brand-light); border-color: var(--brand); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cat-grid-light { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .cat-grid-light { gap: 16px; }
    .svc-table-light th:nth-child(2),
    .svc-table-light td:nth-child(2) { display: none; }
}
@media (max-width: 768px) {
    .catalog-hero-section { padding: 52px 5% 48px; }
    .catalog-section { padding: 40px 5% 56px; }
    .cat-show-hero { padding: 36px 5% 32px; }
    .cat-show-body { padding: 32px 5% 48px; }
    .catalog-cta-light { padding: 56px 5%; }
}
@media (max-width: 560px) {
    .cat-grid-light { grid-template-columns: 1fr; }
    .catalog-hero-section { padding: 40px 5% 36px; }
    .svc-table-light th:nth-child(4),
    .svc-table-light td:nth-child(4) { display: none; }
    .catalog-cta-light { padding: 48px 5%; }
}
