body {
    background-color: hsl(0, 0%, 90%);
    margin: 0;
}

#navigation {
    background-color: hsl(0, 0%, 95%);
    margin-bottom: 1px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-elements {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
    padding: 1rem;
    margin-top: 0;
    color: hsl(0, 0%, 15%);
}

.nav-elements a{
    text-decoration: none;
    color: black;
}

.nav-elements a:active{
    
    color: hsl(197, 64%, 40%);
}

.cart-search {
    display: flex;
    gap: 1rem;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: hsl(197, 64%, 40%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#messageOfDay {
    text-align: center;
    margin-top: 0;
    padding: 0;
}

#messageOfDay a {
    color: hsl(216, 100%, 36%);
    cursor: pointer;
}

#featuredProducts {
    padding: 1rem 3rem;
    background-color: white;
}

.featured-items {
    display: flex;
    list-style: none;
    height: auto;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.featured-items::-webkit-scrollbar {
    display: none;
}


.featured-wrapper{
    position: relative;
    display: flex;
    align-items: center;
}


.featured-items img {
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    transition: transform 0.3 ease, box-shadow 0.3s ease;
}


.featured-items img:hover {
    transform: translatey(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}


.featured-items p {
    margin-top: 5px;
    text-align: center;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.scroll-btn:hover {
    background: hsl(0, 0%, 95%);
    transform: translateY(-50%) scale(1.05);
}

.scroll-btn.left {
    left: -10px;
}

.scroll-btn.right {
    right: -10px;
}

#hero {
    background-image: url("img/other-img/hero-section.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    height: 75vh;
    margin: 50px 3rem;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    color: hsl(210, 20%, 98%);
    background: rgba(0, 0, 0, 0.45);
    padding: 30px 40px;
    border-radius: 3rem;
}

.hero-items p{
    margin-top: 0;
}

.hero-items button {
    border-radius: 20px;
    padding: 5px 15px;
}

.hero-items button:hover {
    background-color: hsl(0, 0%, 75%);
    transform: translateY(-2px);
    box-shadow: 2px 2px 2px;
}

#newRelease {
    background-image: url("img/9.png");
    background-size: cover;
    background-position: center;
    height: 50vh;
    margin: 4rem 1.5rem;
    border-radius: 45px;
    display: flex;
    justify-content: start;
    align-items: center;


}


.newReleaseContent {
    margin-left: 3rem;
    font-size: large;

}

.newReleaseContent button {
    border-radius: 20px;
    padding: 5px 15px;
}

.newReleaseContent button:hover {
    background-color: hsl(0, 0%, 75%);
    transform: translateY(-2px);
    box-shadow: 2px 2px 2px;
}

#accessories h1 {
    text-align: center;
}

.accessories-elements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.accessories-elements div {
    background-color: white;
    text-align: center;
    border-radius: 10px;
    height: 40vh;
}

.accessories-elements a {
    text-decoration: none;
}

.accessories-elements img {
    margin-top: 40px;
    height: 300px;
    width: 80%;
    align-items: center;
}

footer{
    margin-top: 6rem;
    background-color: #222;
    padding: 8px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333
}

/* -------------------------- Featured products transition ----- */
#featuredProducts{
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.6s ease, transform 1.6s ease;
}

#featuredProducts.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---------------- Hero transform --------------------- */

#hero{
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

#hero.visible {
    opacity: 1;
    transform: scale(1);
}

/* ----------------- newRelease ----------------- */

#newRelease {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

#newRelease.visible {
    opacity: 1;
    transform: scale(1);
}

/* -------------- Accessories --------------- */

#accessories {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

#accessories.visible {
    opacity: 1;
    transform: scale(1);
}

