/**
 * Related Products Simple CSS - Unique Classes
 * Prefix: rps- (Related Products Simple)
 */

/* Main wrapper */
.rps-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
}

.rps-title {
    font-family: "Poppins", Sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 30px 0;
    padding: 0;
}

.rps-wrapper {
    margin: 20px 0;
    font-family: "Poppins", Sans-serif;
}

/* Products grid */
.rps-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

/* Grid columns */
.rps-grid[data-columns="1"] { grid-template-columns: 1fr; }
.rps-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.rps-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.rps-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.rps-grid[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.rps-grid[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

/* Product item */
.rps-item {
    background: #202020;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rps-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Product image */
.rps-image {
    position: relative;
    padding-top: 100%; /* 1:1 ratio */
    overflow: hidden;
}

.rps-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rps-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rps-image:hover img {
    transform: scale(1.05);
}

/* Product info */
.rps-info {
    padding: 15px;
}

.rps-product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.rps-product-title a {
    color: #ffffff;
    text-decoration: none;
}

.rps-product-title a:hover {
    color: #e74c3c;
}

/* Product taxonomies */
.rps-taxonomies {
    display: flex;
    column-gap: 5px;
    row-gap: 3px;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rps-szteroid-hatoanyag {
    font-family: "Poppins", Sans-serif;
    font-size: 11px;
    background-color: #7ED0D9;
    font-weight: 400;
    border-radius: 10px;
    padding: 3px 10px;
    color: #383838;
}

.rps-szteroid-kiszereles {
    font-family: "Poppins", Sans-serif;
    font-size: 11px;
    background-color: #7ED0D9;
    font-weight: 400;
    border-radius: 10px;
    padding: 3px 10px;
    color: #383838;
}

/* Product price */
.rps-price {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Add to cart button */
.rps-add-to-cart .button {
    width: 100%;
    background: #D92B04;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
    font-size: 15px;
    text-align: center;
}

.rps-add-to-cart .button:hover {
    background: #c0392b;
}

/* No products message */
.rps-no-products {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 20px;
    font-family: "Poppins", Sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .rps-grid[data-columns="3"],
    .rps-grid[data-columns="4"],
    .rps-grid[data-columns="5"],
    .rps-grid[data-columns="6"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .rps-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .rps-grid {
        grid-template-columns: 1fr !important;
    }

    .rps-title {
        font-size: 18px;
    }

    .rps-section {
        margin: 20px 0;
        padding: 20px 0;
    }
}