/* Lazy Loading Animation */
.lazyload {
    position: relative;
    background: #f5f5f5;
    min-height: 200px;
    display: inline-block;
    width: 100%;
}

/* Shimmer efekti - arka plan */
.lazyload {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Spinner - merkezi yükleme göstergesi */
.lazyload::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lazyloaded::after {
    display: none;
}

.lazyloaded {
    background: transparent;
    animation: none;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Ürün resimleri için özel ayarlar */
.product-img .lazyload,
.product-img img.lazyload {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.product-img .lazyloaded,
.product-img img.lazyloaded {
    background: transparent;
    animation: none;
}

/* Banner ve kategori için */
.banner-img img.lazyload,
.category-wrapper img.featured_cat {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 100px;
}

.banner-img img.lazyloaded,
.category-wrapper img.featured_cat {
    background: transparent;
    animation: none;
}

/* Resim yüklenene kadar placeholder gösterilmeli */
img.lazyload {
    opacity: 0.3; /* Placeholder SVG'yi biraz görünür yap */
}

/* Resim yüklendiğinde fade-in efekti */
img.lazyloaded {
    opacity: 1;
    animation: fadeIn 0.4s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 1;
    }
}


.banner-img img,
.category-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sub-categories .card-2 {
    visibility: visible !important;
}

.product-cart-wrap {
    visibility: visible !important;

}

.carausel-10-columns-cover .carausel-10-columns .card-2 {
    width: 100%;
}

.category-wrapper img.featured_cat {
    border-radius: 50%;
    border: 1px solid #40b449;
}

@media only screen and (max-width: 780px) {
    .carausel-10-columns-cover .carausel-10-columns .card-2 {
        width: auto;
    }
}

.carausel-4-columns-cover .carausel-4-columns {
    margin-left: 1px;
    margin-right: 1px;
}

@media only screen and (max-width: 480px) {

    .carausel-4-columns-cover .carausel-4-columns .product-cart-wrap {
        min-height: 350px;
    }


    .carausel-4-columns-cover .carausel-4-columns-arrow {
        margin-top: -34px;
    }
}

@media (max-width: 767.98px) {
    .mobile-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 10px !important;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .mobile-scroll {
        overflow-x: visible !important;
        flex-wrap: wrap !important;;
    }
}

.tab-content {
    display: block;
}


.product-item {
    display: block;
}

.tab-pane.show {
    display: block;
}

/* Kritik CSS - Sayfa yüklenirken görünen elementler için */
.main {
    display: block;
}

.container {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    margin-right: auto;
    margin-left: auto;
}


.product-cart-wrap {
    margin-bottom: 30px;
}


/* product-img-action-wrap içindeki padding'i kaldır veya azalt */
.product-img-action-wrap {
    padding: 0 !important;
}

.product-img-action-wrap .product-img {
    overflow: hidden;
}

/* En Çok Satanlar ve Yeni Eklenenler bölümleri için */
.product-list-small figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 286 / 215; /* Ürün resimlerinin aspect ratio'su */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.product-list-small figure a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-list-small figure img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
}

.product-content-wrap {
    padding: 15px 0;
}

.add-cart {
    text-align: center;
}

.add-cart a {
    display: inline-block;
    padding: 8px 15px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

/* Mobil scroll için kritik CSS */
@media (max-width: 767.98px) {
    .mobile-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 10px !important;
        margin: 0;
    }

    .LocationSelect button {
        font-size: 14px;
        width: 100%;
        font-weight: 900;
    }
}


.ts-control, .ts-wrapper.single.input-active .ts-control {
    flex-direction: column;
    justify-content: center;
}


.ts-wrapper.single .ts-control input {
    height: 35px !important;
}

.ts-control .item {
    display: flex !important;
    align-items: center !important;
    padding: 0.375rem 0.15rem !important;
    line-height: 1.5 !important;
}

.ts-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.ts-dropdown-content .option {
    padding: 0.5rem 0.75rem !important;
    font-size: 1rem !important;
}

.ts-dropdown-content .option:hover,
.ts-dropdown-content .option[data-selectable]:hover {
    background-color: #3e3e3e !important;
    cursor: pointer !important;
}

.ts-dropdown-content .option.active {
    background-color: #3e3e3e !important;
    color: white !important;
}

.LocationSelect .ts-wrapper {
    width: 100% !important;
    max-width: 100%;
}

.LocationSelect .ts-control {
    height: 29px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 14px;
}


.ts-control {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ts-wrapper.disabled {
    opacity: 0.5;
    background-color: #fafafa;
}
.carausel-4-columns-cover{
    display: flex;
    justify-content: center;
}