:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gold: #fbbf24;
    --blue: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 0;
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.gold { color: var(--gold); }
.blue { color: var(--blue); }

.navigation {
    flex: 1;
    margin: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    margin: 0 8px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-column h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.dropdown-column a:hover {
    color: var(--primary);
}

.search-bar {
    flex: 0 1 400px;
    margin: 0 20px;
    position: relative;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-container input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-input-container input:focus {
    border-color: var(--primary);
}

.voice-search {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    padding: 5px;
    transition: color 0.3s ease;
}

.btn-icon:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 500px;
    z-index: 5;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.banner-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    z-index: 15;
    position: relative;
}

.banner-nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.7rem;
    gap: 4px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

/* Featured Shops */
.featured-shops {
    padding: 50px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.shop-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
}

.shop-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 200px;
}

.shop-banner {
    height: 100%;
}

.shop-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-info {
    padding: 20px;
}

.shop-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.shop-categories {
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    background: var(--gray-light);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.visit-shop-btn {
    margin-top: 10px;
}

/* Hot Deals */
.hot-deals {
    padding: 50px 0;
    background: var(--light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.original-price {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
}

.product-vendor {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    gap: 10px;
}

.contact-seller {
    flex: 1;
    text-align: center;
}

/* Categories */
.categories {
    padding: 50px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    height: 150px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 20px;
    color: #9ca3af;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #374151;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Chatbot */
.chatbot-trigger {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.chatbot-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.bot-message p {
    background: var(--gray-light);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--gray-light);
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-light);
    border-radius: 25px;
    outline: none;
}

.chatbot-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.checkbox input {
    margin: 0;
}

.form-options a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.social-login {
    text-align: center;
    margin: 20px 0;
}

.social-login p {
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-social.facebook:hover {
    background: #1877f2;
    color: white;
}

.btn-social.google:hover {
    background: #db4437;
    color: white;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}

/* Shop Page Styles */
.shop-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.shop-info-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.shop-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-details h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.shop-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.products-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation {
        margin: 10px 0;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-bar {
        margin: 10px 0;
        width: 100%;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .banner-nav {
        top: 46%;
        padding: 0 15px;
    }
    
    .banner-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .chatbot-window {
        width: 90%;
        right: 5%;
    }
    
    /* Shop page mobile styles */
    .shop-header {
        padding: 30px 0;
    }
    
    .shop-info-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .shop-details h1 {
        font-size: 2rem;
    }
    
    .shop-stats {
        justify-content: center;
    }
    
    .products-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .hero-banner {
        height: 250px;
    }
    
    .banner-content {
        left: 5%;
        max-width: 90%;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .banner-nav {
        top: 45%;
        padding: 0 10px;
    }
    
    .banner-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    /* Shop page mobile styles */
    .shop-details h1 {
        font-size: 1.8rem;
    }
    
    .shop-logo {
        width: 100px;
        height: 100px;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .header {
        display: none;
    }
    
    .mobile-top-search {
        display: flex;
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .navigation {
        display: block;
    }
    
    /* Ensure banner navigation buttons are clickable on mobile */
    .banner-nav-btn {
        z-index: 20;
        pointer-events: auto;
    }
}

@media (min-width: 769px) {
    .mobile-top-search,
    .mobile-actions,
    .mobile-bottom-nav {
        display: none;
    }
    
    .navigation {
        display: block;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Remove banner text elements */
.banner-content p {
    display: none !important;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    /* Reduce navigation link size and spacing */
    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 3px 5px;
        gap: 3px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        flex-wrap: nowrap;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-menu li {
        flex-shrink: 0;
        margin: 0 2px;
    }
    
    .nav-menu a {
        font-size: 0.55rem;
        padding: 4px 6px;
        gap: 1px;
        white-space: nowrap;
        color: white;
        text-shadow: 
            0 0 3px rgba(255, 255, 255, 0.8),
            0 0 6px rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(3px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        animation: neonGlow 2s ease-in-out infinite alternate;
        min-width: auto;
    }
    
    .nav-menu a i {
        font-size: 0.5rem;
        margin-right: 1px;
    }
    
    /* Reposition navigation below banner buttons */
    .navigation {
        position: absolute;
        bottom: 20px;
        left: 0;
        width: 100%;
        z-index: 10;
        background: transparent;
        padding: 2px 0;
    }
    
    /* Adjust banner content positioning */
    .banner-content {
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 95%;
        padding-bottom: 40px;
    }
    
    .banner-content h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .banner-content .btn-primary {
        margin: 5px;
        font-size: 0.75rem;
        padding: 6px 14px;
        z-index: 10;
        position: relative;
    }
    
    /* Ensure banner text paragraphs are hidden */
    .banner-slide p {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Further reduce sizes for very small screens */
    .nav-menu a {
        font-size: 0.5rem;
        padding: 3px 5px;
    }
    
    .navigation {
        bottom: 15px;
    }
    
    .banner-content {
        padding-bottom: 35px;
    }
    
    .banner-content h2 {
        font-size: 1.1rem;
    }
    
    .banner-content .btn-primary {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}

@media (max-width: 360px) {
    /* Smallest screen adjustments */
    .nav-menu a {
        font-size: 0.45rem;
        padding: 2px 4px;
    }
    
    .nav-menu a i {
        display: none;
    }
    
    .navigation {
        bottom: 12px;
        padding: 1px 0;
    }
    
    .banner-content {
        padding-bottom: 30px;
    }
    
    .banner-content h2 {
        font-size: 1rem;
    }
}

/* Ensure banner paragraphs are hidden on all screen sizes */
.banner-slide p {
    display: none;
}

.banner-content p {
    display: none;
}

/* Mobile-specific banner text hiding */
@media (max-width: 768px) {
    .banner-slide .banner-content p {
        display: none !important;
        height: 0;
        margin: 0;
        padding: 0;
        visibility: hidden;
    }
    
    /* Adjust banner height to account for removed text */
    .hero-banner {
        height: 220px;
    }
}

/* Fix navigation layout for very long category names */
.nav-menu {
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

/* Improve dropdown positioning for mobile */
@media (max-width: 768px) {
    .dropdown-content {
        max-width: 280px;
        width: 95%;
    }
    
    .dropdown-column h4 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .dropdown-column a {
        font-size: 0.7rem;
        padding: 6px 0;
    }
}
/* Shop page specific styles */
.shop-info-bar {
    display: none; /* Remove the stats bar */
}

/* Mobile shop images layout */
@media (max-width: 768px) {
    .shop-images {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        height: 120px;
    }
    
    .shop-banner {
        height: 100%;
    }
    
    .shop-banner img {
        height: 100%;
        object-fit: cover;
    }
}

/* Shop navigation improvements */
.shop-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
    background: white;
}

.shop-nav-menu::-webkit-scrollbar {
    display: none;
}

.shop-nav-menu li {
    flex-shrink: 0;
    position: relative;
}

.shop-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shop-nav-menu a.active,
.shop-nav-menu a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Dropdown menu styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-column h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.dropdown-column a:hover {
    color: var(--primary);
}

/* Animation for notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Shop page specific styles */
.shop-info-bar {
    display: none; /* Remove the stats bar */
}

/* Mobile shop images layout */
@media (max-width: 768px) {
    .shop-images {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        height: 120px;
    }
    
    .shop-banner {
        height: 100%;
    }
    
    .shop-banner img {
        height: 100%;
        object-fit: cover;
    }
    
    /* Double column layout for all images on mobile */
    .products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px;
    }
    
    .product-card {
        margin-bottom: 0;
    }
    
    .product-image {
        height: 150px;
    }
}

/* Shop navigation improvements */
.shop-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
    background: white;
}

.shop-nav-menu::-webkit-scrollbar {
    display: none;
}

.shop-nav-menu li {
    flex-shrink: 0;
    position: relative;
}

.shop-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shop-nav-menu a.active,
.shop-nav-menu a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Mobile-specific navigation styles */
/* Mobile-specific navigation styles */
@media (max-width: 768px) {
    .shop-nav-menu {
        display: flex;
        justify-content: flex-start;
        padding: 1px 2px; /* Minimal container padding */
        gap: 0; /* No gap between items */
        margin: 0; /* Remove margin */
    }
    
    .shop-nav-menu li {
        margin: 0; /* Remove margin from list items */
        padding: 0; /* Remove padding from list items */
    }
    
    .shop-nav-menu a {
        padding: 4px 6px; /* Minimal padding */
        font-size: 0.6rem; /* Small text */
        margin: 0; /* No margin */
        border: none; /* Remove borders if any */
        white-space: nowrap;
    }
    
    /* Reduce chevron icon size */
    .shop-nav-menu a i {
        font-size: 0.5rem;
        margin-left: 1px;
    }
    
    /* Compress the entire navigation container */
    .shop-navigation .container {
        padding: 0 2px; /* Minimal container padding */
        max-width: 100%; /* Allow full width usage */
    }
    
    /* Remove any minimum width constraints */
    .shop-nav-menu li {
        flex-shrink: 1;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .shop-nav-menu {
        padding: 0 1px;
    }
    
    .shop-nav-menu a {
        padding: 3px 4px; /* Even smaller padding */
        font-size: 0.5rem; /* Smaller text */
    }
    
    .shop-nav-menu a i {
        font-size: 0.45rem;
    }
    
    .shop-navigation .container {
        padding: 0 1px;
    }
}

@media (max-width: 360px) {
    .shop-nav-menu a {
        padding: 2px 3px; /* Minimal padding */
        font-size: 0.45rem; /* Very small text */
    }
    
    .shop-nav-menu {
        padding: 0;
    }
    
    .shop-nav-menu a i {
        font-size: 0.4rem;
        display: none; /* Hide chevron to save space */
    }
    
    .shop-navigation .container {
        padding: 0;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .shop-nav-menu a {
        padding: 1px 2px;
        font-size: 0.4rem; /* Smallest readable size */
    }
}

/* Ultra small screens (like iPhone 5/SE) */
@media (max-width: 280px) {
    .shop-nav-menu a {
        padding: 1px;
        font-size: 0.35rem; /* Ultra small but still readable */
    }
    
    /* Hide the word "Collection" from longer links if needed */
    .shop-nav-menu a[href*="collection"] {
        font-size: 0.3rem;
    }
}

/* Nuclear option - transform text to uppercase abbreviations if still not fitting */
@media (max-width: 240px) {
    .shop-nav-menu a {
        font-size: 0.3rem;
        padding: 0 1px;
        text-transform: uppercase; /* Makes text more compact */
        letter-spacing: -0.5px; /* Reduce letter spacing */
    }
    
    /* Abbreviate longer words */
    .shop-nav-menu a:contains("Collection")::after {
        content: "Coll.";
    }
}
/* Dropdown menu styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-column h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.dropdown-column a:hover {
    color: var(--primary);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown-content {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
        z-index: 2000;
        background: white;
        border-radius: 10px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        border: 2px solid var(--primary);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .dropdown-column h4 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .dropdown-column a {
        font-size: 0.7rem;
        padding: 6px 0;
    }
}

/* Animation for notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Ensure all product images use double column on mobile */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
/* Subcategory Image Icons Styles */
.subcategory-image-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.dropdown-column a:hover .subcategory-image-icon {
    border-color: var(--primary);
}

.dropdown-column a {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

/* Mobile responsive adjustments for subcategory icons */
@media (max-width: 768px) {
    .subcategory-image-icon {
        width: 25px;
        height: 25px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .subcategory-image-icon {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }
}

@media (max-width: 360px) {
    .subcategory-image-icon {
        width: 18px;
        height: 18px;
        margin-right: 3px;
    }
}
/* Add these styles to your existing styles.css file */

/* FIX FOR ISSUE 1: Hide main portal header on shop pages in desktop view */
body.shop-page .header,
.shop-sway-collection .header {
    display: none !important;
}

/* FIX FOR ISSUE 2: Ensure dropdowns appear above all content */
.dropdown-content {
    z-index: 10000 !important; /* Very high z-index to ensure it appears above everything */
    position: absolute;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px;
}

/* Ensure product cards and other elements have lower z-index */
.product-card {
    position: relative;
    z-index: 1;
}

/* Additional z-index fixes for other potential conflicts */
.shop-hero {
    position: relative;
    z-index: 1;
}

.shop-navigation {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Make sure announcement bar doesn't interfere */
.announcement-bar {
    z-index: 101;
}
/* FIX FOR DROPDOWN Z-INDEX ISSUES IN SHOP PAGES */

/* Ensure the shop navigation has proper z-index context */
.shop-navigation {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

/* Fix for dropdown content z-index issues */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 15px;
    z-index: 1100 !important; /* Higher than navigation */
    border: 1px solid var(--gray-light);
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

/* Ensure all other elements have lower z-index */
.shop-hero {
    position: relative;
    z-index: 1;
}

.products-grid {
    position: relative;
    z-index: 1;
}

.product-card {
    position: relative;
    z-index: 1;
}

/* Fix for any parent containers that might be creating new stacking contexts */
.container {
    position: relative;
    z-index: auto;
}

.main-content {
    position: relative;
    z-index: 1;
}

/* Specific fix for shop page dropdowns */
.shop-nav-menu .dropdown-content {
    z-index: 1100 !important;
}

/* Ensure no other elements interfere */
.announcement-bar {
    z-index: 1001;
}

.header {
    z-index: 1002;
}

/* Remove any transform properties that might create new stacking contexts */
.dropdown-content {
    transform: none !important;
}

/* Fix for mobile dropdowns */
@media (max-width: 768px) {
    .dropdown-content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90%;
        max-width: 300px;
        z-index: 2000 !important; /* Even higher for mobile */
    }
}
/* Hot Deals Section Styles */
.hot-deals-section {
    scroll-margin-top: 100px;
}

.product-card .visit-shop-hotdeal {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8rem;
    text-decoration: none;
    display: block;
}

/* Product Highlight Animation */
@keyframes highlightPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0.3);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        transform: scale(1);
    }
}

.product-card.highlighted {
    animation: highlightPulse 2s ease-in-out;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f59e0b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

/* Shop Info in Product Card */
.product-shop {
    margin: 8px 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.shop-name {
    font-weight: 500;
}

/* Smooth scrolling for all anchor links */
html {
    scroll-behavior: smooth;
}

/* Mobile dropdown improvements */
@media (max-width: 768px) {
    .dropdown-content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90%;
        max-width: 300px;
        z-index: 2000;
        background: white;
        border-radius: 10px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        border: 2px solid var(--primary);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
    }
}
/* Loading State for Shops */
.loading-shops {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.loading-shops i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Ensure shop cards display properly */
.shop-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
}

.shop-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 200px;
}

.shop-banner {
    height: 100%;
}

.shop-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-info {
    padding: 20px;
}

.shop-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.shop-categories {
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    background: var(--gray-light);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    margin-right: 5px;
    margin-bottom: 5px;
}
/* Shop Source Badges */
.shop-source-badge {
    margin-bottom: 10px;
}

.source-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.source-badge.original {
    background: #f59e0b;
    color: white;
}

.source-badge.firebase {
    background: #10b981;
    color: white;
}

/* Loading and No Shops States */
.loading-shops {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.loading-shops i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.no-shops {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-shops i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gray-light);
}
/* Shop Images - Uniform Sizing */
.shop-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 200px; /* Fixed height for all shop images */
    overflow: hidden; /* Prevent images from overflowing */
    border-radius: 10px 10px 0 0; /* Match the card border radius */
}

.shop-banner {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.shop-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures images fill the container without distortion */
    object-position: center; /* Center the image focus */
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-banner img {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

/* Shop Info - Better spacing */
.shop-info {
    padding: 20px;
    min-height: 180px; /* Ensure consistent height for info section */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shop-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.3;
    min-height: 2.6em; /* Ensure title takes consistent space */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-categories {
    margin-bottom: 15px;
    min-height: 30px; /* Consistent space for categories */
}

.category-tag {
    display: inline-block;
    background: var(--gray-light);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.visit-shop-btn {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start; /* Align button to start */
}

/* Source Badges - Make them smaller */
.shop-source-badge {
    margin-bottom: 8px;
}

.source-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
}

.source-badge.original {
    background: #f59e0b;
    color: white;
}

.source-badge.firebase {
    background: #10b981;
    color: white;
}

/* Ensure shop cards have consistent height */
.shop-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all cards equal height */
}

.shop-card:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shop-images {
        height: 150px; /* Slightly smaller on mobile */
    }
    
    .shop-info {
        padding: 15px;
        min-height: 160px;
    }
    
    .shop-info h3 {
        font-size: 1.1rem;
        min-height: 2.4em;
    }
}

@media (max-width: 480px) {
    .shop-images {
        height: 120px; /* Even smaller on very small screens */
    }
    
    .shop-info {
        padding: 12px;
        min-height: 150px;
    }
    
    .shop-info h3 {
        font-size: 1rem;
        min-height: 2.2em;
    }
}
/* Fix login button text to always show "Login" */
/* Removed empty ruleset for #loginBtnDesktop and #mobileLoginBtn */

/* Mobile search bar container adjustments */
@media (max-width: 768px) {
    .mobile-top-search {
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    
    .mobile-search-input {
        flex: 1;
        min-width: 0; /* Allow flex shrinking */
    }
    
    .mobile-search-input input {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
        min-width: 120px; /* Ensure minimum width */
    }
    
    .mobile-search-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
    
    .mobile-login-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
        flex-shrink: 0; /* Prevent button from shrinking */
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .mobile-top-search {
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    
    .mobile-search-input input {
        padding: 5px 8px !important;
        font-size: 0.8rem !important;
        min-width: 100px;
    }
    
    .mobile-search-btn {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
    }
    
    .mobile-login-btn {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
}

/* Extra small screen optimization */
@media (max-width: 360px) {
    .mobile-top-search {
        padding: 5px 8px !important;
        gap: 5px !important;
    }
    
    .mobile-search-input input {
        padding: 4px 6px !important;
        font-size: 0.75rem !important;
        min-width: 80px;
    }
    
    .mobile-search-btn {
        padding: 4px 6px !important;
        font-size: 0.65rem !important;
    }
    
    .mobile-login-btn {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
    }
    
    /* Hide search icon text on very small screens if needed */
    .mobile-search-btn i {
        margin-right: 2px;
    }
    
    .mobile-search-btn span {
        display: none; /* Hide "Search" text, keep only icon */
    }
}
/* Mobile Account Dropdown Styles */
.account-dropdown-mobile {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Ensure mobile buttons are properly sized for touch */
.mobile-login-btn, .mobile-nav-item {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile dropdown button styles */
#accountDropdownMobile button {
    min-height: 50px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

#accountDropdownMobile button:active {
    background-color: #f3f4f6;
}

/* Mobile overlay */
#mobileDropdownOverlay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .mobile-top-search .mobile-login-btn {
        min-width: 70px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }
    
    /* Ensure mobile account dropdown is above everything */
    .account-dropdown-mobile {
        z-index: 10001 !important;
    }
    
    #mobileDropdownOverlay {
        z-index: 10000 !important;
    }
}
/* Add these new styles to your existing CSS file */

/* Category Products Section */
.category-products {
    padding: 40px 0;
    background: var(--light);
}

.category-products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.category-products .section-title {
    color: var(--dark);
    margin: 0;
}

#backToCategories {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

#backToCategories:hover {
    background: var(--primary);
    color: white;
}

/* Product Buttons */
.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.contact-seller-btn,
.visit-shop-btn,
.visit-shop-hotdeal {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.contact-seller-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.contact-seller-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.visit-shop-btn,
.visit-shop-hotdeal {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.visit-shop-btn:hover,
.visit-shop-hotdeal:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* Loading States */
.loading-products,
.loading-shops {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.loading-products i,
.loading-shops i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.loading-products p,
.loading-shops p {
    margin: 0;
    font-size: 1.1rem;
}

/* No Products/Shops States */
.no-products,
.no-shops,
.error-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-products i,
.no-shops i,
.error-loading i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gray-light);
}

.no-products h3,
.no-shops h3,
.error-loading h3 {
    margin: 0 0 10px 0;
    color: var(--dark);
}

.no-products p,
.no-shops p,
.error-loading p {
    margin: 0;
    font-size: 1rem;
}

/* Product Meta Info */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--gray);
}

.product-category,
.product-shop {
    background: var(--light);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Hot Badge */
.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-products {
        padding: 20px 0;
    }
    
    .category-products .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .contact-seller-btn,
    .visit-shop-btn,
    .visit-shop-hotdeal {
        min-width: auto;
        width: 100%;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Animation for smooth transitions */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Category Cards Animation */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.success i {
    color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.error i {
    color: #ef4444;
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification.info i {
    color: #3b82f6;
}

.notification i {
    font-size: 1.2rem;
}

.notification span {
    color: #1f2937;
    font-weight: 500;
}

@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Dropdown Improvements */
.dropdown-content {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Account Dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dropdown-item:hover {
    color: var(--primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Mobile Dropdown Fix */
@media (max-width: 768px) {
    .dropdown-content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90%;
        max-width: 300px;
        z-index: 2000;
        background: white;
        border-radius: 10px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        border: 2px solid var(--primary);
        max-height: 70vh;
        overflow-y: auto;
        padding: 20px;
    }
    
    .dropdown-column h4 {
        color: var(--primary-dark);
        font-weight: 600;
        margin-bottom: 15px;
        font-size: 1rem;
    }
    
    .dropdown-column a {
        color: var(--dark);
        font-weight: 500;
        padding: 10px 0;
        border-bottom: 1px solid var(--gray-light);
        text-decoration: none;
        display: block;
        font-size: 0.9rem;
    }
    
    .dropdown-column a:last-child {
        border-bottom: none;
    }
    
    .dropdown-column a:hover {
        color: var(--primary);
        background: rgba(59, 130, 246, 0.1);
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
    }
}
/* Category Products Section */
.category-products {
    padding: 50px 0;
    background: var(--light);
}

.category-products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.category-products .section-title {
    color: var(--dark);
    margin: 0;
}

#backToCategories {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

#backToCategories:hover {
    background: var(--primary);
    color: white;
}

/* Loading, No Products, and Error States */
.loading-products, .no-products, .error-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-products i, .no-products i, .error-loading i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.loading-products i {
    color: var(--primary);
}

.no-products i, .error-loading i {
    color: var(--gray-light);
}

.loading-products h3, .no-products h3, .error-loading h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.5rem;
}

.loading-products p, .no-products p, .error-loading p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1rem;
}

.no-products .btn-primary, .error-loading .btn-primary {
    margin-top: 15px;
}

/* Product Shop Info */
.product-shop-info {
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.8rem;
    border-left: 3px solid var(--primary);
}

.shop-name, .shop-owner {
    margin: 5px 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-name i, .shop-owner i {
    color: var(--primary);
    width: 16px;
}

/* Product Actions Full Width */
.product-actions-full {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.contact-seller-btn, .visit-shop-btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-seller-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
}

.contact-seller-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.visit-shop-btn {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.visit-shop-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* Product Description */
.product-description {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Product Cards for Category View */
.category-products .product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-products .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-products .product-card:hover .product-image img {
    transform: scale(1.05);
}

.category-products .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-products .product-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.category-products .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.category-products .current-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.category-products .original-price {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
}

/* Responsive Design for Category Products */
@media (max-width: 768px) {
    .category-products {
        padding: 30px 0;
    }
    
    .category-products .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .product-actions-full {
        flex-direction: column;
    }
    
    .category-products .product-image {
        height: 180px;
    }
    
    .category-products .product-info {
        padding: 15px;
    }
    
    #backToCategories {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .category-products {
        padding: 20px 0;
    }
    
    .category-products .product-image {
        height: 160px;
    }
    
    .product-shop-info {
        padding: 10px;
        font-size: 0.75rem;
    }
    
    .contact-seller-btn, .visit-shop-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .loading-products, .no-products, .error-loading {
        padding: 40px 15px;
    }
    
    .loading-products h3, .no-products h3, .error-loading h3 {
        font-size: 1.3rem;
    }
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-products .products-grid {
    animation: fadeInUp 0.5s ease;
}

/* Ensure proper grid layout for category products */
.category-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .category-products .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .category-products .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
/* Add this to your existing CSS to enhance the banner buttons */
.shop-now-btn, .explore-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-now-btn:hover, .explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.shop-now-btn::after, .explore-btn::after {
    content: '🔥';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-now-btn:hover::after, .explore-btn:hover::after {
    opacity: 1;
}