/* =========================
   RESPONSIVE
========================= */

/* TABLET */

@media(max-width:1024px){

  .shop-header h1{
    font-size: 42px;
  }

  .shop-grid{
    grid-template-columns: repeat(2,1fr);
  }
}

/* MOBILE */

@media(max-width:768px){

  .shop-header{
    padding: 90px 20px 40px;
  }

  .shop-header h1{
    font-size: 34px;
  }

  .shop-header h3{
    font-size: 15px;
  }

  .shop-grid{
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .product-card{
    width: 100%;
  }

  .product-card img{
    height: 230px;
  }

  .product-card h3{
    font-size: 18px;
  }

  .price{
    font-size: 22px;
  }
}

/* SMALL MOBILE */

@media(max-width:480px){

  .shop-header h1{
    font-size: 30px;
  }

  .product-card img{
    height: 210px;
  }

  .product-card h3{
    font-size: 16px;
  }

  .price{
    font-size: 20px;
  }
}

/* =========================
   RESPONSIVE NAVBAR
========================= */

.menu-icon{
  display: none;
}

.close-icon{
  display: none;
}

@media (max-width: 768px){

  .navbar{
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo{
    display: flex;
    align-items: center;
    gap: 8px;
    width: 80%;
  }

  .logo img{
    width: 42px;
  }

  .logo span{
    font-size: 13px;
    line-height: 1.4;
  }

  .menu-icon{
    display: block;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
  }

  .nav-links{
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;

    background: rgba(15,23,42,.98);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    transition: .4s ease;
    z-index: 10000;
  }

  .nav-links.active{
    right: 0;
  }

  .nav-links a{
    color: #fff;
    font-size: 18px;
    width: 80%;
    text-align: center;
    padding: 12px;
  }

  .close-icon{
    display: block;
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
  }

  #overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9999;
  }

  #overlay.show{
    opacity: 1;
    visibility: visible;
  }
}

/* =========================
   PRODUCT GRID RESPONSIVE
========================= */

/* Large screens */
.shop-grid{
  width: 92%;
  max-width: 1300px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 25px;
}

/* Tablets */
@media (max-width: 992px){

  .shop-grid{
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
  }

}

/* Phones */
@media (max-width: 768px){

  .shop-header{
    padding: 90px 15px 30px;
  }

  .shop-header h1{
    font-size: 32px;
  }

  .shop-header h3{
    font-size: 14px;
  }

  .shop-grid{
    width: 100%;
    padding: 0 15px 50px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card{
    max-width: 420px;
    margin: auto;
  }

  .product-card img{
    height: 220px;
  }

  .product-card h3{
    font-size: 17px;
  }

  .price{
    font-size: 20px;
  }
}

/* Small phones */
@media (max-width: 480px){

  .navbar{
    padding: 12px;
  }

  .logo span{
    font-size: 11px;
  }

  .shop-header h1{
    font-size: 28px;
  }

  .shop-grid{
    padding: 0 10px 40px;
  }

  .product-card{
    border-radius: 18px;
  }

  .product-card img{
    height: 200px;
  }

  .product-card h3{
    font-size: 16px;
    padding: 12px 15px 5px;
  }

  .price{
    font-size: 18px;
    padding: 0 15px;
  }

  .product-card p{
    padding: 0 15px 15px;
    font-size: 13px;
  }
}

/* Very small phones */
@media (max-width: 360px){

  .logo span{
    font-size: 10px;
  }

  .shop-header h1{
    font-size: 24px;
  }

  .product-card img{
    height: 180px;
  }

}