/* =====================================================
   ARONYA - EVERYWAY ÖZEL ŞABLONLAR
   - Kategori arşiv: sadece fotoğraf + ürün ismi
   - Tek ürün: görsel üstte, açıklamalar altta
   ===================================================== */

:root {
    --ew-side-pad: clamp(20px, 5vw, 60px);
    --ew-radius: 14px;
    --ew-accent: #26BECF;
    --ew-accent-dark: #1a8e9c;
    --ew-text: #1a1a2e;
    --ew-muted: #4a5560;
    --ew-border: #ececec;
    --ew-bg: #f4f7f8;
    --ew-bg-soft: #f9fafb;
}

/* ========== ORTAK CONTAINER ========== */
.everyway-hero__inner,
.everyway-grid-section__inner,
.everyway-product-hero__inner,
.everyway-product-body__inner {
    width: 100%;
    max-width: var(--aronya-container, 1440px);
    margin: 0 auto;
    padding: 0 var(--ew-side-pad);
    box-sizing: border-box;
}


/* =====================================================
   KATEGORİ ARŞİV SAYFASI
   (taxonomy-everyway.php)
   ===================================================== */

/* Hero */
.everyway-hero {
    position: relative;
    background: linear-gradient(135deg, #1a8e9c 0%, #26BECF 50%, #3FB892 100%);
    color: #fff;
    padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px);
    overflow: hidden;
}

.everyway-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 60px;
    background: #fff;
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    pointer-events: none;
}

.everyway-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.everyway-hero__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.everyway-hero__title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.everyway-hero__desc {
    margin: 0 auto;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.7;
}

/* Grid section */
.everyway-grid-section {
    background: #fff;
    padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 112px);
}

.everyway-count {
    text-align: center;
    margin: 0 0 clamp(24px, 3vw, 40px);
    color: var(--ew-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 4 kolon grid */
.everyway-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
    align-items: stretch;
}

/* Ürün kartı */
.everyway-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ew-border);
    border-radius: var(--ew-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
    box-sizing: border-box;
}

.everyway-card:hover,
.everyway-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(38, 190, 207, 0.18);
    border-color: rgba(38, 190, 207, 0.5);
    outline: none;
}

.everyway-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--ew-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.everyway-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 18px;
    transition: transform 320ms ease;
}

.everyway-card:hover .everyway-card__image img,
.everyway-card:focus-visible .everyway-card__image img {
    transform: scale(1.06);
}

.everyway-card__placeholder {
    font-size: 64px;
    font-weight: 800;
    color: rgba(38, 190, 207, 0.28);
    user-select: none;
}

.everyway-card__title {
    margin: 0;
    padding: 16px 18px 20px;
    color: var(--ew-text);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    text-align: center;
    /* 2 satırla sınırla */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.35em * 2 + 36px);
    box-sizing: border-box;
}

/* Boş durum */
.everyway-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--ew-muted);
    font-size: 16px;
}

/* Sayfalama */
.everyway-pagination {
    margin-top: clamp(40px, 5vw, 64px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.everyway-pagination a,
.everyway-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--ew-border);
    color: var(--ew-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.everyway-pagination a:hover,
.everyway-pagination a:focus {
    background: var(--ew-accent);
    color: #fff;
    border-color: var(--ew-accent);
    outline: none;
}

.everyway-pagination .current {
    background: var(--ew-accent);
    color: #fff;
    border-color: var(--ew-accent);
}


/* =====================================================
   TEK ÜRÜN DETAY SAYFASI
   (single-everyway.php)
   ===================================================== */

/* Breadcrumb (sticky) */
.everyway-breadcrumb {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--ew-border);
}

.everyway-breadcrumb__inner {
    width: 100%;
    max-width: var(--aronya-container, 1440px);
    margin: 0 auto;
    padding: 12px var(--ew-side-pad);
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ew-muted);
}

.everyway-breadcrumb__inner a {
    color: var(--ew-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 200ms ease;
}

.everyway-breadcrumb__inner a:hover,
.everyway-breadcrumb__inner a:focus {
    color: var(--ew-accent-dark);
    outline: none;
}

.everyway-breadcrumb__sep {
    color: #c2c8cc;
    font-size: 14px;
    user-select: none;
}

.everyway-breadcrumb__current {
    color: var(--ew-text);
    font-weight: 600;
}

/* Hero: görsel üstte */
.everyway-product-hero {
    background: var(--ew-bg-soft);
    padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
}

.everyway-product-hero__inner {
    display: flex;
    justify-content: center;
}

.everyway-product-hero__image-wrap {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--ew-border);
    box-shadow: 0 12px 36px rgba(15, 30, 45, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.everyway-product-hero__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: clamp(20px, 3vw, 40px);
}

.everyway-product-hero__placeholder {
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 800;
    color: rgba(38, 190, 207, 0.22);
    user-select: none;
}

/* ========== EVERYWAY SLIDER ========== */
.everyway-slider {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--ew-border);
    box-shadow: 0 12px 36px rgba(15, 30, 45, 0.06);
    overflow: hidden;
    box-sizing: border-box;
    user-select: none;
}

.everyway-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    touch-action: pan-y;
}

.everyway-slider__slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.everyway-slider__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: clamp(16px, 3vw, 36px);
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Oklar */
.everyway-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ew-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(15, 30, 45, 0.16);
    transition: background 200ms ease, transform 200ms ease, color 200ms ease;
    z-index: 2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.everyway-slider__btn:hover,
.everyway-slider__btn:focus-visible {
    background: var(--ew-accent);
    color: #fff;
    outline: none;
    transform: translateY(-50%) scale(1.05);
}

.everyway-slider__btn svg {
    width: 20px;
    height: 20px;
}

.everyway-slider__btn--prev { left: 12px; }
.everyway-slider__btn--next { right: 12px; }

/* Noktalar (dots) */
.everyway-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.everyway-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(26, 26, 46, 0.25);
    cursor: pointer;
    transition: background 220ms ease, transform 220ms ease, width 220ms ease;
}

.everyway-slider__dot:hover,
.everyway-slider__dot:focus-visible {
    background: var(--ew-accent);
    outline: none;
}

.everyway-slider__dot.is-active {
    background: var(--ew-accent);
    width: 22px;
    border-radius: 999px;
}

/* Sayaç (1 / N) */
.everyway-slider__counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 11px;
    background: rgba(26, 26, 46, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 999px;
    z-index: 2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

/* Body: açıklamalar altta */
.everyway-product-body {
    background: #fff;
    padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
}

.everyway-product-body__inner {
    max-width: 880px;
}

.everyway-product-body__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ew-accent);
    background: rgba(38, 190, 207, 0.10);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.everyway-product-body__title {
    margin: 0 0 18px;
    color: var(--ew-text);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.everyway-product-body__lead {
    margin: 0 0 24px;
    color: var(--ew-muted);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    font-weight: 500;
}

.everyway-product-body__content {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.85;
}

.everyway-product-body__content p {
    margin: 0 0 16px;
}

.everyway-product-body__content p:last-child {
    margin-bottom: 0;
}

.everyway-product-body__content h2,
.everyway-product-body__content h3,
.everyway-product-body__content h4 {
    margin: 28px 0 12px;
    color: var(--ew-text);
    font-weight: 700;
    line-height: 1.3;
}

.everyway-product-body__content h2 { font-size: 24px; }
.everyway-product-body__content h3 { font-size: 20px; }
.everyway-product-body__content h4 { font-size: 17px; }

.everyway-product-body__content ul,
.everyway-product-body__content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.everyway-product-body__content li {
    margin-bottom: 6px;
}

.everyway-product-body__content a {
    color: var(--ew-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.everyway-product-body__content a:hover,
.everyway-product-body__content a:focus {
    color: var(--ew-accent);
}

.everyway-product-body__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 8px 0;
}

/* Aksiyon butonları */
.everyway-product-body__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 36px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--ew-border);
}

.everyway-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1;
}

.everyway-btn--primary {
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}

.everyway-btn--primary:hover,
.everyway-btn--primary:focus {
    background: #1ebd5a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.36);
    outline: none;
}

.everyway-btn--ghost {
    background: transparent;
    color: var(--ew-text);
    border: 1.5px solid var(--ew-border);
}

.everyway-btn--ghost:hover,
.everyway-btn--ghost:focus {
    border-color: var(--ew-accent);
    color: var(--ew-accent-dark);
    background: rgba(38, 190, 207, 0.05);
    outline: none;
}

.everyway-product-body__source {
    margin-top: 28px;
    font-size: 13px;
}

.everyway-product-body__source a {
    color: var(--ew-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.everyway-product-body__source a:hover,
.everyway-product-body__source a:focus {
    color: var(--ew-accent-dark);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet: 4 → 3 kolon */
@media (max-width: 1100px) {
    .everyway-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 3 → 2 kolon */
@media (max-width: 820px) {
    .everyway-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .everyway-product-hero__image-wrap {
        max-width: 100%;
        border-radius: 16px;
    }
}

/* Mobil */
@media (max-width: 560px) {
    .everyway-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .everyway-card__image {
        aspect-ratio: 1 / 1;
    }
    .everyway-card__title {
        font-size: 14px;
        padding: 12px 12px 16px;
        min-height: calc(1.35em * 2 + 28px);
    }
    .everyway-card__placeholder {
        font-size: 48px;
    }
    .everyway-product-body__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .everyway-btn {
        justify-content: center;
        width: 100%;
    }
    .everyway-breadcrumb__inner {
        font-size: 12px;
        gap: 4px;
    }
    .everyway-pagination a,
    .everyway-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Çok küçük ekran: 2 → 2 koru (ürün ismi için ideal) */
@media (max-width: 380px) {
    .everyway-grid {
        gap: 10px;
    }
}
