/**
 * Ürün kartları — Tasarım Ayarları → Ürün Kartları
 * Tip 1 (.md-product-card), Tip 2 (.product-cart-wrap), Tip 3 (.pc3-card)
 */

/* —— Kart kutusu iç boşluk (Tip 1 / 2 / 3) —— */
.md-product-card,
.product-cart-wrap,
.pc3-card {
    padding: var(--pc-card-padding) !important;
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    .md-product-card,
    .product-cart-wrap,
    .pc3-card {
        padding: var(--pc-card-padding-mobile) !important;
    }
}

/* —— Görsel (Tip 1 / 2 / 3) —— */
.md-product-card .md-product-img-box,
.product-cart-wrap .product-img-action-wrap,
.pc3-card .pc3-image-area {
    padding: var(--pc-img-padding) !important;
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    .md-product-card .md-product-img-box,
    .product-cart-wrap .product-img-action-wrap,
    .pc3-card .pc3-image-area {
        padding: var(--pc-img-padding-mobile) !important;
    }
}

.md-product-card .md-product-img-box img,
.product-cart-wrap .product-img img,
.product-cart-wrap .product-img-zoom img,
.pc3-card .pc3-image-area img {
    border-radius: var(--pc-img-border-radius) !important;
}

/* —— Tip 1 —— */
.md-product-card {
    background: var(--pc-card-bg-color) !important;
    border: var(--pc-card-border-width) solid var(--pc-card-border-color) !important;
    border-radius: var(--pc-card-border-radius) !important;
}

.md-product-card .md-product-title {
    display: block !important;
    overflow: hidden !important;
}

.md-product-card .md-product-title a {
    font-size: var(--pc-title-font-size) !important;
    color: var(--pc-title-color) !important;
    font-weight: var(--pc-title-font-weight) !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
}

.md-product-card .md-price .old-price,
.md-product-card .md-price .old-price .price-main,
.md-product-card .md-price .old-price .price-fraction {
    font-size: var(--pc-price-old-font-size) !important;
    color: var(--pc-price-old-color) !important;
    font-weight: var(--pc-price-old-font-weight) !important;
}

.md-product-card .md-price .current-price,
.md-product-card .md-price .current-price .price-main {
    font-size: var(--pc-price-new-font-size) !important;
    color: var(--pc-price-new-color) !important;
    font-weight: var(--pc-price-new-font-weight) !important;
}

.md-product-card .md-buy-btn {
    display: var(--pc-btn-display) !important;
    min-height: var(--pc-btn-size) !important;
    height: var(--pc-btn-size) !important;
    background: var(--pc-btn-bg-color) !important;
    border: var(--pc-btn-border-width) solid var(--pc-btn-border-color) !important;
    border-radius: var(--pc-btn-border-radius) !important;
    color: var(--pc-btn-color) !important;
    font-size: var(--pc-btn-label-font-size) !important;
    font-weight: var(--pc-btn-label-font-weight) !important;
    text-decoration: none !important;
}

.md-product-card .md-buy-btn > span:first-child {
    display: none !important;
}

.md-product-card .md-buy-btn::before {
    background-color: var(--pc-btn-icon-color) !important;
}

.md-product-card .md-buy-btn span:not(:first-child) {
    color: var(--pc-btn-label-color) !important;
}

/* —— Tip 2 —— */
.product-cart-wrap {
    background: var(--pc-card-bg-color) !important;
    border: var(--pc-card-border-width) solid var(--pc-card-border-color) !important;
    border-radius: var(--pc-card-border-radius) !important;
    overflow: hidden;
}

.product-cart-wrap .product-content-wrap h2,
.product-cart-wrap .product-content-wrap h3,
.product-cart-wrap .product-content-wrap .product-card-title {
    overflow: hidden !important;
    margin-bottom: 8px !important;
}

.product-cart-wrap .product-content-wrap h2 a,
.product-cart-wrap .product-content-wrap h3 a,
.product-cart-wrap .product-content-wrap .product-card-title a {
    font-size: var(--pc-title-font-size) !important;
    color: var(--pc-title-color) !important;
    font-weight: var(--pc-title-font-weight) !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    text-decoration: none !important;
}

.product-cart-wrap .product-price .old-price {
    font-size: var(--pc-price-old-font-size) !important;
    color: var(--pc-price-old-color) !important;
    font-weight: var(--pc-price-old-font-weight) !important;
}

.product-cart-wrap .product-price > span:not(.old-price) {
    font-size: var(--pc-price-new-font-size) !important;
    color: var(--pc-price-new-color) !important;
    font-weight: var(--pc-price-new-font-weight) !important;
}

.product-cart-wrap .product-card-bottom .add-cart {
    display: var(--pc-btn-display) !important;
}

.product-cart-wrap .product-card-bottom .add {
    display: var(--pc-btn-inner-display) !important;
    min-height: var(--pc-btn-size) !important;
    line-height: var(--pc-btn-size) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: var(--pc-btn-bg-color) !important;
    border: var(--pc-btn-border-width) solid var(--pc-btn-border-color) !important;
    border-radius: var(--pc-btn-border-radius) !important;
    color: var(--pc-btn-label-color) !important;
    font-size: var(--pc-btn-label-font-size) !important;
    font-weight: var(--pc-btn-label-font-weight) !important;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .md-product-card .md-buy-btn {
        min-height: var(--pc-btn-size-mobile) !important;
        height: var(--pc-btn-size-mobile) !important;
        font-size: var(--pc-btn-label-font-size-mobile) !important;
        font-weight: var(--pc-btn-label-font-weight-mobile) !important;
    }

    .md-product-card .md-buy-btn span:not(:first-child) {
        font-size: var(--pc-btn-label-font-size-mobile) !important;
        font-weight: var(--pc-btn-label-font-weight-mobile) !important;
    }

    .product-cart-wrap .product-card-bottom .add {
        min-height: var(--pc-btn-size-mobile) !important;
        line-height: var(--pc-btn-size-mobile) !important;
        font-size: var(--pc-btn-label-font-size-mobile) !important;
        font-weight: var(--pc-btn-label-font-weight-mobile) !important;
    }
}

/* —— Tip 3 —— */
.pc3-card {
    background: var(--pc-card-bg-color) !important;
    border: var(--pc-card-border-width) solid var(--pc-card-border-color) !important;
    border-radius: var(--pc-card-border-radius) !important;
}

.pc3-card .pc3-title {
    font-size: var(--pc-title-font-size) !important;
    color: var(--pc-title-color) !important;
    font-weight: var(--pc-title-font-weight) !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

.pc3-card .pc3-old-price,
.pc3-card .pc3-old-price .price-main,
.pc3-card .pc3-old-price .price-fraction {
    font-size: var(--pc-price-old-font-size) !important;
    color: var(--pc-price-old-color) !important;
    font-weight: var(--pc-price-old-font-weight) !important;
}

.pc3-card .pc3-new-price,
.pc3-card .pc3-new-price .price-main,
.pc3-card .pc3-new-price .price-fraction {
    font-size: var(--pc-price-new-font-size) !important;
    color: var(--pc-price-new-color) !important;
    font-weight: var(--pc-price-new-font-weight) !important;
}

/* —— Tip 1 & 2 — buton gizliyken tüm kart link (Tip 3 pc3-card-hit) —— */
.md-product-card.pc-card-full-hit,
.product-cart-wrap.pc-card-full-hit {
    position: relative;
}

.pc-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
    background: transparent;
}

.pc-card-hit:focus {
    outline: none;
}

.pc-card-hit:focus-visible {
    outline: 2px solid #2465b1;
    outline-offset: -2px;
}

.pc-card-full-hit .md-product-img-box,
.pc-card-full-hit .md-product-content,
.pc-card-full-hit .product-img-action-wrap,
.pc-card-full-hit .product-content-wrap {
    pointer-events: none;
}

.pc-card-full-hit .pdt2-fav-floating-wrap--grid {
    pointer-events: auto;
    z-index: 6;
}

.md-product-card.pc-card-full-hit .md-product-img-box {
    position: relative;
}

/* Görsel/başlık <a> boyut CSS’i (home.css a:first-child) — tıklama pc-card-hit */
.pc-card-full-hit .pc-card-surface-link {
    pointer-events: none;
    display: block;
    text-decoration: none;
    color: inherit;
}

.pc-card-full-hit .md-product-img-box > a.pc-card-surface-link,
.pc-card-full-hit .product-img.product-img-zoom > a.pc-card-surface-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pc-card-full-hit .md-product-img-box > a.pc-card-surface-link img,
.pc-card-full-hit .product-img.product-img-zoom > a.pc-card-surface-link img {
    width: 100%;
    height: 100%;
    display: block;
}

.pc-card-full-hit .md-product-title a.pc-card-surface-link {
    pointer-events: none;
}

.pc-card-full-hit .product-content-wrap h2 a.pc-card-surface-link,
.pc-card-full-hit .product-content-wrap h3 a.pc-card-surface-link {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}
