/* YourTourKey home — product-cards.
 * Masaüstü, tablet ve mobil kurallar birlikte tutulur.
 * ytk-home.css dosyasından taşınmıştır.
 */

/* PRODUCTS */

.ytk-home-soft {
    background: var(--ytk-soft);
}

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

.ytk-home-product-card {
    min-width: 0;
}

.ytk-home-product-link {
    height: 100%;
    min-height: var(--ytk-product-card-min-height);
    border-radius: var(--ytk-product-card-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(var(--ytk-ink-rgb),0.08);
    color: var(--ytk-navy);
    text-decoration: none;
    box-shadow: 0 14px 44px rgba(var(--ytk-ink-rgb),0.075);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ytk-home-product-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 70px rgba(var(--ytk-ink-rgb),0.13);
}

.ytk-home-product-image {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e7eeee;
}

.ytk-home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: none;
}

.ytk-home-product-link:hover .ytk-home-product-image img {
    transform: none;
}

.ytk-home-product-body {
    flex: 1;
    padding: var(--ytk-product-card-body-padding);
    display: flex;
    flex-direction: column;
}

.ytk-home-product-title {
    color: var(--ytk-navy);
    font-size: var(--ytk-product-title-font-size);
    line-height: var(--ytk-product-title-line-height);
    letter-spacing: -0.03em;
    font-weight: var(--ytk-product-title-font-weight);
}

/* WooCommerce product rating */

.ytk-home-product-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    line-height: 1;
}

.ytk-home-product-rating .star-rating {
    position: relative;
    display: block;
    float: none;
    width: 5.4em;
    height: 1em;
    margin: 0;
    overflow: hidden;
    color: var(--ytk-star-color);
    font-family: star;
    font-size: 14px;
    line-height: 1;
}

.ytk-home-product-rating .star-rating::before {
    content: "\73\73\73\73\73";
    position: absolute;
    top: 0;
    left: 0;
    color: #d9dfde;
}

.ytk-home-product-rating .star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    height: 1em;
    padding-top: 1em;
    overflow: hidden;
}

.ytk-home-product-rating .star-rating span::before {
    content: "\53\53\53\53\53";
    position: absolute;
    top: 0;
    left: 0;
}

.ytk-home-product-rating-count {
    color: rgba(var(--ytk-ink-rgb),0.52);
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0;
}

.ytk-home-product-excerpt {
    margin-top: 13px;
    color: rgba(var(--ytk-ink-rgb),0.58);
    font-size: var(--ytk-product-excerpt-font-size);
    line-height: var(--ytk-product-excerpt-line-height);
    font-weight: var(--ytk-product-excerpt-font-weight);
}

.ytk-home-product-bottom {
    margin-top: auto;
    padding-top: var(--ytk-product-card-bottom-space);
    display: flex;
    align-items: flex-end;
}

.ytk-home-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: var(--ytk-green);
    line-height: 1.2;
}

.ytk-home-product-price small {
    color: rgba(var(--ytk-ink-rgb),0.46);
    font-size: var(--ytk-product-price-label-size);
    line-height: 1;
    font-weight: var(--ytk-product-price-label-weight);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ytk-home-product-price strong {
    color: var(--ytk-green);
    font-size: var(--ytk-product-price-size);
    line-height: 1.15;
    font-weight: var(--ytk-product-price-weight);
}

.ytk-home-product-price em {
    color: rgba(var(--ytk-ink-rgb),0.48);
    font-size: var(--ytk-product-price-unit-size);
    line-height: 1;
    font-style: normal;
    font-weight: var(--ytk-product-price-unit-weight);
}

.ytk-home-product-price del {
    color: rgba(var(--ytk-ink-rgb),0.32);
    font-weight: 500;
}

.ytk-home-product-price ins {
    text-decoration: none;
}

@media (min-width: 981px) and (max-width: 1180px) {
    .ytk-home-products-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
}

@media (min-width: 681px) and (max-width: 820px) {
    .ytk-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ytk-home-product-section,
    .ytk-home-soft {
        background: #ffffff;
    }

    .ytk-home-product-section {
        padding: 30px 0 0;
    }

    .ytk-home-products-grid {
        display: flex;
            gap: 16px;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: none;
            scroll-behavior: auto;
            overscroll-behavior-x: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: auto;
            padding-bottom: 12px;
            padding-right: 18px;
            margin-right: calc((100vw - 100%) / -2);
            scrollbar-width: none;
            -ms-overflow-style: none;
    }

    .ytk-home-products-grid::-webkit-scrollbar {
        display: none;
    }

    .ytk-home-products-grid > * {
        flex: 0 0 78%;
            max-width: 78%;
            scroll-snap-align: none;
            scroll-snap-stop: normal;
    }

    .ytk-home-product-link {
        box-shadow: none;
    }

    .ytk-home-product-link:hover {
        transform: none;
            box-shadow: none;
    }

    .ytk-home-product-link:hover .ytk-home-product-image img {
        transform: none;
    }

    .ytk-home-product-link {
            min-height: auto;
        }

    .ytk-home-product-image {
            height: auto;
            aspect-ratio: 1 / 1;
        }

    .ytk-home-product-body {
            padding-left: 17px;
        }
}
