@import url('https://fonts.googleapis.com/css2?family=Amazon+Ember:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Amazon Ember', Arial, sans-serif;
    background-color: #f3f3f3;
}

.amazon-orange {
    background-color: #ff9900;
}

.amazon-blue {
    background-color: #232f3e;
}

.amazon-light-blue {
    background-color: #37475a;
}

.hero-gradient {
    background: linear-gradient(to bottom, #37475a, #232f3e);
}

.product-hover {
    transition: all 0.3s ease;
}

.product-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff9900;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 0.6s ease;
}

.search-focus:focus {
    outline: 3px solid #ff9900;
    border-color: #ff9900;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

.bounce-in {
    animation: bounceIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-10px,0); }
    70% { transform: translate3d(0,-5px,0); }
    90% { transform: translate3d(0,-2px,0); }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}
