* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --light-blue: #00ACED;
    --mid-blue: #006989;
    --dark-blue: #002936;
    --grey: #595959;
    --orange: #fb6806;
    --white: #ffffff;
    --border-grey: #d0cfcf;
    --black-15: #00000026;
    --black-3: #0000004d;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: var(--grey);
  background: var(--white);
}

/* utility class's */
.orange-bar {
  background-color: var(--orange);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px 0 0 50px;
  display: block;
  font-size: 1.2rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  text-align: left;
  margin-top: 1rem;
  margin-left: 1rem;
  margin-bottom: 1rem;
}


/* Header */
header {
  background: var(--white);
  color: var(--black-15);
}


/* 
  Top navigation bar
  
*/

.topnav {
  background-color: var(--light-blue);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.topnav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.topnav a {
  display: block;
  color: var(--white);
  padding: 14px 16px;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.3s;
}

@media (min-width: 650px) {
  .nav-link:hover,
  .nav-link:active {
    color: var(--orange);
  }
}
.icon-item {
  order: 1;
}

.icon-item a {
  font-size: 20px;
}

.menu-text {
  order: 2;
}

.cart-item {
  order: 3;
  margin-left: auto;
}

.items-count {
  order: 4;
  background-color: var(--mid-blue); 
  border-radius: 20px; 
  padding: 6px 10px;
  margin-right: 10px;
  color: var(--white);  
}

.items-count:hover,
.items-count:active {
  background-color: var(--orange);
}

.nav-item {
  display: none;
  width: 100%;
  order: 6;
}

.login-item {
  order: 5;
}

/* When menu is open */
.topnav.responsive .menu-text {
  display: none;
}

.topnav.responsive .nav-item {
    display: block;
  border-bottom: 1px solid var(--white);
    margin: 0 20px 15px;
}


.topnav.responsive .nav-item:hover,
.topnav.responsive .nav-item:active {
  border-bottom: 1px solid var(--orange);
}


.topnav.responsive .nav-item a {
  text-align: left;
}

.topnav.responsive .fa-circle {
  font-size: 0.4em;
  padding-right: 5px;
}

.topnav.responsive {
  position: fixed; 
}

.topnav.responsive ul {
  position: absolute; 
  top: 100%; 
  left: 0;
  right: 0;
  background-color: var(--light-blue);
  z-index: 1000; 
}

/* Desktop styles */
@media screen and (min-width: 769px) {
  .topnav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  
  li:nth-last-child(3) {
    margin-left: auto;
  }

  .icon-item,
  .menu-text {
    display: none;
  }
  
  .nav-item {
    display: block;
    width: auto;
    order: 0;
  }
  
  .login-item {
    order: 0;
  }
  
  .cart-item {
    order: 0;
    margin-left: 0;
  }
  
  .items-count {
    order: 0;
  }
  
  .nav-item .fa-lock {
    display: inline;
  }
  
  .nav-item .fa-circle {
    display: none;
  }
}

/* End top bar  */

.main-section {
  max-width: 960px;
  margin: auto;
  padding-top: 60px;
}


/* Logo and Search bar */

.logo-and-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

@media (min-width: 650px) {
    .logo-and-search {
        flex-direction: row;
        justify-content: space-between;
        max-width: 960px;
        padding: 15px 0;
        margin: 0 auto;
    }
}

.logo-and-search__logo {
    width: 100%;
    display: block;
    overflow: hidden;
}

.logo-and-search__logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.logo-and-search__logo {
  margin: 0;
}

.product-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-search input {
    padding: 7.5px 16px;
    border: 1px solid var(--grey);
    border-radius: 30px;
    font-size: 16px;
    max-width: 220px;
}

.search-button {
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.search-button .fa-solid {
    font-size: 18px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
}

/* end logo and earch bar */

/* hero banner */

.hero-banner {
    display: none;
}

@media (min-width: 650px) {
    .hero-banner {
        display: block;
        max-width: 960px;
        max-height: 339px;
        margin: 30px auto 0;
        position: relative;
    }
    
    .hero-banner img {
        max-width: 960px;
        width: 100%;
    }
    .hero-banner__dots {
      display: flex;
      justify-content: center;
      gap: 10px;
      position: absolute;
      bottom: 15px;
      left: 0;
      right: 0;
    }
    .dot {
      width: 14px;
      height: 14px;
      background-color: var(--mid-blue);
      border: 1px solid var(--white);
      border-radius: 50%;
    }
    .hero-banner__promo {
        position: absolute;
        top: 0;
        right: 0;
        width: 30%;
        height: 100%;
        border: 2px solid var(--white);
        background-color: var(--light-blue);
        border-top-left-radius: 50%;
        border-bottom-left-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--white);
        overflow: hidden;
        min-width: 150px;
    }

    .hero-banner__text {
        position: absolute;
        top: 10%; 
        margin-left: 2.5em;
    }

    .hero-banner__text p {
        font-size: clamp(1rem, 2vw, 1.2rem);
        margin: 20px 0;
        
    }

    .hero-banner__text h2 {
        font-size: clamp(1.0rem, 3vw, 2.5rem);
        font-weight: 300;
        margin: 20px 0;
    }

    .hero-banner__promo .button {
        background-color: var(--mid-blue);
        color: var(--white);
        border: none;
        padding: 8px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-size: 18px;
        cursor: pointer;
    }

    .hero-banner__promo .button:hover {
        background-color: var(--orange);
    }
  }

/* end hero baner */


/* Categories */

.categories {
  background: var(--dark-blue);
  padding: 1rem;
}

.categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.categories li {
  margin: 0;
}

.categories a {
  display: block;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--light-blue);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  background: transparent;
  font-family: sans-serif;
}

.categories a:hover,
.categories a:active,
.categories a:hover i,
.categories a:active i {
  background: var(--light-blue); 
  color: var(--white);
}

@media (min-width: 650px) {
    .categories li a i {
        display: none;
    }
}

.categories li a i {
    font-size: 14px;
    color: var(--light-blue);
}


@media (min-width: 650px) {
  .categories {
    max-width: 960px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    margin: 0 auto;
  }
  .categories ul {
    display: flex;
    padding-left: 25px;
  }
  .categories li a {
    padding: 5px 20px 5px 10px;
    border: none;
    border-radius: 0;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    gap: 10px;
    }
}

/* Featured products */
.featured-products {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; 
  background: var(--white);
}

.featured-products article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; 
  background: var(--white);
  border: 1px solid var(--border-grey);
  width: 180px;
  height: 250px;
  border-radius: 5px;
  padding: 10px; 
  margin-bottom: 1rem;
  text-align: center;
}

.orange {
    color: var(--orange);
}

.price {
  font-size: 1.3rem;
}

.discount {
  font-size: 0.8rem;
}

@media (min-width: 650px) {
  .featured-products article div {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  }
}

.featured-products article:hover,
.featured-products article:focus {
  box-shadow: 0 2px 5px var(--orange);
}

.featured-products img {
  max-width: 80%;
  height: auto;
}

.featured-products h3 {
  font-size: 0.8rem;
  font-weight: normal;
  margin: 0.5rem 0;
  color: var(--mid-blue);
}

.price del {
  color: var(--grey);
  margin-right: 0.3rem;
}

/* Brands */
.brands {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  text-align: center;
  justify-content: space-between;
}

@media (min-width: 650px) {
  .brands {
    display: flex;
    flex-direction: row;
  }
}

.brands-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 360px;
}

.brands-div__blue {
 color: var(--light-blue);
}

.brands ul {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  list-style: none;
  padding: 15px 15px 15px 15px;
}

.brands img {
  max-height: 40px;
}

.brands_logo {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--dark-blue);
  margin-bottom: 1em;
  margin-top: 1em;
}

.brands_logo ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  padding: 15px;
  margin: 0;
  list-style: none;
}

@media (min-width: 650px) {
  .brands_logo {
    flex-wrap: nowrap;
    border-radius: 50px 0 0 50px;
    height: 90px;
  }

  .brands ul {
    flex-wrap: nowrap;
  }
}

/* Footer */
footer {
  background-color: var(--light-blue);
  color: var(--white);
  text-align: center;
  min-height: 300px;
}

.footer-container {
  display:flex;
  justify-content: center;
  flex-direction: column;
}

@media (min-width: 650px) {
  .footer-container {
    display:flex;
    flex-direction: row;
  }
}
/* footer Nav */
.footer-nav {
  display:block;
  background-color: var(--light-blue);
  flex-grow: 1;
  max-width: 320px;
  padding:20px
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.footer-nav li a::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 6px;
    background-color: var(--black-15);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.footer-nav li a:hover {
    color: var(--grey);
}

/* footer product categoies */
.footer-categories {
    display: none;
}


@media (min-width: 650px) {
    .footer-categories {
        display: block;
        background-color: var(--orange);
        flex-grow: 1;
        max-width: 320px;
        padding: 20px;
    }

    .footer-categories ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-categories a {
        text-decoration: none;
        color: var(--white);
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 8px;
    }

    .footer-categories li a::before {
        content: "";
        display: inline-block;
        width: 10px;
        height: 6px;
        background-color: var(--black-15);
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
    }

    .footer-categories li a:hover {
        color: var(--grey);
    }
}

/* footer Socials */
.footer-socials {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

@media (min-width: 650px) {
    .footer-socials {
        flex-grow: 1;
        max-width: 320px;
        padding: 20px 0 20px 20px;
        margin-top: 0;
    }
}

.footer-socials ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
    flex-direction: row;
    justify-content: center;
}

.footer-socials h3 {
    text-align: center;
}

.footer-socials a {
    text-align: center;
    color: var(--white);
    text-decoration: none;
    flex: 1;
}

.footer-socials i {
  font-size: 45px;
  width: 50px;
  height: 50px;
  border-radius: 50%; 
  border:  2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  min-width: 81px;
  min-height: 81px;
}

.footer-socials span {
  font-size: 15px;
}

/* footer copyright*/

footer .newsletter ul,
footer .social ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

footer .newsletter li,
footer .social li {
  margin: 0.3rem 0;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--grey);
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 12px;
}

@media (min-width: 650px) {
    .footer-copyright {
        flex-direction: row;
        justify-content: center;
        padding-bottom: 15px;
        gap: 10px;
        margin: 0 auto;
    }
}

.newsletter {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 16px;          /* spacing between each field */
  flex-wrap: nowrap;  /* <-- this forces one line */
  font-family: Arial, sans-serif;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 13px;
  white-space: nowrap; /* keeps label on one line */
}

.field input,
.field select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 120px;
  font-size: 14px;
}

small {
  color: red;
  font-size: 11px;
  margin-top: 2px;
}

button {
  padding: 8px 14px;
  background: #0077ff;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  background: #005fcc;
}

.success {
  color: green;
  margin-left: 12px;
  white-space: nowrap;
}

.newsletter-input {
  width: 100%;
  border: 1px solid var(--grey);
  border-radius: 30px;
  font-size: 16px;
  padding-left: 1em;
}

.newsletter-button {
  margin-top: 10px;
  border: 1px solid var(--grey);
  border-radius: 30px;
  font-size: 16px;
}

.newsletter-container {
  max-width: 960px;
  padding: 5px 10px 5px 20px;
}

@media (max-width: 650px) {
 .newsletter-container {
  display: none;
 } 
}
