/* =========================
   CONTACTPHONE PRODUCT CARD
========================= */

#homeProducts .col,
#homeProducts .product-card {
    display: flex;
}

#homeProducts .product-card {
    padding-left: 7px;
    padding-right: 7px;
}

.cp-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    min-height: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cp-product-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.cp-card-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.cp-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.cp-badge-sale {
    background: #d61f69;
}

.cp-badge-new {
    background: #198754;
}

.cp-wishlist {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cp-wishlist:hover {
    transform: scale(1.05);
}

.cp-wishlist i {
    color: #222;
    font-size: 0.95rem;
    transition: color 0.18s ease;
}

.wishlist-icon.active.cp-wishlist i,
.cp-wishlist.active i {
    color: #d61f69;
}

.cp-product-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 225px;
    padding: 38px 10px 10px;
    background: #fff;
    text-decoration: none;
}

.cp-product-img {
    display: block;
    max-width: 100%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.cp-product-card:hover .cp-product-img {
    transform: scale(1.03);
}

.cp-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 12px 12px;
}

.cp-product-sku {
    font-size: 11px;
    color: #8b95a7;
    line-height: 1.3;
    margin-bottom: 6px;
    min-height: 14px;
}

.cp-product-title {
    min-height: 50px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cp-product-title a {
    color: #1f2937;
}

.cp-product-title a:hover {
    color: #0d6efd;
}

.cp-product-rating {
    margin-bottom: 10px;
}

.cp-product-rating .star-rating {
    display: flex;
    gap: 2px;
    font-size: 12px;
}

.cp-product-rating .fa-star {
    color: #d1d5db;
}

.cp-product-rating .fa-star.selected {
    color: #f5b301;
}

.cp-price-wrap {
    margin-top: auto;
    margin-bottom: 10px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cp-old-price,
.cp-price {
    width: 100%;
    text-align: right;
}

.cp-old-price {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.2;
    min-height: 15px;
    margin-bottom: 2px;
}

.cp-old-price-value {
    text-decoration: line-through;
    text-decoration-color: #9ca3af;
}

.cp-price {
    font-size: 1rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1.2;
}

.cp-price-value {
    font-weight: 500;
}

.cp-product-actions {
    margin-top: auto;
}

.cp-product-btn {
    width: 100%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.18s ease;
}

.cp-product-btn:hover {
    background: #f8f9fa;
    border-color: #bfc6d1;
    color: #111827;
}

.product-card {
    --animate-delay: 0s;
    animation-delay: var(--animate-delay);
}

/* Régi osztályok semlegesítése, ha maradtak */
.fixed-card,
.card.fixed-card {
    width: auto;
    max-width: none;
    min-height: unset;
    height: auto;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.fixed-img {
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-title {
    min-height: unset;
}

.link_to_open {
    cursor: pointer;
}

/* Szállítás badge */
.cp-delivery-icon {
    position: absolute;
    top: 45px;
    left: 10px;
    z-index: 4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.cp-delivery-icon svg {
    display: block;
    width: 32px;
    height: 32px;
}

.cp-delivery-icon svg path {
    stroke: #fff !important;
    fill: none !important;
}

.cp-delivery-icon svg circle {
    fill: #378509 !important;
}

/* Mobil */
@media (max-width: 767.98px) {
    .cp-product-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .cp-product-media {
        height: 180px;
        padding: 34px 10px 10px;
    }

    .cp-product-img {
        max-height: 130px;
    }

    .cp-product-body {
        padding: 0 10px 10px;
    }

    .cp-product-title {
        min-height: 38px;
        font-size: 0.87rem;
    }

    .cp-price {
        font-size: 0.95rem;
    }

    .cp-old-price {
        font-size: 11px;
    }

    .cp-product-btn {
        padding: 7px 8px;
        font-size: 12px;
    }

    .cp-badge {
        font-size: 10px;
        padding: 3px 7px;
    }

    .cp-wishlist {
        width: 28px;
        height: 28px;
    }

    .cp-delivery-icon {
        width: 24px;
        height: 24px;
    }

    .cp-delivery-icon svg {
        width: 24px;
        height: 24px;
    }
}



