/* Wine Card Styling for Homepage */
.wine-card {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: row !important;
    margin: 15px 0 !important;
    /* Removed horizontal margin (15+15=30px) */
    overflow: hidden !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
    min-height: 280px !important;
    text-align: left !important;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid #f0f0f0 !important;
    position: relative !important;
}

.wine-card:hover {
    transform: none !important;
}

.wine-card:hover .card-image img {
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.wine-card:hover::before {
    -webkit-animation: circle .75s;
    animation: circle .75s;
}

@keyframes circle {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

@-webkit-keyframes circle {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.wine-card .card-image {
    display: block !important;
    position: relative !important;
    flex: 0 0 100px !important;
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    height: 100% !important;
    min-height: 280px !important;
    overflow: hidden !important;
    background: #ffffff !important;

    padding: 0;
    margin: 10px !important;
    z-index: 5 !important;
}

.wine-card::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    display: block;
    content: '';
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, .3);
    border-radius: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.wine-card .card-image img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    height: 100% !important;
    width: auto !important;
    min-width: 200px !important;
    /* Force overflow */
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
    transition: all 0.5s ease !important;
}

.wine-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    /* Re-added padding for content only */
}

.wine-card h5 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}

.wine-card .vintage {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.wine-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wine-card .view-details {
    align-self: flex-start;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wine-card .view-details .text {
    text-decoration: underline;
}

.wine-card .view-details i {
    color: #902624;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.wine-card .view-details:hover {
    color: #902624;
}

/* Removed forced background to avoid conflict with theme */

/* ENSURE CLINETS CAROUSEL NAV IS VISIBLE AND MATCHES BLOG */
.clients-carousel.belso {
    border-bottom: none !important;
}

.clients-carousel.owl-carousel .owl-stage-outer {
    z-index: 1 !important;
    position: relative;
}

.clients-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none !important;
    z-index: 99999 !important;
}

/* Átjárható keret a gomboknak */
.clients-carousel.owl-carousel .owl-nav .owl-prev,
.clients-carousel.owl-carousel .owl-nav .owl-next {
    position: absolute !important;
    top: -30px !important;
    width: 60px !important;
    height: 60px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: #000 !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    opacity: 1 !important;
}

.clients-carousel.owl-carousel .owl-nav .owl-prev:hover,
.clients-carousel.owl-carousel .owl-nav .owl-next:hover {
    background: #902624 !important;
    color: #fff !important;
    box-shadow: none !important;
    border: 1px solid #902624 !important;
}

.clients-carousel.owl-carousel .owl-nav .owl-prev {
    left: -85px !important;
}

.clients-carousel.owl-carousel .owl-nav .owl-next {
    right: -85px !important;
}

@media (max-width: 1400px) {
    .clients-carousel.owl-carousel .owl-nav .owl-prev {
        left: 0px !important;
    }

    .clients-carousel.owl-carousel .owl-nav .owl-next {
        right: 0px !important;
    }
}

@media (max-width: 768px) {
    .wine-card {
        flex-direction: column !important;
        text-align: center !important;
        min-height: auto !important;
    }

    .wine-card .card-image {
        flex: 0 0 280px !important;
        width: calc(100% - 10px) !important;
        max-width: calc(100% - 10px) !important;
        min-width: 0 !important;
        height: 280px !important;
        min-height: 280px !important;
        margin: 5px !important;
        border-radius: 8px !important;
        background: #fdfdfd !important;

        position: relative !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    /* Inner border that is 'beljebb' */
    .wine-card .card-image::after {
        content: '';
        position: absolute;
        top: 15px;
        /* Decreased from 20px to 15px as requested */
        left: 15px;
        right: 15px;
        bottom: 15px;
        border: 1px solid #ccc !important;
        pointer-events: none;
        z-index: 10;
        border-radius: 4px;
    }

    .wine-card .card-image img {
        transform: translate(-50%, -50%) rotate(45deg) !important;
        height: auto !important;
        width: 260% !important;
        max-height: none !important;
        min-width: 0 !important;
        object-fit: contain !important;
        z-index: 5 !important;
    }

    .wine-card:hover .card-image img {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.05) !important;
    }

    .wine-card .view-details {
        align-self: center !important;
    }

    .wine-card h5 {
        font-size: 1.2rem;
    }
}