.ap-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ap-card {
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    background: #fff7e5;
    border: 1px solid #f0d09a;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.ap-card--banner {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #fff;
}

.ap-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.ap-price-orig {
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 8px;
}

.ap-card-button a {
    display: inline-block;
    padding: 6px 12px;
    background: #28a745;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.ap-pagination ul {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin-top: 16px;
}

.ap-pagination li a,
.ap-pagination span {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    text-decoration: none;
}

.ap-pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

@media (max-width: 900px) {
    .ap-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ap-card--banner {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .ap-card-grid {
        grid-template-columns: 1fr;
    }
    .ap-card--banner {
        grid-column: span 1;
    }
}


/* === AkcioPost keresősáv (kártyák elé) === */
.ap-search-bar {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 16px 18px;
    background: #111827;
    border-radius: 16px;
    border: 1px solid rgba(248, 191, 66, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    color: #f9fafb;
}

.ap-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
}

.ap-search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ap-search-field label {
    font-size: 13px;
    font-weight: 500;
    color: #fde68a;
}

.ap-search-field input[type="text"], .ap-search-field select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(248, 191, 66, 0.65);
    background: #020617;
    color: #f9fafb;
    font-size: 14px;
}

.ap-search-field input[type="text"]::placeholder {
    color: #9ca3af;
}

.ap-search-field input[type="text"]:focus, .ap-search-field select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.4);
}

.ap-search-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ap-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ap-search-btn--reset {
    background: transparent;
    border-color: rgba(248, 191, 66, 0.7);
    color: #fde68a;
}

.ap-search-btn--reset:hover {
    background: rgba(248, 191, 66, 0.12);
    color: #f9fafb;
}

.ap-search-btn--submit {
    background: linear-gradient(90deg, #f97316, #fbbf24);
    color: #111827;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}

.ap-search-btn--submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .ap-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ap-search-grid {
        grid-template-columns: 1fr;
    }
    .ap-search-actions {
        justify-content: stretch;
    }
    .ap-search-btn {
        flex: 1 1 auto;
        width: 100%;
    }
}


/* Saját kártyáim: kártya-előnézet + mezőlista egymás mellett */
.ap-my-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ap-my-card-body-preview {
    flex: 0 0 320px;
}

.ap-my-card-body-preview .ap-card {
    max-width: 320px;
}

.ap-my-card-body-fields {
    flex: 1 1 200px;
}

/* Élő előnézeti kártya alap beállítások */
.ap-card-live-preview {
    max-width: 360px;
    margin-top: 20px;
}

/* Live stats refresh state */
.apcs-panel-loading{ opacity: 0.6; pointer-events: none; }
