.navbar {
    background-color: #1a1a1a;
    /* Dark mode background */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    width: 100%;
}

.navbar .navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar .nav-link {
    color: #eaeaea;
    /* Light text for dark mode */
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #ff6500;
}

.dropdown-menu {
    background-color: #222;
    float: right;
    left: auto;
    /* Dark mode dropdown */
    border-radius: 8px;
    padding: 1rem;
    width: auto;
    /* Adjust width dynamically */
    max-width: 300px;
    /* Optional max width */
    word-wrap: break-word;
}

li {
    list-style-type: none;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #333;
    color: #ff6500;
    cursor: pointer;
}

.dropdown-menu .dropdown-item i {
    font-size: 1.8rem;
    color: #ff6500;
}

.dropdown-menu .dropdown-item .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    max-width: 200px;
    word-break: break-word;
}

.dropdown-menu .dropdown-item .dropdown-content .title {
    font-weight: bold;
    font-size: 1rem;
    color: #eaeaea;
    word-break: break-word;
    white-space: normal;
    line-height: 0.7rem;
}

.dropdown-menu .dropdown-item .dropdown-content .description {
    font-size: 0.8rem;
    color: #bbb;
    word-break: break-word;
    white-space: normal;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.cart-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #ff6500;
    border: none;
    border-radius: 5px;
    color: #1a1a1a;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cart-btn:hover {
    background-color: #e55b00;
    color: #fff;
}

.cart-btn .badge {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.logo-img {
    height: 40px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar {
    background-color: #222;
    color: #ccc;
    padding: 0.5rem 0;
}

.topbar a {
    color: #ff6500;
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-dropdown {
    background-color: #1a1a1a;
    border-radius: 8px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    margin-top: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.cart-dropdown-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cart-dropdown-item:hover {
    background-color: #333;
}

.cart-dropdown-item i {
    font-size: 1.8rem;
    color: #ff6500;
}

.cart-dropdown-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-dropdown-divider {
    border-top: 1px solid #444;
}

.cart-dropdown .btn-warning {
    background-color: #ff6500;
    border: none;
}

.cart-dropdown .btn-warning:hover {
    background-color: #e55b00;
}

.text-light-primary {
    color: #eaeaea;
}

.text-light-secondary {
    color: #bbb;
}

:root {
    --background-dark: #1a1a1a;
    --background-hover: #333;
    --divider-color: #444;
    --text-primary: #fff;
    --text-secondary: #bbb;
    --text-success: #28a745;
    --text-danger: #dc3545;
    --hover-danger: #ff0000;
    --btn-border: #ff6500;
    --btn-bg-hover: #ff6500;
    --btn-text-hover: #fff;
}

.cart-dropdown {
    background-color: var(--background-dark);
    border-radius: 8px;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    margin-top: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.cart-dropdown-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.75rem;
    transition: background-color 0.3s ease;
}

.cart-dropdown-item:hover {
    background-color: var(--background-hover);
}

.cart-dropdown-divider {
    border-top: 1px solid var(--divider-color);
    margin: 0.5rem 0;
}

.cart-dropdown-item .text-light-primary {
    font-size: 1rem;
    color: var(--text-primary);
}

.cart-dropdown-item .text-light-secondary {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cart-dropdown-item .text-success {
    color: var(--text-success);
    font-weight: bold;
}

.cart-dropdown-item .remove-item {
    background: none;
    border: none;
    color: var(--text-danger);
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-dropdown-item .remove-item i {
    font-size: 1rem;

}

.cart-dropdown-item .remove-item:hover {
    color: var(--hover-danger);
}

.cart-view-btn {
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid var(--btn-border);
    color: var(--btn-border);
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cart-view-btn:hover {
    background-color: var(--btn-bg-hover);
    color: var(--btn-text-hover);
}

@media (max-width: 768px) {
    .cart-dropdown-item .remove-item {
        display: block;
    }
}

#cartItemCount {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    aspect-ratio: 1;
    transform: translate(50%, -50%);
    z-index: 1;
}




/* FOOTER */


.footer {
    background-color: #1a1a1a !important;
    color: #eaeaea !important;
    padding: 2rem 0 !important;
}

.footer h5 {
    color: #ff6500;
}

.footer a {
    color: #eaeaea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff6500;
}

.footer .list-inline {
    padding-left: 0;
    list-style: none;
}

.footer .list-inline-item {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.footer p {
    font-size: 0.9rem;
}
