/* ==================================================
   FİYAT LİSTELERİ SAYFASI
================================================== */


.ae-price-lists-page {
    min-height: 100vh;
    padding: 56px 0 80px;
    background: #f5f7fb;
}

.ae-price-lists-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Hero */

.ae-price-lists-hero {
    margin-bottom: 32px;
}

.ae-price-lists-hero__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ae-price-lists-hero h1 {
    margin: 0 0 14px;
    color: #172033;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.ae-price-lists-hero p {
    max-width: 720px;
    margin: 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.7;
}

/* Filtreler */

.ae-price-list-filter-heading {
    margin-bottom: 14px;
}

.ae-price-list-filter-heading span {
    display: block;
    margin-bottom: 4px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.ae-price-list-filter-heading p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.ae-price-list-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    margin-bottom: 30px;
    padding: 18px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);

    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.ae-price-list-filters::-webkit-scrollbar {
    display: none;
}

.ae-price-list-filters button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ae-price-list-filters button {
    appearance: none;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d8deea;
    border-radius: 999px;
    background: #ffffff;
    color: #25324a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ae-price-list-filters button:hover {
    color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.ae-price-list-filters button.is-active {
    color: #ffffff;
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.ae-price-list-filters button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.ae-price-list-filter-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.ae-price-list-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    /*
     * Okların içerikle çakışmaması için
     * iki tarafta boşluk bırakıyoruz.
     */
    padding: 18px 64px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);

    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.ae-filter-arrow{
    flex-shrink:0;
}

.ae-price-list-filters::-webkit-scrollbar {
    display: none;
}

.ae-price-list-filters button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ae-price-list-filters button[data-price-list-filter="all"] {
    position: sticky;
    left: 0;
    z-index: 4;
    box-shadow:
        12px 0 16px -14px rgba(15, 23, 42, 0.55);
}

.ae-price-list-filter-wrapper::before,
.ae-price-list-filter-wrapper::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    width:55px;
    z-index:5;
    pointer-events:none;
}

.ae-price-list-filter-wrapper::before{
    left:0;
    background:linear-gradient(to right,#fff,transparent);
    border-radius:16px 0 0 16px;
}

.ae-price-list-filter-wrapper::after{
    right:0;
    background:linear-gradient(to left,#fff,transparent);
    border-radius:0 16px 16px 0;
}

.ae-filter-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;

    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.96);
    color: #172033;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);

    font-size: 20px;
    font-weight: 800;
    line-height: 1;

    width:36px;
    height:36px;

    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.ae-filter-arrow--prev {
    left: 12px;
}

.ae-filter-arrow--next {
    right: 12px;
}

.ae-filter-arrow:hover {
    color: #ffffff;
    border-color: #2563eb;
    background: #2563eb;
}

/* Grid */

.ae-price-lists-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Kart */

.ae-price-list-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.ae-price-list-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

/* Görsel alanı */

.ae-price-list-image {
    position: relative;
    display: flex;
    height: 250px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.14),
            transparent 38%
        ),
        linear-gradient(145deg, #eef3f9, #e6edf5);
}

.ae-price-list-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.ae-price-list-card:hover .ae-price-list-image img {
    transform: scale(1.03);
}

.ae-price-list-placeholder {
    display: flex;
    width: 138px;
    height: 178px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #dc2626;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    transform: rotate(-2deg);
}

/* Kart içeriği */

.ae-price-list-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.ae-price-list-brand {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ae-price-list-content h2 {
    margin: 0 0 20px;
    color: #172033;
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.ae-price-list-button {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0 18px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.ae-price-list-button:hover {
    color: #ffffff;
    background: #1d4ed8;
    transform: translateY(-1px);
}

.ae-price-list-unavailable {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* Filtrelenmiş kart */

.ae-price-list-card[hidden] {
    display: none !important;
}

/* Boş sonuç */

.ae-price-lists-empty {
    grid-column: 1 / -1;
    padding: 36px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

/* Tablet */

@media (max-width: 1100px) {
    .ae-price-lists-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .ae-price-lists-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobil */

@media (max-width: 600px) {
    .ae-price-lists-page {
        padding: 40px 0 60px;
    }

    .ae-price-lists-container {
        width: min(100% - 28px, 1180px);
    }

    .ae-price-lists-hero {
        margin-bottom: 24px;
    }

    .ae-price-lists-hero h1 {
        font-size: 38px;
    }

    .ae-price-lists-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .ae-price-list-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.ae-price-list-filters::-webkit-scrollbar {
    display: none;
}

.ae-price-list-filters button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
}

    .ae-price-lists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .ae-price-list-image {
        height: 220px;
    }

    .ae-price-list-content {
        padding: 20px;
    }

    .ae-price-list-content h2 {
        font-size: 18px;
    }
    
    .ae-price-list-card {
    border-radius: 14px;
}

.ae-price-list-image {
    height: 190px;
    padding: 14px;
}

.ae-price-list-content {
    padding: 14px;
}

.ae-price-list-brand {
    margin-bottom: 7px;
    font-size: 10px;
}

.ae-price-list-content h2 {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.35;
}

.ae-price-list-meta {
    gap: 6px 8px;
    margin: 8px 0 14px;
    font-size: 11px;
}

.ae-price-list-meta-item svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.ae-price-list-button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
}
}

.ae-price-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 14px 0 20px;
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
}

.ae-price-list-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ae-price-list-meta-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 480px) {
    .ae-price-list-meta {
        gap: 7px 12px;
        font-size: 12px;
    }
}

.ae-pdf-modal {
    width: min(1100px, calc(100% - 32px));
    height: min(90vh, 900px);
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.ae-pdf-modal::backdrop {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(3px);
}

.ae-pdf-modal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ae-pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.ae-pdf-modal-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.ae-pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ae-pdf-modal-open {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ae-pdf-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ae-pdf-modal-close:hover {
    background: #e2e8f0;
}

.ae-pdf-modal-content {
    flex: 1;
    min-height: 0;
    background: #525659;
}

.ae-pdf-modal-content iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ae-price-list-button {
    cursor: pointer;
}

@media (max-width: 767px) {
    .ae-pdf-modal {
        width: calc(100% - 16px);
        height: calc(100vh - 16px);
        border-radius: 12px;
    }

    .ae-pdf-modal-header {
        padding: 12px 14px;
    }

    .ae-pdf-modal-header h2 {
        max-width: 55%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 15px;
    }

    .ae-pdf-modal-open {
        font-size: 12px;
    }

    .ae-pdf-modal-close {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 600px) {
    .ae-price-list-filter-heading {
        margin-bottom: 10px;
    }

    .ae-price-list-filter-heading p {
        display: none;
    }

    .ae-price-list-filters {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 24px;
        padding: 12px;
        border-radius: 14px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .ae-price-list-filters::-webkit-scrollbar {
        display: none;
    }

    .ae-price-list-filters button {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .ae-filter-arrow {
        display: none;
    }

    .ae-price-list-filters {
        padding: 12px;
    }

    .ae-price-list-filters button[data-filter="all"] {
        left: 0;
    }
}
