/* ============================================================
 * Ürün Kategori Showcase
 * ============================================================ */

.uks-wrapper {
    display: flex;
    gap: 25px;
    align-items: stretch;
    overflow: visible;
} 

/* ---------- Sol: Kategori kutusu (referans: products-header) ---------- */
.uks-category {
    flex: 0 0 320px;
    max-width: 320px;
    position: relative;
    color: #fff;
    box-sizing: border-box;
    min-height: 100%; 
	border-radius:10px;
	overflow:hidden;
}

/* Eğimli arka plan katmanı — rengi Elementor "Ana renk" ayarından gelir */
.uks-category-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    polygon(0 0, 100% 0, 100% 78%, 0 95%);
    clip-path: polygon(0 0, 100% 0, 100% 78%, 0 95%);
}

.uks-category-link {
    position: relative;
    z-index: 1;
    display: block;
    height: 100%;
    min-height: 400px;
    padding: 28px 24px 80px;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.uks-category-title {
    margin: 0;
}

.uks-category-title b {
    display: inline-block;
}

.uks-category-subtitle {
    display: block;
    margin-top: 10px;
    opacity: .95;
}

/* Sol altta, kutunun altına taşan banner görseli */
.uks-category-banner {
    position: absolute;
    left: 15px;
    bottom: 0px; 
    z-index: 2;
    pointer-events: none;
}

.uks-category-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Özel görsel: boyutlar panelden (px) gelir, CSS yüzdesi devre dışı */
.uks-category-banner--custom {
    width: auto;
    max-width: none;
}

.uks-category-banner--custom img {
    width: auto;
    max-width: 100%;
}

.uks-nav {
    position: absolute;
    bottom: 24px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.uks-prev,
.uks-next {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, opacity .2s ease;
}

.uks-prev:hover,
.uks-next:hover {
    background: rgba(255, 255, 255, .15);
    opacity: 1;
}

.uks-prev.swiper-button-disabled,
.uks-next.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

/* ---------- Sağ: Ürünler ---------- */
.uks-products {
    flex: 1;
    min-width: 0; 
    overflow: hidden;
    display: flex;
}

/* Carousel yüksekliği sol kategori sütunuyla eşitlensin.
   Not: container'da genel ".swiper" sınıfı yok (tema çift init etmesin),
   bu yüzden Swiper'ın container stillerini burada veriyoruz. */
.uks-products .uks-swiper {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    list-style: none;
}

/* Swiper'ın temel yerleşim stillerini ÖZEL sınıflarımıza veriyoruz.
   (Container'da ".swiper" sınıfı olmadığı ve wrapper/slide özel isimli olduğu
   için Swiper bundle CSS'i ve TEMA CSS'i bunlara dokunamaz; geçiş hep çalışır.)
   transition-duration BİLEREK verilmez — onu Swiper inline ayarlar. */
.uks-products .uks-swiper > .uks-swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: stretch;
    box-sizing: content-box;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, ease);
}

/* Tema/eklenti "transition-duration: 0s !important" ile geçişi ezerse,
   Swiper kaydırma yaptığı anda süreyi !important ile geri zorluyoruz.
   (Sınıf yalnızca animasyon anında eklenir; loop yeniden konumlandırmada
   süre 0 olduğunda kaldırılır, böylece sıçrama olmaz.) */
.uks-products .uks-swiper > .uks-swiper-wrapper.uks-animating {
    transition-duration: var(--uks-speed, 700ms) !important;
    transition-property: transform !important;
}

.uks-products .uks-swiper-slide {
    flex-shrink: 0;
    position: relative;
    height: auto;
    display: flex;
}

.uks-card {
    border: 1px solid #ececec;
    background: #fff;
    text-align: center; 
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
	border-radius: 13px;
    overflow: hidden;
    border: 1px solid #ddd; 
}

.uks-card-media {
    position: relative;
}

.uks-card-media img {
    height: 260px;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Hover'da galeri 2. görseli yumuşak geçişle göster */
.uks-card-media .uks-card-link {
    position: relative;
    display: block;
}

.uks-card-media .uks-card-link > img {
    transition: opacity .4s ease;
}

.uks-card-media .uks-second-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.uks-card-media.has-second:hover .uks-second-img {
    opacity: 1;
}

.uks-card h3 {
    font-size: 18px;
    margin: 15px 0 0;
    min-height: 44px;
	padding:10px;
}

.uks-card h3 a {
    color: #333;
    text-decoration: none;
}

.uks-price {
    font-size: 22px;
    font-weight: bold;
    margin: 12px 0;
    color: #333;
}

.uks-price del {
    font-size: 16px;
    font-weight: 400;
    opacity: .6;
    margin-right: 6px;
}

.uks-card .button {
    display: block;
    background: #f26b2c;
    color: #fff;
    padding: 12px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: auto;
    transition: opacity .2s ease;
}

.uks-card .button:hover {
    opacity: .9;
}

.uks-card .button.added {
    opacity: .7;
}

/* ---------- Hover ikonları (Hızlı görünüm / Favori) ---------- */
.uks-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all .25s ease;
}

.uks-card-media:hover .uks-icons {
    opacity: 1;
    transform: translateX(0);
}

.uks-icon {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f26b2c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform .15s ease;
}

.uks-icon:hover {
    transform: scale(1.1);
}

.uks-icon.is-active,
.uks-wishlist.is-active {
    background: #e0245e;
}

.uks-wishlist-yith {
    display: inline-flex;
}

.uks-wishlist-yith .yith-wcwl-add-to-wishlist {
    margin: 0;
}

/* ---------- Grid modu (carousel kapalı) ---------- */
.uks-grid-mode .uks-swiper {
    overflow: visible;
}

.uks-grid-mode .uks-swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transform: none !important;
}

.uks-grid-mode .uks-swiper-slide {
    width: auto !important;
    margin: 0 !important;
}

/* ---------- Hızlı Görünüm Modalı ---------- */
.uks-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.uks-modal.is-open {
    display: flex;
}

.uks-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.uks-modal-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    gap: 25px;
    padding: 30px;
    z-index: 1;
}

.uks-modal-box img {
    width: 45%;
    object-fit: contain;
    align-self: center;
}

.uks-modal-info {
    flex: 1;
}

.uks-modal-info h3 {
    margin: 0 0 12px;
    font-size: 26px;
}

.uks-modal-price {
    font-size: 24px;
    font-weight: bold;
    color: #f26b2c;
    margin-bottom: 15px;
}

.uks-modal-info .button {
    display: inline-block;
    background: #f26b2c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
}

.uks-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    background: #f3f3f3;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .uks-grid-mode .uks-swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .uks-mobile-stack .uks-wrapper,
    .uks-wrapper.uks-mobile-stack {
        flex-direction: column;
    }

    .uks-mobile-stack .uks-category {
        flex-basis: auto !important;
        max-width: 100% !important;
        width: 100%;
    }

    .uks-category-link {
        min-height: 330px;
        padding-bottom: 70px;
    }

    .uks-category-banner { 
        bottom:0;
    }

    .uks-category-banner--custom {
        width: auto;
        max-width: none;
    }

    .uks-hide-desc-mobile .uks-category-subtitle {
        display: none;
    }

    .uks-grid-mode .uks-swiper-wrapper {
        grid-template-columns: 1fr;
    }

    .uks-modal-box {
        flex-direction: column;
        padding: 20px;
    }

    .uks-modal-box img {
        width: 100%;
    }
}
