/* DW Product Carousel - kart tasarımı */

/* Carousel ortak yapı */
.dw-product-carousel-wrapper {
    margin: 40px 0;
    position: relative;
}

/* Swiper container */
.dw-product-carousel.swiper {
    padding: 0 10px 20px; /* alt 20px, sağ/sol 10px */
}

/* Grid yapısı */
.dw-product-grid-wrapper {
    margin: 40px 0;
}

.dw-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .dw-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dw-product-grid {
        grid-template-columns: 1fr;
    }
}

.dw-product-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dw-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.dw-product-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dw-product-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.dw-product-title {
    margin: 0;
}

.dw-product-title a {
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #222;
}

.dw-product-title a:hover {
    text-decoration: underline;
}

.dw-product-price {
    margin-top: 4px;
    font-weight: 700;
    font-size: 15px;
}

/* Sepete ekle butonu ortalı ve #62464d */
.dw-product-actions {
    margin-top: 16px;
    text-align: center;

    /* Sepete Ekle + Sepetim dikey hizalı */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dw-product-actions .button,
.dw-product-actions .dw-add-to-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 9px 20px;
    border-radius: 999px;
    background-color: #62464d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.dw-product-actions .button:hover,
.dw-product-actions .dw-add-to-cart-button:hover {
    background-color: #523840;
    color: #ffffff;
}

/* WooCommerce'in eklediği "Sepetim" linki */
.dw-product-card .dw-product-actions .added_to_cart {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: underline;
}

/* Carousel navigasyon okları - masaüstü, resim hizasında */
.dw-carousel-nav {
    position: absolute;
    top: 38%;                        /* görsel hizasında, kategoriye binmez */
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: #62464d;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
}

.dw-carousel-prev {
    left: 5px;
}

.dw-carousel-next {
    right: 5px;
}

.dw-carousel-nav::before {
    content: '‹';
    font-size: 24px;
    line-height: 1;
    color: inherit;
}

.dw-carousel-next::before {
    content: '›';
}

.dw-carousel-nav:hover {
    background: #523840;
    color: #ffffff;
}

/* Mobil ayarlar */
@media (max-width: 767px) {

    .dw-product-carousel-wrapper {
        margin: 20px 0;
    }

    .dw-product-grid-wrapper {
        margin: 20px 0;
    }

    /* Mobilde sliderın altına yer açalım */
    .dw-product-carousel.swiper {
        padding: 0 0 56px; /* altta oklar için ekstra boşluk */
    }

    /* Mobilde okları kartların ALTINA al */
    .dw-carousel-nav {
        top: auto;
        bottom: 12px;
        transform: none;
        width: 36px;
        height: 36px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    }

    .dw-carousel-prev {
        left: 26%;
    }

    .dw-carousel-next {
        right: 26%;
    }
}
