/* E-commerce Portal Custom Styles */

/* Variables matching pumpsalesdirect.co.uk theme */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

/* Header and Navigation */
.portal-header {
    background: #fff;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    display: none;
    z-index: 1000;
}

.nav-item:hover .mega-menu {
    display: block;
}

/* Product Cards */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-featured {
    background: var(--secondary-color);
    color: #fff;
}

.badge-new {
    background: var(--success-color);
    color: #fff;
}

.badge-sale {
    background: var(--danger-color);
    color: #fff;
}

/* Product Price */
.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 18px;
    margin-right: 10px;
}

.product-discount {
    background: var(--danger-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
}

/* Stock Status */
.stock-status {
    font-size: 14px;
    font-weight: 500;
}

.stock-in {
    color: var(--success-color);
}

.stock-low {
    color: var(--warning-color);
}

.stock-out {
    color: var(--danger-color);
}

/* Shopping Cart Widget */
.cart-widget {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-cart {
    position: absolute;
    right: 0;
    top: 100%;
    width: 350px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    display: none;
    z-index: 1001;
}

.cart-widget:hover .mini-cart {
    display: block;
}

/* Filters Sidebar */
.filters-sidebar {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
}

/* Product Finder */
.product-finder {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
}

/* Breadcrumb */
.breadcrumb-portal {
    background: transparent;
    padding: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mega-menu {
        position: static;
        padding: 10px;
    }

    .mini-cart {
        width: 280px;
    }
}
