/* ==================================================
   P&P ILIKODOMIKI — VARIATION NAVIGATOR
   Minimal Design v0.2.2
   Corporate Blue: #004587

   Styling only:
   No changes to filtering, attributes or URLs.
   ================================================== */


/* ==========================================
   1. MAIN CONTAINER
   Only top and bottom horizontal lines
   ========================================== */

.ilikod-nav {
    --ivn-blue: #004587;
    --ivn-line: #dce5ee;
    --ivn-muted: #64748b;

    box-sizing: border-box;

    width: 100%;
    clear: both;

    margin: 20px 0 28px;
    padding: 18px 0 20px;

    background: transparent;

    border: 0;
    border-top: 1px solid var(--ivn-line);
    border-bottom: 1px solid var(--ivn-line);

    border-radius: 0;
    box-shadow: none;
}

.ilikod-nav * {
    box-sizing: border-box;
}


/* ==========================================
   2. MULTIPLE FILTER SECTIONS
   ========================================== */

.ilikod-nav .ivn-section + .ivn-section {
    margin-top: 19px;
    padding-top: 18px;

    border-top: 1px solid var(--ivn-line);
}


/* ==========================================
   3. SECTION TITLE
   ========================================== */

.ilikod-nav .ivn-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 13px;
}

.ilikod-nav .ivn-section-heading h2 {
    margin: 0 !important;
    padding: 0 !important;

    color: #004587 !important;

    font-size: 19px !important;
    font-weight: 650 !important;

    line-height: 1.35 !important;
}

.ilikod-nav .ivn-clear {
    color: var(--ivn-blue) !important;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none !important;
}

.ilikod-nav .ivn-clear:hover {
    text-decoration: underline !important;
}


/* ==========================================
   4. SIZE OPTIONS GRID
   ========================================== */

.ilikod-nav .ivn-choices {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 1fr;

    gap: 9px;

    margin: 0;
    padding: 0;
}


/* ==========================================
   5. SIZE BUTTONS
   ========================================== */

.ilikod-nav .ivn-choice {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    min-width: 0;
    min-height: 48px;

    padding: 7px 9px;

    background: #ffffff !important;

    border: 1px solid #dce5ee !important;
    border-radius: 5px !important;

    color: #24435e !important;

    text-decoration: none !important;
    text-align: center;

    line-height: 1.25;

    box-shadow: none !important;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}


/* ==========================================
   6. SIZE BUTTON HOVER
   ========================================== */

.ilikod-nav .ivn-choice:hover {
    border-color: #004587 !important;

    background: #f4f8fd !important;

    color: #004587 !important;

    box-shadow: none !important;
}


/* ==========================================
   7. ACTIVE SIZE
   ========================================== */

.ilikod-nav .ivn-choice.is-active {
    border: 1px solid #004587 !important;

    background: #eaf3ff !important;

    color: #004587 !important;

    box-shadow: none !important;
}

.ilikod-nav .ivn-choice.is-active .ivn-choice-label {
    color: #004587 !important;
}


/* ==========================================
   8. SIZE LABEL
   ========================================== */

.ilikod-nav .ivn-choice-label {
    font-size: 14px;
    font-weight: 650;

    line-height: 1.25;

    overflow-wrap: anywhere;
}


/* ==========================================
   9. PRODUCT COUNT
   ========================================== */

.ilikod-nav .ivn-choice-count {
    color: #788695;

    font-size: 10px;
    font-weight: 400;

    line-height: 1.25;
}


/* ==========================================
   10. HIDDEN OPTIONS
   ========================================== */

.ilikod-nav .ivn-choice[hidden] {
    display: none !important;
}


/* ==========================================
   11. IMAGE TILES
   Keep functionality for image attributes
   ========================================== */

.ilikod-nav .ivn-style-images .ivn-choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ilikod-nav .ivn-style-images .ivn-choice,
.ilikod-nav .ivn-style-images .ivn-choice.ivn-all {
    min-height: 125px;

    padding: 8px;

    border-radius: 6px !important;
}

.ilikod-nav .ivn-image-holder {
    display: block;

    width: 100%;
    height: 86px;

    overflow: hidden;

    border-radius: 4px;

    background: #f1f5f9;
}

.ilikod-nav .ivn-tile-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================
   12. DROPDOWN STYLE
   ========================================== */

.ilikod-nav .ivn-select {
    display: block !important;

    width: 100%;
    max-width: 500px;

    min-height: 42px;

    padding: 8px 12px;

    border: 1px solid #dce5ee;
    border-radius: 5px;

    background: #ffffff;

    color: #24435e;

    font-size: 14px;

    box-shadow: none;
}


.ilikod-nav button.ivn-choice.ivn-more {
    appearance: none;
    width: 100%;
    height: auto;
    margin: 0;
    flex-direction: row;
    gap: 4px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.ilikod-nav .ivn-more[aria-expanded="true"] [aria-hidden="true"] {
    transform: rotate(180deg);
}


/* ==========================================
   14. CLEAR ALL FILTERS
   ========================================== */

.ilikod-nav .ivn-reset {
    margin: 14px 0 0 !important;

    font-size: 12px;
}

.ilikod-nav .ivn-reset a {
    color: #004587 !important;

    font-weight: 600;

    text-decoration: underline !important;
}


/* ==========================================
   15. ACCESSIBILITY
   ========================================== */

.ilikod-nav a:focus-visible,
.ilikod-nav button:focus-visible,
.ilikod-nav select:focus-visible {
    outline: 2px solid #004587;
    outline-offset: 2px;
}


/* ==========================================
   16. TABLET
   ========================================== */

@media (max-width: 1050px) {

    .ilikod-nav {
        margin: 16px 0 24px;
        padding: 16px 0 18px;
    }

    .ilikod-nav .ivn-choices {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ilikod-nav .ivn-style-images .ivn-choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ==========================================
   17. MOBILE
   ========================================== */

@media (max-width: 767px) {

    .ilikod-nav {
        width: 100%;

        margin: 14px 0 22px;
        padding: 15px 0 17px;

        border-top: 1px solid #dce5ee;
        border-bottom: 1px solid #dce5ee;

        border-left: 0;
        border-right: 0;

        border-radius: 0;

        background: transparent;

        box-shadow: none;
    }

    /* Mobile title */

    .ilikod-nav .ivn-section-heading {
        margin-bottom: 11px;
    }

    .ilikod-nav .ivn-section-heading h2 {
        font-size: 17px !important;
        font-weight: 650 !important;
    }

    /* Three options per row */

    .ilikod-nav .ivn-choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 7px;
    }

    /* Compact mobile buttons */

    .ilikod-nav .ivn-choice {
        min-height: 45px;

        padding: 6px 4px;

        border-radius: 4px !important;
    }

    .ilikod-nav .ivn-choice-label {
        font-size: 12px;

        line-height: 1.2;
    }

    .ilikod-nav .ivn-choice-count {
        font-size: 10px;

        line-height: 1.15;
    }

    /* Mobile image tiles */

    .ilikod-nav .ivn-style-images .ivn-choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ilikod-nav .ivn-style-images .ivn-choice,
    .ilikod-nav .ivn-style-images .ivn-choice.ivn-all {
        min-height: 108px;

        padding: 7px;
    }

    .ilikod-nav .ivn-image-holder {
        height: 74px;
    }

    .ilikod-nav .ivn-section +
    .ivn-section {
        margin-top: 15px;
        padding-top: 15px;
    }
}


/* ==========================================
   18. REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .ilikod-nav .ivn-choice {
        transition: none;
    }
}

/* v0.2.3: minimal wrapper */
body.woocommerce .ilikod-nav,
body.woocommerce-page .ilikod-nav,
body .razzi-catalog-page .ilikod-nav,
body .ilikod-nav {
 background:transparent !important; background-image:none !important;
 border:0 !important; border-top:1px solid #dce5ee !important; border-bottom:1px solid #dce5ee !important;
 border-radius:0 !important; box-shadow:none !important;
 padding:18px 0 !important; margin:18px 0 26px !important;
}
@media(max-width:767px){
 body .ilikod-nav {padding:14px 0 !important;margin:14px 0 22px !important;}
}
