/* ============================================================
   ΣΕΛΙΔΑ ΚΑΤΑΛΟΓΟΥ — Κατηγορίες
   ============================================================ */

.exo-kat-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(178,204,11,.12), transparent 27%),
        radial-gradient(circle at 88% 38%, rgba(178,204,11,.08), transparent 30%),
        linear-gradient(180deg, #020303, #060707 52%, #020303);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.exo-kat-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.022) 0,
        rgba(255,255,255,.022) 1px,
        transparent 1px,
        transparent 122px
    );
    pointer-events: none;
    opacity: .72;
}

/* ── SECTION ── */
.exo-kat-section {
    position: relative;
    z-index: 2;
    padding: 72px 62px 108px;
}

.exo-kat-inner {
    width: min(1480px, 100%);
    margin: 0 auto;
}

/* ── SEARCH BAR ── */
.exo-kat-search-wrap {
    padding: 48px 0 52px;
    border-bottom: 1px solid rgba(178,204,11,.13);
    margin-bottom: 52px;
}

.exo-kat-search-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 800;
    font-family: var(--font-sans);
    margin-bottom: 20px;
}

.exo-kat-search-label::before {
    content: "";
    width: 44px;
    height: 1px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(178,204,11,.38);
}

.exo-kat-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(178,204,11,.22);
    max-width: 720px;
    transition: border-color .22s ease, background .22s ease;
}

.exo-kat-search:focus-within {
    border-color: var(--gold);
    background: rgba(255,255,255,.06);
}

.exo-kat-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 18px 24px;
    color: var(--text-primary) !important;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    letter-spacing: .3px;
}

.exo-kat-search-input::placeholder {
    color: rgba(255,255,255,.25) !important;
}

.exo-kat-search-btn {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    background: rgba(178,204,11,.10);
    border: none;
    border-left: 1px solid rgba(178,204,11,.22);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 19px;
    transition: background .22s ease;
}

.exo-kat-search-btn:hover {
    background: rgba(178,204,11,.20);
}

/* ── SEARCH DROPDOWN ── */
.exo-kat-search {
    position: relative;
}

.exo-kat-drop {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #0c0d0d;
    border: 1px solid rgba(178,204,11,.28);
    border-top: none;
    z-index: 200;
    max-height: 340px;
    overflow-y: auto;
}

.exo-kat-drop.open {
    display: block;
}

.exo-kat-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background var(--ease-fast);
}

.exo-kat-drop-item:last-child {
    border-bottom: none;
}

.exo-kat-drop-item:hover {
    background: rgba(178,204,11,.08);
}

.exo-kat-drop-cat {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.exo-kat-drop-sep {
    color: rgba(178,204,11,.45);
    font-size: 11px;
    flex-shrink: 0;
}

.exo-kat-drop-sub {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 300;
}

/* highlight κάρτα μετά από click suggestion */
.exo-kat-card--highlight {
    outline: 1px solid rgba(178,204,11,.55);
    transition: outline .3s ease;
}

/* ── GRID HEAD ── */
.exo-kat-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-end;
    margin-bottom: 28px;
}

.exo-kat-head h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 36px;
    line-height: 1.12;
    font-weight: 500;
}

.exo-kat-count {
    color: #666;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}

/* ── CATEGORIES GRID ── */
.exo-kat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.exo-kat-card {
    position: relative;
    min-height: 260px;
    padding: 30px 28px 70px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
        rgba(7,8,8,.82);
    overflow: hidden;
    transition: .25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.exo-kat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(178,204,11,.10), transparent 64%);
    opacity: 0;
    transition: .25s ease;
}

.exo-kat-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: .25s ease;
}

.exo-kat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(178,204,11,.36);
    background:
        linear-gradient(135deg, rgba(178,204,11,.075), rgba(255,255,255,.018)),
        rgba(9,10,10,.94);
    color: inherit;
}

.exo-kat-card:hover::before { opacity: 1; }
.exo-kat-card:hover::after  { transform: scaleY(1); }

/* Κάρτα με subs δεν είναι ένα <a> — το link wrapper */
.exo-kat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.exo-kat-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.exo-kat-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(178,204,11,.26);
    background: rgba(178,204,11,.055);
    flex-shrink: 0;
}

.exo-kat-icon svg {
    width: 38px;
    height: 38px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.exo-kat-card h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 500;
}

.exo-kat-card p {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
    color: #a2a2a2;
    font-size: 13px;
    line-height: 1.62;
    font-weight: 300;
}

.exo-kat-link {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: 26px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2.7px;
    text-transform: uppercase;
    font-weight: 900;
    font-family: var(--font-sans);
}

.exo-kat-link::after {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--gold);
    transition: .25s ease;
}

.exo-kat-card:hover .exo-kat-link::after { width: 52px; }

/* Hidden card (filtered out) */
.exo-kat-card.hidden {
    display: none;
}

/* No results message */
.exo-kat-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #555;
    font-size: 15px;
    display: none;
}

.exo-kat-no-results.visible {
    display: block;
}

/* ── SUBCATEGORIES ── */
.exo-kat-subs {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-bottom: 52px;
}

.exo-kat-subs-list,
.exo-kat-subs-more {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exo-kat-subs-more {
    margin-top: 0;
    display: none;
}

.exo-kat-subs-more.open {
    display: flex;
}

.exo-kat-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    letter-spacing: .2px;
    color: #888;
    font-family: var(--font-sans);
    font-weight: 300;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .2s ease;
    cursor: default;
}

.exo-kat-sub::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(178,204,11,.45);
    flex-shrink: 0;
}

.exo-kat-sub:last-child {
    border-bottom: none;
}

.exo-kat-card:hover .exo-kat-sub {
    color: #aaa;
}

.exo-kat-subs-toggle {
    margin-top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    font-family: var(--font-sans);
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity .2s ease;
}

.exo-kat-subs-toggle:hover { opacity: .75; }

.exo-kat-subs-toggle::after {
    content: "▾";
    font-size: 10px;
    transition: transform .2s ease;
}

.exo-kat-subs-toggle.open::after {
    transform: rotate(180deg);
}

/* Κάρτα με subs: όχι fixed padding-bottom — το link κάθεται φυσικά */
.exo-kat-card--has-subs {
    padding-bottom: 28px;
}

/* ── CTA PANEL ── */
.exo-kat-cta {
    position: relative;
    z-index: 2;
    margin-top: 54px;
    padding: 48px 52px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    border: 1px solid rgba(178,204,11,.18);
    background:
        radial-gradient(circle at 90% 0, rgba(178,204,11,.12), transparent 35%),
        rgba(255,255,255,.025);
}

.exo-kat-cta h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1.1;
    font-weight: 500;
}

.exo-kat-cta p {
    margin: 12px 0 0;
    max-width: 680px;
    color: #8f8f8f;
    font-size: 14px;
    line-height: 1.65;
}

.exo-kat-cta-btn {
    flex: 0 0 auto;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    border: 1px solid var(--gold);
    color: #050606;
    background: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 900;
    font-family: var(--font-sans);
    transition: .25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.exo-kat-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(178,204,11,.14);
    color: #050606;
}

/* ── RESPONSIVE ── */
@media (max-width: 1180px) {
    .exo-kat-section { padding: 56px 42px 92px; }
    .exo-kat-grid { grid-template-columns: repeat(2, 1fr); }
    .exo-kat-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
    .exo-kat-section { padding: 40px 22px 78px; }
    .exo-kat-search { max-width: 100%; }
    .exo-kat-grid { grid-template-columns: 1fr; }
    .exo-kat-card { min-height: 220px; padding: 26px 22px 64px; }
    .exo-kat-card h3 { font-size: 22px; }
    .exo-kat-link { left: 22px; bottom: 22px; }
    .exo-kat-cta { flex-direction: column; padding: 36px 26px; }
    .exo-kat-cta h2 { font-size: 28px; }
    .exo-kat-cta-btn { width: 100%; }
}
