/**
 * Ürün kartı tema stilleri (theme_product_card_style)
 * Görsel hover: theme_product_card_image_hover → body.ui-card-img-hover-*
 * Temel .product-card kuralları style.css içinde; burada varyantlar.
 */

/* —— Görsel çerçevesi (2. görsel / zoom) —— */
.product-image > .product-image__frame,
.product-image-link .product-image__frame {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: #ffffff;
}

.product-image__primary,
.product-image__hover {
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.product-image__hover {
    opacity: 0;
}

/* Hafif zoom */
body.ui-card-img-hover-zoom .product-card:hover .product-image__primary {
    transform: scale(1.05);
}

/* Belirgin zoom */
body.ui-card-img-hover-zoom_strong .product-card:hover .product-image__primary {
    transform: scale(1.1);
}

/* 2. görsel — ikinci galeri fotoğrafı */
body.ui-card-img-hover-alt_image .product-card:hover .product-image__frame--dual .product-image__primary {
    opacity: 0;
}

body.ui-card-img-hover-alt_image .product-card:hover .product-image__frame--dual .product-image__hover {
    opacity: 1;
}

/* 2. görsel yoksa hafif zoom yedek */
body.ui-card-img-hover-alt_image .product-card:hover .product-image__frame:not(.product-image__frame--dual) .product-image__primary {
    transform: scale(1.05);
}

/* 2. görsel + zoom */
body.ui-card-img-hover-alt_image_zoom .product-card:hover .product-image__frame--dual .product-image__primary {
    opacity: 0;
    transform: scale(1.05);
}

body.ui-card-img-hover-alt_image_zoom .product-card:hover .product-image__frame--dual .product-image__hover {
    opacity: 1;
    transform: scale(1.05);
}

body.ui-card-img-hover-alt_image_zoom .product-card:hover .product-image__frame:not(.product-image__frame--dual) .product-image__primary {
    transform: scale(1.05);
}

/* Yok — bilinçli olarak efekt uygulanmaz */
body.ui-card-img-hover-none .product-card:hover .product-image__primary,
body.ui-card-img-hover-none .product-card:hover .product-image__hover {
    transform: none !important;
}

body.ui-card-img-hover-none .product-card:hover .product-image__hover {
    opacity: 0 !important;
}

.product-card__discount-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 3;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.product-card:has(.product-card__discount-ribbon) .product-badges {
    top: 46px;
}

/* —— Minimal Premium —— */
.product-card--minimal {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: none;
    background: var(--bg-white);
}

.product-card--minimal:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border-color: rgba(0, 142, 217, 0.35);
}

.product-card--minimal .product-info {
    padding: 14px 14px 16px;
    gap: 10px;
}

.product-card--minimal .product-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.product-card--minimal .product-price--minimal .price,
.product-card--minimal .product-price--minimal .price-now {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-card--minimal .product-price--minimal .product-price__ask.price {
    font-size: 15px;
    letter-spacing: 0;
}

.product-card--minimal .product-buttons--compact {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 8px;
}

.product-card--minimal .product-buttons--compact .btn-add-cart,
.product-card--minimal .product-buttons--compact .btn-view {
    border-radius: var(--ui-btn-product-cart-radius, 10px);
    white-space: nowrap;
}

/* —— Luxury Dark —— */
.product-card--luxury {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    background: #0f172a;
}

.product-card--luxury:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.product-card--luxury .product-image {
    background: #1e293b;
}

.product-card--luxury .product-info--luxury {
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    gap: 8px;
}

.product-card--luxury .product-name,
.product-card--luxury .product-name a {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}

.product-card--luxury .product-price--luxury .price,
.product-card--luxury .product-price--luxury .price-now {
    color: #fbbf24;
    font-size: 20px;
    font-weight: 700;
}

.product-card--luxury .product-price--luxury .price-vat-note {
    font-size: 11px;
    color: #fde68a;
    font-weight: 800;
}

.product-card--luxury .product-price--luxury .product-price__ask.price {
    color: #fbbf24;
    font-size: 16px;
}

.product-card--luxury .product-price--luxury .price-old {
    color: #94a3b8;
}

.product-card--luxury .product-buttons--compact .btn-add-cart {
    background: var(--ui-btn-product-cart-bg, var(--secondary-color));
    color: var(--ui-btn-product-cart-text, #ffffff);
    border: 2px solid var(--ui-btn-product-cart-bg, var(--secondary-color));
    font-weight: 700;
}

.product-card--luxury .product-buttons--compact .btn-add-cart:hover {
    background: var(--ui-btn-product-cart-hover-bg, var(--secondary-color));
    color: var(--ui-btn-product-cart-hover-text, #ffffff);
    border-color: var(--ui-btn-product-cart-hover-bg, var(--secondary-color));
}

.product-card--luxury .product-buttons--compact .btn-view {
    background: var(--ui-btn-product-view-bg, transparent);
    border: 2px solid var(--ui-btn-product-view-bg, rgba(248, 250, 252, 0.35));
    color: var(--ui-btn-product-view-text, #f8fafc);
}

.product-card--luxury .product-buttons--compact .btn-view:hover {
    background: var(--ui-btn-product-view-hover-bg, rgba(248, 250, 252, 0.12));
    border-color: var(--ui-btn-product-view-hover-bg, #f8fafc);
    color: var(--ui-btn-product-view-hover-text, #f8fafc);
}

.product-card--luxury .product-favorite-btn {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
}

.product-card--luxury .product-card__discount-ribbon {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* —— Glass Modern —— */
.product-card--glass {
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.1);
    background: #fff;
}

.product-card--glass .product-image {
    padding-top: 108%;
}

.product-card--glass .product-card__glass-panel {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.product-card--glass .product-card__glass-panel .product-name {
    font-size: 13px;
    margin: 0 0 6px;
    min-height: auto;
}

.product-card--glass .product-price--glass {
    margin-bottom: 8px;
}

.product-card--glass .product-price--glass .price {
    font-size: 17px;
    font-weight: 700;
}

.product-card--glass .product-price--glass .product-price__ask.price {
    font-size: 14px;
    font-weight: 700;
}

.product-card--glass .product-buttons--compact {
    display: flex;
    gap: 6px;
}

.product-card--glass .product-buttons--compact .btn-add-cart,
.product-card--glass .product-buttons--compact .btn-view {
    flex: 1;
    border-radius: var(--ui-btn-product-cart-radius, 9px);
    white-space: nowrap;
}

.product-card--glass:hover .product-image img {
    transform: scale(1.06);
}

/* —— Boutique —— */
.product-card--boutique {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.product-card--boutique:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.product-card--boutique .product-image {
    border-radius: 22px 22px 0 0;
}

.product-card--boutique .product-info--boutique {
    padding: 16px 16px 18px;
    text-align: center;
    gap: 8px;
}

.product-card--boutique .product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    min-height: auto;
}

.product-card--boutique .product-price--boutique {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.product-card--boutique .product-price--boutique .price,
.product-card--boutique .product-price--boutique .price-now {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card--boutique .product-price--boutique .product-price__ask.price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card--boutique .product-card__boutique-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 5;
    border-radius: 22px 22px 0 0;
}

.product-card--boutique:hover .product-card__boutique-overlay {
    opacity: 1;
}

.product-card--boutique .product-buttons--overlay {
    display: flex;
    gap: 12px;
}

/* body + button/a: theme-buttons-hover border-radius override’ını geçersiz kılar */
body .product-card--boutique .product-buttons--overlay button.btn-add-cart,
body .product-card--boutique .product-buttons--overlay a.btn-view,
body .product-card--boutique .product-buttons--overlay a.btn-add-cart.btn-price-on-request {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    flex: 0 0 46px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box;
    transition: transform 0.22s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.22s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

body .product-card--boutique .product-buttons--overlay button.btn-add-cart:hover,
body .product-card--boutique .product-buttons--overlay button.btn-add-cart:focus,
body .product-card--boutique .product-buttons--overlay button.btn-add-cart:active,
body .product-card--boutique .product-buttons--overlay a.btn-view:hover,
body .product-card--boutique .product-buttons--overlay a.btn-view:focus,
body .product-card--boutique .product-buttons--overlay a.btn-view:active {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    flex: 0 0 46px !important;
    border-radius: 50% !important;
}

/* İncele + sepet: aynı hover hareketi; köşe yuvarlaklığı sabit kalır */
body .product-card--boutique .product-buttons--overlay button.btn-add-cart:not(.btn-out-of-stock):not(:disabled):hover,
body .product-card--boutique .product-buttons--overlay button.btn-add-cart:not(.btn-out-of-stock):not(:disabled):focus,
body .product-card--boutique .product-buttons--overlay a.btn-view:hover,
body .product-card--boutique .product-buttons--overlay a.btn-view:focus {
    transform: var(--ui-btn-product-cart-hover-transform, var(--ui-btn-hover-transform, none)) !important;
    animation: var(--ui-btn-product-cart-hover-animation, var(--ui-btn-hover-animation, none)) !important;
    box-shadow: var(--ui-btn-product-cart-hover-shadow, inherit) !important;
    border-radius: 50% !important;
}

body .product-card--boutique .product-buttons--overlay button.btn-add-cart:not(.btn-out-of-stock):not(:disabled):active,
body .product-card--boutique .product-buttons--overlay a.btn-view:active {
    transform: var(--ui-btn-product-cart-hover-transform-active, var(--ui-btn-hover-transform-active, none)) !important;
    animation: none !important;
    border-radius: 50% !important;
}

body .product-card--boutique .product-buttons--overlay button.btn-add-cart i,
body .product-card--boutique .product-buttons--overlay a.btn-view i {
    font-size: 16px !important;
    margin: 0;
}

.product-card--boutique .product-buttons--overlay .btn-add-cart {
    background: var(--ui-btn-product-cart-bg, var(--secondary-color));
    color: var(--ui-btn-product-cart-text, #fff);
    border: 2px solid var(--ui-btn-product-cart-bg, var(--secondary-color));
}

.product-card--boutique .product-buttons--overlay .btn-add-cart:hover {
    background: var(--ui-btn-product-cart-hover-bg, var(--secondary-color));
    color: var(--ui-btn-product-cart-hover-text, #fff);
    border-color: var(--ui-btn-product-cart-hover-bg, var(--secondary-color));
}

.product-card--boutique .product-buttons--overlay .btn-view {
    background: var(--ui-btn-product-view-bg, #fff);
    color: var(--ui-btn-product-view-text, var(--text-dark));
    border: 2px solid var(--ui-btn-product-view-bg, #fff);
}

.product-card--boutique .product-buttons--overlay .btn-view:hover {
    background: var(--ui-btn-product-view-hover-bg, #fff);
    color: var(--ui-btn-product-view-hover-text, var(--text-dark));
    border-color: var(--ui-btn-product-view-hover-bg, #fff);
}

/* Klasik: mevcut stil — modifier ile uyumluluk */
.product-card--classic {
    /* style.css varsayılanları */
}

/* Carousel / grid uyumu */
.latest-products__item .product-card--glass .product-image,
.latest-products__item .product-card--boutique .product-image {
    padding-top: 100%;
}

.products-grid .product-card--glass .product-card__glass-panel {
    bottom: 8px;
    left: 8px;
    right: 8px;
}

@media (max-width: 768px) {
    .product-card--boutique .product-card__boutique-overlay {
        opacity: 1;
        background: rgba(15, 23, 42, 0.25);
    }

    .product-card--glass .product-card__glass-panel {
        padding: 10px;
    }
}

/* —— Vitrin Pro (referans görsel) —— */
.product-card--showcase {
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    background: #fff;
    overflow: hidden;
}

.product-card--showcase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.product-card--showcase .product-image--showcase {
    padding-top: 88%;
    background: #ffffff;
}

.product-card--showcase .product-image--showcase img {
    object-fit: contain;
    object-position: center;
}

.product-card--showcase .product-favorite-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.92);
}

.product-card--showcase .product-card__showcase-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card--showcase .product-card__showcase-cta {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: var(--secondary-color, #2ec4b6);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 4px 14px rgba(46, 196, 182, 0.35);
}

.product-card--showcase .product-card__showcase-cta:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 196, 182, 0.45);
}

.product-card--showcase .product-card__showcase-cta.btn-out-of-stock {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.product-card--showcase .product-card__showcase-brand {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--primary-color, #1a5f6e);
    line-height: 1.2;
}

.product-card--showcase .product-name--showcase {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    min-height: auto;
    max-height: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--showcase .product-name--showcase a {
    color: #5a8a96;
    text-decoration: none;
}

.product-card--showcase .product-name--showcase a:hover {
    color: var(--secondary-color);
}

.product-card--showcase .product-card__showcase-pricing {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
}

.product-card--showcase .product-card__showcase-pct {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 10px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    border-radius: 2px;
}

.product-card--showcase .product-card__showcase-prices {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.product-card--showcase .product-card__showcase-prices .price-old {
    font-size: 13px;
    color: #9e9e9e;
    text-decoration: line-through;
    font-weight: 500;
}

.product-card--showcase .product-card__showcase-prices .price,
.product-card--showcase .product-card__showcase-prices .price-now {
    font-size: 20px;
    font-weight: 800;
    color: #e53935;
    line-height: 1.1;
}

.product-card--showcase .product-card__showcase-prices .price-vat-note {
    font-size: 11px;
    color: #e53935;
}

.product-card--showcase .product-card__showcase-prices .product-price__ask.price {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary-color, #0284c7);
    line-height: 1.2;
}

/* —— Kart boyutu (tema: theme_product_card_size) —— */
body.ui-card-size-compact {
    --pc-grid-min: 155px;
    --pc-carousel: 165px;
    --pc-image-ratio: 72%;
    --pc-name-size: 12px;
    --pc-price-size: 14px;
}

body.ui-card-size-default {
    --pc-grid-min: 200px;
    --pc-carousel: 230px;
    --pc-image-ratio: 100%;
    --pc-name-size: 14px;
    --pc-price-size: 16px;
}

body.ui-card-size-large {
    --pc-grid-min: 260px;
    --pc-carousel: 280px;
    --pc-image-ratio: 108%;
    --pc-name-size: 15px;
    --pc-price-size: 18px;
}

body.ui-card-size-xlarge {
    --pc-grid-min: 300px;
    --pc-carousel: 320px;
    --pc-image-ratio: 115%;
    --pc-name-size: 16px;
    --pc-price-size: 20px;
}

.products-grid,
.product-listing-cards .products-grid,
.products-catalog__grid.products-grid,
.campaign-products .products-grid,
.campaign-products-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--pc-grid-min, 200px), 1fr)) !important;
}

/* Ürün detay — benzer ürünler: kart boyutuna göre sabit sütun (PHP --related-grid-cols) */
@media (min-width: 993px) {
    .page-product-detail .product-detail-section .related-products .products-grid {
        grid-template-columns: repeat(var(--related-grid-cols, 4), minmax(0, 1fr)) !important;
    }
}

@media (min-width: 601px) and (max-width: 992px) {
    body.ui-card-size-compact .page-product-detail .product-detail-section .related-products .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.ui-card-size-default .page-product-detail .product-detail-section .related-products .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.ui-card-size-large .page-product-detail .product-detail-section .related-products .products-grid,
    body.ui-card-size-xlarge .page-product-detail .product-detail-section .related-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.product-detail-section .related-products .products-grid {
    gap: 16px 14px;
    margin-bottom: 0;
    width: 100%;
    align-items: stretch;
}

body.ui-card-size-large .product-detail-section .related-products .products-grid,
body.ui-card-size-xlarge .product-detail-section .related-products .products-grid {
    gap: 20px 18px;
}

@media (min-width: 901px) {
    .latest-products__item,
    .home-picks .latest-products__item {
        flex: 0 0 var(--pc-carousel, 230px) !important;
        max-width: var(--pc-carousel, 230px) !important;
    }
}

.latest-products__item .product-card,
.products-showcase .products-slide .product-card {
    max-width: 100%;
}

body[class*="ui-card-size-"] .product-image:not(.product-image--showcase) {
    padding-top: var(--pc-image-ratio, 100%);
}

body[class*="ui-card-size-"] .product-card--showcase .product-image--showcase {
    padding-top: calc(var(--pc-image-ratio, 88%) + 8%);
}

/* Görsel doğal oranına göre kutu — KAPALI (grid hizasını bozuyordu).
   Kartlar sabit --pc-image-ratio kullanır; img object-fit: contain ile kesilmeden sığar. */
.product-card .product-image.is-ratio-fit {
    /* Eski sınıflar varsa bile sabit temaya dön */
    padding-top: var(--pc-image-ratio, 100%) !important;
    background: #ffffff;
}

.product-card .product-image.is-ratio-fit img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

body[class*="ui-card-size-"] .product-name {
    font-size: var(--pc-name-size, 14px);
}

body[class*="ui-card-size-"] .product-price .price {
    font-size: var(--pc-price-size, 16px);
}

.product-card .product-price,
.product-card .price-now {
    overflow: visible;
}

.product-card .product-price {
    flex-shrink: 0;
}

body.ui-card-size-large .products-grid,
body.ui-card-size-xlarge .products-grid,
body.ui-card-size-large .product-listing-cards .products-grid,
body.ui-card-size-xlarge .product-listing-cards .products-grid {
    gap: 20px 18px;
}

@media (min-width: 1200px) {
    body.ui-card-size-large .product-listing-cards .products-grid,
    body.ui-card-size-large .products-catalog__grid.products-grid {
        grid-template-columns: repeat(auto-fill, minmax(var(--pc-grid-min, 260px), 1fr)) !important;
    }

    body.ui-card-size-xlarge .product-listing-cards .products-grid,
    body.ui-card-size-xlarge .products-catalog__grid.products-grid {
        grid-template-columns: repeat(auto-fill, minmax(var(--pc-grid-min, 300px), 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .product-detail-section .related-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 8px;
    }
}

/* Anasayfa carousel — mobil: tek kart, sol-sağ .container ile aynı */
@media (max-width: 900px) {
    .home-carousel .latest-products__track-wrap {
        width: 100%;
        overflow: hidden;
        overflow-x: clip;
        container-type: inline-size;
        container-name: home-carousel-viewport;
    }

    .home-carousel .latest-products__track {
        width: 100%;
        gap: 0;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .home-carousel .latest-products__item,
    body.ui-card-size-compact .home-carousel .latest-products__item,
    body.ui-card-size-default .home-carousel .latest-products__item,
    body.ui-card-size-large .home-carousel .latest-products__item,
    body.ui-card-size-xlarge .home-carousel .latest-products__item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }

    .home-carousel .latest-products__item + .latest-products__item {
        margin-left: 12px !important;
    }

    .home-carousel .latest-products__item .product-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .home-carousel .latest-products__nav {
        width: 32px;
        height: 32px;
    }

    .home-carousel .latest-products__nav--prev {
        left: 10px;
    }

    .home-carousel .latest-products__nav--next {
        right: 10px;
    }

    .home-picks__panes,
    .home-product-band,
    .home-picks .products-slide {
        overflow-x: hidden;
    }
}

/* —— Butonsuz / görsel odaklı kartlar (ortak) —— */
.product-card__stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-indent: -9999px;
    overflow: hidden;
}

.product-card--visual,
.product-card--editorial,
.product-card--spotlight,
.product-card--impact,
.product-card--frame,
.product-card--boutique {
    position: relative;
    overflow: hidden;
}

/* İçerik stretched-link üstünde; favori / butonlar tıklanabilir */
.product-card--visual .product-image,
.product-card--editorial .product-image,
.product-card--spotlight .product-image,
.product-card--frame .product-card__frame-inner,
.product-card--impact .product-card__impact-side,
.product-card--impact .product-card__impact-main {
    position: relative;
    z-index: 2;
}

/* Görsel/metin katmanları stretched-link tıklamasını engellemesin */
.product-card--visual .product-image--visual,
.product-card--editorial .product-image--editorial,
.product-card--editorial .product-card__editorial-body,
.product-card--spotlight .product-image--spotlight,
.product-card--frame .product-card__frame-inner,
.product-card--frame .product-card__frame-caption,
.product-card--impact .product-card__impact-side,
.product-card--impact .product-card__impact-main {
    pointer-events: none;
}

.product-card--boutique .product-image,
.product-card--boutique .product-info--boutique {
    position: relative;
    z-index: 2;
}

.product-card--visual .product-favorite-btn,
.product-card--editorial .product-favorite-btn,
.product-card--spotlight .product-favorite-btn,
.product-card--impact .product-favorite-btn,
.product-card--frame .product-favorite-btn,
.product-card--boutique .product-favorite-btn {
    z-index: 15;
    pointer-events: auto;
}

/* Fiyat Sor link/buton — stretched-link altında kalmasın */
.product-card .product-price__ask,
.product-card a.btn-price-on-request,
.product-card--visual .product-price--visual,
.product-card--spotlight .product-price--spotlight,
.product-card--editorial .product-price--editorial,
.product-card--impact .product-price--impact,
.product-card--frame .product-price--frame,
.product-card--boutique .product-buttons--overlay a.btn-price-on-request {
    pointer-events: auto;
    position: relative;
    z-index: 6;
}

.product-card--boutique .product-card__boutique-overlay .product-buttons--overlay,
.product-card--boutique .product-card__boutique-overlay .product-buttons--overlay .btn-add-cart,
.product-card--boutique .product-card__boutique-overlay .product-buttons--overlay .btn-view,
.product-card--boutique .product-card__boutique-overlay .product-buttons--overlay a.btn-price-on-request {
    pointer-events: auto;
}

.product-card--boutique .product-card__boutique-overlay {
    pointer-events: none;
}

.product-card__text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary-color, #008ed9);
    margin-top: 6px;
}

.product-card__stock-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b91c1c;
    margin-bottom: 4px;
}

/* Görsel Vitrin — butonsuz */
.product-card--visual {
    border: none;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    background: #0f172a;
}

.product-card--visual:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.2);
}

.product-card--visual .product-image--visual {
    padding-top: 118%;
    position: relative;
    background: #0f172a;
}

.product-card--visual .product-image--visual img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-card--visual .product-card__visual-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.product-card--visual .product-card__visual-pct {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.product-card--visual .product-card__visual-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 16px 16px 18px;
    pointer-events: none;
}

.product-card--visual .product-name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--visual .product-price--visual .price,
.product-card--visual .product-price--visual .price-now {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.product-card--visual .product-price--visual .product-price__ask.price {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.product-card--visual .product-price--visual .price-old {
    color: rgba(248, 250, 252, 0.65);
}

/* Editoryal — butonsuz */
.product-card--editorial {
    border: none;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

.product-card--editorial:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.product-card--editorial .product-image--editorial {
    padding-top: 130%;
}

.product-card--editorial .product-card__editorial-body {
    padding: 18px 18px 20px;
}

.product-card--editorial .product-card__editorial-brand {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.product-card--editorial .product-name--editorial {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    min-height: auto;
}

.product-card--editorial .product-name--editorial a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.product-card--editorial .product-price--editorial .price,
.product-card--editorial .product-price--editorial .price-now {
    font-size: 20px;
    font-weight: 700;
}

.product-card--editorial .product-price--editorial .product-price__ask.price {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color, #0284c7);
}

/* Spotlight */
.product-card--spotlight {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.18);
}

.product-card--spotlight .product-image--spotlight {
    padding-top: 125%;
}

.product-card--spotlight .product-card__spotlight-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.product-card--spotlight .product-card__spotlight-deal {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--secondary-color, #008ed9);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 142, 217, 0.45);
}

.product-card--spotlight .product-card__spotlight-deal-pct {
    font-size: 18px;
    font-weight: 900;
}

.product-card--spotlight .product-card__spotlight-deal-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card--spotlight .product-card__spotlight-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    pointer-events: none;
}

.product-card--spotlight .product-name {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--spotlight .product-price--spotlight .price,
.product-card--spotlight .product-price--spotlight .price-now {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.product-card--spotlight .product-price--spotlight .product-price__ask.price {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.product-card--spotlight .product-price--spotlight .price-old {
    color: rgba(255, 255, 255, 0.55);
}

/* Impact Bold */
.product-card--impact {
    display: flex;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    min-height: 100%;
}

.product-card--impact:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.product-card--impact .product-card__impact-side {
    flex: 0 0 52px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: #fbbf24;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    z-index: 3;
}

.product-card--impact .product-card__impact-pct {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.product-card--impact .product-card__impact-off {
    font-size: 12px;
    font-weight: 800;
}

.product-card--impact .product-card__impact-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-card--impact .product-image--impact {
    padding-top: 72%;
}

.product-card--impact .product-card__impact-body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card--impact .product-name--impact {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--impact .product-price--impact .price,
.product-card--impact .product-price--impact .price-now {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
}

.product-card--impact .product-price--impact .product-price__ask.price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

.product-card--impact .product-card__text-link {
    margin-top: auto;
}

/* Galeri çerçeve */
.product-card--frame {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px;
}

.product-card--frame .product-card__frame-inner {
    background: #fff;
    border: 10px solid #fff;
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card--frame:hover .product-card__frame-inner {
    transform: rotate(-1deg) translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.product-card--frame .product-image--frame {
    padding-top: 108%;
}

.product-card--frame .product-card__frame-caption {
    padding: 14px 14px 16px;
    margin: 0;
    text-align: center;
}

.product-card--frame .product-name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.product-card--frame .product-price--frame {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card--frame .product-price--frame .product-price__ask.price {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color, #0284c7);
}

.product-card--frame .product-card__text-link {
    justify-content: center;
    width: 100%;
}

body[class*="ui-card-size-"] .product-card--editorial .product-image--editorial {
    padding-top: calc(var(--pc-image-ratio, 100%) + 30%);
}

body[class*="ui-card-size-"] .product-card--spotlight .product-image--spotlight {
    padding-top: calc(var(--pc-image-ratio, 100%) + 25%);
}

body[class*="ui-card-size-"] .product-card--visual .product-image--visual {
    padding-top: calc(var(--pc-image-ratio, 100%) + 18%);
}

/* Ürün detayı — benzer ürünler: tema kartları + anasayfa ile aynı görsel çerçeve */
.product-detail-section .related-products--theme-cards .product-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 6px 16px rgba(2, 6, 23, 0.08);
}

.product-detail-section .related-products--theme-cards .product-image {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Global .product-name / .product-name a (style.css) — sadece açık zeminli kartlarda */
.product-detail-section .related-products--theme-cards .product-card--classic .product-name,
.product-detail-section .related-products--theme-cards .product-card--classic .product-name a,
.product-detail-section .related-products--theme-cards .product-card--minimal .product-name,
.product-detail-section .related-products--theme-cards .product-card--minimal .product-name a,
.product-detail-section .related-products--theme-cards .product-card--glass .product-name,
.product-detail-section .related-products--theme-cards .product-card--glass .product-name a,
.product-detail-section .related-products--theme-cards .product-card--boutique .product-name,
.product-detail-section .related-products--theme-cards .product-card--boutique .product-name a,
.product-detail-section .related-products--theme-cards .product-card--impact .product-name,
.product-detail-section .related-products--theme-cards .product-card--impact .product-name a,
.product-detail-section .related-products--theme-cards .product-card--frame .product-name,
.product-detail-section .related-products--theme-cards .product-card--frame .product-name a,
.product-detail-section .related-products--theme-cards .product-card--editorial .product-name,
.product-detail-section .related-products--theme-cards .product-card--editorial .product-name a {
    color: var(--text-dark);
}

.product-detail-section .related-products--theme-cards .product-card--classic .product-name a:hover,
.product-detail-section .related-products--theme-cards .product-card--minimal .product-name a:hover {
    color: var(--primary-color);
}

/* Koyu / gradient kartlar */
.product-detail-section .related-products--theme-cards .product-card--luxury .product-name,
.product-detail-section .related-products--theme-cards .product-card--luxury .product-name a,
.product-detail-section .related-products--theme-cards .product-card--luxury .product-name a:hover {
    color: #f8fafc;
}

.product-detail-section .related-products--theme-cards .product-card--luxury .product-price--luxury .price {
    color: #fbbf24;
}

.product-detail-section .related-products--theme-cards .product-card--luxury .product-price--luxury .price-old {
    color: #94a3b8;
}

.product-detail-section .related-products--theme-cards .product-card--visual .product-name,
.product-detail-section .related-products--theme-cards .product-card--visual .product-name a {
    color: #f8fafc;
}

.product-detail-section .related-products--theme-cards .product-card--visual .product-price--visual .price {
    color: #fff;
}

.product-detail-section .related-products--theme-cards .product-card--visual .product-price--visual .price-old {
    color: rgba(248, 250, 252, 0.65);
}

.product-detail-section .related-products--theme-cards .product-card--spotlight .product-name,
.product-detail-section .related-products--theme-cards .product-card--spotlight .product-name a {
    color: #f8fafc;
}

.product-detail-section .related-products--theme-cards .product-card--spotlight .product-price--spotlight .price {
    color: #fff;
}

.product-detail-section .related-products--theme-cards .product-card--spotlight .product-price--spotlight .price-old {
    color: rgba(255, 255, 255, 0.55);
}

.product-detail-section .related-products--theme-cards .product-card--showcase .product-card__showcase-brand {
    color: var(--primary-color, #1a5f6e);
}

.product-detail-section .related-products--theme-cards .product-card--showcase .product-name--showcase,
.product-detail-section .related-products--theme-cards .product-card--showcase .product-name--showcase a {
    color: #5a8a96;
}

.product-detail-section .related-products--theme-cards .product-card--showcase .product-card__showcase-prices .price {
    color: #e53935;
}

.product-detail-section .related-products--theme-cards .product-card--editorial .product-card__editorial-brand {
    color: var(--primary-color);
}

.product-detail-section .related-products--theme-cards .product-card--impact .product-price--impact .price {
    color: var(--primary-color);
}

.product-detail-section .related-products--theme-cards .product-card--boutique .product-price--boutique .price {
    color: var(--primary-color);
}

/* Hover: sayfa geneli ezmesin, varyant davranışı */
.product-detail-section .related-products--theme-cards .product-card--classic:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-detail-section .related-products--theme-cards .product-card--minimal:hover {
    transform: translateY(-6px);
}

.product-detail-section .related-products--theme-cards .product-card--luxury:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.product-detail-section .related-products--theme-cards .product-card--visual:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.2);
}

.product-detail-section .related-products--theme-cards .product-card--spotlight:hover {
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.18);
}

.product-detail-section .related-products--theme-cards .product-card--frame:hover .product-card__frame-inner {
    transform: rotate(-1deg) translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}
