:root {
  /* Primary brand color (trust, CTA buttons, links) */
  --clr-primary: #1E6BF1; /* vivid blue */

  /* Tints & shades for hover and accents */
  --clr-primary-light: #5a93f8;
  --clr-primary-dark: #124bb3;

  /* Secondary (for highlights or category tags) */
  --clr-secondary: #FF9F1C; /* warm orange accent */
  --clr-tertiary: rgb(164,88,199);

  /* Neutral palette (for backgrounds, cards, text) */
  --clr-bg: #ffffff;
  --clr-bg-alt: #ffffffe0;
  --clr-surface: #ffffff;
  --clr-border: #e1e5eb;

  /* Text colors */
  --clr-text: #1a1a1a;
  --clr-text-muted: #555f6d;
  --clr-text-inverse: #ffffff;

  /* Status colors */
  --clr-success: #2ecc71;
  --clr-warning: #f1c40f;
  --clr-error: #e74c3c;
}
body{ 
    font-family: "Zalando Sans SemiExpanded", sans-serif;
  font-optical-sizing: auto;}
.hero-section{
    width: 100%;
    height: fit-content;
    min-height: 100vh;
    margin-top: -7px;
}
header{
    
    color: var(--clr-primary);
    background-color: var(--clr-bg-alt);
    padding: 10px 0;
    margin-top: 0px;
    margin-left:4px;
    margin-right:4px;
    position: fixed;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
   z-index: 3;
   filter: blur(0px);
}
.logo-img{
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin-right: 10px;
       filter: none;
}
.logo-with-img{
    display: inline-block;
    margin: 4px;
    min-width: fit-content;
    filter: none;
}
.logo{
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    filter: none;
}
.nav-list-container{
    list-style-type: none;
    margin: 4px;
    display: flex;
    gap: 15px;
    align-items: center;
    min-width: fit-content;
   
}
.icon-with-title{
    font-size: 10px;
    margin: 0;
    display: flex;
    align-content: center;
    justify-items: center;
}
.material-symbols-outlined{
    display: flex;
    justify-content: center;
}
.icon-title{
    color: var(--clr-text-muted);
}
.nav-link{
text-decoration: none;
color: var(--clr-text);
font-weight: bold;
}
.nav-link:hover{
text-decoration: none;
color: var(--clr-primary);
font-weight: bold;
scale: 1.2;
}
.search-input-container{
    display: flex;
    justify-content: center;
    margin: 0 0 0 15px ;
    width: 80%;
    min-width: 150px;
}
.search-input{
    width: 80%;
    height: 20px;
    border: 1px solid var(--clr-text-muted);
    border-radius: 5px;
    padding: 5px 10px;
    display: flex;
    justify-content: center;
    
    
}
.search-button{
    text-decoration: none;
    width: 50px;
    height: 30px;
    background-color: var(--clr-primary);
    color: var(--clr-text-inverse);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    display:flex;
    justify-content: center;
    align-items: center;
}
.products-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    /* padding: 20px; */
     justify-items: center;
   transform: translateY(100px);
}
.product-card{
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    /* padding: 15px; */
    background-color: var(--clr-surface);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.445);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    height: 400px;
}
.product-card:hover{
    transform: translateY(-10px);
}
.item-img-container{
    width: 100%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

}
.item-img{
    width: auto;
   object-fit: contain;
    height: 100%;
   
}
.product-name{
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    color: var(--clr-primary-dark);
}
.product-description{
    font-size: 14px;
    color: var(--clr-text-muted);
    margin: 0 10px 40px 10px;
    flex-grow: 1;
}
/* .add-to-cart-button{
    width: 100%;
    height: 40px;
    font-size: 16px;
    font-weight: bold;
    color: var(--clr-text);
    margin-bottom: -1px;
    background-color: var(--clr-secondary);
   text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1px;
} */
.product-price{

    height: 20px;
    font-size: 16px;
    color: var(--clr-text);
    margin-bottom: 10px;

   text-align: center;
    display: inline-block;
    justify-content: center;
    align-items: center;
    
}

.add-to-cart-button{
    height: 50px;
    width: 45px;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    color: var(--clr-text);
    margin-bottom: 10px;
    background-color: var(--clr-secondary);
    border-radius: 10px;
   text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    z-index: 2;
    
}
.add-to-cart-button:hover{
background-color: var(--clr-success);
    
}
.error-box{
    background-color: var(--clr-error);
    color: var(--clr-text-inverse);
position: fixed;
width: 100%;
    height: 50px;
display: block;
justify-content: center;
align-items: center;
z-index: 3;
top: 80px;
}

/* --- 1. Small Desktops / Large Tablets (<= 1024px) --- */
@media (max-width: 1024px) {
    .search-input-container {
        /* Reduce search bar width to give nav more space */
        width: 60%;
    }
}

/* --- 2. Tablets (<= 768px) --- */
@media (max-width: 768px) {
    
    /* --- Header Stacking --- */
    header {
        flex-wrap: wrap; /* Allow header items to wrap */
        justify-content: space-between;
        padding: 10px 15px; /* Add padding to header */
        margin: 0;
    }

    .logo-with-img {
        order: 1; /* Logo first */
    }

    .main-nav {
        order: 2; /* Nav second */
    }

    .search-input-container {
        order: 3; /* Search bar third (wraps to new line) */
        width: 100%; /* Full width search bar */
        margin: 15px 0 0 0; /* Add space above */
        min-width: unset; /* Remove min-width */
    }

    .search-input {
        width: 100%; /* Make input fill container */
    }

    /* --- Hide Nav Text, Show Icons --- */
    .icon-title {
        display: none; /* Hide text like "home", "products" */
    }

    .nav-link {
        padding: 5px; /* Give icons more touch area */
    }
    
    .icon-with-title {
        font-size: 14px;
    }

    .material-symbols-outlined {
        font-size: 28px; /* Make icons larger */
    }
}


/* --- 3. Mobile (<= 480px) --- */
@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    .logo {
        font-size: 20px; /* Smaller logo text */
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .nav-list-container {
        gap: 8px; /* Tighter icon spacing */
    }
}