/**
 * 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%;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    border: 1px solid #c72d7d24;
}

.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-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: 0 0 12px;
}

.md-product-title a {
    color: #333;
    font-size: 16px;
    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;
}

.product-content-wrap .product-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.product-content-wrap .product-card-title a {
    color: inherit;
    text-decoration: none;
}

.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: #d41476;
    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: #fff;
    border: 1px solid #efd4e2;
    color: #77003e;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all .25s ease;
}

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

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

.md-buy-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 7h-2.17A3 3 0 0 0 18 6a3 3 0 0 0-5.5-1.66A3 3 0 0 0 7 6c0 .35.06.69.17 1H5a2 2 0 0 0-2 2v3h1v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8h1V9a2 2 0 0 0-2-2ZM15 5a1 1 0 0 1 0 2h-1V6a1 1 0 0 1 1-1Zm-6 1a1 1 0 0 1 2 0v1h-1a1 1 0 0 1-1-1Zm-4 3h6v2H5V9Zm1 11v-7h5v7H6Zm7 0v-7h5v7h-5Zm6-9h-6V9h6v2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 7h-2.17A3 3 0 0 0 18 6a3 3 0 0 0-5.5-1.66A3 3 0 0 0 7 6c0 .35.06.69.17 1H5a2 2 0 0 0-2 2v3h1v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8h1V9a2 2 0 0 0-2-2ZM15 5a1 1 0 0 1 0 2h-1V6a1 1 0 0 1 1-1Zm-6 1a1 1 0 0 1 2 0v1h-1a1 1 0 0 1-1-1Zm-4 3h6v2H5V9Zm1 11v-7h5v7H6Zm7 0v-7h5v7h-5Zm6-9h-6V9h6v2Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

@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: 14px;
    }

    .product-content-wrap .product-card-title {
        font-size: 14px;
    }

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

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

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