/* ==================================================
   TEKİL MARKA SAYFASI
================================================== */

.ae-brand-page {
    width: 100%;
    padding: 40px 0 80px;
}

.ae-brand-container {
    width: calc(100% - 48px);
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}


/* ==================================================
   HERO
================================================== */

.ae-brand-hero {
    margin: 40px 0 70px;
}

.ae-brand-hero-inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 48px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.96),
        rgba(245, 247, 250, 0.96)
    );
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.ae-brand-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
}

.ae-brand-hero-logo img {
    display: block;
    width: 100%;
    max-width: 180px;
    max-height: 110px;
    object-fit: contain;
}

.ae-brand-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ae-brand-hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.ae-brand-hero-content p {
    max-width: 760px;
    margin: 0;
    color: #626262;
    font-size: 18px;
    line-height: 1.75;
}

.ae-brand-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ae-brand-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.ae-brand-button:hover {
    transform: translateY(-2px);
}

.ae-brand-button-primary {
    background: #111;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.ae-brand-button-primary:hover {
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.ae-brand-button-outline {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: #222;
}

.ae-brand-button-outline:hover {
    background: #fff;
    color: #222;
}


/* ==================================================
   ORTAK BÖLÜM BAŞLIKLARI
================================================== */

.ae-brand-section {
    margin-top: 70px;
}

.ae-brand-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.ae-brand-section-heading span {
    display: block;
    margin-bottom: 7px;
    color: #888;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ae-brand-section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.ae-brand-section-heading strong {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    background: #ececec;
    color: #555;
    font-size: 14px;
}


/* ==================================================
   DOKÜMAN FİLTRELERİ
================================================== */

.ae-document-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.ae-document-search {
    position: relative;
    width: min(620px, 100%);
    margin-bottom: 18px;
}

.ae-document-search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
    transform: translateY(-50%);
}

.ae-document-search input[type="search"] {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 18px 0 52px;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-size: 15px;
    outline: none;
    box-shadow: 0 8px 25px rgba(15, 42, 70, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ae-document-search input[type="search"]::placeholder {
    color: #94a3b8;
}

.ae-document-search input[type="search"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ae-document-no-results {
    margin-top: 24px;
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.ae-document-no-results[hidden] {
    display: none;
}

.ae-document-filters button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.ae-document-filters button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.08);
}

.ae-document-filters button.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
}


/* ==================================================
   DOKÜMAN KARTLARI
================================================== */

.ae-documents-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.ae-document-card {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.ae-document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.12);
}

.ae-document-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ae-document-card-image {
    height: 330px;
    overflow: hidden;
    background: #f1f1f1;
}

.ae-document-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.ae-document-card:hover .ae-document-card-image img {
    transform: scale(1.035);
}

.ae-document-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #aaa;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ae-document-card-content {
    padding: 22px;
}

.ae-document-type {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 700;
}

.ae-document-card h3 {
    margin: 0 0 18px;
    font-size: 19px;
    line-height: 1.4;
}

.ae-document-link {
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.ae-document-card[hidden] {
    display: none;
}

.ae-brand-empty {
    padding: 34px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 18px;
    background: #fafafa;
    color: #777;
    text-align: center;
}


/* ==================================================
   ÜRÜN GRUPLARI
================================================== */

.ae-product-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ae-product-group-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 150px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ae-product-group-card:hover,
.ae-product-group-card.is-active {
    transform: translateY(-3px);
    border-color: #2563eb;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.ae-product-group-card.is-active {
    background: #f8fbff;
}

.ae-product-group-icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 52px;
    height: 52px;
    margin-right: 18px;
    border-radius: 14px;
    background: #eff6ff;
    font-size: 22px;
    font-weight: 700;
}

.ae-product-group-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ae-product-group-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.ae-product-group-title {
    font-size: 18px;
    line-height: 1.3;
}

.ae-product-group-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.ae-product-group-meta {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
}

.ae-product-group-arrow {
    margin-left: 14px;
    font-size: 22px;
    transition: transform 0.2s ease;
}

.ae-product-group-card.is-active .ae-product-group-arrow {
    transform: rotate(90deg);
}


/* ==================================================
   ÜRÜN SERİLERİ
================================================== */

.ae-product-series-area {
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    scroll-margin-top: 100px;
}

.ae-product-series-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.ae-product-series-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.ae-product-series-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
}

.ae-product-series-image img {
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
}

.ae-product-series-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 42px;
    font-weight: 700;
}

.ae-product-series-content {
    padding: 20px;
}

.ae-product-series-label {
    display: block;
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ae-product-series-content h3 {
    margin: 0 0 9px;
    font-size: 19px;
}

.ae-product-series-count {
    color: #64748b;
    font-size: 14px;
}

.ae-series-close {
    padding: 9px 15px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.ae-series-close:hover {
    border-color: #2563eb;
    color: #2563eb;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1100px) {
    .ae-product-groups-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .ae-brand-hero-inner {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 32px;
        padding: 38px;
    }

    .ae-documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ae-product-series-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .ae-product-groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ae-product-series-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ae-product-group-card {
        min-height: 125px;
        padding: 18px;
    }
}

@media (max-width: 767px) {
    .ae-brand-container {
        width: calc(100% - 28px);
    }

    .ae-brand-page {
        padding-top: 24px;
        padding-bottom: 50px;
    }

    .ae-brand-hero {
        margin: 24px 0 50px;
    }

    .ae-brand-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 26px;
        text-align: center;
    }

    .ae-brand-hero-logo {
        min-height: 140px;
    }

    .ae-brand-hero-content p {
        font-size: 16px;
    }

    .ae-brand-actions {
        justify-content: center;
    }

    .ae-brand-section {
        margin-top: 50px;
    }

    .ae-brand-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ae-document-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .ae-document-filters button {
        flex: 0 0 auto;
    }
}

.ae-product-series-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ae-product-series-card:hover {
    color: inherit;
}

@media (max-width: 767px) {

    /* Genel sayfa */

    .ae-brand-container {
        width: calc(100% - 28px);
    }

    .ae-brand-page {
        padding: 18px 0 48px;
    }

    /* Hero */

    .ae-brand-hero {
        margin: 18px 0 42px;
    }

    .ae-brand-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
        border-radius: 18px;
        text-align: center;
    }

    .ae-brand-hero-logo {
        min-height: 110px;
        padding: 20px;
        border-radius: 16px;
    }

    .ae-brand-hero-logo img {
        max-width: 150px;
        max-height: 82px;
    }

    .ae-brand-hero-content h1 {
        margin-bottom: 14px;
        font-size: 36px;
        line-height: 1.05;
    }

    .ae-brand-hero-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .ae-brand-actions {
        gap: 9px;
        justify-content: center;
        margin-top: 22px;
    }

    .ae-brand-button {
        min-height: 42px;
        padding: 0 16px;
        font-size: 13px;
    }

    /* Bölüm başlıkları */

    .ae-brand-section {
        margin-top: 44px;
    }

    .ae-brand-section-heading {
        align-items: flex-start;
        flex-direction: row;
        gap: 12px;
        margin-bottom: 20px;
    }

    .ae-brand-section-heading > div {
        min-width: 0;
    }

    .ae-brand-section-heading h2 {
        font-size: 30px;
        line-height: 1.12;
    }

    .ae-brand-section-heading strong {
        padding: 7px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Ürün grupları: 2 sütun */

    .ae-product-groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ae-product-group-card {
        min-height: 118px;
        padding: 14px;
        border-radius: 14px;
    }

    .ae-product-group-icon {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin-right: 11px;
        border-radius: 11px;
        font-size: 18px;
    }

    .ae-product-group-content {
        gap: 4px;
    }

    .ae-product-group-title {
        font-size: 14px;
        line-height: 1.25;
    }

    .ae-product-group-description {
        display: none;
    }

    .ae-product-group-meta {
        font-size: 11px;
    }

    .ae-product-group-arrow {
        margin-left: 5px;
        font-size: 17px;
    }

    /* Ürün serileri: 2 sütun */

    .ae-product-series-area {
        margin-top: 30px;
        padding-top: 24px;
    }

    .ae-product-series-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ae-product-series-card {
        border-radius: 14px;
    }

    .ae-product-series-image {
        aspect-ratio: 1 / 1;
    }

    .ae-product-series-image img {
        padding: 12px;
    }

    .ae-product-series-content {
        padding: 14px;
    }

    .ae-product-series-label {
        font-size: 10px;
    }

    .ae-product-series-content h3 {
        margin-bottom: 6px;
        font-size: 15px;
        line-height: 1.3;
    }

    .ae-product-series-count {
        font-size: 12px;
    }

    /* Arama ve filtreler */

    .ae-document-search {
        width: 100%;
        margin-bottom: 14px;
    }

    .ae-document-search input[type="search"] {
        height: 48px;
        padding-left: 48px;
        font-size: 14px;
    }

    .ae-document-search-icon {
        left: 16px;
    }

    .ae-document-filters {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 22px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .ae-document-filters::-webkit-scrollbar {
        display: none;
    }

    .ae-document-filters button {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 14px;
        font-size: 12px;
    }

    /* Doküman kartları: 2 sütun */

    .ae-documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ae-document-card {
        border-radius: 14px;
    }

    .ae-document-card-image {
        height: 210px;
    }

    .ae-document-card-content {
        padding: 14px;
    }

    .ae-document-type {
        margin-bottom: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .ae-document-card h3 {
        margin-bottom: 12px;
        font-size: 15px;
        line-height: 1.35;
    }

    .ae-document-link,
    .ae-document-card-unavailable {
        font-size: 12px;
    }
}
