:root {
    --primary: #1a1a1a;
    --secondary: #2d2d2d;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --border: #404040;
    --success: #00a650;
}

div {
    word-break: break-all;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--primary);
    color: var(--text);
    min-height: 100vh;
}

.footer {
    margin-top: auto;
}

/* top */
#top {
    background-color: var(--secondary);
    padding: 17px 2px 3px 0;
    margin: 0 0 20px 0;
    min-height: 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
}

.logo span {
    color: #0066cc;
}

.logo:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.logo span:hover {
    color: #0066cc;
}

.logo:focus-within {
    color: #FFFFFF;
    text-decoration: none;
}

.logo span:focus-within {
    color: #0066cc;
}

#search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

#search input {
    width: 300px;
    padding: 10px 15px;
    background-color: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 14px;
}

#search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0066CC;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    background-color: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 14px;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0066CC;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

#goodsButton {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#goodsButton:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.action-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
}

#cart-btn:hover {
    color: white;
}

#wishlist-btn:hover {
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #404040;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Footer */
footer {
    background-color: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.filter-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text);
}

.col-sm-3 a {
    color: var(--text);
}

.col-sm-3 a:hover {
    color: var(--text);
    text-decoration: none;
}

.col-sm-3 h5 {
    color: var(--text);
}

.container p {
    text-decoration: none;
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group input, .input-group select, .input-group .dropdown-menu, .input-group .popover {
    font-size: 12px;
}

/* Gradent to all drop down menus */
.dropdown-menu li > a:hover {
    text-decoration: none;
    color: #ffffff;
    background-color: #229ac8;
    background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
    background-repeat: repeat-x;
}

#top-links .dropdown-menu a {
    text-shadow: none;
}

#top-links .dropdown-menu a:hover {
    color: #FFF;
}

#cart .dropdown-menu {
    background: var(--secondary);
    z-index: 1001;
    min-width: 100%;
    overflow-y: auto;
    max-height: 800px;
    scrollbar-width: thin;
    overflow-x: hidden;
}

.dropdown {
    color: var(--secondary);
}

@media (max-width: 478px) {
    #cart .dropdown-menu {
        width: 100%;
    }
}

#cart .dropdown-menu table {
    margin-bottom: 10px;
    background-color: var(--secondary);
}

#cart .dropdown-menu li > div {
    min-width: 427px;
    padding: 0 10px;
}

@media (max-width: 478px) {
    #cart .dropdown-menu li > div {
        min-width: 100%;
    }
}

#cart .dropdown-menu li p {
    margin: 20px 0;
}

#menu .dropdown-menu {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    #menu .dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 767px) {
    #menu {
        border-radius: 4px;
    }

    #menu div.dropdown-inner > ul.list-unstyled {
        display: block;
    }

    #menu div.dropdown-menu {
        margin-left: 0 !important;
        padding-bottom: 10px;
        background-color: rgba(0, 0, 0, 0.1);
    }

    #menu .dropdown-inner {
        display: block;
    }

    #menu .dropdown-inner a {
        width: 100%;
        color: #fff;
    }

    #menu .dropdown-menu a:hover,
    #menu .dropdown-menu ul li a:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    #menu .see-all {
        margin-top: 0;
        border: none;
        border-radius: 0;
        color: #fff;
    }
}

.btn-danger {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #da4f49;
    background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
    background-repeat: repeat-x;
    border-color: #bd362f #bd362f #802420;
}

.btn-danger:hover, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] {
    box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}

.btn-xs {
    font-size: 9px;
    background-color: #404040;
}

.btn-group > .btn-xs {
    font-size: 9px;
    color: #404040;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--secondary);
}

.cart-header h2 {
    color: #FFFFFF;
    padding-bottom: 17px;
    text-align: center;
}

#cart td {
    color: #FFFFFF;
}

#cart td a {
    color: #FFFFFF;
    text-decoration: none;
}

.breadcrumb > li > a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.category-card {
    background-color: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.category-info {
    padding: 10px;
    height: 125px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    overflow-wrap: break-word;
}

.category-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-image {
    height: 160px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

.product-card {
    background-color: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/*.product-info {*/
/*    padding: 10px;*/
/*    height: 100px;*/
/*    background-color: #333;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    color: var(--text);*/
/*}*/

.product-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    padding-top: 10px;
}

.product-compatibility {
    font-size: 12px;
    color: var(--text-secondary);
}

.action-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hidden-element {
    display: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-thumb {
    padding-bottom: 40px;
}

.panel {
    background-color: var(--secondary);
}

#content > ul > li > a{
    color: #FFFFFF;
}

.table-responsive a {
    color: #FFFFFF;
}