:root {
    --amazon-orange: #ff9900;
    --amazon-dark-blue: #232f3e;
    --amazon-light-blue: #37475a;
    --amazon-accent: #007185;
    --warning-red: #b12704;
    --success-green: #067d62;
    --neutral-gray: #565959;
    --light-gray: #eaeded;
    --white: #ffffff;
}
#trendingContainer::-webkit-scrollbar {
    display: none;
}

/* Navigation - Amazon-inspired header */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--amazon-dark-blue) !important;
    letter-spacing: -0.5px;
    text-transform: none;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

.navbar {
    background-color: var(--amazon-dark-blue) !important;
    border-bottom: 3px solid var(--amazon-orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar .navbar-brand {
    color: var(--white) !important;
}

.navbar .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 1rem !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.navbar .nav-link:hover {
    background-color: var(--amazon-light-blue);
    color: var(--amazon-orange) !important;
}
/* Hero Section - More commanding */
.hero-section {
    background: linear-gradient(135deg, var(--amazon-dark-blue) 0%, var(--amazon-light-blue) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 10px 10px;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Search Bar - Amazon style */
.search-bar-header {
    border-radius: 4px;
    border: 2px solid var(--amazon-orange);
    padding: 8px 12px;
    font-size: 0.9rem;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.search-bar-header:focus {
    border-color: var(--amazon-accent);
    box-shadow: 0 0 5px rgba(0, 113, 133, 0.3);
    outline: none;
}

/* Category Cards - Smaller, more compact */
.category-card {
    transition: all 0.2s ease;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--amazon-orange);
}

.category-icon {
    font-size: 2rem;
    color: var(--amazon-accent);
    margin-bottom: 8px;
}

.category-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--amazon-dark-blue);
    margin: 0;
    text-align: center;
}

/* Product Cards - Compact Amazon style */
.product-card {
    transition: all 0.2s ease;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 280px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-color: var(--amazon-orange);
}

.product-image {
    height: 140px;
    width: 100%;
    object-fit: cover;
    background: #f8f9fa;
    border-bottom: 1px solid var(--light-gray);
}

.product-card .card-body {
    padding: 0.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--amazon-dark-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pricing - Amazon style */
.price-tag {
    color: var(--warning-red);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--neutral-gray);
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

/* Buttons - Amazon inspired */
.btn-primary {
    background-color: var(--amazon-orange);
    border-color: var(--amazon-orange);
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    text-transform: none;
}

.btn-primary:hover {
    background-color: #e88900;
    border-color: #e88900;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--amazon-accent);
    border-color: var(--amazon-accent);
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    text-transform: none;
}

.btn-outline-primary:hover {
    background-color: var(--amazon-accent);
    color: white;
    transform: translateY(-1px);
}

/* Add to Cart - Commanding style */
.btn-cart {
    background-color: var(--amazon-orange);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-cart:hover {
    background-color: #e88900;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
/* Scroll Buttons */
.scroll-btn {
     background-color: var(--amazon-orange);
     border: none;
     color: white;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     box-shadow: 0 4px 12px rgba(0,0,0,0.15);
     transition: all 0.2s ease;
     z-index: 10;
}

.scroll-btn:hover {
     background-color: #e88900;
     transform: scale(1.1);
     color: white;
}
.welcome-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--white)
    white-space: nowrap;
    }

/* Welcome Section Styles */
.welcome-section {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.profile-picture {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff9900;
}


/* Search Container Styles */
.search-container-header {
    position: relative;
    min-width: 300px;
}

.search-form-header {
    position: relative;
}

.search-bar-header:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 0, 0.25);
}

.search-btn-header:hover {
    background-color: #e68900 !important;
}

/* Search Suggestions Styles */
.search-suggestions-header {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    margin-top: 2px;
}

.suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.suggestion-image-placeholder {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.suggestion-details {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
    color: #333;
}

.suggestion-info {
    font-size: 12px;
    color: #666;
}

.suggestion-price {
    font-weight: 600;
    color: #ff9900;
    font-size: 14px;
}

.loading, .no-suggestions {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 14px;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 2px;
}
 /* Amazon-style breadcrumb - consistent with site theme */
  .amazon-breadcrumb {
    background: var(--light-gray);
    padding: 10px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--light-gray);
  }

  .amazon-breadcrumb a {
    color: var(--amazon-accent);
    text-decoration: none;
  }

  .amazon-breadcrumb a:hover {
    color: var(--amazon-orange);
    text-decoration: underline;
  }



/* Mobile Responsive */
@media (max-width: 991px) {
    .search-container {
        min-width: 250px;
        margin: 10px 0;
    }

    .navbar-collapse .d-flex {
        margin-top: 10px;
    }

    .welcome-section {
        margin: 10px 0;
        justify-content: center;
    }

    .welcome-text {
        font-size: 13px;
    }

    .profile-picture {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .search-container {
        min-width: 100%;
    }

    .search-suggestions {
        left: 15px;
        right: 15px;
    }

    .welcome-section {
        order: -1;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .welcome-text {
        font-size: 12px;
    }

    .profile-picture {
        width: 28px;
        height: 28px;
    }
}


/* Footer - Amazon dark theme */
.footer {
    background-color: var(--amazon-dark-blue);
    color: white;
    padding: 30px 0;
    border-top: 3px solid var(--amazon-orange);
}

.footer h6 {
    color: var(--amazon-orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer a {
    color: #cccccc;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--amazon-orange);
}

/* Stats Section - More authoritative */
.stats-section {
    background: linear-gradient(45deg, #f8f9fa, var(--light-gray));
    padding: 40px 0;
    border-top: 2px solid var(--amazon-orange);
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--amazon-accent);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sale Badge - Amazon style */
.badge-sale {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--warning-red);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Choice Badge - "Amazon's Choice" style */
.badge-choice {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--amazon-orange);
    color: var(--amazon-dark-blue);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Ratings - Amazon style stars */
.rating {
    color: var(--amazon-orange);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: var(--amazon-accent);
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

.current-price {
        color: var(--warning-red);
        font-weight: 700;
        font-size: 1.1rem;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        height: 250px;
    }

    .product-image {
        height: 120px;
    }

    .category-card {
        height: 100px;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }
}

// Add CSS animations
const style = document.createElement('style');
style.textContent = `
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }

    @keyframes bounce {
        0%, 20%, 53%, 80%, 100% {
            transform: translate3d(0,0,0);
        }
        40%, 43% {
            transform: translate3d(0,-8px,0);
        }
        70% {
            transform: translate3d(0,-4px,0);
        }
        90% {
            transform: translate3d(0,-2px,0);
        }
    }

    .animate-bounce {
        animation: bounce 0.6s ease-in-out;
    }

    .animate-cart-bounce {
        animation: bounce 0.6s ease-in-out;
        color: #28a745 !important;
    }

    .custom-toast {
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.95) !important;
    }

    .custom-toast.alert-success {
        border-left: 4px solid #28a745;
    }

    .custom-toast.alert-danger {
        border-left: 4px solid #dc3545;
    }