/* Custom Animations for 6valley Clone */

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

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #999; 
}

/* Swiper Pagination Active Color */
.swiper-pagination-bullet-active {
    background-color: #1455AC !important;
}

/* Product Card Hover Effect */
.product-card {
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #1455AC; /* Primary Color Border on Hover */
}

/* Category Sidebar Item Hover */
.category-item {
    transition: all 0.2s ease;
}
.category-item:hover {
    background-color: #f8fafc;
    padding-left: 1.25rem; /* Slight shift right */
}

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* Pulse Ring Animation for Flash Deal */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 112, 32, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 112, 32, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 112, 32, 0); }
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Shimmer Loading Effect */
.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%; 
    animation-duration: 1s;
    animation-fill-mode: forwards; 
    animation-iteration-count: infinite;
    animation-name: placeholderShimmer;
    animation-timing-function: linear;
}

@keyframes placeholderShimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* Continuous Brand Slider */
.brand-slider .swiper-wrapper {
    transition-timing-function: linear;
}

/* Scroll Reveal Class */
.reveal {
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1455AC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
