* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: rgb(39, 44, 56);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: grey;
    transition: color 0.3s ease;
}

a:hover {
    color: white;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo h1 {
    position: relative;
    left: 10px;
    font-size: 1.8rem;
    color: #2c3e50;
}





header {
    background-color: rgb(31, 35, 45);
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 10px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}


.search-bar form {
    display:flex;
    flex: 1;
    max-width: 100%;
    gap: 4px;
}

.search-bar input {
    padding: 8px 12px;
    background-color: rgb(39, 44, 56);
    border: 1px solid rgb(39, 44, 56);
    color: grey;
    border-radius: 4px;
}

.search-bar button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    color: rgb(31, 35, 45);
    background-color: rgb(39, 44, 56);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-bar button:hover {
    border: 2px solid rgb(39, 44, 56);
}

nav ul {
    list-style: none;
    display: flex;  
    gap: 20px;
    align-items: center;
}

.pdrop {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgb(31, 35, 45);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 150px;
    z-index: 1001;
    list-style: none;
}


.dropdown-menu li a{
    display: block;
    padding: 8px 16px;
}
.dropdown-menu li:hover {
    background-color: rgb(39, 44, 56);
}

.pdrop:hover .dropdown-menu {
    display: block;
}


/* MAIN */

main {
    padding: 80px 0 40px;
}

.section-title {
    justify-content: space-between;
    align-items: baseline;
    margin: 30px 0 15px;
}

.section-title h2 {
    font-family: sans-serif;
    font-weight: 600;
    color: #f0f0f0;
    letter-spacing: 0.5px;
}


.trending-cards {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin: 30px 0 15px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 15px;
}
.card-bg {
    background: rgb(39, 44, 56);
    border-radius: 0;
    padding: 12px;
    min-width: 150px;
    max-width: 160px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.card-bg .cover img {
    width: 100%;
    height: auto;
    display: block;
}

.card-bg:hover {
    transform: translateY(-4px);
    cursor: pointer;
}

.card-bg .title{
    color: grey;
    font-size: 0.7rem;
    font-family:Helvetica, Arial, sans-serif;
}
.card-bg .title::before {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.card-bg.in-stock .title::before {
    background-color: green;
}

.card-bg.almost-soldout .title::before {
    background-color: orange;
}
.card-bg.sold-out .title::before {
    background-color: darkred;
}


.card-bg.in-stock .title:hover {
    color: green;
}
.card-bg.almost-soldout .title:hover {
    color: orange;
}
.card-bg.sold-out .title:hover {
    color: darkred;
}
/*Overpass,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;*/
.card-bg .rating {
    color: #6c8cff;
    font-weight: 600;
}

.card-bg .meta span{
    color: grey;
    font-size: 0.7rem;
}