/* Emotional UI/UX Pack for Ghanazan */

/* 1. Kente-inspired Gradients & Accents */
:root {
    --ghana-gradient: linear-gradient(90deg, #CE1126 0%, #FCD116 50%, #006B3F 100%);
    --kente-pattern: repeating-linear-gradient(45deg,
            hsla(150, 60%, 25%, 0.1),
            hsla(150, 60%, 25%, 0.1) 10px,
            hsla(45, 95%, 55%, 0.1) 10px,
            hsla(45, 95%, 55%, 0.1) 20px);
}

.kente-border-top {
    /* position: static; Ensures it participates in flow for sticky/fixed parent context */
}

.kente-border-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ghana-gradient);
    z-index: 10;
}

.bg-texture {
    background-image: var(--kente-pattern);
}

/* 2. "Akwaaba" Loading Animation */
.akwaaba-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.akwaaba-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    animation: breathing 2s infinite ease-in-out;
}

.loader-text {
    margin-top: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 2px;
}

@keyframes breathing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* 3. "Heartbeat" Micro-interaction */
.btn-heartbeat:active {
    animation: heartbeat 0.3s ease-in-out;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* 4. Playful "Add to Cart" */
.btn-add-cart {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

.btn-add-cart.success {
    background-color: var(--primary-green) !important;
    color: white;
}

/* 5. Friendly "Chale" Chat Bubble */
.chat-greeting-bubble {
    position: absolute;
    top: -50px;
    right: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0;
    transform: translateY(10px);
    animation: popIn 0.5s ease-out 2s forwards;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. Card Hover "Lift" */
.emotional-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.emotional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.12);
}