/* =========================================================
   PIZZAPATRULLEN – KATEGORIER I HÖGERSPALTEN
   Fristående från sidebar.php och övriga widgetstilar.
   ========================================================= */

.pp-category-box {
    width: 100%;
    margin: 24px 0 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e7e3dc;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.pp-category-box-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
}

.pp-category-box-heading h2 {
    margin: 0;
    color: #333333;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.pp-category-box-heading span {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(214, 40, 40, 0.35),
        rgba(214, 40, 40, 0.04)
    );
}

.pp-category-box-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pp-category-box-item {
    display: block;
    width: 100%;
    margin: 0;
    color: inherit;
    text-decoration: none;
}

.pp-category-box-image-wrap {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #e9e5de;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.pp-category-box-image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.pp-category-box-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.00) 20%,
        rgba(0, 0, 0, 0.34) 100%
    );
    pointer-events: none;
}

.pp-category-box-label {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 5px;
    background: rgba(25, 118, 210, 0.94);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    pointer-events: none;
}

.pp-category-box-item:hover .pp-category-box-image,
.pp-category-box-item:focus-visible .pp-category-box-image {
    transform: scale(1.025);
}

.pp-category-box-item:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 3px;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .pp-category-box {
        padding: 20px;
    }

    .pp-category-box-image-wrap {
        height: 110px;
    }
}

/* Luft mellan Kategorier och nästa widget. */
.pp-category-box + .pp-sidebar-widget {
    margin-top: 24px;
}
