/* Dvor okusov – hitra navigacija do kategorij ponudbe. */
.dock-category-links {
    --dock-orange: rgb(228, 123, 2);
    --dock-orange-dark: #c96502;
    --dock-dark: #1f2933;
    --dock-border: rgba(31, 41, 51, .09);
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    font-family: "Epilogue", sans-serif;
}

.dock-category-links *,
.dock-category-links *::before,
.dock-category-links *::after { box-sizing: border-box; }

.dock-category-links__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 14px);
}

.dock-category-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: 12px 9px;
    overflow: hidden;
    appearance: none;
    border: 1px solid var(--dock-border);
    border-radius: clamp(16px, 1.6vw, 22px);
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,248,239,.82));
    color: var(--dock-dark);
    font: inherit;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(31,41,51,.07);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dock-category-link::after {
    content: "";
    position: absolute;
    right: -28%;
    bottom: -35%;
    width: 72%;
    aspect-ratio: 1 / 1;
    border: 14px solid rgba(228,123,2,.045);
    border-radius: 50%;
    pointer-events: none;
}

.dock-category-link__icon,
.dock-category-link__title { position: relative; z-index: 1; }

.dock-category-link__icon {
    display: grid;
    place-items: center;
    width: clamp(46px, 4.4vw, 58px);
    height: clamp(46px, 4.4vw, 58px);
    color: var(--dock-orange);
}

.dock-category-link__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dock-category-link__title {
    color: var(--dock-dark);
    font-size: clamp(13px, 1.15vw, 16px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: normal;
    text-transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .dock-category-link:hover {
        transform: translateY(-4px);
        border-color: rgba(228,123,2,.28);
        background: linear-gradient(145deg, #fff, rgba(255,239,218,.88));
        box-shadow: 0 20px 44px rgba(31,41,51,.11), 0 9px 22px rgba(228,123,2,.08);
    }
}

.dock-category-link:focus-visible {
    outline: 2px solid var(--dock-orange);
    outline-offset: 3px;
}

.dock-category-link:active { transform: scale(.985); }

.dock-category-popup[hidden] { display: none; }

.dock-category-popup {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.dock-category-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dock-category-popup__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(390px, 100%);
    padding: 34px 28px 28px;
    border: 1px solid rgba(228,123,2,.16);
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 28px 70px rgba(31,41,51,.18);
    text-align: center;
}

.dock-category-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    appearance: none;
    border: 1px solid rgba(31,41,51,.08);
    border-radius: 999px;
    background: #fff;
    color: var(--dock-dark);
    cursor: pointer;
}

.dock-category-popup__close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.dock-category-popup__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    color: var(--dock-orange);
}

.dock-category-popup__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dock-category-popup__message {
    margin: 0;
    color: var(--dock-dark);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
    .dock-category-popup__close:hover {
        transform: translateY(-1px);
        border-color: rgba(228,123,2,.24);
        color: var(--dock-orange-dark);
        box-shadow: 0 8px 18px rgba(31,41,51,.08);
    }
}

@media (max-width: 760px) {
    .dock-category-links__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .dock-category-link {
        gap: 7px;
        padding: 7px 5px;
        border-radius: 15px;
        box-shadow: 0 8px 22px rgba(31,41,51,.065);
    }

    .dock-category-link::after {
        right: -34%;
        bottom: -39%;
        border-width: 9px;
    }

    .dock-category-link__icon {
        width: clamp(38px, 11.5vw, 46px);
        height: clamp(38px, 11.5vw, 46px);
    }

    .dock-category-link__title {
        max-width: 100%;
        font-size: clamp(11px, 3.25vw, 14px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .dock-category-popup__panel {
        width: min(340px, 100%);
        padding: 32px 22px 24px;
        border-radius: 20px;
    }

    .dock-category-popup__message { font-size: 15px; }
}
