/* Custom CSS for ShopEasy E-commerce */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;

}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;


}

/*Layout.css*/

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}



/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #4a00e0);
    padding: 4rem 0;
}

.hero-image {
    width:75%;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

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

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

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--success-color);
}

.product-price-danger {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--danger-color);
}

.original-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
}

.quantity-input {
    width: 60px;
    text-align: center;
}

/* Filter Styles */
.filter-section {
    background: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Product Details */
.product-gallery img {
    border-radius: 8px;
    cursor: pointer;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

/* Review Stars */
.rating-stars {
    color: var(--warning-color);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading-spinner.active {
    display: block;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Badges */
.stock-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Button Styles */
.btn-add-to-cart {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

    .btn-add-to-cart:disabled {
        background: linear-gradient(135deg, rgb(220, 53, 69), rgb(220, 53, 69));
        color: white;
    }

/* View Toggle */
.view-toggle .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* List View for Products */
.list-view .product-card {
    flex-direction: row;
    text-align: left;
}

.list-view .product-image {
    width: 200px;
    height: 150px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

.custom-toast {
    background: white;
    border-left: 4px solid var(--success-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Search and Filter Styles */
.search-container {
    position: relative;
}

.search-loading {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Results count */
.results-count {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Quick filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-chip {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #dee2e6;
}

.filter-chip.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Price range labels */
.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
}


.dashboard-item:hover {

    transform:translateY(-10px);

}

