/* IZOLACJA STYLÓW - START */

#ezo-wrapper {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Bezpieczny font */
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fcfcfc;
    color: #333;
    box-sizing: border-box;
}

#ezo-wrapper * {
    box-sizing: border-box;
}

/* Sekcja nagłówka */
.ezo-intro {
    text-align: center;
    margin-bottom: 30px;
}

.ezo-intro h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.ezo-intro p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Grid formularza */
.ezo-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ezo-input-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: #95a5a6;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.ezo-dropdown {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    height: 40px;
}

/* Przyciski */
.ezo-controls {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

#ezo-btn-submit {
    background-color: #8e44ad;
    /* Ezoteryczny fiolet */
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#ezo-btn-submit:hover {
    background-color: #732d91;
}

#ezo-btn-reset {
    background: none;
    border: none;
    color: #7f8c8d;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 15px;
}

/* WYNIKI - SIATKA PRODUKTÓW */
.ezo-group-title {
    font-size: 18px;
    color: #333;
    margin: 30px 0 15px 0;
    border-left: 4px solid #8e44ad;
    padding-left: 10px;
}

.ezo-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* RWD: Karty min 200px */
    gap: 25px;
}

/* KARTA PRODUKTU (Custom Card) */
.ezo-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.ezo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.ezo-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}

.ezo-card-thumb {
    width: 100%;
    height: 200px;
    /* Stała wysokość zdjęcia */
    overflow: hidden;
    background: #f9f9f9;
}

.ezo-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Zdjęcie wypełni obszar bez deformacji */
    transition: transform 0.5s ease;
}

.ezo-card:hover .ezo-card-thumb img {
    transform: scale(1.05);
}

.ezo-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.ezo-card-title {
    font-size: 14px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 600;
}

.ezo-card-title a {
    color: #333;
    text-decoration: none;
}

.ezo-card-price {
    font-size: 15px;
    color: #8e44ad;
    font-weight: bold;
    margin-bottom: 15px;
}

.ezo-card-btn {
    margin-top: auto;
    /* Dopycha guzik do dołu */
    display: inline-block;
    padding: 8px 0;
    width: 100%;
    border: 1px solid #8e44ad;
    color: #8e44ad;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.ezo-card-btn:hover {
    background: #8e44ad;
    color: #fff;
}

/* Spinner i komunikaty */
#ezo-loading-state,
.ezo-msg-info,
.ezo-msg-empty {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.ezo-spinner {
    display: inline-block;
    animation: spin 1.5s linear infinite;
}