﻿/* Bounce Animation for Cart Badge */
@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Recent Purchase Notification */
.recent-purchase {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 80;
    border-right: 4px solid var(--success);
}

    .recent-purchase.show {
        transform: translateY(0);
    }

    .recent-purchase .notif-icon {
        width: 40px;
        height: 40px;
        background-color: var(--success-light);
        color: var(--success);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .recent-purchase .notif-content {
        flex: 1;
        font-size: 13px;
        line-height: 1.5;
    }

        .recent-purchase .notif-content p {
            color: var(--text-muted);
            font-size: 12px;
            margin: 2px 0;
        }

        .recent-purchase .notif-content small {
            color: var(--text-light);
            font-size: 11px;
        }

    .recent-purchase .notif-close {
        position: absolute;
        top: 4px;
        left: 4px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 18px;
        background: transparent;
    }

        .recent-purchase .notif-close:hover {
            background: var(--card-bg);
        }

@media (max-width: 768px) {
    .recent-purchase {
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Hero decorative floating cards */
.hero-floating {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.hero-floating-1 {
    top: 20%;
    right: -20%;
    animation-delay: 0s;
}

.hero-floating-2 {
    bottom: 30%;
    left: -20%;
    animation-delay: 1s;
}

.hero-floating i {
    color: var(--success);
    font-size: 20px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 991px) {
    .hero-floating {
        display: none;
    }
}

.home-empty-state {
    padding: 56px 24px;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
    color: var(--text-muted);
}

    .home-empty-state i {
        display: block;
        margin-bottom: 16px;
        font-size: 40px;
        color: #94a3b8;
    }

    .home-empty-state p {
        margin: 0;
        font-size: 15px;
    }

.product-image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #93c5fd;
    font-size: 42px;
}

.promo-banner-real {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #0f766e 100%);
}

.promo-banner-real .promo-description {
    max-width: 640px;
}

.promo-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.promo-metric {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

    .promo-metric strong {
        display: block;
        margin-bottom: 6px;
        font-size: 24px;
        font-weight: 800;
        color: white;
    }

    .promo-metric span {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.82);
    }

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.insight-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insight-cover {
    display: block;
    height: 220px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

    .insight-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.insight-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 42px;
}

.insight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

    .insight-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.insight-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.8;
}

    .insight-title a {
        color: var(--text);
    }

.insight-summary {
    margin: 0;
    color: var(--text-muted);
    line-height: 2;
    font-size: 14px;
}

.insight-author {
    margin-top: auto;
}

@media (max-width: 991px) {
    .promo-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .promo-metrics {
        grid-template-columns: 1fr;
    }

    .promo-actions {
        flex-direction: column;
    }

    .promo-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .insight-cover {
        height: 190px;
    }
}
