/* ==========================================================================
   OldBike Recommended Products — Frontend Styles
   Palette: #BC5C24 (Primary), #8C2C14 (Dark), #1A2A54 (Navy), #518A89 (Teal),
            #ECD7AD (Sand BG), #CAB8A7 (Stone), #342C1C (Text)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Full Width override — forteaza continut 100% latime pe paginile Elementor
   -------------------------------------------------------------------------- */
.elementor-page .entry-content,
.elementor-page .wp-block-post-content,
.elementor-page .post-content,
.elementor-template-full-width .entry-content,
.elementor-template-full-width .wp-block-post-content {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-page .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.elementor-page .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
}

/* --------------------------------------------------------------------------
   Section common
   -------------------------------------------------------------------------- */
.oldbike-featured-section {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.oldbike-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1A2A54;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Featured Products Grid
   -------------------------------------------------------------------------- */
.oldbike-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .oldbike-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .oldbike-featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Product Card */
.oldbike-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ECD7AD;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    text-decoration: none;
    color: #342C1C;
}

.oldbike-product-card:hover {
    box-shadow: 0 8px 24px rgba(26, 42, 84, 0.12);
    transform: translateY(-2px);
}

.oldbike-product-card__image-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f1eb;
    position: relative;
}

.oldbike-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.oldbike-product-card:hover .oldbike-product-card__image {
    transform: scale(1.04);
}

.oldbike-product-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 0.8rem;
    color: #CAB8A7;
    text-align: center;
}

.oldbike-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.oldbike-product-card__badge--sale {
    background: #BC5C24;
    color: #ffffff;
}

.oldbike-product-card__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    gap: 6px;
}

.oldbike-product-card__brand {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #518A89;
    letter-spacing: 0.06em;
    min-height: 1em;
}

.oldbike-product-card__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #342C1C;
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.oldbike-product-card__name a {
    color: inherit;
    text-decoration: none;
}

.oldbike-product-card__name a:hover {
    color: #BC5C24;
}

.oldbike-product-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #1A2A54;
    margin-top: 4px;
}

.oldbike-product-card__btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: #BC5C24;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    box-sizing: border-box;
    margin-top: 8px;
}

.oldbike-product-card__btn:hover {
    background: #8C2C14;
    color: #ffffff;
    text-decoration: none;
}

/* Fallback placeholder */
.oldbike-no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #CAB8A7;
    padding: 40px 0;
    font-size: 0.95rem;
}
