:root {
    --rimuru-blue: #3AA8F6;
    --rimuru-dark-blue: #1E3A8A;
    --rimuru-light-blue: #A5D8FF;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --text-light: #333;
    --text-dark: #f0f0f0;
    --card-bg: #fff;
    --card-dark: #2d2d2d;
    --border-color: #e0e0e0;
    --border-dark: #444;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-dark);
}

/* Shop Page Styles */
.shop-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.shop-title {
    font-family: 'Righteous', cursive;
    font-size: 2.5rem;
    color: var(--rimuru-dark-blue);
    margin: 0;
}

body.dark-mode .shop-title {
    color: var(--rimuru-blue);
}

/* Hero Banner */
.shop-hero {
    background:
    url('/asset/Banner\ Market.png');
    background-size: cover;
    background-position: center top;
    height: 300px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    padding: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .shop-hero > .add-to-cart {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        bottom: 0.8rem;
        right: 0.8rem;
    }
}

.shop-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.shop-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.promo-badge {
    background-color: #ff4757;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

/* Product Categories */
.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-filter {
    background: none;
    border: 1px solid var(--rimuru-blue);
    color: var(--rimuru-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-filter.active {
    background-color: var(--rimuru-blue);
    color: white;
}

.category-filter:hover:not(.active) {
    background-color: rgba(58, 168, 246, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

body.dark-mode .product-card {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4757;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--rimuru-blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
    flex-grow: 1;
}

body.dark-mode .product-title {
    color: var(--text-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.8rem;
    color: #666;
}

body.dark-mode .rating-count {
    color: #aaa;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rimuru-blue);
}

.original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #666;
}

body.dark-mode .original-price {
    color: #aaa;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.add-to-cart {
    background-color: var(--rimuru-blue);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background-color: var(--rimuru-dark-blue);
}

.wishlist-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .wishlist-btn {
    border-color: var(--border-dark);
    color: #aaa;
}

.wishlist-btn:hover, .wishlist-btn.active {
    color: #ff4757;
    border-color: #ff4757;
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--rimuru-dark-blue);
    position: relative;
    padding-bottom: 0.5rem;
}

body.dark-mode .section-title {
    color: var(--rimuru-blue);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--rimuru-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav .nav-list {
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--rimuru-dark-blue);
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .shop-hero {
        height: 250px;
    }
    
    .shop-hero h2 {
        font-size: 2rem;
    }
    
    .shop-hero p {
        font-size: 1rem;
    }
    
    .category-filters {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .shop-hero {
        height: 200px;
        padding: 1rem;
    }
    
    .shop-hero h2 {
        font-size: 1.5rem;
    }
    
    .promo-badge {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart {
        width: 100%;
    }
    
    .wishlist-btn {
        width: 100%;
    }

}

@media (max-width: 480px) {
    .branding {
        gap: 0.5rem;
    }
    
    .site-logo {
        height: 40px;
    }
    
    .utility-nav .login-btn span {
        display: none;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .shop-container {
        padding: 0 1rem;
    }
    
    .shop-hero h2 {
        font-size: 1.3rem;
    }
    
    .category-filter {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
