.carousel-item img {
    height: 400px;
    object-fit: cover;
}

.category-box {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.category-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-text {
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-products {
    padding: 40px 0;
    background-color: #f8f9fa;
}

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

footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    z-index: 1; 
}

.carousel-caption {
    z-index: 2; 
}

.product-details {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-container {
            padding: 30px 0;
            min-height: 600px;
}

.dashboard-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.dashboard-sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.dashboard-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.dashboard-sidebar .nav-link:hover:not(.active) {
    background-color: #e9ecef;
}

.dashboard-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.stats-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.stats-box h3 {
    font-size: 24px;
    margin-bottom: 0;
}

.recent-order {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.recent-order:last-child {
    border-bottom: none;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.btn-update {
    margin-top: 10px;
}

.address-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-container {
    padding: 50px 0;
    min-height: 85vh;
}

.cart-header {
    margin-bottom: 30px;
}

.cart-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cart-item img {
    max-width: 100px;
    height: auto;
}

.item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-quantity {
    width: 80px;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: bold;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.item-quantity{
    width: 100px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

.address-selection {
    margin-bottom: 20px;
}

.address-option {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
}

.address-option:hover {
    background-color: #f8f9fa;
}

.address-option.selected {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.address-option input[type="radio"] {
    margin-right: 10px;
}

.address-primary {
    font-weight: bold;
    color: #0d6efd;
}

.item-checkbox {
    transform: scale(1.2);
    margin-right: 10px;
}

.select-all-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.catalog-container {
    padding: 30px 0;
}

.catalog-header {
    margin-bottom: 30px;
}

.product-card {
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

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

.product-img {
    height: 200px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.sorting-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pagination {
    margin-top: 30px;
    justify-content: center;
}

.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.btn-login {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-bg {
    background-color: #f8f9fa;
    min-height: 80vh;
    padding: 20px;
}

.catalog-container {
    padding: 30px 0;
}

.catalog-header {
    margin-bottom: 30px;
}

.filter-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 80px;
}

.product-card {
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

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

.product-img {
    height: 200px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.sorting-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-options button {
    padding: 5px 10px;
}

.pagination {
    margin-top: 30px;
    justify-content: center;
}

.product-details {
    padding: 40px 0;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.back-button {
    margin-bottom: 20px;
}

.history-container {
    padding: 30px 0;
    min-height: 80vh;
}

.dashboard-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.dashboard-sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.dashboard-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.dashboard-sidebar .nav-link:hover:not(.active) {
    background-color: #e9ecef;
}

.history-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.history-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.order-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.order-body {
    padding: 15px;
}

.order-items {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.order-item {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
}

.item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.item-quantity .input-group {
    width: 120px;
}

.item-quantity .form-control {
    text-align: center;
}

.item-price {
    font-weight: bold;
}

.order-total {
    font-weight: bold;
    color: #198754;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    display: none;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media(max-width: 650px){
    html{
        overflow-x: hidden;
    }
}

.add-item-btn {
    margin-top: 15px;
}

.product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

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

.product-card.selected {
    border: 2px solid #0d6efd;
    background-color: #f8f9fa;
}

.product-img {
    height: 150px;
    object-fit: contain;
    padding: 10px;
}

.modal-footer .btn {
    min-width: 100px;
}

#productsLoading {
    text-align: center;
    padding: 20px;
}

#productsError {
    color: #dc3545;
    text-align: center;
    padding: 20px;
}

/* Address change modal styles */
.address-change-btn {
    margin-top: 5px;
}

.address-option {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.address-option:hover {
    background-color: #f8f9fa;
}

.address-option.selected {
    background-color: #e7f1ff;
    border-color: #86b7fe;
}

.address-option input[type="radio"] {
    margin-right: 10px;
}

.address-option .address-text {
    display: inline-block;
    vertical-align: middle;
}

.primary-badge {
    background-color: #0d6efd;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 5px;
}

.register-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.register-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.btn-register {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
}

.register-footer {
    text-align: center;
    margin-top: 20px;
}

.register-bg {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

.error-message {
    color: red;
    margin-top: 5px;
}

.success-message {
    color: green;
    margin-top: 5px;
}