:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    transition: all 0.3s ease;
    background-color: #f5f7fa;
}

body.cart-open,
body.profile-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Payment Success Notification Animation */
@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.payment-success-notification {
    animation: slideInScale 0.5s ease-out;
}

.payment-success-notification button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.payment-success-notification #downloadInvoiceBtn:hover {
    background: #f8f9fa !important;
    color: #27ae60 !important;
}

.payment-success-notification #continueShoppingBtn:hover {
    background: white !important;
    color: #27ae60 !important;
}

/* Product Card Enhancements */
.product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

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

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

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.wishlist-icon:hover {
    background: white;
    transform: scale(1.1);
}

.wishlist-icon.active {
    background: var(--secondary-color);
    color: white;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

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

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.rating-stars {
    color: #ffc107;
    font-size: 1rem;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Form Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.map-container {
    margin-top: 2rem;
}

.embedded-map {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.map-link,
.directions-link {
    display: inline-block;
    margin: 0.5rem 1rem 0.5rem 0;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.map-link:hover,
.directions-link:hover {
    background: var(--secondary-color);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Analytics Section Styles */
.analytics-section {
    background: #2c3e50;
    color: white;
    padding: 4rem 0;
}

.analytics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.analytics-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.analytics-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.analytics-stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.analytics-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

#monthlyAnalyticsChart {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#analyticsChart {
    width: 100%;
    height: 300px;
    border: 1px solid #eee;
    border-radius: 5px;
}

#pagePopularityList {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-popularity {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid var(--accent-color);
}

.page-name {
    font-weight: 500;
    color: var(--primary-color);
}

.page-views {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Order Status Styles */
.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Order Details Modal Styles */
.order-item {
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.order-info-section h3,
.shipping-address-section h3,
.order-items-section h3,
.order-summary-section h3 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

/* Address Card Styles */
.address-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.address-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.address-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.address-card button {
    margin-right: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-card button:first-of-type {
    background: var(--primary-color);
    color: white;
}

.address-card button:last-of-type {
    background: var(--secondary-color);
    color: white;
}

.address-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .analytics-cards {
        grid-template-columns: 1fr;
    }

    .product-image img {
        height: 200px;
    }

    .order-item {
        flex-direction: column;
        text-align: center;
    }

    .order-item img {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

body.cart-open {
    overflow: hidden;
}

body.cart-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

body.profile-open {
    overflow: hidden;
}

body.profile-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Make sure to reset these when sidebars are closed */
body:not(.cart-open):not(.profile-open) {
    overflow: auto;
    position: static;
    width: auto;
    height: auto;
    margin: 0;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    border-radius: 4px;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.login-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 500;
}

.login-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.user-profile {
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
    position: relative;
}

.user-profile:hover .profile-dropdown {
    display: block;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 0.5rem 0;
}

.profile-dropdown a {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.2s;
}

.profile-dropdown a:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
    padding-left: 1.2rem;
}

.profile-dropdown .divider {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    background-color: var(--light-color);
    color: var(--accent-color);
    padding-left: 1.2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.auth-container {
    display: flex;
}

.auth-form {
    flex: 1;
    padding: 2rem;
}

.auth-form h3 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.form-submit {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    font-weight: 500;
}

.form-submit:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-switch {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.form-switch a {
    color: var(--secondary-color);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.auth-divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
    color: #666;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: -1;
}

.auth-divider span {
    background-color: white;
    padding: 0 1rem;
}

.error-message {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1483985988355-763728e1935b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #d5dbdb;
}

.categories {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid #eee;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.products {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2px;
    padding: 20px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid #eee;
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

.current-price {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

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

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

.stars {
    color: #f1c40f;
}

.rating-count {
    color: #777;
    font-size: 0.85rem;
}

/* Enhanced Add to Cart Button Styling */
.add-to-cart,
.add-to-cart-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53, #e74c3c);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    width: 100%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 2px solid transparent;
    font-family: 'Arial', sans-serif;
    backdrop-filter: blur(10px);
}

/* Cart Icon with Enhanced Animation */
.add-to-cart::before,
.add-to-cart-btn::before {
    content: '🛒';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Enhanced Shimmer Effect */
.add-to-cart::after,
.add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50px;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(25deg);
    transition: all 0.8s ease;
}

/* Enhanced Hover Effects */
.add-to-cart:hover,
.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #ff8e53, #ff6b6b, #e74c3c, #c0392b);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    filter: brightness(110%) saturate(120%);
}

.add-to-cart:hover::before,
.add-to-cart-btn:hover::before {
    transform: translateY(-50%) scale(1.3) rotate(15deg);
    animation: cartWiggle 0.6s ease-in-out;
}

.add-to-cart:hover::after,
.add-to-cart-btn:hover::after {
    left: 120%;
}

/* Active State */
.add-to-cart:active,
.add-to-cart-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
    transition: all 0.1s ease;
}

/* Enhanced Click Animation */
.add-to-cart.clicked,
.add-to-cart-btn.clicked {
    animation: cartBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBounce {
    0% {
        transform: scale(1) rotate(0deg);
    }

    20% {
        transform: scale(0.9) rotate(-3deg);
    }

    40% {
        transform: scale(1.15) rotate(3deg);
    }

    60% {
        transform: scale(1.05) rotate(-1deg);
    }

    80% {
        transform: scale(1.02) rotate(0.5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes cartWiggle {

    0%,
    100% {
        transform: translateY(-50%) scale(1.3) rotate(15deg);
    }

    25% {
        transform: translateY(-50%) scale(1.3) rotate(8deg);
    }

    75% {
        transform: translateY(-50%) scale(1.3) rotate(22deg);
    }
}

/* Enhanced Text Animation */
.add-to-cart span,
.add-to-cart-btn span {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-left: 35px;
    /* Space for icon */
}

.add-to-cart:hover span,
.add-to-cart-btn:hover span {
    transform: translateX(10px);
}

/* Loading State */
.add-to-cart.loading,
.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.8;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.add-to-cart.loading::before,
.add-to-cart-btn.loading::before {
    content: '⏳';
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Success State */
.add-to-cart.success,
.add-to-cart-btn.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71, #16a085);
    animation: successPulse 0.8s ease;
}

.add-to-cart.success::before,
.add-to-cart-btn.success::before {
    content: '✓';
    color: #fff;
    font-weight: bold;
    animation: none;
    font-size: 1.6rem;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
    }

    50% {
        box-shadow: 0 12px 30px rgba(39, 174, 96, 0.7);
    }

    100% {
        box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
    }
}

/* Pulse Effect on Hover */
.add-to-cart:hover,
.add-to-cart-btn:hover {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.7);
    }

    50% {
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.9), 0 0 0 10px rgba(255, 107, 107, 0.1);
    }

    100% {
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.7);
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    .add-to-cart,
    .add-to-cart-btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        letter-spacing: 0.6px;
    }

    .add-to-cart::before,
    .add-to-cart-btn::before {
        left: 16px;
        font-size: 1.2rem;
    }

    .add-to-cart span,
    .add-to-cart-btn span {
        padding-left: 30px;
    }
}

/* Focus State for Accessibility */
.add-to-cart:focus,
.add-to-cart-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.4);
}

/* Disabled State */
.add-to-cart:disabled,
.add-to-cart-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-to-cart:disabled:hover,
.add-to-cart-btn:disabled:hover {
    transform: none;
    animation: none;
}

/* Additional Visual Enhancements */
.add-to-cart,
.add-to-cart-btn {
    /* Add subtle text shadow for better readability */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

    /* Add subtle inner shadow for depth */
    box-shadow:
        0 8px 20px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Ripple effect on click */
.add-to-cart,
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
}

.add-to-cart::after,
.add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart.clicked::after,
.add-to-cart-btn.clicked::after {
    width: 300px;
    height: 300px;
}

/* Improved gradient on hover */
.add-to-cart:hover,
.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #ff8e53, #ff6b6b, #e74c3c, #c0392b);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, buttonPulse 2s infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 10;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .product-image {
        height: 180px;
    }
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-top: 0;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Cart Notification Styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
    display: flex;
    align-items: center;
}

.cart-notification::before {
    content: "✓";
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.cart-header h3 {
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-price .original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #ddd;
}

.quantity-input {
    width: 40px;
    text-align: center;
    margin: 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.2rem;
}

.remove-item {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: color 0.2s;
}

.remove-item:hover {
    color: #2980b9;
    text-decoration: underline;
}

.cart-total {
    padding: 1rem;
    border-top: 1px solid #eee;
    font-weight: bold;
    text-align: right;
    font-size: 1.1rem;
}

.checkout-btn {
    display: block;
    width: calc(100% - 2rem);
    padding: 1rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin: 1rem;
    transition: all 0.3s;
    font-weight: 500;
}

.checkout-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Profile Sidebar Styles */
.profile-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.profile-sidebar.open {
    left: 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.profile-header h3 {
    margin: 0;
}

.close-profile {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-profile:hover {
    transform: rotate(90deg);
}

.profile-content {
    padding: 1.5rem;
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--secondary-color);
}

.user-name {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.user-email {
    color: #666;
    margin-bottom: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.profile-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.profile-menu a:hover {
    background-color: var(--light-color);
    padding-left: 1.2rem;
    color: var(--secondary-color);
}

.profile-menu a.active {
    background-color: var(--secondary-color);
    color: white;
}

.profile-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dashboard Content Styles */
.dashboard-content {
    display: none;
    padding: 2rem;
    position: fixed;
    top: 0;
    left: 350px;
    width: calc(100% - 350px);
    height: 100vh;
    background-color: white;
    overflow-y: auto;
    z-index: 999;
}

.dashboard-content.active {
    display: block;
}

.dashboard-section-title {
    color: var(--primary-color);
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.order-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.order-history th,
.order-history td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.order-history th {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.order-history tr:hover {
    background-color: #f9f9f9;
}

.order-status {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-completed {
    background-color: #d5f5e3;
    color: var(--success-color);
}

.status-pending {
    background-color: #fef9e7;
    color: var(--warning-color);
}

.status-cancelled {
    background-color: #fadbd8;
    color: var(--accent-color);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-col {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.save-btn {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.save-btn:hover {
    background-color: #219653;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Size Selector */
.size-selector {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.size-option {
    border: 1px solid #ddd;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option:hover {
    border-color: var(--secondary-color);
}

.size-option.selected {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Success Message */
.success-msg {
    color: var(--success-color);
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #e8f5e9;
    border-radius: 4px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-divider {
        margin: 0;
        padding: 1rem 0;
    }

    .auth-divider::before {
        left: 2rem;
        right: 2rem;
    }

    .cart-sidebar,
    .profile-sidebar {
        width: 100%;
        max-width: 350px;
    }

    .dashboard-content {
        width: 100%;
        left: 100%;
    }

    body.cart-open {
        margin-right: 100%;
    }

    body.profile-open {
        margin-left: 100%;
    }
}

body.dark-mode {
    background-color: #111;
    color: #eee;
}

#darkModeToggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #333;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

.carousel {
    margin: 2rem auto;
    text-align: center;
    background: #fce4ec;
    padding: 1rem;
    font-size: 1.5rem;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-section {
    position: relative;
    margin: 0 1rem;
}

#searchInput {
    padding: 10px 15px;
    width: 300px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.product-card {
    position: relative;
    display: inline-block;
    width: 200px;
    margin: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

.rating-stars {
    color: #f1c40f;
    margin: 0.5rem 0;
}

.fade-transition {
    transition: opacity 0.5s ease-in-out;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.filter-section {
    text-align: center;
    margin: 1rem auto;
}

@media screen and (max-width: 768px) {
    .product-card {
        width: 90%;
        margin: 1rem auto;
    }

    #searchInput {
        width: 90%;
    }

    .filter-section {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .carousel {
        font-size: 1.2rem;
    }
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestions-box div {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.suggestions-box div:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.suggestions-box div:last-child {
    border-bottom: none;
}

/* Universal popup styles */
.popup-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: popupSlideIn 0.5s, popupFadeOut 0.5s 2.5s forwards;
}

.popup-success {
    background-color: var(--success-color);
}

.popup-error {
    background-color: var(--secondary-color);
}

.popup-info {
    background-color: var(--accent-color);
}

@keyframes popupSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Thank You Page Styles */
.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.thank-you-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.thank-you-card h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.order-id {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.order-id span {
    font-weight: bold;
}

.order-summary {
    margin: 2rem 0;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.order-summary h3 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.item-name {
    flex: 2;
    text-align: left;
}

.item-quantity,
.item-price {
    flex: 1;
    text-align: right;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
}

.customer-support {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .thank-you-card {
        padding: 2rem 1.5rem;
    }

    .order-item {
        flex-direction: column;
        text-align: left;
    }

    .item-quantity,
    .item-price {
        text-align: left;
        margin-top: 0.3rem;
    }
}

/* Address Selection in Checkout */
.address-card.selected {
    border-color: var(--secondary-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.address-card:hover {
    border-color: var(--secondary-color);
}

.address-card input[type="radio"] {
    margin-right: 0.5rem;
}

/* Search Highlight */
.product-card.highlight {
    animation: highlight 2s;
}

@keyframes highlight {
    0% {
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.5);
    }

    100% {
        box-shadow: none;
    }
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chatbot {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    flex-direction: column;
    overflow: hidden;
    max-height: 500px;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    padding: 10px;
    height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.chatbot-input-area {
    display: flex;
    border-top: 1px solid #eee;
}

#chatbotInput {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 1rem;
}

#sendChatbotMessage {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
}

/* Chatbot Message Styles */
.chat-msg {
    margin-bottom: 15px;
    max-width: 80%;
}

.bot-msg {
    align-self: flex-start;
    background-color: #f0f0f0;
    border-radius: 15px 15px 15px 0;
    padding: 10px 15px;
    color: #333;
}

.user-msg {
    align-self: flex-end;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 15px 15px 0 15px;
    padding: 10px 15px;
}

.msg-sender {
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.msg-text {
    line-height: 1.4;
}

.typing-indicator {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Make chatbot input more visible */
#chatbotInput {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
    font-size: 1rem;
    border-top: 1px solid #eee;
}

#sendChatbotMessage {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#sendChatbotMessage:hover {
    background-color: #c0392b;
}

/* Quick Options Styles */
.quick-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.quick-option-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-option-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Make chatbot messages scrollable */
.chatbot-messages {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive quick options */
@media (max-width: 400px) {
    .quick-options {
        grid-template-columns: 1fr;
    }
}

/* Analytics Styles */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.analytics-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.analytics-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.analytics-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

/* Chart Styles */
#pagePopularityChart {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
    margin-top: 1rem;
}

/* Address Validation Error Styles */
.address-error {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    display: block;
}

/* Add to existing CSS */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;
    }

    .contact-info,
    .contact-form {
        flex: 1;
    }
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 250px;
}

/* Add to existing CSS */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
    }

    .contact-info,
    .contact-form {
        flex: 1;
    }
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* style.css */
.address-option {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

#shippingForm input {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px;
}

.map-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.embedded-map {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-link,
.directions-link {
    display: inline-block;
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    margin: 0.5rem 0.5rem 0 0;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.directions-link {
    background: var(--primary-color);
}

.map-link:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.directions-link:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Featured Products Category-wise Styles */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

/* Back Arrow Styles */
.back-arrow-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.back-arrow-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
}

.back-arrow-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.back-arrow-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-arrow-btn:hover i {
    transform: translateX(-3px);
}

.featured-categories {
    display: block;
}

.category-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.category-title i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.view-all-link {
    font-size: 1rem;
    color: var(--secondary-color);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* Enhanced Product Card Styles */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

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

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}

.wishlist-btn i.fas {
    color: var(--secondary-color);
}

.quick-view {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .quick-view {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1rem;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Product Detail Modal Styles */
.product-modal-content {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

.product-modal-image {
    position: relative;
}

.product-modal-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.product-modal-badges {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-modal-details h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-modal-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-modal-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-modal-price .current-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.product-modal-price .original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.product-modal-description,
.product-modal-features {
    margin-bottom: 1.5rem;
}

.product-modal-description h4,
.product-modal-features h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-modal-features ul {
    list-style: none;
    padding: 0;
}

.product-modal-features li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.product-modal-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.size-option {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover,
.size-option.selected {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: white;
}

.product-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.product-modal-actions .add-to-cart-btn {
    flex: 2;
}

.product-modal-actions .wishlist-btn {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-modal-actions .wishlist-btn:hover {
    background: var(--secondary-color);
    color: white;
}



/* Responsive Design */
@media (max-width: 768px) {
    .search-section {
        margin: 0.5rem 0;
        order: -1;
        width: 100%;
    }

    #searchInput {
        width: 100%;
        max-width: none;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .back-arrow-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .category-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .category-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-modal-image img {
        height: 300px;
    }

    .product-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #searchInput {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
        text-align: center;
    }

    /* Analytics responsive styles */
    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .analytics-stat {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .analytics-header h2 {
        font-size: 2rem;
    }
}

.map-link i,
.directions-link i {
    margin-right: 8px;
}

/* Responsive map */
@media (max-width: 768px) {

    .map-link,
    .directions-link {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }

    .embedded-map iframe {
        height: 200px;
    }
}

/* Payment Method Selection Styles */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: var(--secondary-color);
    background: #f8f9fa;
}

.payment-option.selected {
    border-color: var(--secondary-color);
    background: #fff5f5;
}

.payment-icon {
    font-size: 2rem;
    margin-right: 1rem;
    min-width: 60px;
    text-align: center;
}

.payment-details {
    flex: 1;
}

.payment-details h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.payment-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.payment-option input[type="radio"] {
    margin-left: auto;
    accent-color: var(--secondary-color);
    transform: scale(1.2);
}

.order-summary h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.order-summary p {
    margin: 0.25rem 0;
    color: #555;
}

/* ================= Enhanced Stylish Additions ================= */

/* Header Gradient */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Nav link underline animation */
nav ul li a {
    position: relative;
}
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}
nav ul li a:hover::after {
    width: 100%;
}

/* Search bar styling */
.search-section input {
    border-radius: 30px;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Hero Button Glow */
.hero .btn {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.hero .btn:hover {
    box-shadow: 0 0 20px var(--secondary-color), 0 0 40px var(--accent-color);
    transform: scale(1.05);
}

/* Category & Product Cards */
.category-card, .product-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s ease;
}
.category-card:hover, .product-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--accent-color);
}

/* Neon Buttons */
.btn, .login-btn, .checkout-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn:hover, .login-btn:hover, .checkout-btn:hover {
    box-shadow: 0 0 15px var(--secondary-color), 0 0 30px var(--accent-color);
    transform: translateY(-3px);
}

/* Sidebars Glass Effect */
.cart-sidebar, .profile-sidebar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
}

/* Footer Enhancement */
footer {
    border-top: 3px solid var(--secondary-color);
}
.footer-column ul li a {
    position: relative;
}
.footer-column ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}
.footer-column ul li a:hover::after {
    width: 100%;
}

/* Info Pages */
.info-page {
  display: none;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.info-page h1 { color: var(--primary-color); margin-bottom: 1rem; }
.back-btn { margin-bottom: 1rem; }

/* Homepage Site Analytics */
.site-analytics-home {
  background: #fff;
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.site-analytics-home h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.analytics-summary {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

.analytics-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-color);
}

.analytics-box i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}
