/**
 * Anasayfa "Tip 1" (md-*) ürün kartları — önizleme ve site index ile aynı görünüm.
 */

.md-product-card {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

.md-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.md-product-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f2ec;
}

.md-product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.md-product-card:hover .md-product-img-box img {
    transform: scale(1.04);
}

.md-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #59683e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 9px;
    z-index: 3;
    letter-spacing: .3px;
}

.md-product-content {
    text-align: center;
    padding-top: 22px;
}

.md-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.md-divider::before,
.md-divider::after {
    content: "";
    height: 1px;
    background: #e7e0d5;
    flex: 1;
}

.md-divider span {
    color: #d9b56d;
    font-size: 17px;
    line-height: 1;
}

.md-product-title {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.md-product-title a {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.md-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 62px;
    //*margin-bottom: 20px;**//
}

.md-price .old-price {
    display: block;
    color: #8a0048;
    font-size: 17px;
    text-decoration-line: line-through;
    margin-bottom: 4px;
    min-height: 26px;
}

.md-price .old-price .price-main,
.md-price .old-price .price-fraction {
    text-decoration-line: line-through;
}

.md-price .old-price.is-empty {
    visibility: hidden;
}

.md-price .current-price {
    display: block;
    color: #77003e;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .4px;
}

.md-price .price-main {
    display: inline-block;
}

.md-price .price-fraction {
    display: inline-block;
    font-size: .62em;
    position: relative;
    top: -4px;
    margin-left: 1px;
}

.md-buy-btn {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    background: #c72d7d;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all .25s ease;
}

.md-buy-btn:hover {
    background: #ad246b;
    color: #fff;
}

.md-buy-btn > span:first-child {
    display: none;
}

.md-buy-btn::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3Cpath d='M1 1h4l2.68 12.39a2 2 0 0 0 2 1.61h7.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

@media (max-width: 991px) {
    .md-product-card {
        padding: 14px;
        border-radius: 15px;
    }

    .md-product-title a {
        font-size: 16px;
    }

    .md-price .current-price {
        font-size: 20px;
    }

    .md-buy-btn {
        height: 48px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .md-product-card {
        padding: 10px;
    }

    .md-product-title {
        min-height: 48px;
    }

    .md-product-title a {
        font-size: 15px;
    }

    .md-price .old-price {
        font-size: 14px;
    }

    .md-price .current-price {
        font-size: 17px;
    }

    .md-buy-btn {
        height: 44px;
        font-size: 14px;
    }
}
