.mlrwp-section {
    margin: 40px 0;
}

.mlrwp-title {
    margin: 0 0 16px;
}

.mlrwp-note {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.85;
}

.mlrwp-note p {
    margin: 0;
}

.mlrwp-grid {
    display: grid;
    gap: 24px;
}

.mlrwp-columns-1 { grid-template-columns: 1fr; }
.mlrwp-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mlrwp-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mlrwp-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mlrwp-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mlrwp-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.mlrwp-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e6e6e6;
    background: #fff;
    padding: 16px;
    text-align: center;
    min-width: 0;
}

.mlrwp-image {
    display: block;
    margin-bottom: 14px;
    text-decoration: none;
}

.mlrwp-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.mlrwp-product-title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.3;
}

.mlrwp-product-title a {
    color: inherit;
    text-decoration: none;
}

.mlrwp-product-title a:hover,
.mlrwp-description:hover {
    text-decoration: underline;
}

.mlrwp-price {
    margin-bottom: 10px;
    font-weight: 700;
}

.mlrwp-description {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
    color: inherit;
    text-decoration: none;
}

.mlrwp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 4px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

.mlrwp-button:hover {
    color: #fff;
    opacity: 0.9;
}

.mlrwp-error {
    padding: 12px;
    border-left: 4px solid #cc0000;
    background: #fff3f3;
}

@media (max-width: 1024px) {
    .mlrwp-columns-4,
    .mlrwp-columns-5,
    .mlrwp-columns-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .mlrwp-columns-3,
    .mlrwp-columns-4,
    .mlrwp-columns-5,
    .mlrwp-columns-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mlrwp-grid {
        grid-template-columns: 1fr;
    }
}
