/* ==========================================================================
   codePresta.com · Κατηγορίες αρχικής (cphomecategories)
   πλακίδια χωρίς border/σκιά · εικονίδιο σε κύκλο με «δαχτυλίδι» · στο hover ο
   κύκλος γεμίζει μπλε και το εικονίδιο γίνεται λευκό · πλήθος σε «χάπι» με →
   ίδιο πλάτος με «Αγοράστε ανά μάρκα» / «Νέα προϊόντα» (custom.css 61.1)
   ========================================================================== */
.cp-hcat {
    margin: 48px 0 56px;
    padding-right: max(0px, calc(clamp(24px, 7vw, 140px) - clamp(16px, 3vw, 56px)));
    padding-left: max(0px, calc(clamp(24px, 7vw, 140px) - clamp(16px, 3vw, 56px)));
}

.cp-hcat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-hcat-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    height: 100%;
    padding: 30px 18px 22px;
    border-radius: 24px;
    background: #fff;
    background-image: none !important;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease;
}

.cp-hcat-item:hover,
.cp-hcat-item:focus-visible {
    transform: translateY(-3px);
}

.cp-hcat-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: #eef1f7;
    box-shadow: 0 0 0 8px #f6f8fb;
    color: var(--cp-primary, #1c3673);
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.cp-hcat-glyph {
    display: block;
    width: 46px;
    height: 46px;
    background: var(--cp-primary, #1c3673);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
    transition: background .25s ease;
}

.cp-hcat-ico img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.cp-hcat-ico > svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cp-hcat-item:hover .cp-hcat-ico,
.cp-hcat-item:focus-visible .cp-hcat-ico {
    background: var(--cp-primary, #1c3673);
    box-shadow: 0 0 0 8px #e3e9f5;
    color: #fff;
    transform: scale(1.04);
}

.cp-hcat-item:hover .cp-hcat-glyph,
.cp-hcat-item:focus-visible .cp-hcat-glyph {
    background: #fff;
}

.cp-hcat-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
    transition: color .2s;
}

.cp-hcat-item:hover .cp-hcat-name {
    color: var(--cp-primary, #1c3673);
}

.cp-hcat-more {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f5f9;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7280;
    transition: background .2s, color .2s;
}

.cp-hcat-more svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s;
}

.cp-hcat-item:hover .cp-hcat-more {
    background: #eaf0fa;
    color: var(--cp-primary, #1c3673);
}

.cp-hcat-item:hover .cp-hcat-more svg {
    transform: translateX(3px);
}

@media (max-width: 1199px) {
    .cp-hcat {
        padding-right: max(0px, calc(32px - clamp(16px, 3vw, 56px)));
        padding-left: max(0px, calc(32px - clamp(16px, 3vw, 56px)));
    }

    .cp-hcat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cp-hcat {
        margin: 32px 0 40px;
        padding-right: 0;
        padding-left: 0;
    }

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

    .cp-hcat-item {
        padding: 22px 12px 16px;
        border-radius: 18px;
    }

    .cp-hcat-ico {
        width: 72px;
        height: 72px;
        box-shadow: 0 0 0 6px #f6f8fb;
    }

    .cp-hcat-glyph {
        width: 36px;
        height: 36px;
    }

    .cp-hcat-name {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-hcat-ico,
    .cp-hcat-item {
        transition: none;
    }
}

/* μεγαλύτερα γράμματα (χωρίς πλήθος προϊόντων) */
.cp-hcat-item {
    gap: 16px;
    padding-bottom: 28px;
}

.cp-hcat-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
}

@media (max-width: 767px) {
    .cp-hcat-item {
        padding-bottom: 20px;
    }

    .cp-hcat-name {
        font-size: 15.5px;
    }
}

/* ακόμα μεγαλύτερα γράμματα και περισσότερο padding */
.cp-hcat-item {
    gap: 20px;
    padding: 40px 22px 36px;
}

.cp-hcat-name {
    font-size: 21px;
    font-weight: 700;
}

.cp-hcat-ico {
    width: 108px;
    height: 108px;
}

.cp-hcat-glyph {
    width: 52px;
    height: 52px;
}

@media (max-width: 767px) {
    .cp-hcat-item {
        gap: 14px;
        padding: 28px 12px 24px;
    }

    .cp-hcat-name {
        font-size: 17px;
    }

    .cp-hcat-ico {
        width: 80px;
        height: 80px;
    }

    .cp-hcat-glyph {
        width: 40px;
        height: 40px;
    }
}
