/* PokéShop AU - Premium Styles */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Cart sidebar animation */
#cart-sidebar.open {
    transform: translateX(0);
}

/* Product card hover */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 90vw;
}
.toast::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #22c55e;
    border-radius: 50%;
    font-size: 11px;
    flex-shrink: 0;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Quantity input in cart */
.qty-input {
    width: 3rem;
    text-align: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: #f9fafb;
    transition: border-color 0.2s;
}
.qty-input:focus {
    outline: none;
    border-color: #FFCB05;
    background: white;
}

/* Cart quantity buttons */
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 0.5rem;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}
.qty-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pulse animation for stock indicator */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Blog post card hover */
.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}
.blog-card-image {
    transition: transform 0.5s ease;
}

/* Skeleton loading (future use) */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Scroll to top smooth */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: #0f172a;
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 40;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top:hover {
    background: #1e293b;
}

/* Mega menu */
.mega-menu {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}
.group:hover .mega-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mobile nav */
#mobile-nav.open {
    transform: translateX(0);
}

/* Hide scrollbar for nav */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Selection color */
::selection {
    background: #FFCB05;
    color: #0f172a;
}
