/* ============================================
   MODERN UI/UX ENHANCEMENTS
   TSAAS.MN - Office Supplies E-commerce
   ============================================ */

/* ============================================
   1. GLOBAL IMPROVEMENTS
   ============================================ */

:root {
    /* Vibrant Colorful Palette */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --purple-color: #8b5cf6;
    --pink-color: #ec4899;
    --orange-color: #f97316;
    --teal-color: #14b8a6;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-rainbow: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    --dark-color: #1e293b;
    --light-bg: #f1f5f9;
    --border-color: #e2e8f0;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;

    /* Shadows with Color */
    --shadow-sm: 0 1px 2px 0 rgba(99, 102, 241, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
    --shadow-colored: 0 10px 30px rgba(99, 102, 241, 0.3);

    /* Smooth Transitions */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.2s ease-out;
    --transition-slow: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Border Radius */
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Animated Background Particles Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -20px) scale(1.1);
    }
}

/* ============================================
   2. HEADER & NAVIGATION ENHANCEMENTS
   ============================================ */

.header_wrap {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98) !important;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    background-image: var(--gradient-primary) !important;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    background-clip: padding-box;
    border-image: var(--gradient-primary) 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header_wrap.fixed-top {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-colored);
}

.navbar {
    padding: 1rem 0;
    position: relative;
    overflow: visible !important;
}

.navbar-nav {
    position: relative;
    overflow: visible !important;
}

.navbar-brand img {
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Search Bar Enhancement - Modern Design */
.big_search_header form {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.big_search_header .position-relative {
    position: relative !important;
}

.search_field_big input[type="text"],
#search_input,
#search_input_mobile {
    border: 2px solid #e5e7eb !important;
    border-radius: 25px !important;
    padding: 0.5rem 1rem 0.5rem 1rem !important;
    padding-right: 45px !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    max-height: 40px !important;
}

.search_field_big input[type="text"]:focus,
#search_input:focus,
#search_input_mobile:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.big_search_header .search_icon,
.navBarSearch .search_icon {
    position: absolute !important;
    right: 5px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
    font-size: 16px !important;
    padding: 0 !important;
}

.big_search_header .search_icon:hover,
.navBarSearch .search_icon:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

.big_search_header .search_icon i,
.navBarSearch .search_icon i {
    font-size: 16px !important;
    color: white !important;
    display: block !important;
    line-height: 1 !important;
}

.big_search_header .search_icon,
.navBarSearch .search_icon {
    z-index: 10 !important;
}

.big_search_header .search_icon i::before,
.navBarSearch .search_icon i::before {
    content: "\e610" !important; /* ti-search icon code */
    font-family: "themify" !important;
    display: block !important;
}

.search_icon {
    transition: var(--transition);
    color: var(--text-secondary) !important;
}

.search_icon:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Cart & User Icons */
.cart_dropdown .nav-link {
    position: relative;
    padding: 0.5rem !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart_dropdown .nav-link:hover {
    background-color: rgba(50, 135, 227, 0.1);
    transform: translateY(-2px);
}

.cart_count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Dropdown Menu Enhancement - Improved UX - Clickable */
.dropdown-menu {
    border: 2px solid transparent;
    background: white;
    box-shadow: var(--shadow-colored);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-top: 0.5rem;
    min-width: 250px;
    border-image: var(--gradient-primary) 1;
    position: absolute;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: none;
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    animation: slideDown 0.3s ease-out;
}

.dropdown:hover .dropdown-menu,
.dropdown-mega-menu:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mega Menu Specific - Fixed Positioning */
.dropdown-mega-menu {
    position: static !important;
}

.dropdown-mega-menu .dropdown-menu {
    min-width: 900px;
    max-width: 1200px;
    width: auto;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-10px) !important;
    padding: 2rem;
    margin-left: 0 !important;
    margin-top: 0.5rem;
    position: absolute !important;
}

.dropdown-mega-menu:hover .dropdown-menu,
.dropdown-mega-menu .dropdown-menu.show {
    transform: translateX(-50%) translateY(0) !important;
    left: 50% !important;
    right: auto !important;
}

/* Ensure container allows overflow */
.header_wrap .container,
.navbar .container {
    position: relative;
    overflow: visible !important;
}

/* Ensure mega menu columns are properly spaced */
.dropdown-mega-menu .mega-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    align-items: flex-start;
}

.dropdown-mega-menu .mega-menu-col {
    flex: 0 0 auto;
    min-width: 220px;
    max-width: 280px;
    width: auto;
}

/* Override Bootstrap column classes in mega menu */
.dropdown-mega-menu .mega-menu-col.col-lg-3 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 280px !important;
    min-width: 220px !important;
}

.dropdown-mega-menu .mega-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-mega-menu .mega-menu-col {
    flex: 1;
    min-width: 200px;
    list-style: none;
}

.dropdown-mega-menu .mega-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-header {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    white-space: nowrap;
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gradient-primary) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 2s ease infinite;
    color: white !important;
    transform: translateX(8px);
    padding-left: 1.25rem;
    box-shadow: var(--shadow-md);
    pointer-events: auto !important;
}

.dropdown-item:hover i {
    color: white !important;
    transform: translateX(3px);
}

.dropdown-item:hover span {
    color: white !important;
}

/* Ensure dropdown items are always clickable */
.dropdown-item,
.dropdown-item * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Prevent dropdown from closing too fast */
.dropdown,
.dropdown-mega-menu {
    position: relative;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.dropdown:hover .dropdown-toggle::after,
.dropdown-mega-menu:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Additional improvements for better UX */
.dropdown-mega-menu .dropdown-menu {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-mega-menu .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-mega-menu .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-mega-menu .dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

.dropdown-mega-menu .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Make dropdown items more clickable */
.dropdown-item {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    min-height: 48px; /* Better touch target */
    display: flex !important;
    align-items: center;
    pointer-events: auto !important;
    position: relative;
    z-index: 10000;
}

/* Ensure links are clickable */
.dropdown-item a,
.dropdown-item.nav-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
}

/* Prevent text selection during hover */
.dropdown-item:active {
    transform: translateX(5px) scale(0.98);
    background: var(--gradient-primary) !important;
    color: white !important;
}

/* Make sure dropdown menu itself is clickable */
.dropdown-menu.show {
    pointer-events: auto !important;
}

.dropdown-menu.show * {
    pointer-events: auto !important;
}

/* Mobile improvements */
@media (max-width: 991px) {
    .dropdown-mega-menu .dropdown-menu {
        min-width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(0) !important;
        margin-left: 0 !important;
        padding: 1.5rem;
    }

    .dropdown-mega-menu .mega-menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dropdown-mega-menu .mega-menu-col {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   3. PRODUCT CARD ENHANCEMENTS
   ============================================ */

.product {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: var(--gradient-rainbow);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.product:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-colored);
}

.product:hover::before {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

.product_img {
    position: relative;
    overflow: hidden;
    background: #f9fafb;
    aspect-ratio: 1;
}

.product_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product:hover .product_img img {
    transform: scale(1.1);
}

/* Sale Badge Enhancement */
.sale_percentage {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    animation: bounceIn 0.5s ease-out, pulse 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Product Action Buttons */
.product_action_box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.product:hover .product_action_box {
    opacity: 1;
    transform: translateY(0);
}

.pr_action_btn {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pr_action_btn li a {
    background: white;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.pr_action_btn li a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(2deg);
    box-shadow: var(--shadow-colored);
    animation: buttonPulse 0.6s ease-out;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(3deg);
    }
    100% {
        transform: scale(1.1) rotate(2deg);
    }
}

.pr_action_btn li a i {
    font-size: 1rem;
}

/* Product Info */
.product_info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product_title {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product_title a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product_title a:hover {
    color: var(--primary-color);
}

.product_price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product_price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product_price del {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ============================================
   4. BUTTON ENHANCEMENTS
   ============================================ */

.btn {
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

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

.btn-primary,
.btn-fill-out {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.btn-primary::after,
.btn-fill-out::after {
    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;
}

.btn-primary:hover::after,
.btn-fill-out:hover::after {
    width: 400px;
    height: 400px;
}

.btn-primary:hover,
.btn-fill-out:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-colored);
    color: white;
    animation: buttonBounce 0.6s ease-out;
}

@keyframes buttonBounce {
    0%, 100% {
        transform: translateY(-4px) scale(1.05);
    }
    50% {
        transform: translateY(-8px) scale(1.08);
    }
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ============================================
   5. CAROUSEL & SLIDER ENHANCEMENTS
   ============================================ */

.carousel-control-prev,
.carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    opacity: 0.8;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: scale(1.1);
    background: white !important;
}

.carousel-control-prev i,
.carousel-control-next i {
    color: var(--text-primary) !important;
    font-size: 1.5rem !important;
}

/* Owl Carousel Navigation */
.owl-nav button {
    background: white !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition) !important;
}

.owl-nav button:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1) !important;
    box-shadow: var(--shadow-lg) !important;
}

.owl-nav button:hover i {
    color: white !important;
}

/* ============================================
   6. SECTION HEADINGS
   ============================================ */

.heading_s1 h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.heading_s1 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.heading_s1 hr {
    margin-top: 0.5rem;
    border: none;
    height: 1px;
    background: var(--border-color);
}

/* ============================================
   7. LOADING STATES & ANIMATIONS
   ============================================ */

.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: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   8. MODAL ENHANCEMENTS
   ============================================ */

.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.btn-close {
    opacity: 0.5;
    transition: var(--transition);
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ============================================
   9. FORM ENHANCEMENTS
   ============================================ */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 135, 227, 0.1);
    outline: none;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 135, 227, 0.1);
    outline: none;
}

/* ============================================
   10. FOOTER ENHANCEMENTS - COLORFUL & MODERN
   ============================================ */

.footer_dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: #cbd5e1;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer_dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    z-index: 1;
}

.footer_dark::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.footer_top {
    position: relative;
    z-index: 1;
}

.footer_dark .widget {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.footer_dark .widget:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.footer_dark .widget_title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer_dark .widget_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 2px;
}

.footer_dark .widget_links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_dark .widget_links li {
    margin-bottom: 0.5rem;
}

.footer_dark .widget_links li a {
    color: #cbd5e1;
    transition: var(--transition);
    padding: 0.75rem 1rem;
    display: block;
    border-radius: var(--border-radius-sm);
    position: relative;
    overflow: hidden;
}

.footer_dark .widget_links li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transition: var(--transition);
    z-index: -1;
    opacity: 0.2;
}

.footer_dark .widget_links li a:hover {
    color: white;
    padding-left: 1.5rem;
    transform: translateX(5px);
    background: rgba(99, 102, 241, 0.1);
}

.footer_dark .widget_links li a:hover::before {
    width: 100%;
    opacity: 0.3;
}

.footer_dark .widget_links li a::after {
    content: '→';
    position: absolute;
    left: 0.5rem;
    opacity: 0;
    transition: var(--transition);
    color: var(--primary-color);
}

.footer_dark .widget_links li a:hover::after {
    opacity: 1;
    left: 1rem;
}

/* Footer Logo */
.footer_logo img {
    filter: brightness(1.2);
    transition: var(--transition);
    max-width: 180px;
}

.footer_logo:hover img {
    transform: scale(1.1);
    filter: brightness(1.4) drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

/* Contact Info */
.widget-about-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.widget-about-call {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.widget-about-call:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.widget-about-desc {
    color: #94a3b8;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Social Icons - Enhanced */
.social-icons,
.social_icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.social-icons a,
.social_icons li a {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transition: var(--transition);
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.social-icons a::before,
.social_icons li a::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.4s, height 0.4s;
}

.social-icons a:hover::before,
.social_icons li a:hover::before {
    width: 100%;
    height: 100%;
}

.social-icons a:hover,
.social_icons li a:hover {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-colored);
    animation: gradientShift 1s ease infinite, iconBounce 0.6s ease-out;
    z-index: 1;
}

/* Contact Info in Footer */
.contact_info li p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact_info li {
    position: relative;
    padding-left: 1.5rem;
}

.contact_info li::before {
    content: '📍';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Bottom Footer */
.bottom_footer {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
}

.bottom_footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.copyright::before {
    content: '©';
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-right: 0.25rem;
}

/* Facebook Page Widget */
.fb-page {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.fb-page:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-colored);
}

/* ============================================
   11. RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--border-color);
    }

    .product {
        margin-bottom: 1.5rem;
    }

    .heading_s1 h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .product_img {
        aspect-ratio: 4/3;
    }

    .product_action_box {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.6);
    }

    .pr_action_btn li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .heading_s1 h2 {
        font-size: 1.25rem;
    }

    /* Footer Mobile Improvements */
    .footer_dark {
        padding: 2.5rem 0 1rem;
    }

    .footer_dark .widget {
        margin-bottom: 2rem;
        padding: 1.25rem;
    }

    .footer_dark .widget_title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .widget-about-call {
        font-size: 1.1rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    .social-icons,
    .social_icons {
        justify-content: center;
        margin-top: 1.25rem;
    }

    .social-icons a,
    .social_icons li a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .footer_logo {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer_logo img {
        max-width: 150px;
    }

    .copyright {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

/* ============================================
   12. UTILITY CLASSES
   ============================================ */

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.transition {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ============================================
   13. SCROLL TO TOP BUTTON
   ============================================ */

.scrollup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-colored);
    transition: var(--transition);
    z-index: 999;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scrollup:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    animation: gradientShift 1s ease infinite, float 1s ease-in-out infinite;
}

/* ============================================
   14. NOTIFICATION TOAST
   ============================================ */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification.success {
    border-left: 4px solid var(--success-color);
}

.toast-notification.error {
    border-left: 4px solid var(--danger-color);
}

.toast-notification.info {
    border-left: 4px solid var(--primary-color);
}

/* ============================================
   15. PAGINATION ENHANCEMENTS
   ============================================ */

.pagination .page-link {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   16. SIDEBAR WIDGET ENHANCEMENTS - ULTRA MODERN COLORFUL DESIGN
   ============================================ */

/* Force override with high specificity */
body .sidebar,
html body .sidebar {
    position: sticky !important;
    top: 100px !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    padding-right: 0.5rem !important;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f0f4ff 0%, #e8f0fe 100%);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Widget Cards - Colorful Gradient Backgrounds - HIGH SPECIFICITY */
body .sidebar .widget,
html body .sidebar .widget,
.sidebar .widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.05) !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.sidebar .widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    z-index: 1;
}

.sidebar .widget::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.sidebar .widget:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.sidebar .widget:hover::after {
    opacity: 1;
}

/* Widget Title - Bold and Colorful - HIGH SPECIFICITY */
body .sidebar .widget_title,
html body .sidebar .widget_title,
.sidebar .widget_title,
.sidebar h5.widget_title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    background-size: 200% 200% !important;
    animation: gradientShift 4s ease infinite !important;
    margin: 0 !important;
    padding: 1.5rem 1.5rem 1rem 1.5rem !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    letter-spacing: -0.5px !important;
    text-transform: none !important;
}

.sidebar .widget_title::before {
    display: none !important;
}

.sidebar .widget_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Category List - HIGH SPECIFICITY */
body .sidebar .widget_categories,
html body .sidebar .widget_categories,
.sidebar .widget_categories,
.sidebar ul.widget_categories {
    list-style: none !important;
    padding: 0.5rem 0 1.5rem 0 !important;
    margin: 0 !important;
}

body .sidebar .widget_categories li,
html body .sidebar .widget_categories li,
.sidebar .widget_categories li {
    margin: 0.4rem 1.5rem !important;
    position: relative !important;
    padding-left: 0 !important;
    padding-bottom: 0.4rem !important;
    list-style: none !important;
}

body .sidebar .widget_categories li a,
html body .sidebar .widget_categories li a,
.sidebar .widget_categories li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.85rem 1.25rem !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 255, 0.8) 100%) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: 1px solid rgba(99, 102, 241, 0.08) !important;
    overflow: hidden !important;
}

body .sidebar .widget_categories li a::before,
html body .sidebar .widget_categories li a::before,
.sidebar .widget_categories li a::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 0 !important;
    background: var(--gradient-primary) !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 0 !important;
    font-family: inherit !important;
    height: auto !important;
    line-height: normal !important;
    margin-right: 0 !important;
}

body .sidebar .widget_categories li a::after,
html body .sidebar .widget_categories li a::after,
.sidebar .widget_categories li a::after {
    content: '→' !important;
    position: absolute !important;
    left: 1rem !important;
    opacity: 0 !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    z-index: 1 !important;
    transform: translateX(-10px) !important;
    font-family: inherit !important;
}

body .sidebar .widget_categories li a:hover,
html body .sidebar .widget_categories li a:hover,
.sidebar .widget_categories li a:hover {
    color: white !important;
    transform: translateX(8px) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

body .sidebar .widget_categories li a:hover::before,
html body .sidebar .widget_categories li a:hover::before,
.sidebar .widget_categories li a:hover::before {
    width: 100% !important;
}

body .sidebar .widget_categories li a:hover::after,
html body .sidebar .widget_categories li a:hover::after,
.sidebar .widget_categories li a:hover::after {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

body .sidebar .widget_categories li a:hover .categories_name,
html body .sidebar .widget_categories li a:hover .categories_name,
.sidebar .widget_categories li a:hover .categories_name,
body .sidebar .widget_categories li a:hover .categories_num,
html body .sidebar .widget_categories li a:hover .categories_num,
.sidebar .widget_categories li a:hover .categories_num {
    position: relative !important;
    z-index: 1 !important;
    color: white !important;
}

/* Category Name - HIGH SPECIFICITY */
body .sidebar .categories_name,
html body .sidebar .categories_name,
.sidebar .categories_name,
.sidebar .widget_categories li a .categories_name {
    flex: 1 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    font-weight: 600 !important;
}

/* Category Number Badge - HIGH SPECIFICITY */
body .sidebar .categories_num,
html body .sidebar .categories_num,
.sidebar .categories_num,
.sidebar .widget_categories .categories_num {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 1 !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    min-width: 45px !important;
    text-align: center !important;
    float: none !important;
}

body .sidebar .widget_categories li a:hover .categories_num,
html body .sidebar .widget_categories li a:hover .categories_num,
.sidebar .widget_categories li a:hover .categories_num {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Active Category State - Ultra Prominent - HIGH SPECIFICITY */
body .sidebar .widget_categories li a.active,
html body .sidebar .widget_categories li a.active,
.sidebar .widget_categories li a.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4), 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    transform: translateX(8px) scale(1.02) !important;
    border-color: transparent !important;
    position: relative !important;
}

body .sidebar .widget_categories li a.active::before,
html body .sidebar .widget_categories li a.active::before,
.sidebar .widget_categories li a.active::before {
    width: 100% !important;
    content: '' !important;
}

body .sidebar .widget_categories li a.active::after,
html body .sidebar .widget_categories li a.active::after,
.sidebar .widget_categories li a.active::after {
    opacity: 1 !important;
    transform: translateX(0) !important;
    content: '→' !important;
}

body .sidebar .widget_categories li a.active .categories_name,
html body .sidebar .widget_categories li a.active .categories_name,
.sidebar .widget_categories li a.active .categories_name {
    color: white !important;
    font-weight: 700 !important;
}

body .sidebar .widget_categories li a.active .categories_num,
html body .sidebar .widget_categories li a.active .categories_num,
.sidebar .widget_categories li a.active .categories_num {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Active indicator bar - use different pseudo-element */
body .sidebar .widget_categories li.active::before,
html body .sidebar .widget_categories li.active::before,
.sidebar .widget_categories li.active::before {
    content: '' !important;
    position: absolute !important;
    left: -8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 60% !important;
    background: white !important;
    border-radius: 0 4px 4px 0 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
    z-index: 2 !important;
}

/* Override old styles from style.css - HIGH PRIORITY */
.sidebar .widget_categories li a::before {
    content: '' !important; /* Remove old Ionicons icon */
    display: none !important;
    font-family: inherit !important;
    height: 0 !important;
    line-height: 0 !important;
    margin-right: 0 !important;
}

.sidebar .widget_categories li,
.sidebar .widget_archive li {
    padding-bottom: 0.4rem !important; /* Override old padding */
    list-style: none !important;
}

.sidebar .widget_categories li a,
.sidebar .widget_archive li a {
    position: relative !important;
}

.sidebar .widget_categories .categories_num,
.sidebar .widget_archive .archive_num {
    float: none !important; /* Remove old float */
    font-size: 0.875rem !important;
}

.sidebar .widget + .widget {
    border-top: none !important; /* Remove old border */
    margin-top: 2rem !important;
    padding-top: 0 !important;
}

.sidebar .widget_title {
    margin-bottom: 0 !important; /* Override old margin */
    text-transform: none !important; /* Remove capitalize */
    font-weight: 800 !important; /* Override old weight */
    letter-spacing: -0.5px !important; /* Override old spacing */
}

.sidebar .widget_categories li:last-child,
.sidebar .widget_archive li:last-child {
    padding-bottom: 0.4rem !important; /* Keep consistent spacing */
}

/* Mobile Sidebar Improvements */
@media (max-width: 991px) {
    .sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }

    .sidebar .widget {
        margin-bottom: 1.5rem;
    }

    .sidebar .widget_title {
        font-size: 1.2rem;
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    }

    .sidebar .widget_categories li {
        margin: 0.35rem 1.25rem;
    }

    .sidebar .widget_categories li a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   16. CATEGORY BOX ENHANCEMENTS
   ============================================ */

.category-box {
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
    background-size: 200% 200%;
}

.category-box:hover {
    border-image: var(--gradient-rainbow) 1;
    box-shadow: var(--shadow-colored);
    transform: translateY(-8px) scale(1.05);
    animation: gradientShift 3s ease infinite;
}

.category-box:hover .category-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.3) rotate(5deg);
    animation: iconSpin 0.6s ease-out;
}

@keyframes iconSpin {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.4) rotate(10deg);
    }
    100% {
        transform: scale(1.3) rotate(5deg);
    }
}

.category-icon {
    transition: var(--transition);
}

/* ============================================
   17. BREADCRUMB ENHANCEMENTS
   ============================================ */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   18. TAB ENHANCEMENTS
   ============================================ */

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    transition: var(--transition);
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
}

/* ============================================
   19. SMOOTH SCROLLING
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   21. COLORFUL SECTION BACKGROUNDS
   ============================================ */

.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.section > * {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   22. COLORFUL INPUT FIELDS
   ============================================ */

.form-control:focus,
.form-select:focus,
#search_input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15),
                0 4px 12px rgba(99, 102, 241, 0.2);
    outline: none;
    transform: translateY(-2px);
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

/* ============================================
   23. COLORFUL CARDS AND CONTAINERS
   ============================================ */

.card, .widget, .modal-content {
    background: white;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.card::before,
.widget::before,
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    z-index: 1;
}

/* ============================================
   24. COLORFUL PAGINATION
   ============================================ */

.pagination .page-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-colored);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-colored);
    animation: gradientShift 3s ease infinite;
}

/* ============================================
   25. COLORFUL TABS
   ============================================ */

.nav-tabs .nav-link:hover {
    border-bottom-color: transparent;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid;
    border-image: var(--gradient-primary) 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

/* ============================================
   26. COLORFUL DROPDOWN MENUS
   ============================================ */

.dropdown-menu {
    background: white;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: var(--shadow-colored);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(8px);
    border-radius: var(--border-radius-sm);
}

/* ============================================
   27. COLORFUL BREADCRUMBS
   ============================================ */

.breadcrumb-item a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

/* ============================================
   28. COLORFUL SOCIAL ICONS
   ============================================ */

.social-icons a {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: var(--shadow-colored);
    animation: gradientShift 1s ease infinite, iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(-5px) scale(1.15);
    }
    50% {
        transform: translateY(-10px) scale(1.2);
    }
}

/* ============================================
   29. COLORFUL CAROUSEL CONTROLS
   ============================================ */

.carousel-control-prev,
.carousel-control-next {
    background: var(--gradient-primary) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite !important;
    opacity: 0.9 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1 !important;
    transform: scale(1.15) !important;
    box-shadow: var(--shadow-colored) !important;
}

/* ============================================
   30. COLORFUL OWL CAROUSEL
   ============================================ */

.owl-nav button {
    background: var(--gradient-primary) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite !important;
}

.owl-nav button:hover {
    transform: scale(1.2) !important;
    box-shadow: var(--shadow-colored) !important;
    animation: gradientShift 1s ease infinite !important;
}

/* ============================================
   31. SMOOTH FADE IN ANIMATIONS
   ============================================ */

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

.product,
.category-box,
.card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.product:nth-child(1) { animation-delay: 0.1s; }
.product:nth-child(2) { animation-delay: 0.2s; }
.product:nth-child(3) { animation-delay: 0.3s; }
.product:nth-child(4) { animation-delay: 0.4s; }
.product:nth-child(5) { animation-delay: 0.5s; }
.product:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   32. COLORFUL PRICE DISPLAY
   ============================================ */

.product_price .price {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    font-weight: 800;
    font-size: 1.35rem;
}

/* ============================================
   33. COLORFUL TOAST NOTIFICATIONS
   ============================================ */

.toast-notification.success {
    border-left: 5px solid;
    border-image: var(--gradient-success) 1;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.toast-notification.error {
    border-left: 5px solid;
    border-image: var(--gradient-secondary) 1;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.toast-notification.info {
    border-left: 5px solid;
    border-image: var(--gradient-primary) 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
}

/* ============================================
   20. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

