/* Rutnätet */
.pw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Korten */
.pw-card {
    background: #fff;
    border: 1px solid #eaeaec;
    border-radius: 4px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    container-type: inline-size;
}

.pw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* REA-Badge */
.pw-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background-color: #E70808;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Bilden */
.pw-image-link {
    display: block;
    margin-bottom: 15px;
    width: 100%;
}

.pw-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

/* Titel-fix för långa ord */
.pw-title {
    width: 100%;
    margin: 10px 0;
    font-size: clamp(12px, 8cqw, 18px); 
    font-weight: 800;
    line-height: 1.1;
    color: #000;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.3em;
}

.pw-title a {
    color: inherit;
    text-decoration: none;
}

.pw-price {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pw-price del {
    color: #777;
    font-size: 18px;
    margin-right: 6px;
    font-weight: normal;
}

.pw-price ins {
    text-decoration: none;
    color: #000;
}

/* Knappen */
.pw-add-to-cart-wrapper {
    width: 100%;
}

.pw-button {
    display: block !important;
    width: 100% !important;
    text-align: center;
}
