.fh-fe-wrapper-light {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 20px 0;
}

/* Panel lewy */
.fh-fe-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 16px;
    color: #111827;
    box-shadow: 0 10px 30px rgba(15,23,42,0.12);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 10px;
}

.fh-fe-panel-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.fh-fe-panel-header p {
    margin: 0 0 16px;
    font-size: 12px;
    color: #6b7280;
}

.fh-fe-form-row {
    margin-bottom: 10px;
}

.fh-fe-form label {
    display: block;
    font-size: 11px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.fh-fe-form input[type="url"],
.fh-fe-form input[type="text"],
.fh-fe-form select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.fh-fe-form input:focus,
.fh-fe-form select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249,115,22,0.25);
    background: #ffffff;
}

.fh-fe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.fh-fe-btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(249,115,22,0.35);
    width: 100%;
}

.fh-fe-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(249,115,22,0.45);
}

.fh-fe-status {
    margin-top: 6px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    font-size: 11px;
    color: #6b7280;
}

.fh-fe-status-line {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.fh-fe-status-stats {
    margin-top: 4px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 4px;
    font-size: 11px;
}

.fh-fe-status-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    color: #9ca3af;
}

.fh-fe-status-value {
    font-weight: 500;
    color: #111827;
}

.fh-fe-progress {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid rgba(249,115,22,0.5);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #92400e;
}

.fh-fe-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(249,115,22,0.3);
    border-top-color: #f97316;
    animation: fh-fe-spin 0.6s linear infinite;
}

@keyframes fh-fe-spin {
    to { transform: rotate(360deg); }
}

/* Prawa kolumna */
.fh-fe-products-wrapper {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 14px 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.fh-fe-products-header {
    display: block;
    margin-bottom: 8px;
}

.fh-fe-products-filters {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.fh-fe-filter label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 2px;
}

/* Węższe pola filtrów */
.fh-fe-filter select,
.fh-fe-filter input {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    padding: 5px 10px;
    font-size: 11px;
    min-width: 100px;
    max-width: 150px;
    width: auto;
}

/* Nagłówek "Produkty" pod filtrami */
.fh-fe-products-title {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    display: block;
}

/* Grid produktów */
.fh-fe-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 70vh;
    overflow: auto;
    padding-right: 4px;
}

/* Karta produktu */
.fh-fe-product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 6px;
    font-size: 11px;
    color: #111827;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(15,23,42,0.06);
}

.fh-fe-product-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 4 / 5;
    margin-bottom: 4px;
}

.fh-fe-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fh-fe-product-tag {
    position: absolute;
    left: 4px;
    top: 4px;
    border-radius: 999px;
    background: rgba(17,24,39,0.9);
    border: 1px solid rgba(249,115,22,0.9);
    padding: 1px 6px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fed7aa;
}

.fh-fe-product-title {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
}

/* Cena z regularną + promocyjną */
.fh-fe-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.fh-fe-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.fh-fe-price-regular {
    font-weight: 500;
    color: #111827;
}

.fh-fe-price-regular.fh-fe-price-crossed {
    text-decoration: line-through;
    color: #9ca3af;
}

.fh-fe-price-promo {
    font-weight: 600;
    color: #b91c1c;
}

.fh-fe-product-brand {
    font-size: 10px;
    color: #6b7280;
    text-align: right;
}

.fh-fe-product-cat {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Link do produktu */
.fh-fe-product-link {
    margin-top: 2px;
    font-size: 10px;
}

.fh-fe-product-link a {
    color: #2563eb;
    text-decoration: none;
}

.fh-fe-product-link a:hover {
    text-decoration: underline;
}

/* Responsywność */
@media (max-width: 900px) {
    .fh-fe-wrapper-light {
        grid-template-columns: 1fr;
    }
    .fh-fe-panel {
        position: static;
    }
}
