* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style-type: none;
}
html{
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #007bff;
    scroll-behavior: smooth;
}

header {
    display:flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 40px;
    background-color: #007BFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Roboto', sans-serif;
    height: 100px;
    color: #333;
    width: 100%;
    gap: 10px;
    top: 0;
    left: 0;
    z-index: 1000;
    position: sticky;
    border-bottom: 2px solid #e0e0e0;
    text-align: center;
}
header input[type="text"] {
    flex:1;
    max-width: 350px;                           
    height: 20px;
    margin: 0 20px;
    outline: none;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333;
}
header svg[viewBox="0 0 24 24"]:first-of-type {
    margin-left: -35px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    width: 24px;
    height: 24px;
    fill: #fff;
}

header img{
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    height:100px;
    margin-right: 20px;
    margin-left: -50px;
    width: auto;
}
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px; /* space on the right for the icon */
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

.search-bar svg {
    position: absolute;
    right: 55px; /* place icon inside input */
    width: 20px;
    height: 20px;
    fill: #555;
    cursor: pointer;
}

.search-bar button {
    margin-left: 20px;
    padding: 10px 15px 10px 10px;
    border: none;
    width: 80px;
    background-color: #0056b3;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-bar button p{
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-right: -25px;
}
.search-bar button:hover {
    background-color: #0056b3;
}


nav {
    margin-top: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #333;
}
nav ul{
    display: flex;
    gap: 45px;
    text-decoration: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    color:#fff;
}
nav ul li a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #0056b3;
    cursor: pointer;
    font-weight: 900;
}
nav a:hover svg {
    fill: blue;
}

.bell{
    width: 24px;
    height: 24px;
    margin-top: -35px;
    margin-right: -35px;
    fill: white;
    color: white;
    cursor: pointer;
}
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
}
.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-content {
    color: white;
    position: relative;
   text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    max-width: 450px;
    padding: 20px;
    z-index: 2;
    background-color: transparent;
    border-radius: 10px;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    z-index: 2000;
    color: #007bff;
    font-weight: bold;
    align-items: center;
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    top: auto;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* dark overlay for better contrast */
    z-index: 1;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}
.hero-content .shop-now-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease;
}
.hero-content .shop-now-btn:hover {
    background-color: #0056b3;
}
.hero-content {
    animation: fadeInUp 1.2s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.shop-by-category {
    scroll-margin-top: 80px;
    scroll-behavior: smooth;
    margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
    width: 90%;
    margin-top: 40px;
    margin-bottom: 40px;
}
.shop-by-category h2 {
    background-color: #0056b3;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
}
.categories {
    background-color: #f5f5f5;
    align-self: center;
    margin: 0px auto;
    justify-content: center;
    align-items: center;
    place-items: center;
    text-align: center;
    width: 100%;
    padding: 20px;
    display: grid;
   grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    column-gap: 20px;
    row-gap: 50px;
}
.category {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
}
.category img {
    width: 100%;
    object-fit: contain;
    height: 200px;
    border-radius: 10px;
}
.category:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    transform: scale(1.15);
    transition: all 0.3s ease;
}
.category h3 {
    font-size: 20px;
    margin: 10px 0;
    color: black;
    font-weight: bold;
}
.category h3:hover {
    color: #007BFF;
    cursor: pointer;
}

.new-arrivals, .most-popular {
     margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
    width: 90%;
    margin-top: 40px;
    margin-bottom: 40px;
}
.arrivals svg, .most-popular svg {
    fill: #fff;
    width: 25px;
    height: 25px;   
}
.arrivals svg:hover, .most-popular svg:hover  {
    color: #0056b3;
}
.arrivals, .popular {
    display: flex;
    justify-content: space-between;
    color:white; 
    background-color: #0056b3;
    padding: 5px 10px;
    border-radius: 1px;
    align-items: center;
    place-items: start;
}
.arrivals h2, .popular h2 {
     font-weight: bold;
    font-size: 32px;
}
.arrivals a, .popular a {
     text-decoration: none;
    font-size: 20px;
     color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.arrivals a:hover, .popular a:hover {
     font-weight: bold;
     color: #007bff;
}
   
.arrivals-p, .popular-p {
    background-color: #0056b3;
    color: white;
}
.product-grid {
    background-color: #f5f5f5;
    align-self: center;  
    margin: auto;
    justify-content: center;
    align-items: center;
    place-items: start;
    text-align: center;
    max-width: 100%;
    padding: 20px;
    display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}
.product-card {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
     transition: transform 0.3s ease;
}
.product-card img {
    width: 100%;
    object-fit: cover;
    height: 200px;
    margin-bottom: 10px;
    border-radius: 10px;
}
.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    transform: scale(1.05);
    transition: all 0.3s ease;
    transform: rotate(360deg);
    background-color: #0056b3;
    cursor: pointer;

}
.product-card h3, .category h3 {
    font-size: 24px;
    margin: 10px 0;
    color: black;
    font-weight: 900;
}
.product-card h3:hover {
    color: #007BFF;
    cursor: pointer;
}
.product-card p{
    font-size: 20px;
    color:#007bff;
    font-weight: bold;
    padding: 5px;
}


.product-cardd {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
     transition: transform 0.3s ease;
}
.product-cardd img {
    width: 100%;
    object-fit: cover;
    height: 200px;
    margin-bottom: 10px;
    border-radius: 10px;
}
.product-cardd:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    transform: scale(1.05);
    transition: all 0.3s ease;
    transform: translate3d(20px 40px 50px);
    background-color: #0056b3;
    cursor: pointer;

}
.product-cardd h3, .category h3 {
    font-size: 24px;
    margin: 10px 0;
    color: black;
    font-weight: 900;
}
.product-cardd h3:hover {
    color: #007BFF;
    cursor: pointer;
}
.product-cardd p{
    font-size: 20px;
    color:#007bff;
    font-weight: bold;
    padding: 5px;
}


.label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #0056b3;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}
.add-to-cart {
    padding: 10px 15px 10px 10px;
    border: none;
    border-radius: 5px;
    background-color: #0056b3;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin: 10px 15px;
}
.add-to-cart:hover {
    background-color: #003d80;
}



footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background-color: #005bff;
    color:white;
    width: 100%;
    padding: 20px 40px;
    font-family: 'Roboto', sans-serif;
    margin-top: 40px;
    border-top: 2px solid #e0e0e0;
    box-sizing: border-box;
    justify-content: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    position: relative;
    bottom: 0;
    left: 0;
    border-bottom: 2px solid #e0e0e0;
    overflow: hidden;
}
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    grid-column: span 4;
    margin-bottom: 20px;
}
.p {
    font-size: 32px;
    padding: 5px;
    font-weight: bold;
    margin-bottom: 20px;
}
footer .newsletter-form {
    display: grid;
    gap:15px;
    margin-bottom: 25px;
}
footer .newsletter-form label {
    font-size:20px;
    font-weight: 800;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
}
footer .newsletter-form input{
    padding: 10px 20px;
    width: 300px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}
footer .newsletter-form button {
    background-color: #0056b3;
    padding: 10px 20px;
    font-size: 20px;
    color:white;
    border: none;
    font-weight: 700;
    width: 150px;
    margin-top: 10px;
    border-radius: 10px;
}
footer .newsletter-form button:hover {
    background-color: #007BFF;
    cursor: pointer;
}
#checkbox{
    width:30px;
    height: 50px;
    margin-right: 10px;
    cursor: pointer;
}

.footer-content{
    display: contents;
    grid-column: span 4;
    justify-content: center;
    width: 100%;
    align-items: center;
    text-align: start;
    gap: 20px;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.footer-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}
.help ul li a, .footer-about ul li a{
    color: white;
    gap: 10px;
    cursor: pointer;
    font-size:20px;
}
.help ul li a:hover, .footer-about ul li a:hover {
    color: #003d80;
    font-size: 30px;
    font-weight: bold;
    text-decoration: underline;
}
.footer-connect ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
    color: white;
    font-size: 32px;
}
.footer-connect ul li a {
    color:white;
    transition: color 0.3s ease;
}
.footer-connect ul li a:hover {
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.footer-payment ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
    color: white;
    font-size: 40px;
}
.footer-payment h1 {
    font-size: 32px;
    place-items: center;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}
.payment-icons:hover{
    cursor: pointer;
}
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline:none;
    background-color: #fff;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 100%;
   transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
   transform: translate(20px);
}
#myBtn img {
    height:20px;
    color: white;
}

#myBtn:hover{
    background-color: #0056b3;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 1;
    transform: translate3d(0, 0, -50px);
}






























































@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        width: 100%;
        height: 100%;
        gap: 10px;
    }

    header input[type="text"] {
        width: 90%;
        max-width: 60%;
        margin: 0 20px;
    }

    nav {
        width: 100%;
        margin-top: 5px;
        flex-direction: column;
    }
    .hero {
        width: 100%;
    max-height: 400px;
}
.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
}
.hero-content h2 {
    font-size: clamp(24px, 4vw, 36px);
}
}