/* R-Shop Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Back to top button animation */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-2px);
}

/* Navbar custom styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Logo images */
.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-img-mobile {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-img,
.navbar-brand:hover .logo-img-mobile {
    transform: scale(1.05);
}

/* Footer link hover effects */
footer a:hover {
    text-decoration: underline !important;
    transition: all 0.3s ease;
}

/* Social links hover effects */
.social-links a {
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Swiper custom styles */
.swiper {
    padding: 0px 0;
}

.swiper-slide {
    height: auto;
}

/* Loading spinner styles */
#loading-spinner {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* Toast container custom positioning */
#toast-container {
    z-index: 9999;
}

/* Navbar z-index hierarchy */
.modern-navbar {
    position: relative;
    z-index: 1000;
}

.modern-navbar .main-header {
    position: relative;
    z-index: 1001;
}

.modern-navbar .mini-cart-dropdown {
    z-index: 10001 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .social-links a {
        font-size: 1rem;
        margin-right: 0.5rem !important;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

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

/* Button custom styles */
.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Utility classes */
.text-primary-hover:hover {
    color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Custom Bootstrap Grid Classes */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 calc(100% / 5);
        max-width: calc(100% / 5);
    }
}