/* RCG Featured Items
   Intentionally scoped only to the [rcg_featured_items] shortcode output.
   Do not target .rcg-shortcode-frame or .rcg-head here: those wrappers can be
   shared with other page sections and shortcodes. */

.rcg-featured-items-section {
    width: min(100%, var(--theme-normal-container-max-width, 1290px));
    margin-inline: auto;
    padding: clamp(20px, 3vw, 40px) 0;
}

.rcg-featured-items-section--products-only {
    padding: 0 !important;
}

.rcg-featured-items-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
    width: 100%;
    max-width: 980px;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
}

.rcg-featured-items-grid::before,
.rcg-featured-items-grid::after {
    display: none !important;
    content: none !important;
}

.rcg-featured-items-grid.rcg-featured-items-grid--cols-1 { grid-template-columns: 1fr; }
.rcg-featured-items-grid.rcg-featured-items-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rcg-featured-items-grid.rcg-featured-items-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rcg-featured-items-grid.rcg-featured-items-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rcg-featured-item {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

.rcg-featured-item-image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

.rcg-featured-item-image img,
.rcg-featured-item-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.rcg-featured-item-body {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0 !important;
}

.rcg-featured-item-category {
    display: block;
    margin: 0 0 4px !important;
    color: #8d95a1 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.rcg-featured-item-title-link {
    color: inherit !important;
    text-decoration: none !important;
}

.rcg-featured-item-title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    color: #1d2b3f !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(20px, 1.7vw, 25px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

.rcg-featured-item-price {
    display: block !important;
    margin: 0 0 10px !important;
    color: #1d2b3f !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.rcg-featured-item-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 172px;
    min-height: 48px;
    align-self: flex-start;
    margin: 0 !important;
    padding: 13px 24px !important;
    color: #fff !important;
    background: var(--theme-palette-color-1, #c74235) !important;
    border: 1px solid var(--theme-palette-color-1, #c74235) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.rcg-featured-item-button:hover,
.rcg-featured-item-button:focus {
    background: #a9342a !important;
    border-color: #a9342a !important;
    color: #fff !important;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .rcg-featured-items-section,
    .rcg-featured-items-grid {
        width: 100% !important;
        max-width: 100% !important;
    }

    .rcg-featured-items-grid,
    .rcg-featured-items-grid.rcg-featured-items-grid--cols-2,
    .rcg-featured-items-grid.rcg-featured-items-grid--cols-3,
    .rcg-featured-items-grid.rcg-featured-items-grid--cols-4 {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .rcg-featured-item-button {
        width: 100%;
    }
}
