/* ================= FONTS ================= */

@font-face {
  font-family: 'sf';
  src: url('/fonts/sf.otf') format('opentype');
}

/* ================= PC ================= */

.search-wrapper {
  width: 100%;
  padding: 50px 20px 30px;
  display: flex;
  justify-content: center;
}

.search-inner {
  width: 100%;
  max-width: 520px;
  position: relative;
}

.search-inner input {
  width: 100%;
  padding: 16px 52px 16px 18px;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 1px solid #8a8a8a;
  border-radius: 30px;
  outline: none;
  transition: all 0.3s ease;
}

.search-inner input::placeholder {
  color: #8a8a8a;
}

#camIcon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8a8a;
  font-size: 16px;
  transition: color 0.3s ease;
}

#camIcon:hover {
  color: #4169E1;
}

/* ---------- PRODUCT ---------- */

.category-section {
  padding: 20px 6vw 80px;
}

.category-title {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 60px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card {
  background: whitesmoke;
  overflow: hidden;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 16px 18px 22px;
  text-align: center;
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.product-prices {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.price-old {
  font-size: 11px;
  color: #9a9a9a;
  text-decoration: line-through;
}

.price-new {
  font-size: 12px;
  font-weight: 500;
}

/* ================= PHONE ================= */

@media (max-width: 768px) {

  .search-wrapper {
    padding: 30px 16px 20px;
  }

  .search-inner {
    max-width: 100%;
  }

  .search-inner input {
    padding: 14px 46px 14px 16px;
    font-size: 13px;
  }

  #camIcon {
    right: 16px;
    font-size: 15px;
  }

  .category-section {
    padding: 20px 16px 60px;
  }

  .category-title {
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 30px;
  }

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

  .product-card {
    background: whitesmoke;          
  }

  .product-info {
    padding: 12px 10px 16px;
  }

  .product-name {
    font-size: 13px;
    letter-spacing: 0.4px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .product-prices {
    gap: 8px;
  }

  .price-old {
    font-size: 10px;
  }

  .price-new {
    font-size: 12px;
  }
}

