*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{ scroll-behavior: smooth;}

body{
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #ddd;
}

button,select,input{
  font: inherit;
}

button{
  border: 0;
  background: none;
  cursor: pointer;
}

a{
  color: inherit;
  text-decoration: none;
}

/* Header*/
.header{
  width: 100%;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.top-bar{
  height: 75px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
}

.logo{
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 3px;
}

.main-nav{
  display: flex;
  gap: 30px;
}
.main-nav a{
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.main-nav a:hover {
    text-decoration: underline;
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-icons button {
    font-size: 22px;
    position: relative;
}

#bagCount {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #111;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*MOBILE nav and menu*/
.mobile-nav {
    display: none;
}
.mobile-menu {
    display: none;
}

/*Search*/
.search-panel {
    display: none;
    padding: 20px 40px;
    border-bottom: 1px solid #ddd;
}

.search-panel.active {
    display: block;
}

.search-panel input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #111;
    padding: 12px 0;
    outline: none;
    font-size: 18px;
}

/*Banner*/
.banner{
  height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.banner-img{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-img::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.05)
    );

    z-index: 1;
}

.banner-content{
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin-left: 8%;
}

.banner-thing{
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.banner h1{
  font-size: clamp(50px, 7vw, 90px);
  line-height: 0.9;
  font-weight: 400;
  margin-bottom: 25px;
}

.banner p:not(.banner-thing){
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 30px;
}

.banner-button{
  display: inline-block;
  background: rgb(220, 121, 167);
  color: black;
  padding: 15px 30px;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: bold;
}

.banner-button:hover{
  background: #eee;
}

/*categories*/
.categories {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.category {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 1px;
    padding-bottom: 7px;
}

.category.active {
    border-bottom: 1px solid #111;
}

/*Product header*/
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: end;

    padding: 45px 40px 25px;
}

.product-header h2 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 8px;
}

.product-header p {
    color: #777;
    font-size: 13px;
}

/*Products*/
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 0 2px;
}

.product {
    min-width: 0;
    cursor: pointer;
}

.product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.product:hover .product-image img {
    transform: scale(1.04);
}

/* Heart icon */
.heart {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart.active {
    background: #e48ccb;
    color: white;
}

/* Product information*/
.product-info {
    padding: 15px 10px 35px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 7px;
}

.product-info p {
    color: #777;
    font-size: 12px;
    margin-bottom: 8px;
}

.product-info strong {
    font-size: 13px;
    font-weight: 500;
}

.product-info del {
    color: #888;
    margin-left: 5px;
    font-weight: 400;
}

/* Footer */
footer {
    margin-top: 80px;
    background: #f5f5f5;
    padding: 60px 40px 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid h3 {
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.footer-grid h4 {
    font-size: 12px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-grid p {
    font-size: 13px;
    color: #666;
}

.footer-grid a {
    display: block;
    font-size: 13px;
    margin-bottom: 12px;
    color: #555;
    text-decoration: none;
}

.footer-grid a:hover {
    color: #000;
    text-decoration: underline;
}

.copyright {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #888;
    font-size: 11px;
}

/*Tablet and Mobile view*/
@media(max-width:900px){
  .top-bar{
    grid-template-columns: 1fr auto;
  }
  .main-nav{
    display: none;
  }
  .products{
    grid-template-columns: repeat(3,1fr);
  }
}

@media(max-width:600px) {
  .top-bar {
        display: none;
    }
    .mobile-nav {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
    }
    .mobile-nav span {
        font-size: 21px;
        font-weight: bold;
        letter-spacing: 4px;
    }
    .mobile-nav button {
        font-size: 22px;
    }

/*Mobile menu*/
    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 2000;

        background: white;

        display: none;
        flex-direction: column;

        padding: 80px 30px;
    }
    .mobile-menu.active {
        display: flex;
    }
    .mobile-menu a {
        font-size: 25px;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    .close-menu {
        position: absolute;
        right: 25px;
        top: 20px;
        font-size: 35px;
    }
    /*Mobile banner*/
    .banner{
      height: 550px;
      background-position: center;
    }
    .banner-content{
      margin: 0 25px;
    }
    .banner h1{
      font-size: 58px;
    }
  /*Categories for mobile*/
    .categories {
        justify-content: flex-start;
        gap: 25px;
        padding: 22px 15px;
    }
  /*Products for mobile*/
    .product-header {
        padding: 30px 15px 20px;
    }
    .product-header h2 {
        font-size: 24px;
    }
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
    .product-info {
        padding: 12px 8px 25px;
    }
    .product-info h3 {
        font-size: 13px;
    }
    .heart {
        width: 32px;
        height: 32px;
        right: 10px;
        top: 10px;
    }
    /*Footer for mobile*/
    footer {
        padding: 45px 20px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

}
