/* ============================================================
   Editorial touches kept from the homepage redesign trial.
   Only the "Favoriler" (best-sellers) rail keeps the new look;
   everything else on the homepage/product page was reverted to
   the original vendor template.
   This file loads after theme-overrides.css.
   ============================================================ */

:root {
    --clay: #a8562e;
    --ed-serif: "Fraunces", serif;
}

/* -------------------- Section intro (title, description below) -------------------- */
.ed-intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 44px;
}

.ed-intro-num {
    font-family: var(--ed-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--clay);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.ed-intro h2 {
    font-family: var(--ed-serif);
    font-size: 38px;
    font-weight: 600;
    color: var(--green-dark);
    line-height: 1.1;
    margin: 0;
}

.ed-intro p {
    font-size: 14.5px;
    font-weight: 400;
    color: #2B1A10;
    line-height: 1.8;
    margin: 0;
    max-width: 620px;
    text-align: left;
}

@media (max-width: 800px) {
    .ed-intro { gap: 12px; }
}

/* -------------------- Favoriler: horizontal editorial rail -------------------- */
.product_section.ed-rail-section { background: var(--cream); padding: 96px 0; }

.ed-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.ed-rail::-webkit-scrollbar { height: 6px; }
.ed-rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.ed-rail .product_card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    border: none;
}

.ed-rail .product_thumb { border-radius: 4px 4px 0 0; }

.ed-rail-hint {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: -20px 0 28px;
}

.ed-rail-hint i { color: var(--clay); }

/* -------------------- İlgili ürünler: oklarla veya parmakla kaydırılan şerit --------------------
   Native overflow-x scroll + scroll-snap kullanılıyor: dokunmatik kaydırma her zaman
   bir sonraki karta tam hizalanarak durur (JS transform ile hesaplanan sayfalama,
   kart sayısı sayfa başına düşen karta tam bölünmediğinde veya parmakla kaydırırken
   yarım kartta takılı kalıyordu). */
.related_rail { display: flex; align-items: center; gap: 16px; }
.related_rail_viewport {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.related_rail_viewport::-webkit-scrollbar { display: none; }
.related_rail_track { display: flex; gap: 20px; }
.related_rail_track .product_card { flex: 0 0 calc((100% - 4 * 20px) / 5); min-width: 0; border: 1px solid var(--border); scroll-snap-align: start; }

.related_rail_btn {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--green-dark);
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.related_rail_btn:hover:not(:disabled) { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.related_rail_btn:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 992px) {
    .related_rail_track .product_card { flex-basis: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 700px) {
    .related_rail_track .product_card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 460px) {
    .related_rail_track .product_card { flex-basis: 100%; }
    .related_rail_btn { width: 38px; height: 38px; font-size: 14px; }
}

/* -------------------- Ürünlerimiz: ok butonlarıyla döndürülen çark + sağda detay paneli -------------------- */
.ed-wheel {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 20px;
}

.ed-wheel-col { display: flex; flex-direction: column; align-items: center; flex: 0 0 500px; }

.ed-wheel-nav { display: flex; gap: 14px; margin-top: 20px; }
.ed-wheel-arrow {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--green-dark);
    background: transparent;
    color: var(--green-dark);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.ed-wheel-arrow:hover { background: var(--green-dark); color: #fff; }

.ed-wheel-stage {
    position: relative;
    width: 500px;
    height: 500px;
    max-width: 100%;
}
.ed-wheel-stage::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: var(--wheel-diameter, 100%); height: var(--wheel-diameter, 100%);
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(27,67,50,0.15);
    border-radius: 50%;
    pointer-events: none;
}
/* Üstte, "aktif" kartın oturduğu yeri işaretleyen sabit gösterge */
.ed-wheel-stage::after {
    content: "";
    position: absolute;
    top: calc(50% - var(--wheel-radius, 244px));
    left: 50%;
    width: 10px; height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--gold);
    z-index: 3;
    pointer-events: none;
}

.ed-wheel-card {
    position: absolute;
    top: 50%; left: 50%;
    width: 116px;
    height: 150px;
    margin: 0;
    background: var(--gray-light);
    border-radius: 0 48px 0 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(31,19,11,0.16);
    cursor: pointer;
    transition: box-shadow 0.25s ease, outline-color 0.25s ease;
    outline: 2px solid transparent;
    outline-offset: 3px;
}
.ed-wheel-stage.is-snapping .ed-wheel-card { transition: transform 0.4s cubic-bezier(.34,1.4,.64,1), box-shadow 0.25s ease, outline-color 0.25s ease; }
.ed-wheel-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ed-wheel-card.is-active { box-shadow: 0 16px 34px rgba(31,19,11,0.28); outline-color: var(--gold); }

.ed-wheel-panel { flex: 1 1 auto; min-width: 0; }
.ed-wheel-panel-media {
    aspect-ratio: 16/9;
    border-radius: 0 64px 0 18px;
    overflow: hidden;
    background: var(--gray-light);
    box-shadow: 0 16px 36px rgba(31,19,11,0.14);
    margin-bottom: 24px;
}
.ed-wheel-panel-media img { width: 100%; height: 100%; object-fit: cover; }

.ed-wheel-panel-body h3 {
    font-family: var(--ed-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--green-dark);
    line-height: 1.2;
    margin: 0 0 14px;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ed-wheel-panel-desc-wrap {
    position: relative;
    height: 108px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ed-wheel-panel-desc-wrap::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 44px;
    background: linear-gradient(to bottom, rgba(245,239,227,0) 0%, var(--cream) 90%);
}
.ed-wheel-panel-desc {
    font-size: 14.5px;
    font-weight: 400;
    color: #2B1A10;
    line-height: 1.8;
}
.ed-wheel-panel-desc p { margin: 0 0 10px; }

.ed-wheel-panel .view_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--green-dark);
    border: 1.5px solid var(--green-dark);
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.35s ease;
}
.ed-wheel-panel .view_btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--green-dark);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(.65,0,.35,1);
    z-index: -1;
}
.ed-wheel-panel .view_btn::after {
    content: "\2192";
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
}
.ed-wheel-panel .view_btn:hover { color: #fff; }
.ed-wheel-panel .view_btn:hover::before { transform: translateX(0); }
.ed-wheel-panel .view_btn:hover::after { transform: translateX(3px); }

@media (max-width: 900px) {
    .ed-wheel { flex-direction: column; gap: 32px; }
    .ed-wheel-col { flex-basis: auto; width: 100%; max-width: 420px; }
    .ed-wheel-stage { width: 100%; height: auto; aspect-ratio: 1; }
    .ed-wheel-panel { width: 100%; }
}
@media (max-width: 480px) {
    .ed-wheel-card { width: 92px; height: 122px; border-radius: 0 36px 0 9px; }
    .ed-wheel-panel-body h3 { font-size: 21px; }
}

/* ============================================================
   Homepage feature strip — Doğal İçerik / Yüksek Kalite / 20+ Yıl
   ============================================================ */
.feature_strip {
    background: var(--footer-bg);
    padding: 48px 0;
}

.feature_strip_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature_strip_item {
    padding: 0 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.feature_strip_item:first-child { border-left: none; }

.feature_strip_item h3 {
    font-family: var(--ed-serif);
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.feature_strip_item p {
    font-size: 13.5px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .feature_strip_grid { grid-template-columns: 1fr; gap: 28px; }
    .feature_strip_item { border-left: none; padding: 0 8px; text-align: center; }
}
