/* =====================================================
   ARONYA - MARKA DETAY SAYFASI (AMBU vb.)
   Minimalist tasarım:
   - Üstte sade hero
   - Kategoriler native HTML5 accordion
   - Az boşluk, sade renkler
   ===================================================== */

:root {
    --aronya-brand-page-gutter: clamp(16px, calc((100vw - 1440px) / 2), 75px);
    --aronya-brand-accent: #26BECF;
    --aronya-brand-accent-2: #3FB892;
    --aronya-brand-text: #1a1a2e;
    --aronya-brand-muted: #5a6573;
    --aronya-brand-line: #ececec;
    /* Site ana rengi (header üst bandı) */
    --aronya-brand-primary: #238894;
    --aronya-brand-primary-dark: #1c6f78;
}

/* ========== HERO (header ile aynı genişlik) ========== */
.brand-hero {
    position: relative;
    /* Header gibi: sayfa kenar boşlukları ile sınırla */
    width: 100%;
    max-width: var(--aronya-container, 1440px);
    margin: 0 auto;
    padding: 0; /* padding artık __inner'a taşındı */
    background: linear-gradient(135deg, #1a8e9c 0%, #26BECF 50%, #3FB892 100%);
    color: #ffffff;
    overflow: hidden;
}

.brand-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 10vw, 140px) var(--aronya-page-gutter) clamp(100px, 12vw, 180px);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
}

.brand-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 70px;
    background: #ffffff;
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    pointer-events: none;
    z-index: 1;
}

.brand-hero__logo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18),
        0 0 0 8px rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.brand-hero__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-hero__content {
    text-align: left;
}

.brand-hero__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.brand-hero__title {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(40px, 6.5vw, 80px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.brand-hero__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.75;
    max-width: 820px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

/* ========== İÇERİK ========== */
.brand-content {
    background: #ffffff;
    width: 100%;
    max-width: var(--aronya-container, 1440px);
    margin: 0 auto;
    padding: 0;
}

.brand-content__inner {
    padding: clamp(32px, 4vw, 56px) var(--aronya-page-gutter) clamp(48px, 6vw, 80px);
    box-sizing: border-box;
}

/* ========== 2 KOLON LAYOUT (sol: ürünler, sağ: sticky sidebar) ========== */
.brand-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
}

.brand-layout__main {
    min-width: 0; /* flex/grid children taşmasın */
}

.brand-layout__sidebar {
    min-width: 0;
}

@media (max-width: 1023px) {
    .brand-layout {
        grid-template-columns: 1fr;
    }
    .brand-layout__sidebar {
        margin-top: 8px;
    }
}

/* ========== ACCORDION (native <details>) ========== */
.brand-accordion {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--aronya-brand-line);
    background: #ffffff;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.brand-accordion[open] {
    border-color: var(--aronya-brand-accent);
    box-shadow: 0 6px 20px rgba(38, 190, 207, 0.08);
}

.brand-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    /* Site renginde arka plan */
    background: var(--aronya-brand-primary);
    color: #ffffff;
    transition: background 220ms ease;
}

.brand-accordion__header::-webkit-details-marker {
    display: none;
}

.brand-accordion__header:hover {
    background: var(--aronya-brand-primary-dark);
}

.brand-accordion[open] .brand-accordion__header {
    background: var(--aronya-brand-primary-dark);
}

.brand-accordion__title {
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.brand-accordion__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.brand-accordion__count {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* + / – ikonu (CSS ile çizilir) — beyaz */
.brand-accordion__icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.brand-accordion__icon::before,
.brand-accordion__icon::after {
    content: "";
    position: absolute;
    background: #ffffff;
    border-radius: 1px;
    transition: transform 240ms ease, opacity 240ms ease;
}

.brand-accordion__icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.brand-accordion__icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

/* Açık durumda: dikey çizgi kaybolur → + işareti – olur */
.brand-accordion[open] .brand-accordion__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.brand-accordion__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
}

/* Açılış animasyonu */
.brand-accordion__body > * {
    animation: brandFadeIn 320ms ease;
}

@keyframes brandFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== ÜRÜN SATIRI (solda resim, sağda içerik) ========== */
.brand-product {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: clamp(20px, 2.5vw, 36px);
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--aronya-brand-line);
    border-radius: 12px;
    transition: border-color 240ms ease, transform 240ms ease;
    box-sizing: border-box;
}

.brand-product:hover {
    border-color: rgba(38, 190, 207, 0.4);
    transform: translateY(-1px);
}

.brand-product__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f4f7f8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.brand-product__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 8px;
    transition: transform 320ms ease;
}

.brand-product:hover .brand-product__image img {
    transform: scale(1.05);
}

.brand-product__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.brand-product__title {
    margin: 0;
    color: var(--aronya-brand-text);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.brand-product__desc {
    margin: 0;
    color: var(--aronya-brand-muted);
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== ÜRÜN KOD & ÖLÇÜ TABLOSU ========== */
.brand-product__table-wrap {
    margin-top: 14px;
    border-top: 1px solid var(--aronya-brand-line);
    padding-top: 14px;
}

.brand-product__table-title {
    margin: 0 0 10px;
    color: var(--aronya-brand-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-kod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.5;
    background: #fafcfd;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--aronya-brand-line);
}

.brand-kod-table th,
.brand-kod-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--aronya-brand-line);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.brand-kod-table thead th {
    background: linear-gradient(to right, var(--aronya-brand-accent-2) 0%, var(--aronya-brand-accent) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-bottom: 0;
}

.brand-kod-table tbody tr:last-child td {
    border-bottom: 0;
}

.brand-kod-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.brand-kod-table tbody tr:hover {
    background: rgba(38, 190, 207, 0.05);
}

.brand-kod-table td:first-child {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: var(--aronya-brand-accent);
    font-weight: 600;
    white-space: nowrap;
    min-width: 80px;
}

.brand-kod-table td:last-child {
    color: var(--aronya-brand-text);
}

@media (max-width: 768px) {
    .brand-kod-table {
        font-size: 12.5px;
    }
    .brand-kod-table th,
    .brand-kod-table td {
        padding: 8px 10px;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1023px) {
    .brand-hero__inner {
        grid-template-columns: 220px 1fr;
        gap: 36px;
    }
    .brand-product {
        grid-template-columns: 140px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .brand-hero {
        padding: 40px 16px 52px;
    }
    .brand-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .brand-hero__logo {
        max-width: 140px;
        margin: 0 auto;
    }
    .brand-hero__content {
        text-align: center;
    }
    .brand-hero__title {
        font-size: 30px;
    }
    .brand-hero__desc {
        font-size: 14px;
    }
    .brand-content__inner {
        padding: 0 16px;
    }
    .brand-product {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 14px;
        gap: 12px;
    }
    .brand-product__image {
        max-width: 200px;
        margin: 0 auto;
    }
    .brand-product__body {
        align-items: center;
    }
    .brand-product__title {
        font-size: 16px;
    }
    .brand-product__desc {
        font-size: 13.5px;
    }
    .brand-accordion__header {
        padding: 14px 16px;
    }
    .brand-accordion__body {
        padding: 16px;
    }
    .brand-accordion__title {
        font-size: 16px;
    }
    .brand-accordion__count {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 380px) {
    .brand-hero__title {
        font-size: 26px;
    }
    .brand-product {
        padding: 12px;
    }
}
