/* General Styling */
body {
    background-color: #f8f9fa; /* Light gray background, Amazon-like */
    font-family: 'Roboto', sans-serif;
    color: #131921; /* Amazon's dark text color */
}

/* Header */
.navbar {
    background-color: #fff !important;
    border-bottom: 1px solid #e7e7e7;
}
.navbar-brand img {
    max-height: 50px;
}
.nav-link {
    color: #131921 !important;
}
.nav-link:hover {
    color: #f90 !important; /* Amazon orange */
}
.btn-warning {
    background-color: #f90;
    border-color: #f90;
}
.btn-warning:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    border-right: 1px solid #e7e7e7;
    padding: 20px;
}
.list-group-item {
    border: none;
    padding: 10px 0;
}
.list-group-item a {
    color: #131921;
    text-decoration: none;
}
.list-group-item a:hover {
    color: #f90;
}

/* Product Card */
.product-card .card {
    border: none;
    transition: transform 0.2s;
}
.product-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card-img-top {
    object-fit: cover;
    height: 200px;
}
.card-title {
    font-size: 1.2rem;
    color: #131921;
}
.card-text {
    color: #131921;
}
.text-muted {
    color: #565959 !important; /* Amazon's muted text */
}
.rating {
    color: #f90;
}

/* Cart Table */
.table {
    background-color: #fff;
}
.table th, .table td {
    vertical-align: middle;
}
.table input[type="number"] {
    width: 60px;
}
.btn-danger {
    background-color: #d9534f;
    border-color: #d9534f;
}
.btn-danger:hover {
    background-color: #c9302c;
    border-color: #c9302c;
}

/* Chat Box */
.chat-box {
    border-radius: 10px;
    overflow: hidden;
}
.chat-header {
    background-color: #f90 !important;
}
.chat-messages .message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
}
.chat-messages .message.sent {
    background-color: #d4edda;
    margin-left: 20%;
    text-align: right;
}
.chat-messages .message.received {
    background-color: #e9ecef;
    margin-right: 20%;
}
.chat-input .form-control {
    border-radius: 20px;
}
.chat-input .btn {
    border-radius: 20px;
}

/* Checkout Form */
.form-control, .form-select, textarea.form-control {
    border-color: #e7e7e7;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
    border-color: #f90;
    box-shadow: 0 0 5px rgba(249, 144, 0, 0.5);
}

/* Footer */
footer {
    background-color: #131921 !important; /* Amazon dark blue/gray */
}
footer a:hover {
    color: #f90 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar form {
        width: 100% !important;
    }
    .sidebar {
        margin-bottom: 20px;
    }
    .chat-box {
        width: 100%;
        margin: 10px;
    }
    .table-responsive {
        overflow-x: auto;
    }
}