/* ==========================================
   STYLE ENHANCEMENTS - Additional Improvements
   ========================================== */

/* Enhanced Link Hover Effects */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    transform: translateX(2px);
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Better Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Better Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Section Headers */
.section-header {
    position: relative;
    overflow: hidden;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    transition: width 0.4s ease;
}

.section-header:hover .section-title::after {
    width: 100%;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced Footer Links */
.footer-links a {
    position: relative;
    transition: all 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Better Modal/Overlay Animations */
.modal,
.overlay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced Price Display */
.product-price,
.price-current {
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover .product-price,
.product-card:hover .price-current {
    transform: scale(1.1);
    color: var(--primary-hover);
}

/* Better Rating Stars */
.product-rating i,
.rating-stars i {
    transition: all 0.2s ease;
}

.product-rating:hover i,
.rating-stars:hover i {
    transform: scale(1.2) rotate(15deg);
}

/* Smooth Cart Count Badge */
.cart-count {
    animation: pulse 1s ease-in-out;
    transition: all 0.3s ease;
}

.cart-count:hover {
    transform: scale(1.2);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Enhanced Navigation Hover */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Better Table Row Hover */
table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: var(--primary-light);
    transform: scale(1.01);
    box-shadow: var(--shadow-sm);
}

/* Enhanced Alert Animations */
.alert {
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Better Checkbox/Radio Styling */
input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    transform: scale(1.1);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    animation: checkBounce 0.3s ease;
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Smooth Dropdown Animations */
.dropdown-menu {
    animation: dropDown 0.3s ease;
}

@keyframes dropDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: var(--shadow-xl);
}

/* Better Pagination */
.pagination-btn,
.pagination-number {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover,
.pagination-number:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Enhanced Newsletter Input */
.newsletter-input-group {
    transition: all 0.3s ease;
}

.newsletter-input-group:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Smooth Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Better Disabled State */
button:disabled,
input:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
}

/* Enhanced Back to Top Button */
.back-to-top {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--shadow-primary), var(--shadow-lg);
}

/* Smooth Page Transitions */
body {
    animation: pageLoad 0.5s ease;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced Breadcrumb */
.breadcrumb-list a {
    position: relative;
    transition: all 0.3s ease;
}

.breadcrumb-list a:hover {
    transform: translateX(3px);
}

.breadcrumb-list a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.breadcrumb-list a:hover::before {
    width: 100%;
}

/* Better Floating Cards Animation */
.floating-card {
    animation: floatSmooth 4s ease-in-out infinite;
}

@keyframes floatSmooth {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(10px);
    }
    75% {
        transform: translateY(-10px) translateX(5px);
    }
}

/* Enhanced Hero Badge Pulse */
.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 185, 107, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(0, 185, 107, 0.4);
    }
}

/* Responsive Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .no-print,
    .header,
    .footer,
    .btn,
    .product-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
