/* Çiçekchi Ürün Karoseli & Favoriler - Genel stiller */

:root{
    /* Fallback (Elementor değişkenleri yoksa) */
    --cicekchi-pcw-primary: var(--e-global-color-primary, #ff3131);
    --cicekchi-pcw-primary-hover: var(--e-global-color-secondary, #e30d0d);
    --cicekchi-pcw-soft: var(--e-global-color-accent, #f4d3d3);
}

.cicekchi-pcw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cicekchi-pcw-image-wrap {
    position: relative;
    overflow: hidden;
}

.cicekchi-pcw-image-inner {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.cicekchi-pcw-image-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cicekchi-pcw-image-inner.has-hover .cicekchi-pcw-image-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cicekchi-pcw-card:hover .cicekchi-pcw-image-inner.has-hover .cicekchi-pcw-image-hover {
    opacity: 1;
}

.cicekchi-pcw-card:hover .cicekchi-pcw-image-inner.has-hover .cicekchi-pcw-image-main {
    opacity: 0;
}

.cicekchi-pcw-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--cicekchi-pcw-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cicekchi-pcw-wishlist-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cicekchi-pcw-wishlist-toggle:hover {
    background: #fff;
    transform: scale(1.05);
}

.cicekchi-pcw-heart-icon {
    font-size: 15px;
}

.cicekchi-pcw-wishlist-toggle.is-active .cicekchi-pcw-heart-icon {
    color: var(--cicekchi-pcw-primary);
    text-shadow: 0 0 6px rgba(0,0,0,0.0), 0 0 6px color-mix(in srgb, var(--cicekchi-pcw-primary) 60%, transparent);
    /* color-mix desteklenmiyorsa sorun değil; alttaki fallback devreye girer */
    text-shadow: 0 0 6px rgba(255,49,49,0.6);
}

.cicekchi-pcw-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.cicekchi-pcw-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    --cicekchi-title-lines: 2;
    -webkit-line-clamp: var(--cicekchi-title-lines);
}

.cicekchi-pcw-title a {
    color: inherit;
    text-decoration: none;
}

.cicekchi-pcw-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--cicekchi-pcw-primary);
}

.cicekchi-pcw-buttons {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}

.cicekchi-pcw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.cicekchi-pcw-btn-primary {
    background: var(--cicekchi-pcw-primary);
    color: #fff;
}

.cicekchi-pcw-btn-primary:hover {
    background: var(--cicekchi-pcw-primary-hover);
    color: #fff;
}

.cicekchi-pcw-btn-secondary {
    background: var(--cicekchi-pcw-soft);
    color: #7a1d1d;
}

.cicekchi-pcw-btn-secondary:hover {
    background: color-mix(in srgb, var(--cicekchi-pcw-soft) 70%, var(--cicekchi-pcw-primary) 30%);
    color: #6a1515;
    /* fallback */
    background: #f7bebe;
}

.cicekchi-pcw-btn-link {
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    align-self: flex-start;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
}

.cicekchi-pcw-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.cicekchi-pcw-empty {
    text-align: center;
    padding: 40px 20px;
}

.cicekchi-pcw-empty-icon {
    display: inline-block;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--cicekchi-pcw-primary);
}

/* Header favori ikonu */

.cicekchi-pcw-header-favorites {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.cicekchi-pcw-header-heart {
    font-size: 18px;
}

.cicekchi-pcw-header-count {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cicekchi-pcw-header-label {
    font-size: 13px;
}

/* Swiper özel */

.cicekchi-pcw-swiper.swiper {
    position: relative;
    overflow: hidden;
    background: transparent;
    width: 100%;
}

.cicekchi-pcw-swiper .swiper-wrapper {
    display: flex;
    padding-bottom: 40px;
}

.cicekchi-pcw-swiper .swiper-slide {
    height: auto;
}

.cicekchi-pcw-swiper .swiper-button-prev,
.cicekchi-pcw-swiper .swiper-button-next {
    color: var(--cicekchi-pcw-primary);
}

.cicekchi-pcw-swiper .swiper-pagination-bullet {
    background: var(--cicekchi-pcw-soft);
    opacity: 1;
}

.cicekchi-pcw-swiper .swiper-pagination-bullet-active {
    background: var(--cicekchi-pcw-primary);
}

/* Mobil uyum */

@media (max-width: 1024px) {
    .cicekchi-pcw-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cicekchi-pcw-card-body {
        padding: 10px 10px 12px;
    }
    .cicekchi-pcw-wishlist-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.cicekchi-pcw-title a {
    color: inherit;
}

/* Widget içi bağlantılarda alt çizgi olmasın */
.cicekchi-pcw-card a,
.cicekchi-pcw-header-favorites,
.cicekchi-pcw-header-favorites:hover,
.cicekchi-pcw-btn,
.cicekchi-pcw-btn-link {
    text-decoration: none !important;
}

/* Kalp ve sayaç için varsayılan renkler (Elementor stil ayarları bunların üstüne yazabilir) */
.cicekchi-pcw-heart-icon,
.cicekchi-pcw-header-heart {
    color: var(--cicekchi-pcw-primary);
}

.cicekchi-pcw-header-count {
    background-color: var(--cicekchi-pcw-primary);
    color: #ffffff;
}

/* Oklar sadece hover'da görünsün */
.cicekchi-pcw-swiper .swiper-button-prev,
.cicekchi-pcw-swiper .swiper-button-next {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.cicekchi-pcw-swiper:hover .swiper-button-prev,
.cicekchi-pcw-swiper:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
}

/* Widget içi bağlantı renkleri global ayarlardan etkilenmesin */
body .cicekchi-pcw-card .cicekchi-pcw-title a {
    color: inherit !important;
}

/* Favorilerden kaldır butonu global buton stillerinden ayrışsın */
.cicekchi-pcw-btn-link {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0;
    margin-top: 6px;
    align-self: flex-start;
    font-size: 13px;
    color: #999999 !important;
    cursor: pointer;
}

/* Font Awesome kalp ikonlarını hizala */
.cicekchi-pcw-heart-icon i,
.cicekchi-pcw-header-heart i {
    font-size: 1em;
    line-height: 1;
}

/* Var olan kalp ve sayaç varsayılan renkleri; Elementor stil ayarları bunların üzerine yazabilir */
.cicekchi-pcw-heart-icon,
.cicekchi-pcw-header-heart {
    color: var(--cicekchi-pcw-primary);
}

.cicekchi-pcw-header-count {
    background-color: var(--cicekchi-pcw-primary);
    color: #ffffff;
}

/* İncele butonunu mobilde gizlemek için */
@media (max-width: 767px) {
    .cicekchi-pcw-swiper[data-hide-details-mobile="yes"] .cicekchi-pcw-btn-secondary {
        display: none;
    }
}