/* Global Styles */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --transition: all 0.3s ease;
    --menu-gradient: linear-gradient(135deg, #4A90E2, #7E57C2);
    --menu-hover: linear-gradient(135deg, #7E57C2, #4A90E2);
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: var(--dark-color);
    padding-top: 76px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 50%, #f1f8ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(126, 87, 194, 0.03) 0%, transparent 50%),
        linear-gradient(90deg, rgba(74, 144, 226, 0.01) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 400;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navbar Styles */
#mainNav {
    transition: var(--transition);
    background: var(--menu-gradient);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
    padding: 0;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    padding: 10px 0;
}

.navbar-brand span {
    font-weight: 500;
    color: #FFD700;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    padding: 18px 20px !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    background: var(--menu-hover);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    /* background-color: #FFD700; */
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    color: white !important;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-menu {
    background: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.dropdown-item {
    color: var(--dark-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--menu-gradient);
    color: white;
    transform: translateX(5px);
}

/* Mobile Navbar Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--menu-gradient) !important;
        margin-top: 10px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-link {
        color: #ffffff !important;
        padding: 15px 20px !important;
        border-radius: 5px;
        margin: 2px 0;
        text-align: left;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }
    
    .navbar-nav .nav-link {
        color: #ffffff !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #ffffff !important;
    }
    
    .navbar-nav {
        margin-top: 0;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #f8fafc 0%, #e8f4fd 50%, #f0f9ff 100%);
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    body::before {
        background-image: 
            radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.04) 0%, transparent 60%),
            radial-gradient(circle at 80% 70%, rgba(126, 87, 194, 0.04) 0%, transparent 60%);
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        font-size: 0.95rem;
        color: #ffffff !important;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .hero {
        height: auto;
        min-height: 300px;
    }
    
    .banner-slide {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 25px 20px;
        margin: 15px 5px;
    }
    
    .testimonial-author-img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    /* Parallax section on mobile */
    .parallax-section {
        background-attachment: scroll;
        padding: 60px 0;
    }
    
    .parallax-section h2 {
        font-size: 2rem;
    }
    
    .parallax-section p {
        font-size: 1rem;
    }
    
    .parallax-section .fas {
        font-size: 2.5rem !important;
    }
    
    /* Category cards on mobile */
    .category-card .card {
        transition: var(--transition);
    }
    
    .category-card .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .category-card .card-body {
        padding: 2rem 1rem;
    }
    
    .category-card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Product cards on mobile */
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    overflow: hidden;
}

.banner-swiper {
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
    background-color: var(--primary-color);
}

.banner-swiper .swiper-button-next::after,
.banner-swiper .swiper-button-prev::after {
    font-size: 20px;
}

.banner-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: white;
    opacity: 0.5;
    transition: var(--transition);
}

.banner-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        display: none;
    }
}

/* Featured Products Slider */
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.swiper-slide:hover {
    transform: scale(1.03);
}

.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
    border-radius: 15px;
}

.featured-product {
    position: relative;
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-product::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.featured-product-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.featured-product h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.featured-product-price {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Beautiful Modern Product Cards */
.product-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #4A90E2, #7E57C2, #4A90E2);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(74, 144, 226, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
}

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

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%; /* Slightly adjusted aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    border-radius: 15px 15px 0 0;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 15px rgba(74, 144, 226, 0.1));
}

.product-card:hover .product-img {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 10px 25px rgba(74, 144, 226, 0.2));
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(126, 87, 194, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px 15px 0 0;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover .product-overlay .btn {
    transform: translateY(0);
}

.product-overlay .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.product-content {
    padding: 25px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    right: 25px;
    height: 3px;
    background: linear-gradient(135deg, #4A90E2, #7E57C2);
    border-radius: 0 0 10px 10px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4A90E2, #7E57C2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.product-rating i {
    color: #FFD700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.product-card:hover .product-rating i {
    transform: scale(1.1);
}

/* Add a subtle category badge */
.product-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #4A90E2, #7E57C2);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

/* Product Detail Page */
.product-detail-img {
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-content {
    padding: 30px;
}

.product-detail-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-detail-desc {
    margin-bottom: 30px;
}

.floating-inquiry {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.btn-inquiry {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    transition: var(--transition);
}

.btn-inquiry:hover {
    background-color: #c0392b;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.5);
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 400;
    background-color: transparent;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.contact-form .form-label {
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
}

.contact-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}

.contact-info-item {
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

/* About Section */
.about-content {
    padding: 50px 0;
}

.about-img {
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer Styles */
.footer {
    color: #adb5bd;
}

.footer a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: var(--secondary-color);
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 76px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    border-left: 3px solid transparent;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover, 
.admin-sidebar .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link::after {
    display: none;
}

.admin-content {
    padding-left: 250px;
    padding-top: 76px;
}

.admin-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.08);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

/* Section Styles */
.section {
    padding: 40px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 500;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #6c757d;
}

/* Homepage Categories Styles */
.section-header {
    margin-bottom: 30px !important;
}

.section-title-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title-inline h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
}

.section-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.view-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.view-more-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.view-more-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

/* Beautiful Discount Badge */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    min-width: 70px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    text-align: center;
    line-height: 1;
    padding: 6px 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-discount 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse-discount {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    }
}

/* Product Price Section */
.product-price-section {
    margin-bottom: 10px;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.discounted-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Product Rating */
.product-rating {
    color: #FFD700;
    font-size: 0.9rem;
}

.product-rating i {
    margin-right: 2px;
}

/* Products Hero Placeholder */
.products-hero-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.products-hero-placeholder::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content i {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Hero Image Gradient Overlay */
.bg-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

/* Hero Product Image Styling */
.hero-image-container {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-product-img {
    max-height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-product-img:hover {
    transform: scale(1.02);
}

/* Enhanced Product Cards for Homepage */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.08);
    margin-bottom: 30px;
    transition: var(--transition);
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Parallax Section */
.parallax-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(2px);
}

.parallax-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: floatingLight 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatingLight {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) rotate(180deg);
        opacity: 0.6;
    }
}

.parallax-content {
        position: relative;
    z-index: 1;
    }
    
.parallax-section h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    margin-bottom: 2rem;
    }
    
.parallax-section p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    line-height: 1.6;
    }
    
.parallax-section .fas {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    }

.parallax-section .col-md-4:hover .fas {
    transform: scale(1.1);
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    
.parallax-section h5 {
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
.parallax-section .col-md-4 {
    transition: all 0.3s ease;
    }
    
.parallax-section .col-md-4:hover {
    transform: translateY(-10px);
    }
    
/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
    }
    
/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
    /* Hide categories sidebar on mobile - more specific selector */
    .col-lg-3.products-category-sidebar,
    .products-category-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Make products grid take full width on mobile - more specific */
    .col-lg-9.products-main-content,
    .products-main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        flex-basis: 100% !important;
        -ms-flex: 0 0 100% !important;
    }
    
    /* Override Bootstrap column classes specifically */
    .container .row .col-lg-3.products-category-sidebar {
        display: none !important;
    }
    
    .container .row .col-lg-9.products-main-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile Products Grid - 2 Columns */
@media (max-width: 767.98px) {
    /* Force 2 columns on mobile for all product grids */
    .col-12.col-sm-6.col-md-4.col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Beautiful Mobile Product Cards */
    .product-card {
        margin-bottom: 1rem;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(74, 144, 226, 0.12);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    }

    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2);
        background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    }
    
    .product-img-wrapper {
        height: 150px;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
        background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
        position: relative;
    }
    
    .product-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        filter: drop-shadow(0 3px 10px rgba(74, 144, 226, 0.1));
    }

    .product-card:hover .product-img {
        transform: scale(1.05) rotate(1deg);
        filter: drop-shadow(0 5px 15px rgba(74, 144, 226, 0.2));
    }
    
    .product-content {
        padding: 0.75rem 0.5rem;
        background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
        position: relative;
    }

    .product-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0.5rem;
        right: 0.5rem;
        height: 2px;
        background: linear-gradient(135deg, #4A90E2, #7E57C2);
        border-radius: 0 0 8px 8px;
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        height: auto;
        min-height: 2.6em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-weight: 600;
        color: var(--secondary-color);
        transition: all 0.3s ease;
    }

    .product-card:hover .product-title {
        color: var(--primary-color);
    }
    
    .product-price {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, #4A90E2, #7E57C2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .product-price-section {
        margin-bottom: 0.5rem;
}

    .original-price {
        font-size: 0.75rem;
        margin-bottom: 3px;
}

    .discounted-price {
        font-size: 1rem;
        font-weight: 500;
    }
    
    /* Beautiful Mobile Discount Badge */
    .discount-badge {
        min-width: 55px;
        height: 24px;
        font-size: 0.65rem;
        top: 10px;
        right: 10px;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 15px;
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        border: 1px solid rgba(255, 255, 255, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        animation: pulse-discount 2s infinite;
    }
    
    /* Beautiful Mobile Product Overlay */
    .product-overlay {
        background: linear-gradient(135deg, rgba(74, 144, 226, 0.95), rgba(126, 87, 194, 0.95));
        opacity: 0;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px 12px 0 0;
    }

    .product-card:hover .product-overlay {
        opacity: 1;
    }
    
    .product-overlay .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        background: white;
        color: var(--primary-color);
        border: none;
        border-radius: 20px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transform: translateY(15px);
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    .product-card:hover .product-overlay .btn {
        transform: translateY(0);
    }

    .product-overlay .btn:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    }
}

/* Extra small mobile devices - maintain 2 columns but with even tighter spacing */
@media (max-width: 575.98px) {
    .col-12.col-sm-6.col-md-4.col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
}

    .product-card {
        margin-bottom: 0.75rem;
}

    .product-img-wrapper {
        height: 130px;
    }
    
    .product-content {
        padding: 0.5rem 0.4rem;
}

    .product-title {
        font-size: 0.8rem;
        min-height: 2.4em;
    }
    
    .product-price {
        font-size: 0.85rem;
    }
    
    .discounted-price {
        font-size: 0.95rem;
    }
    
    .original-price {
        font-size: 0.7rem;
    }
    
    .discount-badge {
        min-width: 45px;
        height: 20px;
        font-size: 7px;
        top: 6px;
        right: 6px;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: 600;
    }
    
    .product-overlay .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    }
    
/* Tablet adjustments - 3 columns */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-12.col-sm-6.col-md-4.col-lg-3 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .product-img-wrapper {
        height: 180px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .discount-badge {
        min-width: 55px;
        height: 24px;
        font-size: 9px;
        padding: 3px 7px;
        border-radius: 13px;
        font-weight: 600;
    }
}

/* Category Products Mobile Carousel */
.category-products-swiper {
    padding-bottom: 50px;
    margin: 0;
    opacity: 1; /* Changed from 0 to 1 to show by default */
    transition: opacity 0.5s ease;
    overflow: hidden !important;
    width: 100%;
    max-width: 100vw;
    display: block !important; /* Force display */
}

.category-products-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    width: 100% !important;
    transition-timing-function: ease-out;
}

.category-products-swiper.swiper-initialized {
    opacity: 1;
}

.category-products-swiper .swiper-slide {
    padding: 0 20px;
    height: auto;
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch;
    box-sizing: border-box;
}

.mobile-product-card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    box-sizing: border-box;
}

/* Remove touch-action restrictions to allow normal scrolling */
.category-products-swiper,
.category-products-swiper .swiper-slide,
.mobile-product-card,
.mobile-product-card *,
.product-card,
.product-card * {
    touch-action: auto !important;
}

/* Only restrict touch on navigation elements */
.category-products-swiper .swiper-button-next,
.category-products-swiper .swiper-button-prev,
.category-products-swiper .swiper-pagination {
    touch-action: manipulation !important;
}

.category-products-swiper .swiper-pagination {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    position: relative;
}

.category-products-swiper .swiper-pagination::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
}

.category-products-swiper .swiper-pagination::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
    animation: progressBar 4s linear infinite;
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 60px; }
}

/* Pause animation on hover/touch */
.category-products-swiper:hover .swiper-pagination::after,
.category-products-swiper.touching .swiper-pagination::after {
    animation-play-state: paused;
}

.category-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.3;
    margin: 0 5px;
    transition: var(--transition);
}

.category-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.category-products-swiper .swiper-button-next,
.category-products-swiper .swiper-button-prev {
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    margin-top: -15px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 50% !important;
}

.category-products-swiper .swiper-button-next:hover,
.category-products-swiper .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.category-products-swiper .swiper-button-next::after,
.category-products-swiper .swiper-button-prev::after {
    font-weight: 500;
    font-size: 12px;
    color: white;
}

.category-products-swiper .swiper-button-next {
    right: 10px !important;
}

.category-products-swiper .swiper-button-prev {
    left: 10px !important;
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .category-products-swiper {
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-product-card {
        margin-bottom: 0;
        transform: scale(0.95);
        transition: transform 0.3s ease;
        max-width: 350px !important;
        margin: 0 auto;
        width: 100%;
    }
    
    .mobile-product-card:hover,
    .swiper-slide-active .mobile-product-card {
        transform: scale(1);
    }
    
    .category-products-swiper {
        padding-bottom: 60px;
        margin: 0 10px;
        width: calc(100% - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        overflow: hidden !important;
    }
    
    .category-products-swiper .swiper-slide {
        padding: 0 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .category-products-swiper .swiper-wrapper {
        align-items: center;
        width: 100% !important;
    }
    
    .category-products-swiper .swiper-button-next,
    .category-products-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17px;
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--primary-color);
        cursor: pointer;
        pointer-events: auto;
        z-index: 100;
    }
    
    .category-products-swiper .swiper-button-next:active,
    .category-products-swiper .swiper-button-prev:active {
        transform: scale(0.95);
    }
    
    .category-products-swiper .swiper-button-next::after,
    .category-products-swiper .swiper-button-prev::after {
        font-weight: 500;
        font-size: 10px;
    }
    
    /* Add swipe indicator */
    .category-products-swiper::after {
        content: '👈 Swipe to explore more products';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #666;
        text-align: center;
        opacity: var(--indicator-opacity, 0.7);
        animation: fadeInOut 3s ease-in-out infinite;
        transition: opacity 1s ease;
    }
}

@media (max-width: 576px) {
    .category-products-swiper {
        margin: 0 5px;
        padding-bottom: 55px;
        width: calc(100% - 10px) !important;
        max-width: calc(100vw - 10px) !important;
    }
    
    .category-products-swiper .swiper-slide {
        padding: 0 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .mobile-product-card {
        max-width: 320px !important;
    }
    
    .category-button-next {
        right: 5px !important;
    }
    
    .category-button-prev {
        left: 5px !important;
    }
    
    /* Smaller swipe indicator text on very small screens */
    .category-products-swiper::after {
        content: '👈 Swipe';
        font-size: 11px;
    }
}

/* Add smooth loading animation for carousel */
.category-products-swiper {
    position: relative;
}

.category-products-swiper.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Force single product display - Final Override */
@media (max-width: 768px) {
    .category-products-swiper {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .category-products-swiper .swiper-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .category-products-swiper .swiper-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        transition-property: transform !important;
    }
    
    .category-products-swiper .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 0 0 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    
    .category-products-swiper .mobile-product-card {
        width: 90% !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        flex: none !important;
    }
}

/* Additional mobile constraints */
@media (max-width: 576px) {
    .category-products-swiper .mobile-product-card {
        width: 95% !important;
        max-width: 320px !important;
    }
}

/* Emergency override for very small screens */
@media (max-width: 400px) {
    .category-products-swiper .mobile-product-card {
        width: 98% !important;
        max-width: 280px !important;
    }
}

/* Ensure smooth carousel operation */
.category-products-swiper .swiper-wrapper {
    transition-timing-function: ease-out;
}

.category-products-swiper.touching .swiper-wrapper {
    transition-duration: 0ms;
}

/* Improve button positioning and visibility */
.category-products-swiper .swiper-button-next {
    right: 10px !important;
    top: 50% !important;
}

.category-products-swiper .swiper-button-prev {
    left: 10px !important;
    top: 50% !important;
}

/* Disable button when at edges (if not using loop) */
.category-products-swiper .swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Desktop Enhancement */
@media (min-width: 1200px) {
    body::before {
        background-image: 
            radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.04) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(126, 87, 194, 0.04) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.02) 0%, transparent 70%),
            linear-gradient(90deg, rgba(74, 144, 226, 0.02) 0%, transparent 100%);
    }
}

/* Search Bar Styles */
.search-container {
    position: relative;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input {
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 50px 12px 20px;
    font-size: 1rem;
    color: var(--dark-color);
    transition: var(--transition);
    outline: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.15);
    outline: none;
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.btn-search:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.05);
}

.btn-search i {
    color: white;
    font-size: 0.9rem;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.search-suggestions.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.search-suggestion-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestion-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item i {
    font-size: 0.9rem;
    color: var(--primary-color);
    width: 16px;
}

.search-suggestion-text {
    flex: 1;
    font-size: 0.95rem;
}

.search-suggestion-category {
    font-size: 0.8rem;
    color: #666;
    background: rgba(74, 144, 226, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Mobile Search Section */
.mobile-search-section {
    padding: 15px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.mobile-search-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.mobile-search-section .search-input {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
}

.mobile-search-section .search-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 1);
}

.mobile-search-section .btn-search {
    background: var(--accent-color);
}

.mobile-search-section .btn-search:hover {
    background: #c0392b;
}

/* Desktop Search Bar Responsive */
@media (min-width: 992px) {
    .search-container {
        flex-grow: 1;
        max-width: 500px;
    }
    
    .search-input {
        font-size: 0.95rem;
        padding: 10px 45px 10px 18px;
    }
    
    .btn-search {
        width: 32px;
        height: 32px;
    }
}

/* Mobile Search Responsive */
@media (max-width: 991.98px) {
    .mobile-search-section {
        position: sticky;
        top: 48px;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-search-wrapper {
        padding: 0 15px;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 14px 50px 14px 20px;
    }
    
    .btn-search {
        width: 38px;
        height: 38px;
        right: 3px;
    }
}

@media (max-width: 768px) {
    .mobile-search-section {
        top: 45px;
    }
}

@media (max-width: 576px) {
    .mobile-search-section {
        padding: 10px 0;
        top: 42px;
    }
    
    .search-input {
        font-size: 0.95rem;
        padding: 12px 45px 12px 18px;
    }
    
    .btn-search {
        width: 35px;
        height: 35px;
    }
}

/* Search Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Loading State */
.search-input.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%234A90E2' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='%234A90E2' d='M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 60px center;
    background-size: 20px 20px;
}

/* Search No Results */
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.search-no-results i {
    font-size: 2rem;
    color: #ddd;
    margin-bottom: 10px;
    display: block;
}

/* Search categories in suggestions */
.search-suggestion-recent {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}

.search-suggestion-popular {
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

.search-suggestion-product {
    background: rgba(74, 144, 226, 0.05);
    border-left: 3px solid var(--primary-color);
}

/* Enhanced focus states */
.search-input:focus + .btn-search {
    background: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Search shortcut hint */
.search-shortcut {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #999;
    pointer-events: none;
    display: none;
}

@media (min-width: 1200px) {
    .search-shortcut {
        display: block;
    }
}

/* Active search suggestion state */
.search-suggestion-item.active {
    background: var(--primary-color) !important;
    color: white !important;
}

.search-suggestion-item.active i,
.search-suggestion-item.active .search-suggestion-category {
    color: rgba(255, 255, 255, 0.8) !important;
}

.search-suggestion-item.active .search-suggestion-text strong {
    color: #FFD700 !important;
}

/* Mobile search section improvements */
@media (max-width: 991.98px) {
    .mobile-search-section {
        position: sticky;
        top: 48px;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .icon-categories-section {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .mobile-search-section {
        top: 45px;
    }
    
    .icon-categories-section {
        margin-top: 47px;
    }
}

@media (max-width: 576px) {
    .mobile-search-section {
        top: 42px;
    }
    
    .icon-categories-section {
        margin-top: 44px;
    }
}

/* Responsive Admin Styles */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-top: 0;
    }
    
    .admin-content {
        padding-left: 0;
    }
    
    .nav-link {
        padding: 10px 15px !important;
    }
    
    .nav-link::after {
        bottom: 5px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .hero {
        min-height: 250px;
    }
    
    .banner-slide {
        height: 250px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* Category cards on mobile phones */
    .category-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .category-card .card-body i {
        font-size: 2.5rem !important;
    }
    
    .category-card .card-title {
        font-size: 1rem;
    }
    
    .category-card .card-text {
        font-size: 0.85rem;
    }
}

/* Testimonial Styles */
.testimonial-slider {
    padding: 20px 0 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 20px 10px;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.testimonial-content {
    position: relative;
    padding-top: 10px;
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 600;
    position: absolute;
    top: -20px;
    left: -5px;
    font-size: 3rem;
    color: rgba(52, 152, 219, 0.1);
    z-index: 0;
}

.testimonial-rating {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 10px;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h5 {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-author-info small {
    color: #777;
    font-size: 0.85rem;
}

.testimonial-swiper {
    padding-bottom: 60px;
}

.testimonial-swiper .swiper-pagination {
    bottom: 0;
}

.testimonial-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.5;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 25px 20px;
        margin: 15px 5px;
    }
    
    .testimonial-author-img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
}

/* Icon Categories Section - Above Banner */
.icon-categories-section {
    padding: 20px 0 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.05);
    position: relative;
    z-index: 1;
    margin-top: 76px; /* Add top margin to prevent hiding behind header */
}

.icon-categories-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for better UX */
.icon-categories-grid::-webkit-scrollbar {
    height: 6px;
}

.icon-categories-grid::-webkit-scrollbar-track {
    background: rgba(74, 144, 226, 0.1);
    border-radius: 3px;
}

.icon-categories-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.icon-categories-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.icon-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    padding: 12px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 85px;
    flex-shrink: 0;
}

.icon-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(126, 87, 194, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.icon-category-item:hover::before {
    opacity: 1;
}

.icon-category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.12);
    border-color: var(--primary-color);
    text-decoration: none;
    color: var(--primary-color);
}

.icon-category-image {
    width: 35px;
    height: 35px;
    margin-bottom: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.icon-category-item:hover .icon-category-image {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(74, 144, 226, 0.15);
}

.icon-category-name {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    white-space: nowrap;
}

.icon-category-item:hover .icon-category-name {
    font-weight: 600;
}

/* Scroll indicators */
.icon-categories-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-categories-section.has-scroll::after {
    opacity: 1;
}

/* Mobile responsive for icon categories */
@media (max-width: 768px) {
    .icon-categories-section {
        padding: 25px 0 20px;
    }
    
    .icon-categories-grid {
        gap: 12px;
        padding: 0 10px;
    }
    
    .icon-category-item {
        padding: 10px 6px;
        border-radius: 6px;
        min-width: 75px;
    }
    
    .icon-category-image {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
        padding: 5px;
    }
    
    .icon-category-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .icon-categories-section {
        padding: 20px 0 15px;
    }
    
    .icon-categories-grid {
        gap: 10px;
        padding: 0 5px;
    }
    
    .icon-category-item {
        padding: 8px 4px;
        min-width: 70px;
    }
    
    .icon-category-image {
        width: 28px;
        height: 28px;
        margin-bottom: 5px;
        padding: 4px;
    }
    
    .icon-category-name {
        font-size: 0.7rem;
    }
}

/* Animation for loading */
.icon-category-item {
    animation: fadeInUp 0.6s ease forwards;
}

.icon-category-item:nth-child(1) { animation-delay: 0.1s; }
.icon-category-item:nth-child(2) { animation-delay: 0.2s; }
.icon-category-item:nth-child(3) { animation-delay: 0.3s; }
.icon-category-item:nth-child(4) { animation-delay: 0.4s; }
.icon-category-item:nth-child(5) { animation-delay: 0.5s; }
.icon-category-item:nth-child(6) { animation-delay: 0.6s; }
.icon-category-item:nth-child(7) { animation-delay: 0.7s; }
.icon-category-item:nth-child(8) { animation-delay: 0.8s; }

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

/* Enhanced mobile search suggestions */
@media (max-width: 991.98px) {
    .mobile-search-section .search-suggestions {
        z-index: 1001;
        margin-top: 8px;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-search-section .search-input:focus {
        border-color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 1);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
    }
}

/* Desktop specific adjustments */
@media (min-width: 992px) {
    .icon-categories-section {
        padding: 25px 0 35px;
        margin-top: 60px; /* Adjusted for reduced header height */
    }
}

/* Mobile hero image adjustments */
@media (max-width: 768px) {
    .products-hero-placeholder {
        min-height: 200px;
    }

    .hero-content {
        padding: 2rem !important;
    }

    .hero-content i {
        font-size: 2.5rem !important;
    }

    .hero-content h3 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    /* Hero product image mobile adjustments */
    .hero-image-container {
        min-height: 200px;
    }

    .hero-product-img {
        max-height: 200px;
    }

    .position-absolute h5 {
        font-size: 1rem;
    }

    .position-absolute p {
        font-size: 0.8rem;
    }
} 