*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
body{
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  
}
.header{
    display: flex;
    align-items: center;
    justify-content: space-between; 
    background-color: #333;
    height: 80px;
    position: relative;
    padding: 0 20px;
}
.header a{
    text-decoration: none;
    padding: 10px;
    transition: 0.2s;
}
.header a:hover{
  transform: scale(1.2);
}
header {
    background-color: #333;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.header img{
    max-width: 100px;
    max-height: 100px;
}

 .h1{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px; 
}

.right {
    display: flex;
    justify-content: flex-end; 
    /* flex-grow: 0; */
}

.signin-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-left: auto; 
    transition: 0.3s ease-in-out;
}

.signin-link:hover{
    transform: scale(0.9);
}

.start{
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: white;
    width: 100%;
    flex-wrap: wrap;
}
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-grow: 1;
}
.nav a {
    text-align: center;
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    transition: 0.3s;
}
.nav a:hover {
    color: #ff6600;
}
.logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}


.logo img {
    width: 100vw;            
    height: auto;           
    object-fit: cover;       
    max-height: 700px;       
    display: block;
    margin: 0;
    padding: 0;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
}

.all {
     display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: space-between;  
}


.product {
    width: calc(25% - 20px);
    max-width: 300px;
    max-height: 300px;
    height: auto;
    border: 0 !important;        
    outline: none;               
    padding: 10px;
    text-align: center;
    margin: 10px;
    border-radius: 8px;          
    box-shadow: 0 4px 12px rgba(51,51,51,0.3); 
    transition: 0.3s;
}



.product img{
    max-width: 200px;
    max-height: auto;
}
.product a img{
    text-decoration: none;
    padding: 10px;
    transition: 0.4s;
}

.product a:hover img{
transform: scale(0.7);
}
footer {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 10px ; 
    background-color: #333;
    color: white;
    margin-top: 20px;
    background: #333;
    color: white;
    padding: 15px 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 10px 0 30px 0;
}

#searchForm {
    display: flex;
    gap: 5px;
    width: 100%;
    max-width: 500px;
}

#searchInput {
    flex: 1;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

#searchForm button {
    padding: 8px 15px;
    border: none;
    background-color: #ff6600;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#searchForm button:hover {
    background-color: #e65c00;
}

.all.centered {
    justify-content: center;
}

main{
    flex: 1;
}

/* ========== Responsive ========== */

/* Tablet */
@media screen and (max-width: 992px) {
    .product {
        width: calc(50% - 20px);
        max-width: none;
    }
    .nav {
        gap: 12px;
    }
    .nav a {
        font-size: 16px;
        padding: 8px;
    }
    .h1 {
        font-size: 20px;
    }
    .logo img {
        max-height: 400px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    header,
    .header {
        flex-wrap: wrap;
        height: auto;
        min-height: 80px;
        padding: 10px 15px;
    }
    .h1 {
        position: static;
        transform: none;
        width: 100%;
        order: 1;
        text-align: center;
        font-size: 18px;
        margin: 5px 0;
    }
    .header > a:first-of-type {
        order: 0;
    }
    .right {
        order: 2;
    }
    .start {
        flex-direction: column;
        padding: 10px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 10px 0;
    }
    .nav a {
        font-size: 14px;
        padding: 6px 10px;
    }
    .search-container {
        margin: 10px 0;
        padding: 0 15px;
    }
    #searchForm {
        max-width: 100%;
    }
    #searchInput {
        font-size: 14px;
        padding: 10px;
    }
    #searchForm button {
        padding: 10px 14px;
    }
    .logo {
        margin: 10px 0;
    }
    .logo img {
        max-height: 250px;
        width: 100%;
    }
    .all {
        gap: 15px;
        justify-content: center;
        padding: 0 10px;
    }
    .product {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 10px;
        padding: 15px;
    }
    .product img {
        max-width: 100%;
    }
    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 10px;
    }
    footer h3,
    footer h4 {
        font-size: 14px;
    }
}

/* Small mobile */
@media screen and (max-width: 480px) {
    .h1 {
        font-size: 16px;
    }
    .header img {
        max-width: 70px;
        max-height: 70px;
    }
    .nav a {
        font-size: 13px;
        padding: 5px 8px;
    }
    .logo img {
        max-height: 180px;
    }
    .product {
        padding: 10px;
    }
}

