/* Enhanced Hover Effects for Viking Store */

/* ===========================================
   BUTTON HOVER ENHANCEMENTS
   =========================================== */

/* Primary Button Hover Effects */
.btn, button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn:hover, button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: var(--main-color) !important;
    color: white !important;
}

.btn:active, button:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Button Ripple Effect */
.btn::before, button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn:hover::before, button:hover::before {
    width: 300px;
    height: 300px;
}

.btn > *, button > * {
    position: relative;
    z-index: 1;
}

/* ===========================================
   PRODUCT CARD HOVER ENHANCEMENTS
   =========================================== */

.single-product {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.single-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color) !important;
}

.single-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.single-product:hover::before {
    left: 100%;
}

.single-product .product-img {
    transition: all 0.3s ease;
    overflow: hidden;
}

.single-product:hover .product-img img {
    transform: scale(1.1);
    transition: transform 0.4s ease;
}

.single-product .product-content {
    position: relative;
    z-index: 2;
}

/* Product Action Buttons Enhancement */
.single-product .product-action a,
.single-product .product-action-2 a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.single-product .product-action a:hover,
.single-product .product-action-2 a:hover {
    background-color: transparent;
}

/* ===========================================
   NAVIGATION HOVER ENHANCEMENTS
   =========================================== */

.header .nav li a,
.header.shop .nav li a {
    position: relative;
    transition: all 0.3s ease;
}

.header .nav li a::after,
.header.shop .nav li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header .nav li a:hover::after,
.header.shop .nav li a:hover::after {
    width: 100%;
}

.header .nav li a:hover,
.header.shop .nav li a:hover {
    color: var(--main-color) !important;
    background: rgba(var(--main-color), 0.1) !important;
}

/* Dropdown Menu Enhancements */
.header .nav li .dropdown,
.header.shop .nav li .dropdown {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
}

.header .nav li:hover .dropdown,
.header.shop .nav li:hover .dropdown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.header .nav li .dropdown li a,
.header.shop .nav li .dropdown li a {
    transition: all 0.2s ease;
    position: relative;
}

.header .nav li .dropdown li a:hover,
.header.shop .nav li .dropdown li a:hover {
    background: var(--main-color) !important;
    color: white !important;
    padding-left: 20px;
}

/* ===========================================
   FORM ELEMENT HOVER ENHANCEMENTS
   =========================================== */

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(var(--main-color), 0.1);
    transform: translateY(-1px);
}

.form-control:hover,
.form-select:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
textarea:hover {
    border-color: var(--main-color);
}

/* ===========================================
   ICON HOVER ENHANCEMENTS
   =========================================== */

.fa, .fas, .far, .fab {
    transition: all 0.3s ease;
}

.fa:hover, .fas:hover, .far:hover, .fab:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--main-color) !important;
}

/* Social Media Icons Special Effects */
.fa-facebook:hover {
    color: #1877F2 !important;
    text-shadow: 0 0 10px rgba(24, 119, 242, 0.5);
}

.fa-instagram:hover {
    color: #E1306C !important;
    text-shadow: 0 0 10px rgba(225, 48, 108, 0.5);
}

.fa-whatsapp:hover {
    color: #25D366 !important;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.fa-telegram:hover {
    color: #0088CC !important;
    text-shadow: 0 0 10px rgba(0, 136, 204, 0.5);
}

/* ===========================================
   CARD AND CONTAINER HOVER EFFECTS
   =========================================== */

.bundle-card,
.color-toggle,
.size-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bundle-card:hover,
.color-toggle:hover,
.size-toggle:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--main-color) !important;
}

.bundle-card::before,
.color-toggle::before,
.size-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.bundle-card:hover::before,
.color-toggle:hover::before,
.size-toggle:hover::before {
    left: 100%;
}

/* ===========================================
   LINK HOVER ENHANCEMENTS
   =========================================== */

a {
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--main-color) !important;
    text-decoration: none;
}

/* Underline Animation for Links */
a:not(.btn):not(button):not(.no-underline)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--main-color);
    transition: width 0.3s ease;
}

a:not(.btn):not(button):not(.no-underline):hover::after {
    width: 100%;
}

/* ===========================================
   SPECIAL INTERACTIVE ELEMENTS
   =========================================== */

/* Shopping Cart Icon Hover */
.header .right-bar .sinlge-bar .single-icon:hover {
    transform: scale(1.1) rotate(5deg);
    color: var(--main-color) !important;
}

/* Search Button Hover */
.header .search-form button:hover,
.header.shop .search-bar .btnn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: var(--main-color) !important;
    color: white !important;
}

/* Pagination Hover */
.pagination .pagination-list li a {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination .pagination-list li a:hover {
    background: var(--main-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   LOADING AND ANIMATION EFFECTS
   =========================================== */

/* Pulse Animation for Active Elements */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--main-color), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--main-color), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--main-color), 0);
    }
}

.how-active1 {
    background-color: var(--main-color) !important;
    color: white !important;
    animation: pulse 2s infinite;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 768px) {
    .btn:hover, button:hover {
        transform: translateY(-1px) scale(1.01);
    }
    
    .single-product:hover {
        transform: translateY(-4px);
    }
    
    .bundle-card:hover,
    .color-toggle:hover,
    .size-toggle:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .btn:hover, button:hover {
        transform: none;
    }
    
    .single-product:hover {
        transform: none;
    }
}

/* ===========================================
   ACCESSIBILITY IMPROVEMENTS
   =========================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover, button:hover {
        transform: none;
    }
    
    .single-product:hover {
        transform: none;
    }
}

/* Focus indicators for keyboard navigation */
.btn:focus,
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* ===========================================
   PERFORMANCE OPTIMIZATIONS
   =========================================== */

/* Use transform and opacity for better performance */
.single-product,
.btn,
.bundle-card,
.color-toggle,
.size-toggle {
    will-change: transform;
}

/* Hardware acceleration */
.single-product:hover,
.btn:hover,
.bundle-card:hover,
.color-toggle:hover,
.size-toggle:hover {
    transform: translateZ(0);
}
