/********** Template CSS **********/
:root {
    --primary: #fbb615;
    --secondary: #FDBE33;
    --light: #F4F6F8;
    --dark: #040F28;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 30px;
    height: 3px;
    background: var(--primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/about-2.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-2 {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/product-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-3 {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/service-3.jpg) center center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    z-index: 3;
}

.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0;
    margin-right: 2rem;
}

.logo-img {
    height: 80px;
    width: auto;
    max-width: 200px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(251, 182, 21, 0.3));
}

.logo-container:hover {
    transform: translateY(-2px);
}

/* Responsive Logo Sizing */
@media (max-width: 991.98px) {
    .logo-img {
        height: 60px;
        max-width: 150px;
    }
    
    .logo-container {
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 50px;
        max-width: 120px;
    }
    
    .logo-container {
        margin-right: 0.5rem;
    }
}

/* Logo Animation on Page Load */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-img {
    animation: logoFadeIn 0.8s ease-out;
}

/* Topbar Animations */
.topbar-item {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    animation: topbarFadeIn 0.6s ease-out forwards;
}

.topbar-item:nth-child(1) {
    animation-delay: 0.1s;
}

.topbar-item:nth-child(2) {
    animation-delay: 0.2s;
}

.topbar-item:nth-child(3) {
    animation-delay: 0.3s;
}

.topbar-icon {
    transition: all 0.3s ease;
    animation: iconPulse 2s ease-in-out infinite;
}

.topbar-title {
    transition: all 0.3s ease;
}

.topbar-text {
    transition: all 0.3s ease;
}

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

.topbar-item:hover .topbar-icon {
    transform: scale(1.1);
    color: var(--secondary) !important;
    animation-play-state: paused;
}

.topbar-item:hover .topbar-title {
    color: var(--primary);
    transform: translateX(5px);
}

.topbar-item:hover .topbar-text {
    color: var(--primary);
    transform: translateX(5px);
}

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

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

/* AOS Animation Override for Topbar */
[data-aos="fade-right"] {
    opacity: 0;
    transform: translate3d(-100px, 0, 0);
    transition-property: opacity, transform;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translate3d(0, 100px, 0);
    transition-property: opacity, transform;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translate3d(100px, 0, 0);
    transition-property: opacity, transform;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* About Section Animations */
.about-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.about-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.6s ease-out;
}

.about-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-subtitle {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease-out 0.2s;
}

.about-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.6s ease-out 0.4s;
}

.about-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-feature {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

.about-feature.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-feature:nth-child(1) {
    transition-delay: 0.6s;
}

.about-feature:nth-child(2) {
    transition-delay: 0.7s;
}

.about-feature:nth-child(3) {
    transition-delay: 0.8s;
}

.about-feature:nth-child(4) {
    transition-delay: 0.9s;
}

.about-feature:nth-child(5) {
    transition-delay: 1.0s;
}

.about-feature:nth-child(6) {
    transition-delay: 1.1s;
}

.about-feature i {
    transition: all 0.3s ease;
}

.about-feature:hover i {
    transform: scale(1.2);
    color: var(--secondary) !important;
}

.about-feature:hover {
    transform: translateX(10px);
}

.about-image-container {
    position: relative;
    overflow: hidden;
}

.about-image-container img {
    transition: all 0.8s ease-out;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

.about-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(251, 182, 21, 0.1), rgba(253, 190, 51, 0.1));
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.about-image-container:hover::before {
    opacity: 1;
}

/* Pulse animation for check icons */
@keyframes checkPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.about-feature i.fa-check {
    animation: checkPulse 2s ease-in-out infinite;
}

.about-feature:hover i.fa-check {
    animation-play-state: paused;
}

/* Enhanced Products Section Styling */
.products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23fbb615" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23fbb615" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23fbb615" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23fbb615" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23fbb615" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.products-section .container {
    position: relative;
    z-index: 1;
}

.products-title {
    position: relative;
    margin-bottom: 3rem;
}

.products-title h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.products-title h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.products-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

/* Enhanced Filter Section */
.filter-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.filter-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.filter-container label {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: block;
}

.filter-container label i {
    color: var(--primary);
    margin-right: 0.5rem;
}

#category-filter {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#category-filter:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(251, 182, 21, 0.25);
    outline: none;
}

#reset-filter {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

#reset-filter:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* Enhanced Product Cards */
.product-card {
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    animation: productCardFadeIn 0.6s ease-out forwards;
}

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

@keyframes productCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 182, 21, 0.05), rgba(253, 190, 51, 0.05));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.product-item:hover::before {
    opacity: 1;
}

.product-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

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

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    background: white;
}

.product-content a {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.product-content a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(251, 182, 21, 0.1), rgba(253, 190, 51, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(251, 182, 21, 0.2);
    transition: all 0.3s ease;
}

.product-item:hover .product-price {
    background: linear-gradient(135deg, rgba(251, 182, 21, 0.2), rgba(253, 190, 51, 0.2));
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Category Badge */
.product-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.product-item:hover .product-category-badge {
    opacity: 1;
    transform: translateY(0);
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.no-products i {
    color: #dee2e6;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.no-products h3 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.no-products p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

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

/* Enhanced Show More Button */
#show-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(251, 182, 21, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#show-more-btn::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: all 0.5s ease;
}

#show-more-btn:hover::before {
    left: 100%;
}

#show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 182, 21, 0.4);
}

#show-more-btn:active {
    transform: translateY(-1px);
}

/* Loading Animation */
.product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-card.loading .product-item {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-title h4 {
        font-size: 2rem;
    }
    
    .filter-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .product-item img {
        height: 200px;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-content a {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    #show-more-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .products-title h4 {
        font-size: 1.8rem;
    }
    
    .filter-container {
        padding: 1rem;
    }
    
    .product-item img {
        height: 180px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-content a {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
}

/* Additional Animation Classes for JavaScript */
.product-card.fade-out {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.product-card.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
}

.product-card.slide-in {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.5s ease-out forwards;
}

.product-card.slide-out {
    animation: slideOutDown 0.3s ease-in forwards;
}

.product-card.hovered {
    transform: translateY(-5px) scale(1.02);
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

#products-container.filtering {
    opacity: 0.7;
    pointer-events: none;
}

#show-more-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

#show-more-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#reset-filter.loading {
    opacity: 0.7;
    pointer-events: none;
}

#reset-filter.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    margin: -7.5px 0 0 -7.5px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

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

/* Enhanced Product Card Hover States */
.product-item:hover .product-category-badge {
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smooth transitions for all interactive elements */
.product-card,
.product-item,
.product-content,
.product-price,
.filter-container,
#category-filter,
#reset-filter,
#show-more-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
#category-filter:focus,
#reset-filter:focus,
#show-more-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-item {
        border: 2px solid var(--dark);
    }
    
    .product-price {
        border: 2px solid var(--primary);
    }
    
    .filter-container {
        border: 2px solid var(--dark);
    }
}

/* Language Dropdown Z-Index Fix */
.language-switcher .dropdown {
    position: relative;
    z-index: 1050;
}

.language-switcher .dropdown-menu {
    z-index: 1051 !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.language-switcher .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-item:hover,
.language-switcher .dropdown-item:focus {
    color: #16181b;
    background-color: #f8f9fa;
}

.language-switcher .dropdown-item.active {
    color: #fff;
    background-color: var(--primary);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-item,
    .product-content,
    .product-price,
    .filter-container,
    #category-filter,
    #reset-filter,
    #show-more-btn {
        transition: none;
        animation: none;
    }
    
    .product-card.fade-out,
    .product-card.fade-in,
    .product-card.slide-in,
    .product-card.slide-out {
        animation: none;
        transition: none;
    }
}