:root {
    --dark_grey: #8a9a9a;
    --light_grey: #f0f0f0;
    --winter_lighter_blue: #e3f2fd;
    --winter_light_blue: #90caf9;
    --text-color: #333;
    --card-bg: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background-image: linear-gradient(to top, var(--winter_light_blue), var(--winter_lighter_blue));
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--winter_lighter_blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav_outer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav_logo {
    display: flex;
    align-items: center;
}

.navimg {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);

}

.nav_shopping_cart {
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    color: var(--winter_light_blue);
}

header {
    opacity: 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /*background: linear-gradient(135deg, #fff 0%, var(--winter_lighter_blue) 100%);*/
    background-image: url("img/christmas_banner.png");
    animation: fade_in 1.2s forwards;
}

@keyframes fade_in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}
header p {
    font-size: large;
    font-weight: bold;
    margin: auto 20px;
}

.header-content {
    background-color: rgba(227, 242, 253, 0.5);
    border-radius: 15px;
}

#holidayFilter{
    padding: 15px 20px;
    width: fit-content;
    min-width: 170px;
    text-align: center;
    background-color: var(--winter_light_blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    color: #fff;
    border-radius: 20px;
    font-size: larger;
    font-weight: bold;
    transition: background-color 0.3s ease;
    appearance: none;
}
#holidayFilter:hover {
    background-color: #6b9bc2;
}

#holidayFilter option {
    font-size: larger;
}

#productGrid {
    display: grid;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    grid-template-columns: repeat(auto-fit, minmax(290px, .75fr));
    padding: 20px 0;
    margin: 0 auto;
    justify-content: center;
}

/* --- INDIVIDUAL CARDS --- */
.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
    text-align: left;
}

.card.hidden {
  opacity: 0;
  filter: grayscale(1);
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out, filter 1s ease-out;
}

.card.slide-up {
  opacity: 1;
  transform: translateY(0);
  filter: grayscale(0);
}

.card:hover {
    transform: translateY(-5px);
}

.card_img {
    width: 100%;
    height: 250px;
    margin: 1rem auto;
    object-fit: cover;
    background-color: #ddd;
}

.card_content {
    padding: 15px;
}

.card h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.card p {
    margin: 0;
    font-weight: bold;
    color: var(--winter_light_blue);
}

footer {
    padding: 40px;
    background-color: #333;
    color: white;
}

footer a {
    color: var(--winter_light_blue);
    margin: auto 0.5rem;
}

.social-icon {
    font-size: 1.5rem;
    margin-top: 10px;
    display: inline-block;
}

.header-content h2 {
    display: none;
}

@media (max-width: 575px) {
  header {
    padding: 5px;
  }
  .header-content h2 {
    display: flex;
    font-size: 2.2rem;
    justify-content: center;
  }
  .header-content h1 {
    display: none;
  }
  .header-content p {
    font-size: small;
  }

}
@media (max-width: 365px) {
    .header-content h2 {
        font-size: 1.8rem;
    }
    #productGrid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
    }
    #holidayFilter {
        font-size: medium;
        min-width: 140px;
        padding: 15px 5px;
    }
}
