/*
 * Daily Deals – Clean arrows, no borders, colour animation
 */

/* Section */
.vip-deals-section {
    padding: 10px 0 60px;
    background: #fff;
}

/* Blinking title */
.blink-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #d81b60;
    text-align: center;
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0.3; }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-divider {
    width: 80px;
    height: 4px;
    background: #4caf50;
    margin: 10px auto 20px;
    border-radius: 10px;
}

/* ---------- Stable "View All Deals" button ---------- */
.blink-cta {
    display: inline-block;
    background: #e8f5e9;
    color: #1b3022;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    font-size: 1rem;
    border: 2px solid #c8e6c9;
    transition: all 0.3s ease;
}
.blink-cta:hover {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}

/* ---------- Product Card ---------- */
.vip-deal-card {
    background: #fff;
    margin: 10px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
    position: relative;
}
.vip-deal-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Image area */
.card-visuals {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}
.image-wrapper {
    display: block;
    position: relative;
    padding-bottom: 100%;
}
.image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.4s, transform 0.4s;
}
.img-secondary { opacity: 0; }

/* Image swap on desktop hover */
@media (min-width: 992px) {
    .vip-deal-card:hover .img-primary { opacity: 0; }
    .vip-deal-card:hover .img-secondary { opacity: 1; transform: scale(1.05); }
}

/* Sale badge */
.sale-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #d81b60;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(216,27,96,0.4);
}

/* Wishlist Heart (Crimson #E63946) */
.wishlist-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
}
.wishlist-btn .heart-svg {
    color: #ccc;
    transition: color 0.3s, fill 0.3s, transform 0.3s;
}
.wishlist-btn:hover .heart-svg {
    color: #E63946;
    transform: scale(1.05);
}
.wishlist-btn.active .heart-svg {
    color: #E63946;
    fill: #E63946;
    transform: scale(1.1);
}
.wishlist-btn:active {
    transform: scale(0.95);
}

/* Card details */
.card-details {
    padding: 16px;
    text-align: center;
}

/* Product title – exactly two lines, ellipsis */
.card-details h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 6px;
    height: 2.8em;
    overflow: hidden;
}

.card-details h3 a {
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price display – separate lines for sale price */
.vip-price-tag {
    margin: 8px 0;
    font-size: 1rem;
}
.vip-price-tag del {
    color: #999;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}
.vip-price-tag ins {
    font-weight: 800;
    color: #2e7d32;
    font-size: 1.15rem;
    text-decoration: none;
    display: block;
}

/* Add to Cart button */
.vip-atc-btn {
    display: block;
    background: #111;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
    margin-top: 10px;
}
.vip-atc-btn:hover {
    background: #d81b60;
}

/* =========================== *
 *   NAVIGATION ARROWS        *
 * =========================== */

/* Colour changing animation */
@keyframes arrowColorCycle {
    0%   { color: #000000; }    /* black */
    25%  { color: #4caf50; }    /* green */
    50%  { color: #d81b60; }    /* pink */
    75%  { color: #d4af37; }    /* gold */
    100% { color: #000000; }
}

/* Desktop: arrows visible with margin for container */
@media (min-width: 992px) {
    .vip-deals-slider {
        margin: 0 50px;
    }
}

.vip-deals-slider .slick-prev,
.vip-deals-slider .slick-next {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 40%;
    transform: translateY(-50%);
    line-height: 1;
    /* No borders, no background */
}

.vip-deals-slider .slick-prev {
    left: -50px;
}
.vip-deals-slider .slick-next {
    right: -50px;
}

/* The icon inside */
.vip-deals-slider .slick-prev i,
.vip-deals-slider .slick-next i {
    font-size: 1.8rem;
    color: #000;
    /* Apply colour animation */
    animation: arrowColorCycle 4s linear infinite;
}

/* Hover – pause animation, scale up */
.vip-deals-slider .slick-prev:hover i,
.vip-deals-slider .slick-next:hover i {
    animation: none;
    transform: scale(1.2);
    color: #4caf50;          /* green on hover */
}

/* Dots */
.vip-deals-slider .slick-dots {
    bottom: -40px;
}
.vip-deals-slider .slick-dots li button:before {
    font-size: 14px;
    color: #ccc;
}
.vip-deals-slider .slick-dots li.slick-active button:before {
    color: #4caf50;
    opacity: 1;
}

/* ---------- Tablet & Mobile ---------- */
@media (max-width: 991px) {
    .vip-deals-section { padding: 10px 0 40px; }
    .blink-title { font-size: 2rem; }
    .image-wrapper { padding-bottom: 75%; }
    .vip-deal-card { margin: 6px; border-radius: 10px; }
    .img-secondary { display: none; }
    .quick-action-bar { display: none; }
    .sale-badge { font-size: 0.6rem; padding: 3px 10px; }
    .wishlist-btn { width: 32px; height: 32px; }
    .vip-atc-btn { padding: 10px; font-size: 0.85rem; }

    /* Hide arrows */
    .vip-deals-slider {
        margin: 0;
    }
    .vip-deals-slider .slick-prev,
    .vip-deals-slider .slick-next {
        display: none !important;
    }

    /* Adjust title for smaller screens */
    .card-details h3 {
        font-size: 0.9rem;
        line-height: 1.4;
        height: 2.8em;
    }
}

/* Mobile portrait – 2 cards guaranteed */
@media (max-width: 767px) {
    .vip-deals-section { padding: 10px 0 30px; }
    .blink-title { font-size: 1.8rem; }
    .image-wrapper { padding-bottom: 100%; }
    .vip-deal-card { margin: 5px; }
    .card-details { padding: 10px; }
    .card-details h3 { font-size: 0.85rem; }
    .vip-price-tag { font-size: 0.85rem; }
    .vip-price-tag del { font-size: 0.8rem; margin-bottom: 2px; }
    .vip-price-tag ins { font-size: 1rem; }
    .vip-atc-btn { font-size: 0.8rem; padding: 8px; }
    .wishlist-btn { width: 30px; height: 30px; }
    .sale-badge { font-size: 0.55rem; padding: 2px 8px; top: 8px; left: 8px; }
}