/* ============================================================
   EURO-DREWNO — Polecane Produkty  |  ed-featured.css
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── SEKCJA ──────────────────────────────────────────────── */
.ed-featured-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 80px 24px 88px;
    font-family: 'Inter', sans-serif;
}

.ed-featured-subtitle {
    font-size: 15px;
    color: #888;
    margin: 10px 0 0;
    text-align: center;
    letter-spacing: 0.2px;
}

.ed-featured-empty {
    text-align: center;
    color: #888;
    font-size: 15px;
    padding: 48px 0;
}

/* ─── SIATKA ──────────────────────────────────────────────── */
.ed-featured-grid {
    display: grid;
    grid-template-columns: repeat(var(--ed-feat-cols, 3), 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

/* ─── KARTA PRODUKTU ──────────────────────────────────────── */
.ed-feat-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #EBE5DF;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(92, 61, 30, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow .35s ease, transform .35s ease, border-color .35s;
}

.ed-feat-card:hover {
    box-shadow: 0 20px 48px rgba(92, 61, 30, 0.1), 0 8px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-6px);
    border-color: #D8CCB8;
}

/* Zdjęcie */
.ed-feat-card__img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F5EFE6;
    text-decoration: none;
}

.ed-feat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.ed-feat-card:hover .ed-feat-card__img {
    transform: scale(1.07);
}

.ed-feat-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F9F4ED 0%, #F0E8DC 100%);
}

.ed-feat-card__img-placeholder svg {
    width: 56px;
    height: 56px;
    opacity: .35;
}

/* Badge dostępności */
.ed-feat-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    background: rgba(92, 61, 30, .88);
    color: #fff;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ed-feat-card__badge--avail {
    background: rgba(34, 120, 55, .9);
}

/* Treść karty */
.ed-feat-card__body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.ed-feat-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #2A1A0A;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.ed-feat-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.ed-feat-card__title a:hover {
    color: #C4956A;
}

.ed-feat-card__desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Wymiary */
.ed-feat-card__dims {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #555;
    margin-top: auto;
    margin-bottom: 18px;
}

.ed-feat-card__dims th,
.ed-feat-card__dims td {
    padding: 7px 0 !important;
    text-align: left;
    border: none !important;
    border-bottom: 1px solid #F0ECE6 !important;
}

.ed-feat-card__dims tr:last-child th,
.ed-feat-card__dims tr:last-child td {
    border-bottom: none !important;
}

.ed-feat-card__dims th {
    color: #999;
    font-weight: 500;
    width: 80px;
}

.ed-feat-card__dims td {
    font-weight: 600;
    color: #3A2A18;
}

/* Cena */
.ed-feat-card__price {
    font-size: 16px;
    color: #5C3D1E;
    margin: 0;
}

.ed-feat-card__price strong {
    font-weight: 800;
}

/* Przycisk */
.ed-feat-card__inquiry-btn {
    padding: 13px 18px;
    background: linear-gradient(135deg, #3A2A18 0%, #5C3D1E 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ed-feat-card__inquiry-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #C4956A 0%, #D4A87A 100%);
    opacity: 0;
    transition: opacity .3s;
}

.ed-feat-card__inquiry-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 61, 30, 0.25);
}

.ed-feat-card__inquiry-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.ed-feat-card__inquiry-btn span,
.ed-feat-card__inquiry-btn {
    position: relative;
    z-index: 1;
}

.ed-feat-card__inquiry-btn.added {
    background: linear-gradient(135deg, #1B5E20 0%, #2e7d32 100%);
    cursor: default;
}

.ed-feat-card__inquiry-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ed-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ed-featured-section {
        padding: 48px 16px 56px;
    }

    .ed-featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ed-feat-card__body {
        padding: 16px 16px 14px;
    }
}