/* =====================================================
   Kiboo Store - Custom Styles
   Premium gaming store aesthetic
   ===================================================== */

/* ---- Base ---- */
[x-cloak] { display: none !important; }

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #2B2B2B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3B3B3B;
}

/* ---- Selection ---- */
::selection {
    background: #F5C542;
    color: #111111;
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Skeleton Loading ---- */
.skeleton {
    background: linear-gradient(90deg, #1A1A1A 25%, #2B2B2B 50%, #1A1A1A 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Card Hover ---- */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: #F5C542;
    box-shadow: 0 10px 40px rgba(245, 197, 66, 0.1);
}

/* ---- Image Lazy Load ---- */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img.lazy.loaded {
    opacity: 1;
}

/* ---- Slider ---- */
.slider-container {
    overflow: hidden;
    position: relative;
}
.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slider-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

/* ---- Toast ---- */
.toast {
    animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ---- Badge Pulse ---- */
.badge-hot {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ---- Glow Effect ---- */
.glow-accent {
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.15);
}

/* ---- Loading Button ---- */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Sold Overlay ---- */
.sold-overlay {
    position: relative;
}
.sold-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.5);
    border-radius: inherit;
    pointer-events: none;
}

/* ---- Breadcrumb ---- */
.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #4B4B4B;
}

/* ---- Hero Gradient ---- */
.hero-glow {
    background: radial-gradient(ellipse at top, rgba(245, 197, 66, 0.08) 0%, transparent 60%);
}

/* ---- Smooth Transitions ---- */
.transition-all-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Mobile Optimizations ---- */
@media (max-width: 640px) {
    .product-card:hover {
        transform: none;
    }
}

/* ---- Print ---- */
@media print {
    header, footer, .no-print { display: none !important; }
}