.flash {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-weight: 500;
}

.flash-success {
    background: #e6fffa;
    color: #065f46;
    border: 1px solid #34d399;
}

.flash-error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #f87171;
}

.flash-warning {
    background: #fef3c7;
    color: #78350f;
    border: 1px solid #facc15;
}

.flash-info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #38bdf8;
}

.shop-category-icon-svg {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.shop-category-icon-svg svg {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem;
    min-height: 1rem;
    display: block;
    color: inherit;
    flex-shrink: 0;
}

/* Global WhatsApp floating action button */
.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(10, 48, 28, 0.34);
    text-decoration: none;
    transform: translate3d(0, 26px, 0) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 320ms ease, opacity 320ms ease, box-shadow 220ms ease;
}

.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, 0.38);
    animation: whatsappPulse 2.4s ease-out infinite;
}

.whatsapp-fab.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.whatsapp-fab:hover {
    transform: translate3d(0, 0, 0) scale(1.06);
    box-shadow: 0 16px 34px rgba(10, 48, 28, 0.4);
}

.whatsapp-fab__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
}

.whatsapp-fab__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.whatsapp-fab__tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #ffffff;
    color: #0f2d4a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(10, 18, 28, 0.16);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.whatsapp-fab:hover .whatsapp-fab__tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes whatsappPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Cart add toast */
.cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: min(92vw, 520px);
    background: #0F2D4A;
    color: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: 0 14px 36px rgba(5, 20, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate3d(110%, 18px, 0);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms ease, opacity 260ms ease;
}

.cart-toast.is-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

.cart-toast__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
}

.cart-toast__content {
    min-width: 0;
    flex: 1;
}

.cart-toast__title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.1;
    margin-bottom: 2px;
}

.cart-toast__product {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-toast__view {
    background: #facc15;
    color: #0F2D4A;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 12px;
    transition: background-color 150ms ease;
    flex-shrink: 0;
}

.cart-toast__view:hover {
    background: #fde047;
}

.cart-toast__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    margin-left: 2px;
    padding: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cart-toast__close:hover {
    color: #ffffff;
}

@media (max-width: 640px) {
    .cart-toast {
        right: 12px;
        left: 12px;
        bottom: 88px;
        min-width: 0;
        border-radius: 18px;
        padding: 12px;
    }
}

body.has-whatsapp-fab .cart-toast {
    bottom: 96px;
}

@media (min-width: 768px) {
    .whatsapp-fab {
        width: 60px;
        height: 60px;
        right: 28px;
        bottom: 28px;
    }

    .whatsapp-fab__icon {
        width: 30px;
        height: 30px;
    }

    body.has-whatsapp-fab .cart-toast {
        right: 28px;
        bottom: 108px;
    }
}
