:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #A0522D;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.navbar-brand {
    font-weight: bold;
}

.feature-icon {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.cart-item {
    transition: background-color 0.3s ease;
}

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

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
}

/* Navbar cart icon styling */
.navbar .nav-link.position-relative {
    transition: all 0.3s ease;
}

.navbar .nav-link.position-relative:hover {
    color: #ffc107 !important;
    transform: scale(1.1);
}

/* Badge positioning adjustment */
.navbar .badge {
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .navbar .d-flex.align-items-center {
        order: 2;
    }
    
    .navbar-brand {
        order: 1;
        flex-grow: 1;
    }
    
    .navbar-collapse {
        order: 3;
    }
    
    /* Adjust cart icon size on mobile */
    .navbar .fa-shopping-cart {
        font-size: 1.2rem;
    }
}

/* Desktop styling */
@media (min-width: 992px) {
    /* Hide track order in main nav for desktop - show in dropdown instead */
    .navbar .d-lg-none {
        display: none !important;
    }
    
    /* Add track order to user dropdown for logged out users */
    .navbar-nav .nav-item:not(.d-lg-none) {
        display: block !important;
    }
}

/* Product Type Styles */
.product-type-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    color: white;
    border: 1px solid;
}

.type-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: white;
    border: 1px solid;
}

/* Color Picker Styles */
.form-control-color {
    width: 3rem;
    height: calc(3.5rem + 2px);
}

/* Product Categories Navigation */
.product-categories-nav {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.nav-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: fit-content;
}

.category-item:hover {
    color: var(--type-color, #8B4513);
    border-color: var(--type-color, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-item.active {
    background: var(--type-color, #8B4513);
    color: white;
    border-color: var(--type-color, #8B4513);
}

/* Marketplace Styles */
.marketplace-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: white !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.marketplace-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: white !important;
    text-decoration: none;
}

.marketplace-btn {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.marketplace-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: white !important;
    opacity: 0.9;
}

.marketplace-links {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.marketplace-badges {
    font-size: 0.8rem;
}

/* Specific marketplace colors */
.shopee-marketplace {
    background-color: #EE4D2D !important;
    border-color: #EE4D2D !important;
}

.tokopedia-marketplace {
    background-color: #42B549 !important;
    border-color: #42B549 !important;
}

.blibli-marketplace {
    background-color: #0095DA !important;
    border-color: #0095DA !important;
}

.lazada-marketplace {
    background-color: #0F146C !important;
    border-color: #0F146C !important;
}

.bukalapak-marketplace {
    background-color: #E31E52 !important;
    border-color: #E31E52 !important;
}

/* Responsive marketplace links */
@media (max-width: 768px) {
    .marketplace-links .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .marketplace-links .btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .marketplace-badges .d-flex {
        flex-wrap: wrap;
    }
}

/* Product card marketplace section */
.product-card .marketplace-badges {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}