/* Custom Theme Colors */
:root {
    --primary-blue: #D582E0;
    --secondary-blue: #3b82f6;
    --light-blue: #D582E0;
    --dark-blue: #1e40af;
    --accent-blue: #93c5fd;
}

/* Global Styles */
body {
    background-color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue)) !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand, .nav-link, .navbar .btn {
    color: white !important;
}

.navbar .btn-outline-dark {
    border-color: white;
    background: transparent;
}

.navbar .btn-outline-dark:hover {
    background: #D582E0;
}

.navbar .btn-dark {
    background: white;
    color: var(--primary-blue) !important;
    border: none;
}

/* Product Card Styling */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Allow clicks to pass through when overlay is hidden */
    pointer-events: none;
}

.product-card:hover .product-overlay {
    opacity: 1;
    /* Keep overlay itself non-interactive so underlying links remain clickable */
    pointer-events: none;
}

/* Make overlay buttons clickable even when overlay ignores pointer events */
.product-overlay .btn,
.product-overlay button,
.product-overlay a {
    pointer-events: auto;
}

/* Button Styling */
.btn-dark {
    background: var(--primary-blue);
    border: none;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-dark:hover {
    background: var(--primary-blue);
}

/* Product Gallery */
.carousel {
    border-radius: 15px;
    overflow: hidden;
}

.carousel-item img {
    border-radius: 15px;
}

.img-thumbnail {
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.img-thumbnail:hover {
    border-color: var(--primary-blue);
}

/* Tabs Styling */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}

.nav-tabs .nav-link {
    border: none;
    color: #6b7280;
    position: relative;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary-blue);
    background: none;
}

.nav-tabs .nav-link.active:after {
    transform: scaleX(1);
}

/* Reviews Section */
.star-rating {
    color: #fbbf24;
}

/* Footer Styling */
footer {
    background: linear-gradient(to right, var(--dark-blue), var(--primary-blue)) !important;
    margin-top: auto;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #D582E0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Animations */
.fade-in {
    /* opacity: 0; */
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Price Badge */
.price-badge {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

/* Quantity Selector */
.quantity-selector {
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    overflow: hidden;
}

.quantity-selector .btn {
    border: none;
    background: none;
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 50px;
}

/* Color Selection */
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

/* Size Selection */
.size-option {
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover, .size-option.active {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Product Features */
.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .top-bar {
        font-size: 0.8rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-links a:hover {
    color: #fff !important;
    text-decoration: none;
}

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

.search-input {
    border-radius: 4px 0 0 4px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
}

.search-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    border-color: var(--primary-blue);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-top: 0.5rem;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Search Results Styling */
.search-result-item {
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 0;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.search-result-item.active {
    background-color: #e3f2fd;
    border-left: 3px solid var(--primary-blue);
}

.search-result-item img {
    border: 1px solid #e9ecef;
}

.trending-item, .category-item {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background: #f8f9fa;
    border-radius: 15px;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.trending-item:hover, .category-item:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

.search-loading {
    color: var(--primary-blue);
}

/* Mobile search adjustments */
@media (max-width: 991.98px) {
    .search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 60vh;
        border-radius: 0 0 10px 10px;
        z-index: 1050;
        margin-top: 0.25rem;
    }
    
    .search-bar-container {
        position: relative;
    }
    
    .search-bar-container .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Ensure autocomplete styling works properly */
    .search-input:-webkit-autofill,
    .search-input:-webkit-autofill:hover,
    .search-input:-webkit-autofill:focus,
    .search-input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 30px white inset !important;
        -webkit-text-fill-color: #333 !important;
    }
    
    .search-result-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-result-item img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .search-result-item .fw-medium {
        font-size: 0.85rem;
    }
    
    .search-result-item .text-muted {
        font-size: 0.75rem;
    }
    
    .search-result-item .fw-bold {
        font-size: 0.8rem;
    }
    
    /* Ensure search suggestions don't go off screen */
    .search-suggestions {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
}

.trending-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trending-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f8f9fa;
    border-radius: 20px;
    color: #D582E0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.trending-item:hover {
    background: #e9ecef;
    color: #D582E0;
}

.category-item {
    display: block;
    padding: 0.5rem;
    color: #D582E0;
    text-decoration: none;
    transition: all 0.2s;
}

.category-item:hover {
    background: #f8f9fa;
    color: #D582E0;
}

/* Category Menu */
.category-menu {
    background: #fff;
    border-top: 1px solid #dee2e6;
    position: relative;
}

.category-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav .nav-item {
    white-space: nowrap;
}

.category-nav .nav-link {
    color: #D582E0;
    padding: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-nav .nav-link:hover {
    color: var(--primary-blue);
}

/* Mobile category menu improvements */
@media (max-width: 991.98px) {
    .category-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: max-content;
    }
    
    .category-nav {
        padding: 0.5rem 0;
    }
    
    .category-menu {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    padding: 2rem;
    margin-top: 0;
    border: none;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    background: #fff;
    z-index: 1000;
    display: none;
}

.category-dropdown {
    position: static !important;
}

.category-dropdown:hover .mega-menu {
    display: block;
}

/* Mobile mega menu */
@media (max-width: 991.98px) {
    .category-dropdown {
        position: relative;
    }
    
    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 50vh;
        overflow-y: auto;
        border-radius: 0 0 10px 10px;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 1060;
        background: white;
        margin-top: 0.25rem;
        border: 1px solid #e9ecef;
    }
    
    .mega-menu .row {
        margin: 0;
    }
    
    .mega-menu .col-md-12 {
        padding: 0;
    }
    
    .mega-menu ul {
        padding-left: 0;
        margin: 0;
    }
    
    .mega-menu ul li {
        margin-bottom: 0.75rem;
    }
    
    .mega-menu ul li a {
        padding: 0.75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
        display: block;
        color: #333;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .mega-menu ul li a:hover {
        color: var(--primary-blue);
        padding-left: 0.5rem;
    }
    
    .mega-menu ul li:last-child a {
        border-bottom: none;
    }
}

.mega-menu h6 {
    color: #D582E0;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.mega-menu ul li {
    margin-bottom: 0.5rem;
}

.mega-menu ul li a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: block;
    padding: 0.3rem 0;
}

.mega-menu ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

/* Featured Brands Section */
.featured-brands {
    background: #fff;
    padding: 3rem 0;
}

.brand-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 1.6;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Trending Section */
.trending-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
}

.trend-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.trend-content {
    padding: 1.5rem;
}

.trend-tag {
    background: var(--accent-blue);
    color: var(--dark-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Deal of the Day */
.deal-section {
    background: var(--primary-blue);
    color: white;
    padding: 4rem 0;
}

.countdown-timer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Instagram Feed Section */
.instagram-feed {
    padding: 4rem 0;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.instagram-item img {
    transition: transform 0.5s ease;
}

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

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

/* Benefits Section */
.benefits-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: var(--dark-blue);
}

/* Animation Classes */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Types */
.animate.fade-in {
    transform: translateY(0);
}

.animate.fade-in-up {
    transform: translateY(30px);
}

.animate.fade-in-down {
    transform: translateY(-30px);
}

.animate.fade-in-left {
    transform: translateX(-30px);
}

.animate.fade-in-right {
    transform: translateX(30px);
}

.animate.scale-in {
    transform: scale(0.95);
}

.animate.slide-in {
    transform: translateX(-100%);
}

/* Animation Delays */
.animate.delay-1 {
    transition-delay: 0.2s;
}

.animate.delay-2 {
    transition-delay: 0.4s;
}

.animate.delay-3 {
    transition-delay: 0.6s;
}

.animate.delay-4 {
    transition-delay: 0.8s;
}

/* Page-specific Animations */
/* Cart and Checkout Pages */
.cart-section,
.checkout-section {
    padding-top: 2rem;
}

/* Cart Item Styling */
.cart-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item .quantity-selector {
    width: fit-content;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 28px;
}

.cart-item .quantity-selector .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    background: #f9fafb;
    border: none;
}

.cart-item .quantity-selector .btn:hover {
    background: #f3f4f6;
    color: var(--primary-blue);
}

.cart-item .quantity-selector input {
    width: 40px;
    text-align: center;
    border: none;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

/* Cart Summary Styling */
.cart-summary {
    position: sticky;
    top: 100px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cart-summary .card-header {
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.cart-summary .card-body {
    padding: 1.5rem;
}

/* Checkout Steps Styling */
.checkout-steps {
    margin-bottom: 3rem;
}

.checkout-steps .step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.checkout-steps .step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: -1;
}

.checkout-steps .step:last-child::before {
    display: none;
}

.checkout-steps .step-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.checkout-steps .step.active .step-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.checkout-steps .step-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.checkout-steps .step.active .step-label {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Form Styling */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Order Summary Items */
.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin: -0.5rem -1rem;
    padding: 0.5rem 1rem;
}

.order-items::-webkit-scrollbar {
    width: 6px;
}

.order-items::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.order-items::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

.order-items::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
}

/* Price Badge Enhancement */
.price-badge {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Payment Methods Display */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-methods img {
    height: 24px;
    opacity: 0.6;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cart-item {
        padding: 1rem;
    }

    .cart-item img {
        width: 80px;
        height: 80px;
    }

    .checkout-steps .step::before {
        width: calc(100% - 20px);
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }
}

/* New Pulse Animation */
@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Loading Animation */
.page-loader .loader {
    border-width: 4px;
    width: 60px;
    height: 60px;
    border-top-color: var(--primary-blue);
    animation: spin 1s linear infinite, pulseLoader 2s ease-in-out infinite;
}

@keyframes pulseLoader {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

/* New Animation Keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

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

@keyframes cardHover {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
}

/* Enhanced Hover Effects */
.product-card:hover .product-image img,
.trend-card:hover img {
    transform: scale(1.08);
}

.benefit-card:hover .benefit-icon {
    animation: pulseIcon 1s infinite;
}

.instagram-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hover Animation */
.hover-animation {
    animation: cardHover 0.3s ease forwards;
}

/* Checkout Steps Animation */
.checkout-steps .step {
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.checkout-steps .step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product Detail Animation */
.product-detail {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.product-detail.visible {
    opacity: 1;
    transform: scale(1);
} 

.text-dark{
    color:black !important;
}

/* Custom Styles */
.top-bar {
    font-size: 0.9rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card {
    transition: transform 0.2s ease-in-out;
}

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

.social-links a {
    transition: opacity 0.2s ease-in-out;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Form Styles */
.form-control:focus {
    border-color: #D582E0;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

.btn-outline-dark:hover {
    background-color: #D582E0;
    color: #fff;
}

/* Password Toggle Button */
.input-group .btn-outline-secondary {
    border-color: #ced4da;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #D582E0;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Links */
a {
    color: #D582E0;
}

a:hover {
    color: #000;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

main {
    flex: 1;
}

/* FAQ Tab Styles */
.nav-pills .nav-link {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    margin: 0 5px;
    color: #D582E0;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
}

.nav-pills .nav-link.active {
    background-color: var(--light-blue);
    color: #fff !important;
    border-color: var(--light-blue);
}

/* Category Page Mobile Responsiveness */
@media (max-width: 991.98px) {
    .container.py-5.mt-5 {
        padding-top: 1rem !important;
        margin-top: 0 !important;
    }
    
    .container.py-5.mt-5 h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .offcanvas {
        width: 85% !important;
    }
    
    .offcanvas-header {
        border-bottom: 1px solid #dee2e6;
        padding: 1rem 1.5rem;
    }
    
    .offcanvas-body {
        padding: 1.5rem;
    }
    
    .offcanvas-body .form-check {
        margin-bottom: 0.75rem;
    }
    
    .offcanvas-body .form-check-label {
        font-size: 0.9rem;
    }
    
    .offcanvas-body .form-control {
        font-size: 0.9rem;
    }
    
    .offcanvas-body .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Product Grid Mobile Improvements */
@media (max-width: 767.98px) {
    .product-card .card-body {
        padding: 0.75rem;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .product-card .card-text {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .product-card .btn-sm {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .product-card img {
        height: 150px;
        object-fit: cover;
    }
}

/* Filter Button Mobile Styling */
@media (max-width: 991.98px) {
    .btn-outline-dark {
        border-color: var(--primary-blue);
        color: var(--primary-blue);
        font-weight: 500;
    }
    
    .btn-outline-dark:hover {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
        color: white;
    }
}

/* Mobile Category Menu Styles */
.mobile-category-menu {
    padding: 1rem 0;
    background: #fff;
}

.mobile-category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-category-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-category-item-wrapper {
    flex-shrink: 0;
    width: 80px;
}

.mobile-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 70px;
    justify-content: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-category-item:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    border-color: var(--primary-blue);
}

.mobile-category-item .category-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.mobile-category-item:hover .category-icon {
    color: white;
    transform: scale(1.1);
}

.mobile-category-item .category-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.view-all-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px dashed #dee2e6 !important;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%) !important;
    border-color: var(--primary-blue) !important;
}

/* Modal Category Items */
.modal-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 100px;
    justify-content: center;
}

.modal-category-item:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.modal-category-item .category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.modal-category-item:hover .category-icon {
    color: white;
    transform: scale(1.1);
}

.modal-category-item .category-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

/* Mobile Category Menu Responsive */
@media (max-width: 575.98px) {
    .mobile-category-item {
        padding: 0.75rem 0.25rem;
        min-height: 70px;
    }
    
    .mobile-category-item .category-icon {
        font-size: 1.25rem;
    }
    
    .mobile-category-item .category-name {
        font-size: 0.75rem;
    }
}

/* Mobile Sidebar Styles */
.offcanvas-start {
    width: 300px !important;
}

.mobile-menu {
    padding: 0;
}

.mobile-user-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6;
}

.mobile-nav {
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

.mobile-nav-link .badge {
    margin-left: auto;
}

/* Mobile Sidebar Animation */
.offcanvas-start {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.offcanvas-start.show {
    transform: translateX(0);
}

/* Mobile Hamburger Button Styling */
.navbar-toggler {
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: #f8f9fa;
    border-color: var(--primary-blue);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Mobile Cart Button */
.mobile-cart-btn {
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: auto;
    width: auto;
}

.mobile-cart-btn .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* Mobile Layout Adjustments */
@media (max-width: 991.98px) {
    .navbar .container {
        flex-direction: column;
        padding: 0.75rem 1rem;
    }
    
    .navbar .d-flex.align-items-center.w-100.d-lg-none {
        display: flex !important;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand {
        margin-bottom: 0;
        font-size: 1.4rem;
        font-weight: 700;
    }
    
    .search-bar-container.d-block.d-lg-none {
        width: 100%;
        margin-top: 0;
        padding: 0;
    }
    
    .navbar-toggler {
        margin-right: 0.75rem;
        border: 1px solid #dee2e6;
        padding: 0.375rem 0.75rem;
        border-radius: 6px;
    }
    
    .navbar-toggler:hover {
        background: #f8f9fa;
        border-color: var(--primary-blue);
    }
}

/* Mobile Sidebar Responsive */
@media (max-width: 575.98px) {
    .offcanvas-start {
        width: 280px !important;
    }
    
    .mobile-nav-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .mobile-user-info {
        padding: 0.75rem !important;
    }
    
    .mobile-user-info h6 {
        font-size: 0.95rem;
    }
    
    .mobile-user-info small {
        font-size: 0.8rem;
    }
}

/* some css of ai */

