﻿/* Genel Stiller (Mevcut stillerinizi koruyarak eklemeler yapıyorum) */
.product-slogan {
    font-style: italic;
    color: #555;
    text-align: center;
    margin-top: 5px;
}

.section-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.product-prices {
    margin-bottom: 0;
}

.price-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.final-price {
    margin-top: 10px;
}

.actual-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
}

.actual-price .discount-badge,
.actual-price .vat-badge {
    background-color: #dc3545;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.7em;
    margin-left: 5px;
}

.actual-price .vat-badge {
    background-color: #007bff;
}

.model-name-text {
    font-size: 0.6em;
    font-weight: bold;
    margin-right: 5px;
    color: #f44424;
}

.discount-price {
    color: #dc3545;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.model-price-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.model-price-list li {
    margin-bottom: 5px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #ddd;
}

.model-price-list li:last-child {
    border-bottom: none;
}

.model-price-list li .model {
    font-size: 1em;
    margin-right: 5px;
}

.model-price-list li .price {
    font-size: 1.1em;
    font-weight: bold;
    margin-left: auto;
}

.model-selector {
    margin-bottom: 10px;
}

.model-selector label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.price-range-list {
    list-style: none;
    padding-left: 0;
}

.price-range-list li {
    margin-bottom: 5px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #ddd;
}

.price-range-list li:last-child {
    border-bottom: none;
}

.price-range-list li .price {
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 10px;
}

.price-range-list li .quantity {
    font-size: 0.9em;
    color: #6c757d;
    margin-left: auto;
}

.attributes-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Ürün Detay Sayfası Stilleri */
.product-detail {
    padding-top: 20px;
    background-color: #f9f9f9;
}

.product-images {
    position: relative;
}

.main-image-container {
    margin-bottom: 10px;
}

.image-zoom-container {
    position: relative;
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.main-image {
    /* Mevcut stilleriniz */
    max-height: 800px;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    opacity: 0.9; /* Başlangıçta biraz şeffaf */
    /* Yeni animasyon stilleri */
    animation: pulse 1.5s ease-out; /* Animasyonun adı, süresi ve zamanlama fonksiyonu */
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.product-thumbnails-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-prev,
.thumbnail-next {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 25px;
}

.product-thumbnails {
    display: flex;
    margin-top: 10px;
    overflow-x: hidden;
    white-space: nowrap;
    max-width: 450px;
    margin: 0 10px;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    margin-right: 5px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5px;
    object-fit: cover;
    transition: border-color 0.3s ease;
}

.product-thumbnails img.active {
    border-color: #007bff;
}

.product-details {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-bottom: 10px;
    font-size: 2em;
}

.product-description {
    margin-bottom: 15px;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-attributes .attribute-group {
    margin-bottom: 5px;
}

.product-attributes p {
    margin-bottom: 5px;
}

.stock-status.in-stock {
    color: green;
    font-weight: bold;
}

.stock-status.out-of-stock {
    color: red;
    font-weight: bold;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-self: flex-start;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.quantity-selector label {
    margin-right: 10px;
    font-weight: bold;
}

.quantity-selector .input-group {
    width: auto;
}

.quantity-selector .input-group input[type="number"] {
    text-align: center;
    max-width: 60px;
}

.add-to-cart-section {
    margin-top: 15px;
    margin-bottom: 15px;
    align-self: flex-start;
    width: 100%;
}

.add-to-cart {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    white-space: nowrap;
    text-align: center;
}

.download-buttons {
    margin-top: 15px;
}

.download-buttons .btn {
    margin-right: 5px;
}

.product-company-info {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
}

.company-logo img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    object-fit: contain;
}

.company-details {
    flex: 1;
}

.company-name {
    text-decoration: none;
    color: inherit;
}

.company-type {
    font-style: italic;
    color: #6c757d;
}

.company-details-more {
    margin-top: 10px;
}

.company-details-more p {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.company-details-more p i {
    margin-right: 5px;
}

/* Responsive Tasarım (Ürün Detay) */
@media (max-width: 768px) {
    .product-detail .col-md-6 {
        margin-bottom: 10px;
    }

    .product-details {
        padding-left: 0;
    }
}

.product-description-detail {
    margin-top: 20px;
    padding: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-description-detail img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-description-detail table {
    display: block;
}

.product-description-detail td {
    display: block;
}

.product-company-detail {
    margin-top: 20px;
    padding: 10px;
}

.product-reviews {
    margin-top: 20px;
    padding: 10px;
}

.product-faq {
    margin-top: 20px;
    padding: 10px;
}

/* Modal stilleri */
#imageGalleryModal .carousel-item img {
    max-height: 500px;
    object-fit: contain;
    object-position: center;
}

/* Özel tab stilleri */
.custom-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 5px;
    padding: 10px 15px;
    cursor: pointer;
}

.custom-tabs .nav-link:hover {
    border-color: #eee #eee #ddd;
}

.custom-tabs .nav-link.active {
    background-color: #fff;
    border-color: #ddd #ddd #fff;
    color: #495057;
}

.custom-tab-content .tab-pane {
    display: none;
}

.custom-tab-content .tab-pane.active {
    display: block;
}

/* Ürün Listeleme Stilleri */
.product-list-page {
    padding-top: 10px;
}

.banner {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
}

.banner .carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
}

.banner .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    cursor: pointer;
}

.banner .carousel-indicators .active {
    background-color: white;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.carousel-inner {
    height: auto;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    box-sizing: border-box;
}

.banner-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
}

.banner-content p {
    font-size: 1.2em;
    text-shadow: 1px 1px 2px #000;
}

/* Mobil cihazlarda banner'ı göstermek için */
@media (max-width: 767.98px) {
    .product-list-page #productBanner {
        display: block;
    }

    .product-list-page #productBanner .banner-image {
        max-height: 300px;
        object-fit: cover;
    }

    .product-list-page #productBanner .banner-content {
        width: calc(100% - 20px);
        left: 10px;
        transform: translateY(-50%);
        padding: 10px;
        text-align: left;
    }

    .product-list-page #productBanner .banner-content h1 {
        font-size: 1.8em;
    }

    .product-list-page #productBanner .banner-content p {
        font-size: 1em;
    }
}

.category-filter {
    margin-bottom: 20px;
}

.category-list {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    /* Mobil cihazlarda daha iyi görünmesi için eklenenler */
    flex-wrap: wrap; /* Kategori öğelerinin satırlara sığmasını sağlar */
    flex-direction: row; /* kategori ögeleri yan yana sıralansın*/
}

.category-item {
    list-style: none;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
    /* Mobil cihazlarda daha iyi görünmesi için eklenenler */
    margin-bottom: 5px; /* Alt boşluk ekleniyor */
}

.category-item a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 8px 15px;
    transition: color 0.3s ease;
}

.category-item span {
    font-size: 0.8em;
    color: #777;
}

.category-item.active,
.category-item:hover {
    background-color: #f0f0f0;
}

/* Ürün listesinin görselliği mobil cihazlarda düzgün olsun diye eklenenler.*/
.product-list {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
}

.product-item {
    width: calc(25% - 20px);
    margin: 0px;
}

@media (max-width: 768px) {
    .product-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .product-item {
        width: calc(100%);
    }
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.product-image-container {
    position: relative;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.3s ease;
}

.favorite-button:hover,
.favorite-button:focus {
    color: red;
    outline: none;
}

.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 4px;
    color: white;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-delivery {
    background-color: #7cb342;
}

.badge-fast-delivery {
    background-color: #42a5f5;
}

.badge-popular {
    background-color: #d9534f;
}

.product-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.product-short-description {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
}

.product-name {
    font-size: 1.1em;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em; /* Satır yüksekliğini ayarlayın. */
    min-height: 3em; /* 2 satır için min yüksekliği ayarlayın (line-height * 2) */
}

.product-rating {
    color: #FFC107;
    margin-bottom: 5px;
}

.product-rating i {
    font-size: 13px;
}

.rating-count {
    color: #777;
    font-size: 12px;
}

.product-price {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.detail-button-container {
    width: 100%;
}

.detail-button {
    background-color: #f44424;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.detail-button:hover,
.detail-button:focus {
    background-color: #f44424;
    opacity: 0.8;
    outline: none;
}

.detail-button .detail-button-text {
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Responsive Tasarım (Ürün Listesi) */

/* Ekran genişliği 768 pikselden küçükse (mobil cihazlar için) */
@media (max-width: 767.98px) {
    .product-list-page #productBanner {
        display: block;
    }
}

.discount-badge {
    background-color: #dc3545;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-left: 5px;
}

.vat-badge {
    background-color: #007bff;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-left: 5px;
}

.model-name {
    font-size: 1.5em;
    color: #555;
    display: block;
    margin-bottom: 5px;
    line-height: 1.5em;
    min-height: 3em;
}

.magnifier-container {
    position: relative;
    display: inline-block;
}

.magnifier {
    position: absolute;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: none;
    pointer-events: none;
    overflow: hidden;
    display: none;
}

.technical-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.technical-attributes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.attribute-row {
    display: flex;
    align-items: baseline;
}

.attribute-label {
    font-weight: bold;
    width: 240px;
    flex-shrink: 0;
}

.attribute-value {
    flex-grow: 1;
}

.model-attributes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.model-attributes-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

/* Mobil Cihazlar İçin Kategori Listesi Stilleri */
@media (max-width: 767.98px) {
    /* Örnek bir breakpoint */
    .category-list.mobile-category-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0; /* Dikey boşluğu azalt */
    }

    .category-list.mobile-category-list .category-item {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 0; /* Alt boşluğu kaldır */
    }

    .category-list.mobile-category-list .category-item a {
        padding: 8px 12px; /* Yatayda daha fazla alan */
        font-size: 0.9em; /* Yazı boyutunu küçült */
    }
}


/* Mobil Cihazlar İçin Select Stili */
@media (max-width: 767.98px) {
    .category-filter select.form-control {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        -webkit-appearance: none; /* Tarayıcıya özgü stilleri kaldır */
        -moz-appearance: none;
        appearance: none;
        background-color: #fff;
        background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-repeat: no-repeat;
        background-position-x: 100%;
        background-position-y: 5px;
    }
}

/* Genel Stiller (Mevcut stillerinizi koruyarak eklemeler yapıyorum) */
.product-list-page {
    padding-top: 10px;
}

/* Masaüstü Kategori Listesi Stilleri */
.category-filter-desktop {
    border-right: 1px solid #eee;
    padding-right: 15px;
    margin-right: 15px;
    /* height: 100%; Gerekirse ayarlanabilir */
    /* position: sticky; Gerekirse aktif edilebilir */
    /* top: 20px; Gerekirse ayarlanabilir */
}

.category-list-vertical {
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-list-vertical .category-item {
    margin-bottom: 5px;
}

.category-list-vertical .category-item a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    border-left: 3px solid transparent;
    transition: border-left-color 0.3s ease;
}

.category-list-vertical .category-item.active a,
.category-list-vertical .category-item:hover a {
    border-left-color: #f44424;
    background-color: #f9f9f9;
}

.category-list-vertical .category-item span {
    font-size: 0.8em;
    color: #777;
    margin-left: 5px;
}

/* Mobil Cihazlarda Gizle (Masaüstü Kategorileri) */
@media (max-width: 767.98px) {
    .category-filter-desktop {
        display: none;
    }
}

/* Mobil Cihazlar İçin Kategori Filtresi */
@media (max-width: 767.98px) {
    .category-filter {
        margin-bottom: 20px;
    }

    .category-filter select.form-control {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: #fff;
        background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-repeat: no-repeat;
        background-position-x: 100%;
        background-position-y: 5px;
    }
}

/* Ürün Listesi Stilleri (PListPop.cshtml içinde olabilir) */
.product-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0; /* Sol boşluğu kaldır */
}

.product-item {
    width: calc(50% - 20px); /* Örnek genişlik, ihtiyaca göre ayarlanabilir */
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 768px) {
    .product-item {
        width: calc(100%); /* Mobil cihazlarda tam genişlik */
    }
}

.category-list-vertical {
    padding: 0;
    margin: 0;
    list-style: none;
    display: block; /* Kesinlikle blok seviyesinde olmalı */
}

.category-list-vertical .category-item {
    margin-bottom: 5px;
    width: 100%
}

.category-list-vertical .category-item a {
    display: block; /* Her linkin ayrı bir satırda başlaması için */
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    border-left: 3px solid transparent;
    transition: border-left-color 0.3s ease;
}

/* Alt Kategori Stilleri (Sürekli Açık) */
.sub-category-list {
    /*display: none; Başlangıçta gizle, kaldırıldı! */
    padding-left: 20px;
    margin: 0;
    list-style: none;
    background-color: #f9f9f9;
    border-left: 1px solid #eee;
}

.sub-category-item a {
    display: block;
    padding: 5px 15px;
    text-decoration: none;
    color: #555;
}

.category-item.has-subcategories > a::after {
    content: '\25BE'; /* Aşağı doğru ok işareti */
    float: right;
    margin-left: 5px;
}

.product-comparison-page {
    padding: 20px;
}

.product-comparison-page .product-comparison-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-comparison-page .product-comparison-slogan {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.product-comparison-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    margin-bottom: 20px;
}

.product-comparison-image-container {
    padding: 5px;
    text-align: center;
    width: 200px;
}

.product-comparison-main-image {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.product-comparison-main-description {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
}

.product-comparison-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* kartların yüksekliği eşitlensin */
    position: relative; /* Linki kapsayıcı yap */
}

.product-comparison-card-link {
    width: 100%;
    height: 100%;
    display: flex;
    text-decoration: none;
    color: inherit;
    z-index: 1;
    cursor: pointer;
}

.product-comparison-card-link:hover {
    text-decoration: none;
}

.product-comparison-card-header {
    display: flex;
    align-items: center;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    pointer-events: none;
}

.product-comparison-card .product-comparison-image-container {
    text-align: center;
    margin-bottom: 10px;
    padding: 5px;
}

.product-comparison-card-image {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.product-comparison-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex: 1;
}

.product-comparison-card-model {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.product-comparison-discount-badge {
    background-color: #ffc107;
    color: #343a40;
    font-size: 0.8rem;
    padding: 3px 5px;
    border-radius: 4px;
    margin-left: 5px;
    display: inline;
}

.product-comparison-vat-badge {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

.product-comparison-original-price {
    font-size: 0.9em;
    color: #6c757d;
    text-decoration: line-through;
}

.product-comparison-final-price {
    font-weight: bold;
    color: #28a745;
    display: inline;
}

.product-comparison-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.product-comparison-card-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.product-comparison-no-models {
    text-align: center;
    margin-bottom: 15px;
}

.product-comparison-card ul li {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

.product-comparison-card ul li strong {
    margin-right: 5px;
}