:root {
    --accent-color: #005ABB;
    --accent-dark: #000000;
    --primary-color: #000000;
    --text-dark: #000000;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --border-color: rgba(0, 90, 187, 0.2);
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 90, 187, 0.1), 0 2px 4px -1px rgba(0, 90, 187, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category Page Specific Styles */
.category-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 30px 0 20px;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,50 1000,100 0,100"/></svg>');
    background-size: cover;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    position: relative;
    color: #ffffff;
}

.category-description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    font-weight: 300;
    color: #ffffff;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    padding: 5px 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: white;
}

/* Browse Categories Section - Minimal Padding */
.browse-categories-section {
    margin: 5px 0 15px 0;
    padding: 0;
}

.browse-categories-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.browse-categories-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.browse-categories-title i {
    color: var(--accent-color);
}

.browse-categories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 5px 15px 5px;
    scrollbar-width: thin;
}

.browse-categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.browse-categories-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.browse-categories-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.browse-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 100px;
    transition: var(--transition);
}

.browse-category-item:hover {
    transform: translateY(-3px);
}

.browse-category-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 90, 187, 0.1);
}

.browse-category-item:hover .browse-category-circle {
    border-color: #ffffff;
    background: #ffffff;
    transform: scale(1.05);
}

.browse-category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.browse-category-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browse-category-item:hover .browse-category-name {
    color: var(--accent-color);
}

/* Products Grid - 5 columns on desktop, 2 columns on mobile */
.products-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.product-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    position: relative;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #ffffff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    padding: 15px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    color: var(--text-dark);
}

.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.original-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 500;
}

.rating {
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.buy-now-btn {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 90, 187, 0.2);
}

.buy-now-btn:hover {
    background: white;
    color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 90, 187, 0.3);
}

/* Section Headers */
.section-header {
    margin-bottom: 20px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 30px 0;
    grid-column: 1 / -1;
}

.no-products-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-products h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-products p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid-5 {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .products-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .category-title {
        font-size: 2.2rem;
    }
    
    .product-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .products-grid-5 {
        grid-template-columns: repeat(2, 1fr); /* Double products on mobile */
        gap: 15px;
    }
    
    .category-header {
        padding: 25px 0 15px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 0.9rem;
        height: 36px;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .browse-category-circle {
        width: 70px;
        height: 70px;
    }
    
    .browse-category-name {
        font-size: 0.8rem;
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .products-grid-5 {
        grid-template-columns: repeat(2, 1fr); /* Double products on mobile */
        gap: 12px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .category-description {
        font-size: 0.95rem;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 0.85rem;
        height: 34px;
    }
    
    .current-price {
        font-size: 0.95rem;
    }
    
    .buy-now-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .browse-categories-container {
        padding: 12px;
    }
    
    .browse-category-circle {
        width: 60px;
        height: 60px;
    }
    
    .browse-category-name {
        font-size: 0.75rem;
        max-width: 70px;
    }
}

@media (max-width: 400px) {
    .products-grid-5 {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 15px;
    }
}