/* Product detail / related products */

.product-detail-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 48px 0 40px;
    margin-bottom: 40px;
}
.product-detail-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.product-detail-hero-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -.025em;
    color: #ffffff;
    line-height: 1.2;
}
.product-detail-hero-title span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #e5b962;
    margin-bottom: 6px;
}
.product-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}
.product-detail-breadcrumb a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .2s;
}
.product-detail-breadcrumb a:hover { color: #e5b962; }
.product-detail-breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: .4;
}

.product-wrap {
    display: grid;
    gap: 24px;
}

.product-main {
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.03);
}
.product-main-inner {
    padding: 28px 32px 36px;
}

.product-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}
.product-gallery-shell {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.hero-image {
    width: 100%;
    min-width: 0;
    height: 520px;
    max-height: 520px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.hero-image:hover img {
    transform: scale(1.02);
}

.thumb-grid {
    display: grid;
    grid-auto-rows: 88px;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.thumb-grid::-webkit-scrollbar {
    width: 6px;
}
.thumb-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.thumb-grid::-webkit-scrollbar-track {
    background: transparent;
}
.thumb-grid-single {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
    cursor: pointer;
    transition: all .2s ease;
    z-index: 2;
}
.gallery-nav svg {
    width: 20px;
    height: 20px;
}
.gallery-nav:hover {
    background: #ffffff;
    color: #b8860b;
    transform: translateY(-50%) scale(1.05);
}
.gallery-nav:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: translateY(-50%);
}
.gallery-nav-prev { left: 14px; }
.gallery-nav-next { right: 14px; }
.thumb-btn {
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    padding: 0;
    transition: border-color .25s, box-shadow .25s, transform .2s;
}
.thumb-btn:hover {
    border-color: #d4a853;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212,168,83,.2);
}
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumb-btn.active {
    border-color: #d4a853;
    box-shadow: 0 0 0 3px rgba(212,168,83,.25);
}

.product-content {
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.product-content h1 {
    margin: 0 0 6px;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
    line-height: 1.15;
}
.product-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f0f9ff;
    color: #b8860b;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 168, 83, .45);
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #334155;
}
.feature-list li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #f0f9ff;
    border: 1.5px solid rgba(212, 168, 83, .45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230ea5e9'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.asset-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.asset-actions .btn {
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all .25s ease;
}
.asset-actions .btn-outline {
    border: 1.5px solid #e2e8f0;
    color: #334155;
    background: #ffffff;
}
.asset-actions .btn-outline:hover {
    border-color: #d4a853;
    color: #b8860b;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(14,165,233,.1);
}
.asset-actions .btn-outline::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.asset-actions .btn-primary {
    border: 1.5px solid #d4a853;
    color: #ffffff;
    background: #d4a853;
}
.asset-actions .btn-primary:hover {
    background: #b8860b;
    border-color: #b8860b;
    box-shadow: 0 4px 12px rgba(14,165,233,.25);
}
.asset-actions .btn-primary::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.desc-block {
    margin-top: 36px;
    padding: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.desc-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.desc-block-header::before {
    content: '';
    width: 4px;
    height: 26px;
    background: #d4a853;
    border-radius: 4px;
    flex-shrink: 0;
}
.desc-block h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -.015em;
    color: #0f172a;
}
.desc-text {
    color: #475569;
    line-height: 1.85;
    font-size: 15px;
}

.related-products-block {
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.03);
    padding: 26px 28px;
}
.related-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.related-products-header h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -.015em;
    color: #0f172a;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.related-products-carousel {
    position: relative;
    overflow: hidden;
}
.related-products-track {
    display: flex;
    width: 100%;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.related-products-slide {
    flex: 0 0 100%;
    min-width: 0;
}
.related-products-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}
.related-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.related-dot.is-active {
    background: #d4a853;
    border-color: #d4a853;
    transform: scale(1.1);
}
.related-product-card {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 168, 83, .5);
    box-shadow: 0 8px 20px rgba(212, 168, 83, .18);
}
.related-product-image {
    height: 170px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.related-product-body {
    padding: 12px 12px 14px;
}
.related-product-title {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.35;
}
.related-product-empty {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .related-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
    .product-header { grid-template-columns: 1fr; }
    .hero-image { height: 440px; max-height: 440px; max-width: 100%; }
    .product-gallery-shell { grid-template-columns: 1fr; }
    .thumb-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(74px, 74px);
        grid-auto-rows: unset;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 4px;
    }
    .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail-hero { padding: 36px 0 30px; margin-bottom: 28px; }
}
@media (max-width: 560px) {
    .hero-image { height: 320px; max-height: 320px; }
    .thumb-grid-single { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-main-inner { padding: 20px 18px 28px; }
    .product-content { padding: 16px; }
    .desc-block { padding: 22px 18px; }
    .related-products-block { padding: 20px 16px; }
    .related-products-grid { grid-template-columns: 1fr; }
    .product-detail-hero { padding: 28px 0 24px; margin-bottom: 20px; }
}

   /* ===== BIOMEDICART-STYLE CATALOG ===== */

   body {
    background: #ffffff;
}

/* üst başlık kaldırıldı */
.catalog-hero {
    display: none;
}

/* kategori başlık bandı – header altında, menü/ürünler üstünde */
.catalog-category-banner {
    width: 100%;
    background: #b8860b;
    color: #ffffff;
    text-align: center;
    padding: 16px 20px;
    margin-bottom: 0;
}
.catalog-category-banner__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ana container */
.catalog-wrap-container {
    width: min(1680px, calc(100% - 40px));
    margin: 30px auto 40px;
}

.catalog-wrap {
display: grid;
grid-template-columns: 210px 1fr; /* önce fazla genişti */
gap: 28px;
align-items: start;
}

.catalog-sidebar {
position: sticky;
top: 90px;
background: transparent;
padding: 0;
width: 100%;
min-width: 0; /* grid içinde taşmayı engeller */
}

.catalog-sidebar ul {
list-style: none;
margin: 0;
padding: 0;
}

.catalog-sidebar li + li {
margin-top: 10px; /* daha sıkı */
}

.catalog-sidebar a {
display: block;
width: 100%;
max-width: 100%;
text-decoration: none;
color: #b8860b;
font-size: 12px;
line-height: 1.25;
font-weight: 700;
text-transform: uppercase;
padding: 10px 12px;
border-radius: 0;
background: transparent;
transition: background .2s ease, color .2s ease;
letter-spacing: 0;
overflow: hidden;
word-wrap: break-word;
word-break: break-word;
overflow-wrap: break-word;
}

.catalog-sidebar a:hover {
background: #d4a853;
color: #ffffff;
}

.catalog-sidebar a.active-cat {
background: #d4a853;
color: #ffffff;
}

/* sidebar başlık – masaüstünde sade metin gibi */
.catalog-sidebar-header {
margin-bottom: 12px;
}
.catalog-sidebar-header h3 {
margin: 0;
font-size: 1rem;
font-weight: 700;
color: #111;
}
.catalog-sidebar-toggle {
display: none;
}

/* ===== RIGHT GRID ===== */
.catalog-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 45px 30px; /* önce 90px 90px gibi genişti */
align-items: start;
justify-items: stretch;
}

/* ürün kartı */
.product-card {
width: 100%;
max-width: none; /* kartı daraltma */
background: transparent;
border: none;
box-shadow: none;
border-radius: 0;
overflow: visible;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
transition: transform .18s ease;
}

.product-card-main {
display: block;
text-decoration: none;
color: inherit;
}

/* görsel alanı */
.product-thumb {
width: 100%;
height: 340px; /* önce küçük kalıyordu */
display: flex;
align-items: center;
justify-content: center;
background: #ffffff;
overflow: hidden;
}

/* görseli büyüt */
.product-thumb img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
transition: transform .25s ease;
}

/* başlık */
.product-body {
padding-top: 8px; /* görsel ile yazı arası azaltıldı */
}

.product-body h3 {
margin: 0;
color: #111111;
font-size: 20px;
font-weight: 500;
line-height: 1.3;
letter-spacing: 0;
}

/* ürün doküman/video butonları – sadece ürün listesinde kullanılıyor */
.product-card-actions {
margin-top: 10px;
display: grid;
gap: 6px;
justify-items: center;
}

.product-asset-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 7px 14px;
border-radius: 4px;
border: 1px solid #d1d5db;
background: #ffffff;
color: #374151;
font-size: 11px;
font-weight: 600;
text-decoration: none;
text-transform: uppercase;
letter-spacing: .04em;
transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.product-asset-btn:hover {
background: #0ea5e9;
border-color: #0ea5e9;
color: #ffffff;
}

/* boş durum */
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    border: none;
    background: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .catalog-wrap {
        grid-template-columns: 300px 1fr;
    }

    .catalog-grid {
        gap: 70px 60px;
    }
}

@media (max-width: 1100px) {
    .catalog-wrap {
        grid-template-columns: 260px 1fr;
        gap: 28px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 50px 40px;
    }

    .catalog-sidebar a {
        font-size: 16px;
        padding: 14px 14px;
    }
}

@media (max-width: 780px) {
    .catalog-category-banner {
        padding: 14px 16px;
    }
    .catalog-category-banner__title {
        font-size: 1.1rem;
    }
    .catalog-wrap-container {
        width: calc(100% - 20px);
        margin: 20px auto 30px;
    }

    .catalog-wrap {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
        margin-bottom: 20px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
        background: #fafafa;
    }

    /* mobil: başlık yerine açılır/kapanır buton */
    .catalog-sidebar-header {
        margin-bottom: 0;
    }
    .catalog-sidebar-header h3 {
        display: none;
    }
    .catalog-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        font-weight: 700;
        color: #111;
        background: #fff;
        border: none;
        cursor: pointer;
        text-align: left;
        -webkit-tap-highlight-color: transparent;
    }
    .catalog-sidebar-toggle:hover {
        background: #f5f5f5;
    }
    .catalog-sidebar-toggle-icon {
        flex-shrink: 0;
        margin-left: 8px;
        transition: transform 0.2s ease;
        color: #b8860b;
    }
    .catalog-sidebar.is-open .catalog-sidebar-toggle-icon {
        transform: rotate(180deg);
    }
    /* mobil: kategori listesi varsayılan kapalı */
    .catalog-sidebar-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .catalog-sidebar.is-open .catalog-sidebar-list {
        max-height: 80vh;
        overflow-y: auto;
    }
    .catalog-sidebar-list {
        border-top: 1px solid #e5e7eb;
    }

    .catalog-sidebar li + li {
        margin-top: 4px;
    }

    .catalog-sidebar a {
        font-size: 14px;
        padding: 12px 16px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-thumb {
        height: 240px;
    }

    .product-thumb img {
        max-height: 230px;
    }

    .product-body h3 {
        font-size: 18px;
    }
}