/**
 * Exvet Ürün sayfaları (liste, detay, hızlı bakış)
 * Marka mavisi #21b3f1, koyu lacivert #0f172a
 */

.exvet-product {
    --c-brand: #21b3f1;
    --c-brand-dark: #0b8fc7;
    --c-ink: #0f172a;
    --c-text: #475569;
    --c-line: #e2e8f0;
    --c-soft: #f1f5f9;
    --c-photo: #fcfcfc;
    font-family: "Poppins", sans-serif;
    color: var(--c-text);
    background: #f8fafc;
    padding-bottom: 4.5rem;
    overflow-x: hidden;
}

.exvet-product h1, .exvet-product h2, .exvet-product h3, .exvet-product h4 {
    margin: 0;
    color: var(--c-ink);
    text-transform: none;
    letter-spacing: 0;
}

.ep-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Üst bant (liste sayfası) ---------- */
.ep-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(33,179,241,0.32) 0, transparent 45%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 3rem 0 5.5rem;
}

.ep-hero h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; color: #fff !important; margin-bottom: 0.75rem; }
.ep-hero p { max-width: 760px; margin: 0; font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.82); }

@media (min-width: 768px) { .ep-hero h1 { font-size: 2.5rem; } }

/* Breadcrumb */
.ep-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
}

.ep-crumbs li { display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.6); }
.ep-crumbs li + li::before { content: "/"; opacity: .5; }
.ep-crumbs a { color: rgba(255,255,255,0.85); }
.ep-crumbs a:hover { color: var(--c-brand); }
.ep-crumbs li[aria-current] { color: #fff; font-weight: 600; }

/* Açık zeminde breadcrumb (detay sayfası) */
.ep-crumbs-light li { color: #94a3b8; }
.ep-crumbs-light a { color: var(--c-text); }
.ep-crumbs-light li[aria-current] { color: var(--c-ink); }

/* ---------- Liste yerleşimi ---------- */
.ep-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: -3rem;
    position: relative;
}

@media (min-width: 992px) {
    .ep-layout { grid-template-columns: 280px 1fr; align-items: start; }
}

/* Sidebar */
.ep-side {
    order: 2;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    box-shadow: 0 20px 45px -28px rgba(15,23,42,0.3);
}

@media (min-width: 992px) { .ep-side { order: 1; position: sticky; top: 100px; } }

.ep-side h2 { margin-bottom: 1rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-brand-dark); }

.ep-cat + .ep-cat { margin-top: 1.1rem; }

.ep-cat-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--c-ink) !important;
    border-radius: 10px;
    transition: background .18s ease, color .18s ease;
}

.ep-cat-name i { color: #94a3b8; transition: transform .2s ease, color .2s ease; }
.ep-cat-name:hover { background: var(--c-soft); color: var(--c-brand-dark) !important; }
.ep-cat-name:hover i { color: var(--c-brand-dark); transform: translateX(3px); }
.ep-cat-name.is-active { color: var(--c-brand-dark) !important; background: rgba(33,179,241,0.12); }

.ep-sublist { list-style: none; margin: 0; padding: 0; }

.ep-sublist a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    color: var(--c-text);
    border-radius: 10px;
    transition: background .18s ease, color .18s ease;
}

.ep-sublist a:hover { background: var(--c-soft); color: var(--c-brand-dark); }

.ep-sublist a.is-active {
    font-weight: 600;
    color: var(--c-brand-dark);
    background: rgba(33,179,241,0.12);
}

.ep-count {
    min-width: 24px;
    padding: 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    color: var(--c-brand-dark);
    background: rgba(33,179,241,0.14);
    border-radius: 999px;
}

.ep-main { order: 1; min-width: 0; }
@media (min-width: 992px) { .ep-main { order: 2; } }

/* ---------- Ürün kartları ---------- */
.ep-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) { .ep-grid { gap: 1.5rem; } }
@media (min-width: 1100px) { .ep-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .ep-grid { grid-template-columns: 1fr; } }

.ep-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ep-card:hover {
    transform: translateY(-5px);
    border-color: #bae6fd;
    box-shadow: 0 24px 44px -24px rgba(15,23,42,0.3);
}

.ep-card-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--c-photo);
    border-bottom: 1px solid var(--c-line);
}

.ep-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    transition: opacity .35s ease, transform .4s ease;
}

/* İkinci görsel varsa üzerine gelince ona geçer; yoksa görsel hafifçe büyür */
.ep-card-img .ep-img-alt { opacity: 0; }
.ep-card-img.has-alt:hover .ep-img-main { opacity: 0; }
.ep-card-img.has-alt:hover .ep-img-alt { opacity: 1; }
.ep-card:hover .ep-card-img:not(.has-alt) img { transform: scale(1.05); }

.ep-card-body { display: flex; flex-direction: column; flex: 1; gap: 0.9rem; padding: 1.1rem 1.15rem 1.2rem; }

.ep-card-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.ep-card-body h3 a { color: var(--c-ink) !important; }
.ep-card:hover .ep-card-body h3 a { color: var(--c-brand-dark) !important; }

.ep-card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

.ep-link { font-size: 0.88rem; font-weight: 600; color: var(--c-brand-dark) !important; }
.ep-link i { margin-left: 0.35rem; transition: transform .2s ease; }
.ep-link:hover i { transform: translateX(4px); }

.ep-quick {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-brand-dark) !important;
    background: rgba(33,179,241,0.12);
    border-radius: 10px;
    transition: background .2s ease, color .2s ease;
}

.ep-quick:hover { color: #fff !important; background: var(--c-brand); }

.ep-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
}

/* ---------- Detay sayfası ---------- */
.ep-topbar { padding: 1.5rem 0 0; }

.ep-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (min-width: 992px) { .ep-detail { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: start; } }

/* Galeri */
.ep-gallery { min-width: 0; }
@media (min-width: 992px) { .ep-gallery { position: sticky; top: 100px; } }

.ep-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0;
    /* Fotoğraf zemini (#fcfcfc) ile aynı renk: görsel çerçeveyi kenarsız doldurur */
    background: var(--c-photo);
    border: 1px solid var(--c-line);
    border-radius: 22px;
    box-shadow: 0 18px 40px -28px rgba(15,23,42,0.28);
    overflow: hidden;
}

.ep-stage a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: zoom-in; }
.ep-stage img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.ep-stage:hover img { transform: scale(1.03); }

.ep-thumbs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

.ep-thumb {
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    background: var(--c-photo);
    border: 2px solid var(--c-line);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s ease, transform .15s ease;
}

.ep-thumb:hover { transform: translateY(-2px); border-color: #bae6fd; }
.ep-thumb.is-active { border-color: var(--c-brand); }
.ep-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Bilgi sütunu */
.ep-info { min-width: 0; }

.ep-tag {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-brand-dark) !important;
    background: rgba(33,179,241,0.12);
    border-radius: 999px;
}

.ep-info h1 { font-size: 1.9rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.6rem; }
@media (min-width: 768px) { .ep-info h1 { font-size: 2.3rem; } }

.ep-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.85rem; color: #64748b; }
.ep-meta strong { color: var(--c-ink); font-weight: 600; }

.ep-desc { margin: 0 0 1.75rem; font-size: 1rem; line-height: 1.85; white-space: pre-line; }

.ep-block-title {
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-brand-dark);
}

/* Özellik listesi */
.ep-features { display: grid; gap: 0.7rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }

.ep-features li {
    position: relative;
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #334155;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 12px;
}

.ep-features li::before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0.9rem;
    top: 0.8rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    background: var(--c-brand);
    border-radius: 50%;
}

/* Doküman kartı */
.ep-doc {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ep-doc:hover { transform: translateY(-2px); border-color: #fecaca; box-shadow: 0 16px 30px -22px rgba(220,38,38,0.5); }

.ep-doc-ic {
    flex: 0 0 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 12px;
}

.ep-doc-text { flex: 1; min-width: 0; }
.ep-doc-text strong { display: block; font-size: 0.92rem; color: var(--c-ink); }
.ep-doc-text span { font-size: 0.78rem; color: #64748b; }
.ep-doc > i { color: #94a3b8; }

/* Butonlar */
.ep-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.ep-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.ep-btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--c-brand), var(--c-brand-dark)); }
.ep-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(33,179,241,0.9); }

.ep-btn-wa { color: #fff !important; background: #128c7e; }
.ep-btn-wa:hover { transform: translateY(-2px); background: #0e7367; box-shadow: 0 14px 26px -12px rgba(18,140,126,0.8); }

.ep-back { display: inline-block; margin-top: 1.75rem; font-size: 0.9rem; font-weight: 600; color: var(--c-text) !important; }
.ep-back:hover { color: var(--c-brand-dark) !important; }
.ep-back i { margin-right: 0.4rem; }

/* Benzer ürünler */
.ep-related { margin-top: 4rem; }
.ep-related-head { margin-bottom: 1.5rem; }
.ep-related-head h2 { font-size: 1.6rem; font-weight: 700; }

.ep-related .ep-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 992px) { .ep-related .ep-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .ep-related .ep-grid { grid-template-columns: 1fr; } }

/* ---------- Hızlı bakış (modal) ---------- */
.quickview-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.quickview-modal .modal-body { padding: 0 1.5rem 1.5rem; }

.ep-qv { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .ep-qv { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.ep-qv-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    background: var(--c-photo);
    border: 1px solid var(--c-line);
    border-radius: 16px;
}

.ep-qv-img img { width: 100%; height: 100%; object-fit: contain; }

.ep-qv h3 { margin: 0 0 0.6rem; font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.ep-qv p { margin: 0 0 1rem; font-size: 0.93rem; line-height: 1.75; color: #475569; white-space: pre-line; }
.ep-qv .ep-features { margin-bottom: 1.25rem; }
.ep-qv .ep-features li { padding: 0.6rem 0.8rem 0.6rem 2.6rem; font-size: 0.85rem; }
.ep-qv .ep-features li::before { left: 0.7rem; top: 0.6rem; }


/* ---------- Kategori sayfası: alt kategori grupları ---------- */
.ep-group + .ep-group { margin-top: 2.75rem; }

.ep-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--c-line);
}

.ep-group-head h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
}


/* ---------- Hero: çok paragraflı açıklama, kalın vurgu ---------- */
.ep-hero p + p { margin-top: 0.85rem; }
.ep-hero strong { color: #fff; font-weight: 600; }

/* ---------- Seri sayfası kutucukları (Small Set / Large Set) ---------- */
.ep-tiles { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ep-tiles { grid-template-columns: repeat(2, 1fr); } }

.ep-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ep-tile:hover {
    transform: translateY(-5px);
    border-color: #bae6fd;
    box-shadow: 0 24px 44px -24px rgba(15,23,42,0.3);
}

.ep-tile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--c-photo);
    border-bottom: 1px solid var(--c-line);
    position: relative;
    overflow: hidden;
}

/* absolute: dikey görseller kutuyu uzatmasın, tüm kutucuklar aynı yükseklikte kalsın */
.ep-tile-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.ep-tile:hover .ep-tile-img img { transform: scale(1.04); }

/* Products sayfası: kırık beyaz fotoğraf zeminleri kare iz bırakmasın */
.ep-tiles-all .ep-tile-img { background: #fff; }
.ep-tiles-all .ep-tile-img img { filter: brightness(1.025); }

.ep-tile-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-ink);
}

.ep-tile-caption i { color: var(--c-brand-dark); transition: transform .2s ease; }
.ep-tile:hover .ep-tile-caption i { transform: translateX(5px); }


/* ---------- Ürün açıklaması: paragraflar ve **kalın** vurgu ---------- */
.ep-desc { white-space: normal; }
.ep-desc p { margin: 0 0 0.9rem; }
.ep-desc p:last-child { margin-bottom: 0; }
.ep-desc strong { font-weight: 600; color: var(--c-ink); }


/* ---------- Ürün sayfası: Bilimsel yayın bloğu ---------- */
.ep-pub {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 14px;
}

.ep-pub-cover {
    flex: 0 0 72px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    box-shadow: 0 10px 20px -14px rgba(15,23,42,0.5);
}

.ep-pub-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.ep-pub-body { min-width: 0; }
.ep-pub-body .ep-block-title { margin-bottom: 0.4rem; }
.ep-pub-body p { margin: 0 0 0.8rem; font-size: 0.93rem; line-height: 1.65; }

.ep-pub-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.ep-pub-actions a { font-size: 0.88rem; font-weight: 600; color: var(--c-brand-dark) !important; }
.ep-pub-actions a i { margin-left: 0.3rem; }
.ep-pub-actions a:hover { text-decoration: underline; }

/* Açıklamada madde işaretli liste (örn. Carbon Fiber Rod ölçüleri) */
.ep-desc ul { margin: 0 0 1rem; padding-left: 1.1rem; columns: 2; column-gap: 1rem; font-size: 0.9rem; }
.ep-desc li { margin-bottom: 0.35rem; break-inside: avoid; white-space: nowrap; }
@media (max-width: 575px) { .ep-desc ul { columns: 1; } }

/* Tanitim videosu */
.ep-video { display: flex; align-items: flex-start; gap: 1.1rem; margin: 1.25rem 0; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }
.ep-video-thumb { position: relative; flex: none; width: 128px; aspect-ratio: 9 / 16; padding: 0; overflow: hidden; background: #0f172a; border: 0; border-radius: 14px; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .55); }
/* Shorts kapak gorseli 4:3 icinde ortada dikey durur; 9:16 kutuya "cover" ile oturtulur */
.ep-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .25s ease; mix-blend-mode: normal; }
.ep-video-thumb:hover img { transform: scale(1.04); }
.ep-video-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.45) 100%); }
.ep-video-play i { width: 46px; height: 46px; display: grid; place-items: center; padding-left: 3px; font-size: 1rem; color: #fff; background: rgba(11, 143, 199, .92); border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .2s ease; }
.ep-video-thumb:hover .ep-video-play i { transform: scale(1.1); }
.ep-video-body { min-width: 0; align-self: center; }
.ep-video-body .ep-block-title { margin-bottom: 0.35rem; }
.ep-video-body p { margin: 0 0 0.8rem; }
.ep-video-body .ep-video-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; font-weight: 600; color: #fff; background: #0b8fc7; border: 0; border-radius: 999px; cursor: pointer; }
.ep-video-body .ep-video-btn:hover { background: #21b3f1; }
@media (max-width: 480px) { .ep-video-thumb { width: 104px; } }
.ep-vmodal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7, 13, 26, 0.82); }
.ep-vmodal[hidden] { display: none; }
.ep-vmodal-box { position: relative; width: min(380px, 100%); }
.ep-vmodal-frame { aspect-ratio: 9 / 16; max-height: 86vh; width: 100%; background: #000; border-radius: 16px; overflow: hidden; }
.ep-vmodal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ep-vmodal-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 36px; height: 36px; font-size: 22px; line-height: 1; color: #0f172a; background: #fff; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
body.ep-noscroll { overflow: hidden; }
